Websphere Struts -war Deployment problem...
While depoloying one war file i am getting the following error in websphere will anybody guide me. [10/1/03 15:20:07:391 IST] 51ddb8cf WebGroup I SRVE0180I: [ANMEJB.war] [/ANMEJB] [Servlet.LOG]: action: init [10/1/03 15:20:07:406 IST] 51ddb8cf WebGroup I SRVE0180I: [ANMEJB.war] [/ANMEJB] [Servlet.LOG]: action: Initializing configuration from resource path /WEB-INF/struts-config.xml [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/C:/WebSphere/AppServer/lib/struts.jar!/org/apache/struts/resource s/struts-config_1_0.dtd' [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:/C:/WebSphere/AppServer/lib/struts.jar!/org/apache/struts/resource s/web-app_2_2.dtd' [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:/C:/WebSphere/AppServer/lib/struts.jar!/org/apache/struts/resource s/web-app_2_3.dtd' [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd') [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O Not registered, use system identifier [10/1/03 15:20:07:406 IST] 51ddb8cf ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Input/output error reading configuration from resource path /WEB-INF/struts-config.xml at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletIn stance.java:82) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycle Servlet.java:147) at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecy cleServlet.java:270) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleS ervlet.java:113) at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:17 5) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServlet Manager.java:761) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServle tManager.java:257) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(Web AppServletManager.java:453) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1233) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:950 ) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java: 133) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:36 0) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav a:401) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart (DeployedApplicationImpl.java:743) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav a:337) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati onImpl.java:531) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application MgrImpl.java:254) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application MgrImpl.java:458) at java.lang.reflect.Method.invoke(Native Method) at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46) at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115) at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(DynamicModelMBeanS upport.java:409) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.jav a:323) at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178) at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113) at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:655) at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:137) at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perfo rm(ApplicationDeploymentCollectionAction.java:239) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja va:1791) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: Websphere Struts -war Deployment problem...
Your trace below is snipped to the relevant pieces... The first line is your hint: WAS only knows about the 1.0 configuration in its registrations. (BTW, for those interested but not familiar with it, this is WAS 5.0.x--and the admin console is struts 1.0 based.) I can tell from the trace below you're trying to install a 1.1 based app. The next message is the server trying to locate the DTD for the struts-config.xml file. It first tries the doctype registrations, which per the above version 1.1 is not registered. So it says OK, I'll use the system tag i.e. the full URL provided in the DOCTYPE directive. If it can't reach the URL (i.e because you're behind a firewall), parsing will fail--causing the Action servlet init to fail. If you keep a copy of the right DTD version in your web app, you can change the system path to http://localhost/app_context_root/struts-config_1_1.dtd and it will start, because the file serving enabler starts before the servlet. If you have problems, you can change the web.xml to not load the Action servlet on startup. David Hibbs Staff Programmer / Analyst American National Insurance Company -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:55 AM To: Struts Users Mailing List Subject: Websphere Struts -war Deployment problem... [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/C:/WebSphere/AppServer/lib/struts.jar!/org/apache/s truts/resource s/struts-config_1_0.dtd' [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd') [10/1/03 15:20:07:406 IST] 51ddb8cf SystemOut O Not registered, use system identifier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]