- This topic has 1 reply, 2 voices, and was last updated 18 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
davidfengMemberI deployed my project to Tomcat and ran it. It worked well. I deployed it to weblogic, deployment is successful. When I tried to run it, it didn’t work. The server always gives the message:
Nov 16, 2006 3:15:47 PM PST> <Warning> <HTTP> <BEA-101248> <[Application: ‘C:\bea\user_projects\domains\mydomain\applications’, Module: ‘StrutsDemo’]: 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).>
Nov 16, 2006 3:15:51 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config=’org.apache.struts.util.LocalStrings’, returnNull=true
Nov 16, 2006 3:15:51 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config=’org.apache.struts.action.ActionResources’, returnNull=true
Nov 16, 2006 3:15:52 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config=’com.yourcompany.struts.ApplicationResources’, returnNull=true
<Nov 16, 2006 3:15:52 PM PST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server “myserver” for domain “mydomain” running in Development Mode>
<Nov 16, 2006 3:15:52 PM PST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Nov 16, 2006 3:15:52 PM PST> <Notice> <WebLogicServer> <BEA-000355> <Thread “ListenThread.Default” listening on port 7001, ip address *.*>my web.xml looks like:
<?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”>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>i use eclipse, myeclipse5.10GA and weblogic8.
how to solve this problem, any help will be appreciated.dave
Riyad KallaMemberMoving to OT > Soft Dev
Dave, I would bet that the version of WebLogic you are deploying to doesn’t support J2EE 1.4, which is what you are using with the Web 2.4 specification in your file. You either need to downgrade it to the Web 2.3 DTD, or upgrade your version of Weblogic.
-
AuthorPosts