Skip to Content
avatar image
Former Member

Deploying Struts1.1 WAR archive in SAP J2EE Engine for WAS6.20

Hello,

I am trying to deploy an example Struts 1.1 WAR archive in SAP J2EE Engine Stand Alone server with the Deploy Tool. With Tomcat 4, it's ok.

In the Deploy Tool, I am loading the war file with the "Assembler" Tab,

i make the EAR successfully but when i want to deploy it, i have got this error message :

ID17109: Error can't init Servlet action : java.lang.NullPointerException

ID5005 Could not commit deploy on container : servlet_jsp

The corresponding console error log is:

MessageResourcesFactory - -MessageResourcesFactory.createFactory

  (RequestUtils.java:138)

  at org.apache.struts.util.MessageResourcesFactory.createFactory(Message

ResourcesFactory.java:192)

  at org.apache.struts.util.MessageResources.getMessageResources(MessageR

esources.java:576)

  at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.ja

va:1276)

  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)

  at javax.servlet.GenericServlet.init(GenericServlet.java:366)

  at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Ser

vletContextFacade.java:3083)

  at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Ser

vletContextFacade.java:2538)

  at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(Ser

vletsAndJspImpl.java:458)

  at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(Web

Container.java:257)

  at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServ

iceImpl.java:2370)

  at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeploySer

viceImpl.java:456)

  at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServ

iceImpl.java:131)

  at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(D

eployServiceImplp4_Skel.java:184)

  at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:163)

  at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4Sessio

nProcessor.java:120)

  at com.inqmy.core.service.context.container.session.ApplicationSessionM

essageListener.process(ApplicationSessionMessageListener.java:36)

  at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)

  at com.inqmy.core.thread.impl2.SingleThread.run(SingleThread.java:118)

MessageResourcesFactory - -MessageResourcesFactory.createFactory

  (RequestUtils.java:138)

  at org.apache.struts.util.MessageResourcesFactory.createFactory(Message

ResourcesFactory.java:192)

  at org.apache.struts.util.MessageResources.getMessageResources(MessageR

esources.java:576)

  at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.ja

va:1276)

  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)

  at javax.servlet.GenericServlet.init(GenericServlet.java:366)

  at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Ser

vletContextFacade.java:3083)

  at com.inqmy.services.servlets_jsp.server.ServletContextFacade.init(Ser

vletContextFacade.java:2538)

  at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(Ser

vletsAndJspImpl.java:458)

  at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(Web

Container.java:257)

  at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServ

iceImpl.java:2370)

  at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeploySer

viceImpl.java:456)

  at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServ

iceImpl.java:131)

  at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(D

eployServiceImplp4_Skel.java:184)

  at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:163)

  at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4Sessio

nProcessor.java:120)

  at com.inqmy.core.service.context.container.session.ApplicationSessionM

essageListener.process(ApplicationSessionMessageListener.java:36)

  at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)

  at com.inqmy.core.thread.impl2.SingleThread.run(SingleThread.java:118)

I don't understand why it doesn't find org.apache.struts.util.PropertyMessageResourcesFactory since it exists in struts.jar, which is present in the WAR archive.

Best regards,

Christophe

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 07, 2003 at 02:27 PM

    Hi Cristophe,

    I tried the struts-example.war from the Struts1.1 bundle and after adding reference to inqmyxml library, it deployed correctly.

    Could you tell me the patchlevel of the Engine ( /managers/version.txt) and send me your ear file at iavor.petkov@sap.com .

    When we find a solution, we can post it here for our fellows to see.

    Best Regards : Iavor

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Irudayaraj Peter

      Hi, Peter,

      Just sharing with the community the information you found in the struts docs.

      !!!!!!!!!!!!!!!!!!

      The struts libraries MUST NOT be shared between applications because they use static variables to keep state => applications may interfere. The struts library relies on the fact that it is loaded in the same classloader as the application and that this classloader is not shared with another struts application.

      !!!!!!!!!!!!!!!!!!

      So although the common library approach may work, it may also NOT work and lead to sticky problems, and is NOT supported by the struts community.

      Regards : Iavor

  • avatar image
    Former Member
    Dec 26, 2003 at 05:22 PM

    Hello,

    I am trying to deploy an example Struts 1.1 WAR archive in Netweaver Developer Studio(Eclipse) on SAP WAS 6.30. What step I need ?

    Rgs,

    Rick

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I could not find an easy way to do this from the IDE.

      Maybe some sequence of extracting the war, copying files

      in the project directories , refreshing and rebuilding would do but I prefer

      not to fall into lengthy explanations for a GUI which is most likely not

      same as yours (as I am using unreleased version).

      If you have a ready version of the struts war file (assuming taken from the struts 1.1 package) you need to :

      1. build an ear file from it.

        - e.g. have an application.xml file created in META-INF directory with content :

        < -DTD here ->

       ÂÂ

         add deploy

         deploy MyApp630.ear

      Hope this helps a bit : Iavor