• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in websphere Struts / Server config

 
Paul Ramsay
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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').
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic