struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dan...@psca.panasonic.com.sg
Subject Error when init struts-menu in WebSphere Application Server 4.0.7
Date Fri, 24 Dec 2004 07:13:35 GMT
Hi all,

I am developing a web application using struts 1.2.4 and struts-menu.

When I am running in JDeveloper 10g, every thing is ok. But when I deploy 
into Test server running WebSphere Application Sever 4.0.7, I have this 
error

==================================================================================================================
[12/24/04 15:06:38:066 GMT+08:00] 635d9f0b SystemOut     U [24-12-2004 
15:06:38] DEBUG net.sf.navigator.menu.MenuPlugIn - Starting struts-menu 
initialization

[12/24/04 15:06:38:191 GMT+08:00] 635d9f0b SystemOut     U [24-12-2004 
15:06:38] ERROR org.apache.commons.digester.Digester - End event threw 
exception
java.lang.reflect.InvocationTargetException: 
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
  at net.sf.navigator.menu.MenuComponent.equals(MenuComponent.java:94)
  at java.util.ArrayList.indexOf(ArrayList.java:209)
  at java.util.ArrayList.contains(ArrayList.java:190)
  at net.sf.navigator.menu.MenuComponent.setParent(MenuComponent.java:65)
  at 
net.sf.navigator.menu.MenuComponent.addMenuComponent(MenuComponent.java:51)
  at java.lang.reflect.Method.invoke(Native Method)
  at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
  at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
  at org.apache.commons.digester.Rule.end(Rule.java:276)
  at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
  at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
  at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
  at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809)
  at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
  at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1567)
  at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:214)
  at net.sf.navigator.menu.MenuPlugIn.init(MenuPlugIn.java:59)
  at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
  at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
  at 
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
  at 
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
  at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
  at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
  at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
  at 
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
  at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
  at com.ibm.ws.runtime.Server.startModule(Server.java:617)
  at 
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
  at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
  at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
  at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
  at 
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.java)

java.lang.reflect.InvocationTargetException
  at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
  at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
  at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
  at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
  at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
  at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809)
  at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
  at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1567)
  at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:214)
  at net.sf.navigator.menu.MenuPlugIn.init(MenuPlugIn.java:59)
  at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
  at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
  at 
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
  at 
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
  at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
  at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
  at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
  at 
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
  at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
  at com.ibm.ws.runtime.Server.startModule(Server.java:617)
  at 
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
  at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
  at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
  at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
  at 
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.java)
[12/24/04 15:06:38:660 GMT+08:00] 635d9f0b ServletInstan X SRVE0100E: Did 
not realize  init() exception thrown by servlet action: 
javax.servlet.ServletException: Failure initializing struts-menu: Error 
parsing resource file: /WEB-INF/menu-config.xml nested exception is: Error 
at (10, 65: null
  at net.sf.navigator.menu.MenuPlugIn.init(MenuPlugIn.java:67)
  at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
  at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
  at 
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
  at 
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
  at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
  at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
  at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
  at 
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
  at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
  at com.ibm.ws.runtime.Server.startModule(Server.java:617)
  at 
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
  at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
  at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
  at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
  at 
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.java)

[12/24/04 15:06:38:738 GMT+08:00] 635d9f0b WebGroup      X Servlet 
Error-[action]: Failed to load servlet: javax.servlet.ServletException: 
Failure initializing struts-menu: Error parsing resource file: 
/WEB-INF/menu-config.xml nested exception is: Error at (10, 65: null
  at net.sf.navigator.menu.MenuPlugIn.init(MenuPlugIn.java:67)
  at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
  at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
  at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
  at 
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:226)
  at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
  at 
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
  at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
  at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
  at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
  at 
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
  at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
  at com.ibm.ws.runtime.Server.startModule(Server.java:617)
  at 
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
  at 
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
  at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
  at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
  at 
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.java)
====================================================================================================================

I seems that I don't have org.apache.commons.lang.StringUtils. But I can 
run this application very perfectly in JDeveloper 10g (my development 
environment). I don't know what is going on.

Any help is appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message