- This topic has 4 replies, 2 voices, and was last updated 18 years, 11 months ago by
rfalast.
-
AuthorPosts
-
rfalastParticipantI’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.policyThe 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” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>Any ideas?
rfalastParticipantNever mind, I was not aware that WebLogic 8.1 did not support J2EE 2.4
forGeoff4GENiUSMember@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)
forGeoff4GENiUSMemberoh 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”>
<web-app>
</web-app>
rfalastParticipantRight…. 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
-
AuthorPosts