aspose file tools*
The moose likes Struts and the fly likes Problem in websphere Struts / Server config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in websphere Struts / Server config" Watch "Problem in websphere Struts / Server config" New topic
Author

Problem in websphere Struts / Server config

Paul Ramsay
Greenhorn

Joined: May 23, 2005
Posts: 2
All,

When I try to enable the administration console within my server settings using WSAD 5.0 I get the follwing error message -

[23/05/05 11:20:35:625 GMT] 1cb1cc96 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 org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.java:52)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:903)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:266)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:583)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1252)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:274)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:345)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:208)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:968)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:397)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:751)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:347)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:539)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:250)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:228)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:131)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:228)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[23/05/05 11:20:35:656 GMT] 1cb1cc96 WebGroup E SRVE0020E: [Servlet Error]-[action]: Failed to load servlet: 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 org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.java:52)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:903)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:266)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:583)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1252)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:274)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:345)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:208)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:968)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:397)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:751)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:347)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:539)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:250)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:228)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:415)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:131)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:228)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

Anybody know how to sort it out ?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
As I see it, the significant part of this error message is:

Input/output error reading configuration from resource path /WEB-INF/struts-config.xml


To me, this would indicate that WebSphere can't find /WEB-INF/struts-config.xml. Are you sure it's there? If it is there, perhaps it's corrupted in some way. I'd try going into an editor, making an insignificant change, and saving it.
[ May 23, 2005: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
you app cannot be loaded because the ActionServlet failed to initialize due to the unavailability of the struts-config.xml. check if that file exists and is in the correct location (WEB-INF) and that your web.xml has the correct reference for the servlet (action) config init-param to the struts-config.xml (the 'config' param should be 'WEB-INF/struts-config.xml').


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
wood burning stoves
 
subject: Problem in websphere Struts / Server config