JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException
Hi, The following error appears many times in the mailing list archive for various containers , and I am also getting it in the following environment when attempting a clean deployment of Struts 1.1. struts-example.war to JRUN 3.1 I would be very grateful if someone could summarise what the specific problem is ( i.e BUG in container version etc ) and provide any configuration steps that I can perform to rectify this problem. I have noted that it is perhaps possible to work around this issue by copying JARS to the /lib/ext dir of the container. In our case, we require to deploy a warfile only. Any workaounds must affect only our server instance ( which is referred to as myApp below ). struts.jar is only located in the WEB-INF/lib dir of my application and is not on the classpath elsewhere. Regards Jason JRun 3.1 3.1.26414. Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) SunOS 5.6 Generic_105181-33 Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory ... Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ExceptionInInitializerError at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134) ... 22 more Container classpath: jrun.rootdir is /export/opt/jrun31/bin/.. $APPDIR is /export/opt/jrun31/servers/myApp Starting myApp Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v jrun.server.name=myApp -v jrun.server.rootdir=/export/opt/jrun31/servers/myApp /export/opt/jrun31/servers/myApp/local.properties /export/opt/jrun31/bin/../lib/global.properties CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ext/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/export/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iioprt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt/jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/export/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/jnet.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/../lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser.jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib/ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/export/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar:/ex! port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_client.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solaris/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bin/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/bin/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/export/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../servers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib debug /opt/jdk/1.4.1_01/solaris/bin/java -Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M -Djava.awt.headless=true -Duser.language=en -Duser.timezone=Europe/London JRun -start . ( /export/opt/jrun31/servers/myApp/lib is empty ). This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException
First, JDK 1.4..1_01 is unstable; Second, JRun 3.1 does not support 1.4. You need to upgrade to JRun 4.0 SP2 and JDK 1.4.1_02 or higher. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException Hi, The following error appears many times in the mailing list archive for various containers , and I am also getting it in the following environment when attempting a clean deployment of Struts 1.1. struts-example.war to JRUN 3.1 I would be very grateful if someone could summarise what the specific problem is ( i.e BUG in container version etc ) and provide any configuration steps that I can perform to rectify this problem. I have noted that it is perhaps possible to work around this issue by copying JARS to the /lib/ext dir of the container. In our case, we require to deploy a warfile only. Any workaounds must affect only our server instance ( which is referred to as myApp below ). struts.jar is only located in the WEB-INF/lib dir of my application and is not on the classpath elsewhere. Regards Jason JRun 3.1 3.1.26414. Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) SunOS 5.6 Generic_105181-33 Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory ... Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ExceptionInInitializerError at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource sFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134) ... 22 more Container classpath: jrun.rootdir is /export/opt/jrun31/bin/.. $APPDIR is /export/opt/jrun31/servers/myApp Starting myApp Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v jrun.server.name=myApp -v jrun.server.rootdir=/export/opt/jrun31/servers/myApp /export/opt/jrun31/servers/myApp/local.properties /export/opt/jrun31/bin/../lib/global.properties CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ex t/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/exp ort/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iiop rt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../ lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt /jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/e xport/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/j net.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/.. /lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/ opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser. jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib /ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/expo rt/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar: /ex! port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_cli ent.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solar is/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bi n/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/b in/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/ bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/e xport/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../s ervers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib debug /opt/jdk/1.4.1_01/solaris/bin/java -Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M -Djava.awt.headless=true -Duser.language=en -Duser.timezone=Europe/London JRun -start . ( /export/opt/jrun31/servers/myApp/lib is empty ). This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those
Re: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException
Jason, take a look at the below discussion link. It may help http://article.gmane.org/gmane.comp.jakarta.struts.user/24178 -Dan - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, August 18, 2003 5:11 AM Subject: RE: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException First, JDK 1.4..1_01 is unstable; Second, JRun 3.1 does not support 1.4. You need to upgrade to JRun 4.0 SP2 and JDK 1.4.1_02 or higher. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException Hi, The following error appears many times in the mailing list archive for various containers , and I am also getting it in the following environment when attempting a clean deployment of Struts 1.1. struts-example.war to JRUN 3.1 I would be very grateful if someone could summarise what the specific problem is ( i.e BUG in container version etc ) and provide any configuration steps that I can perform to rectify this problem. I have noted that it is perhaps possible to work around this issue by copying JARS to the /lib/ext dir of the container. In our case, we require to deploy a warfile only. Any workaounds must affect only our server instance ( which is referred to as myApp below ). struts.jar is only located in the WEB-INF/lib dir of my application and is not on the classpath elsewhere. Regards Jason JRun 3.1 3.1.26414. Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) SunOS 5.6 Generic_105181-33 Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory ... Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory createFactory SEVERE: MessageResourcesFactory.createFactory java.lang.ExceptionInInitializerError at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource sFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:576) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) ... Caused by: java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134) ... 22 more Container classpath: jrun.rootdir is /export/opt/jrun31/bin/.. $APPDIR is /export/opt/jrun31/servers/myApp Starting myApp Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v jrun.server.name=myApp -v jrun.server.rootdir=/export/opt/jrun31/servers/myApp /export/opt/jrun31/servers/myApp/local.properties /export/opt/jrun31/bin/../lib/global.properties CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ex t/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/exp ort/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iiop rt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../ lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt /jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/e xport/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/j net.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/.. /lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/ opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser. jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib /ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/expo rt/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar: /ex! port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_cli ent.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solar is/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bi n/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/b in/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/ bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/e xport/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../s ervers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib debug /opt/jdk/1.4.1_01/solaris/bin/java -Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M -Djava.awt.headless=true -Duser.language=en -Duser.timezone=Europe/London JRun -start . ( /export/opt/jrun31/servers/myApp/lib is empty ). This communication is for informational purposes
Re: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException
Thanks Dan, We already route all requests in our application though an subclass of ActionServlet. Therefore the following 1 liner ( from the link ) fixed the problem first time. -- Added to Subclass of ActionServlet that intercepts struts requests: public void init() throws ServletException { Thread.currentThread().setContextClassLoader( this.getClass ().getClassLoader() ); // JRUN ClassLoader workaround super.init(); ... } protected void process( HttpServletRequest request, HttpServletResponse response ) // Overrides superclass method. throws IOException, ServletException { try { configureCachingPolicy( request, response ); // Private method omitted here. super.process( request, response ); } } I also agree with Mark that upgrading from Jrun 3.1 is the preferred way forward. We probably will this year, but not to Jrun 4. Many thanks Jas This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException
heh heh - I actually upgraded to BEA WebLogic 6.2SP3 :-) I'm back with JRun because my current consulting gig requires it - but it sucks! Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:51 AM I also agree with Mark that upgrading from Jrun 3.1 is the preferred way forward. We probably will this year, but not to Jrun 4. Many thanks Jas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]