facebook

Problem deploying to WebLogic

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #252635 Reply

    rfalast
    Participant

    I’m new to MyEclipse and WebLogic, so I apologize if this is an easy question. I have created an instance of WebLogic 8.1 that I can start and stop inside of MyEclipse.

    I also created a simple EAR file to test that I can run the develop/test/deploy cycle but I cannot seem to get the EAR file deployed properly.

    Here are my WebLogic settings

    BEA Home directory = c:\bea
    WebLogic installation directory = c:\bea\weblogic81
    Executino domain root = C:\bea\user_projects\domains
    Execution domain name = mydomain
    Execution server name = myserver
    Hostname:portNumber = localhost:7001
    Security policy file =C:\bea\weblogic81\server\lib\weblogic.policy

    The error I’m getting is the following:

    \user_projects\domains\mydomain\applications’, Module: ‘HelloWeb’]: Deployment descriptor “web.xml” is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ‘web-app’. (line 2, column 221).>

    Here are the first two lines out of the web.xml

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;

    Any ideas?

    #252637 Reply

    rfalast
    Participant

    Never mind, I was not aware that WebLogic 8.1 did not support J2EE 2.4

    #253458 Reply

    @rfalast wrote:

    Never mind, I was not aware that WebLogic 8.1 did not support J2EE 2.4

    i have this EXACT same problem, so how did you fix this? I know where the web.xml (located in WEB-INF) file is that has all the 2.4 stuff and then i’ve got another web.xml file that’s in my data dir that uses 2.3 stuff…so if 8.1 doesn’t support 2.4 how can you change that one web.xml file i guess? (or w/e you changed to make it work)

    #253473 Reply

    oh halelujah i fixed it, this is for EVERYONE who has this problem…change your web.xml to this:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”&gt;
    <web-app>
    </web-app>

    #253644 Reply

    rfalast
    Participant

    Right…. I thought that WebLogic supported the servlet 2.4 specification, apparently it does not. Just make sure you create the create web project. You have the choice of selecting J2EE 1.3 or 1.4, so make sure you use 1.4

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problem deploying to WebLogic

You must be logged in to post in the forum log in