Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Classpath problem in WAS

24 views
Skip to first unread message

rohi...@yahoo.co.in

unread,
Sep 10, 2005, 7:08:20 AM9/10/05
to
I need to deploy an application on WAS. The application uses struts. The application is already deployed on WSAD. I need to export the EAR and deploy the same on WAS.
Now /WEB-INF/lib folder has JARS required by the application. If I remove those jars from the folder and add the same in the JAVA Build Path, the application works fine.
But when I try to deploy the EAR(Without JARS in lib folder), an error is thrown. THe requirement is to add the JARS in the server. I have tried creating a shared library in WAS but the application is not picking up the JARS. Also when I try to add the JARS in the classpath (Servers --> Application Servers --> server1---> Process Definition ----> Java Virtual Machine ----> Classpath ), the admin console starts throwing Error 404 when the server is restarted. Let me know the steps the deploy the app successfully on WAS (The server is secured).

Ken Hygh

unread,
Sep 10, 2005, 1:45:19 PM9/10/05
to
rohi...@yahoo.co.in wrote:

What error message are you getting when you deploy?

When you created the shared library, did you add it to the application
server or the application?

When you get 404's in the console, what's the error messages in the logs?

Ken

rohi...@yahoo.co.in

unread,
Sep 15, 2005, 5:43:59 AM9/15/05
to
Thanks for the reply.
I have found the root cause of the problem. The server is not throwing error wehn i put some JARS in the classpath. The admin console throws error only when I add struts.jar in the classpath. The JAR is required by any struts based application. After adding the JAR, when i restart the server and click on any link from the menu of the admin console, I get Error 404. The server starts normally. The log shows the following error related to struts:

[9/15/05 15:03:22:737 IST] 7d82da6d WebContainer A SRVE0169I: Loading Web Module: adminconsole.
[9/15/05 15:03:23:705 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: JSP 1.2 Processor: init
[9/15/05 15:03:23:908 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: SimpleFileServlet: init
[9/15/05 15:03:23:908 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: InvokerServlet: init
[9/15/05 15:03:23:924 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: validator: init
[9/15/05 15:03:24:658 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: EventInitializer: init
[9/15/05 15:03:24:893 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: init
[9/15/05 15:03:27:377 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: Warning - ActionComponentServlet class: This class is to be used with Struts1.0.x only. Please modify web.xml to use regular ActionServlet class instead in conjugaison with appropriate plugin declared in struts-config.xml.
[9/15/05 15:03:28:736 IST] 7d82da6d SystemOut O 2005-09-15 15:03:28,721 ERROR [P=796565:O=0:CT] digester.Digester (Digester.java:1439) - Parse Error at line 1366 column 18: The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
org.xml.sax.SAXParseException: The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:334)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:542)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:479)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:295)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:269)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:217)
at org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:139)
at org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:168)
at org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:205)
at org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(DefinitionsUtil.java:216)
at org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(DefinitionsUtil.java:249)
at org.apache.struts.tiles.ActionComponentServlet.initComponentDefinitionsMapping(ActionComponentServlet.java:132)
at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.java:105)
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:870)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
2005-09-15 15:03:28,736 ERROR [P=796565:O=0:CT] digester.Digester (Digester.java:1439) - Parse Error at line 1544 column 18: The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
org.xml.sax.SAXParseException: The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:334)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactorySet.java:542)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFactorySet.java:479)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I18nFactorySet.java:295)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:269)
at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:217)
at org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:139)
at org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:168)
at org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:205)
at org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(DefinitionsUtil.java:216)
at org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(DefinitionsUtil.java:249)
at org.apache.struts.tiles.ActionComponentServlet.initComponentDefinitionsMapping(ActionComponentServlet.java:132)
at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.java:105)
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:870)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

[9/15/05 15:03:29:705 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: Tiles definition factory loaded from ActionComponentServlet

[9/15/05 15:03:29:721 IST] 7d82da6d WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: SecureCleanup: init

[9/15/05 15:03:29:908 IST] 7d82da6d ApplicationMg A WSVR0221I: Application started: adminconsole

[9/15/05 15:03:29:971 IST] 7d82da6d HttpTransport A SRVE0171I: Transport http is listening on port 9,080.

[9/15/05 15:03:32:189 IST] 7d82da6d HttpTransport A SRVE0171I: Transport https is listening on port 9,443.

[9/15/05 15:03:32:205 IST] 7d82da6d HttpTransport A SRVE0171I: Transport http is listening on port 9,090.

[9/15/05 15:03:32:752 IST] 7d82da6d HttpTransport A SRVE0171I: Transport https is listening on port 9,043.

[9/15/05 15:03:32:799 IST] 7d82da6d RMIConnectorC A ADMC0026I: RMI Connector available at port 2809

[9/15/05 15:03:32:877 IST] 7d82da6d WsServer A WSVR0001I: Server server1 open for e-business

[9/15/05 15:03:58:735 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/console.jsp: init

[9/15/05 15:03:58:891 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/banner.jsp: init

[9/15/05 15:03:58:907 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/browser_detection.jsp: init

[9/15/05 15:03:58:938 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/tiles/banner.jsp: init

[9/15/05 15:03:58:954 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/menuBarLayout.jsp: init

[9/15/05 15:03:59:016 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/navigator.jsp: init

[9/15/05 15:03:59:032 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/navigatorLayout.jsp: init

[9/15/05 15:03:59:047 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/status.jsp: init

[9/15/05 15:03:59:063 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/statusTrayLayout.jsp: init

[9/15/05 15:03:59:126 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /com.ibm.ws.console.probdetermination/config_problems.jsp: init

[9/15/05 15:03:59:219 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/content.jsp: init

[9/15/05 15:03:59:235 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/homePageLayout.jsp: init

[9/15/05 15:03:59:251 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/content_accessibility.jsp: init

[9/15/05 15:03:59:266 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/twoColumnLayout.jsp: init

[9/15/05 15:03:59:313 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /secure/layouts/slotLayout.jsp: init

[9/15/05 15:03:59:313 IST] 4aec5a6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /com.ibm.ws.console.environment/about.jsp: init

[9/15/05 15:04:05:485 IST] 223cda6e WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: /error.jsp: init

Ken Hygh

unread,
Sep 15, 2005, 6:37:55 AM9/15/05
to
rohi...@yahoo.co.in wrote:

>Thanks for the reply.
>I have found the root cause of the problem. The server is not throwing error wehn i put some JARS in the classpath. The admin console throws error only when I add struts.jar in the classpath. The JAR is required by any struts based application. After adding the JAR, when i restart the server and click on any link from the menu of the admin console, I get Error 404. The server starts normally. The log shows the following error related to struts:
>
>
>

[snip]

struts.jar is already in the classpath - and the admin console wants the
version that comes with WAS. Take it out of the classpath, and if your
application needs it, put it in the war/WEB-INF/lib

Ken

rohi...@yahoo.co.in

unread,
Sep 16, 2005, 5:34:09 AM9/16/05
to
Hey Ken

Well the problem is solved the very day i posted the last reply. After adding all the JARS including struts.jar, i changed the class loader mode of adminconsole to PARENT_LAST from PARENT_FIRST. I did the same for the application i was trying to deploy. Now the app is deployed and the console is also working fine.
Thanks for ur replies.

Hey let me know what u do. Do mail me on rohi...@yahoo.co.in

Bye.

0 new messages