Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de: And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. You can checkout XWork and build it for your self or I can share my build, then you have to only replace that jar in your projects. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
AW: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
Hi.. is that already verified, that the NPE occurs cause of the spaces in the path names? And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. Regards, Jan -Ursprüngliche Nachricht- Von: Giovanni Azua [mailto:brave...@swissonline.ch] Gesendet: Freitag, 16. Januar 2009 12:49 An: 'Struts Users Mailing List' Betreff: RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 hi there! Ok now the showcase works for me too. I think I found the cause of the problem. (Under Windows XP) - If I install Tomcat under C:\Program Files\Apache Software Foundation\Tomcat (as the Tomcat Windows service installer does) the NPE occurs - OTOH if I install Tomcat under e.g. C:\java\Tomcat it works fine. It looks like the problem is due to the empty spaces in the directory location of the configuration. Best, Giovanni -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, January 16, 2009 11:14 AM To: Struts Users Mailing List Subject: Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 2009/1/16 Lukasz Lenart lukasz.len...@googlemail.com: I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. I've started it from console (via bat file) maybe that's the case, I will check Nope, works ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AW: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
Jan Fröhlich wrote: And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. I didn't see any other responses, so I'll throw out the obvious answer that may or may not work: Have you tried adding and using a shortcut to that directory (which does not contain spaces) to see if that avoids the issue? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: AW: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
I agree with Dale Putting ANY characters other than a-z upper/lower and 0-9 and LONG FOLDER NAMES WITH SPACES easily gacks Java read routines so if your CATALINA_HOME is set to C:\PROGRAM FILES WITH SPACES\TOMCAT go to C:\ dir /X /AD find the shortened name e.g. PROGRA~1 and use that for environment variable SET CATALINA_HOME=C:\PROGRA~1\TOMCAT HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Thu, 22 Jan 2009 10:09:38 -0500 From: d...@newfield.org To: user@struts.apache.org Subject: Re: AW: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 Jan Fröhlich wrote: And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. I didn't see any other responses, so I'll throw out the obvious answer that may or may not work: Have you tried adding and using a shortcut to that directory (which does not contain spaces) to see if that avoids the issue? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Hotmail® goes where you go. On a PC, on the Web, on your phone. http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de: is that already verified, that the NPE occurs cause of the spaces in the path names? And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. Yes, I can confirm that, there is a issue in XWork. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
fixed in xwork trunk, not that it helps much musachy On Thu, Jan 22, 2009 at 3:00 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/1/22 Jan Fröhlich jan.froehl...@infomotion.de: is that already verified, that the NPE occurs cause of the spaces in the path names? And if - are there any other work arounds than installing tomcat in a different path, cause I have to use a preinstalled tomcat in a path with blank spaces. Yes, I can confirm that, there is a issue in XWork. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
hi Lukasz, I have the same here: Struts 2.1.6 Tomcat 6.0.18 JSE JDK 1.6.0_11 Windows XP I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. Now that I have a bit more time will checkout the sources and debug a bit. Best regards, Giovanni -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Thursday, January 15, 2009 9:48 PM To: Struts Users Mailing List Subject: Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 JDK 1.6_11 Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
2009/1/16 Giovanni Azua brave...@swissonline.ch: I have the same here: Struts 2.1.6 Tomcat 6.0.18 JSE JDK 1.6.0_11 Windows XP I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. I've started it from console (via bat file) maybe that's the case, I will check Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
2009/1/16 Lukasz Lenart lukasz.len...@googlemail.com: I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. I've started it from console (via bat file) maybe that's the case, I will check Nope, works ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
hi there! Ok now the showcase works for me too. I think I found the cause of the problem. (Under Windows XP) - If I install Tomcat under C:\Program Files\Apache Software Foundation\Tomcat (as the Tomcat Windows service installer does) the NPE occurs - OTOH if I install Tomcat under e.g. C:\java\Tomcat it works fine. It looks like the problem is due to the empty spaces in the directory location of the configuration. Best, Giovanni -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, January 16, 2009 11:14 AM To: Struts Users Mailing List Subject: Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 2009/1/16 Lukasz Lenart lukasz.len...@googlemail.com: I installed Tomcat service and drop the war that comes within the struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase several times from Tomcat manager but still got the NPE. I've started it from console (via bat file) maybe that's the case, I will check Nope, works ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
NPE initializing 2.1.6 showcase in Tomcat 6.0.18
Hi, I have just freshly installed Tomcat 6.0.18 and the newest Struts 2.1.6 showcase but starting the context fails with NPE :( Best regards, Giovanni java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileMan ager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java :60) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReloa d(XmlConfigurationProvider.java:325) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsX mlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(Config urationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774) at org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(Prepa reOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsP repareFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
It works for me, but I see how that could happen, if (file != null) { lastModified = file.lastModified(); files.put(fileName, new FileRevision(file, lastModified)); } else { // Never expire a non-file resource files.put(fileName, new FileRevision()); } in the else case, file in file revision will be null. So it will fail: public boolean needsReloading() { return (this.lastModified this.file.lastModified()); } can you verify that's what is happening? musachy On Thu, Jan 15, 2009 at 6:34 AM, Giovanni Azua brave...@swissonline.ch wrote: Hi, I have just freshly installed Tomcat 6.0.18 and the newest Struts 2.1.6 showcase but starting the context fails with NPE :( Best regards, Giovanni java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileMan ager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java :60) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReloa d(XmlConfigurationProvider.java:325) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsX mlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(Config urationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu rationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774) at org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(Prepa reOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsP repareFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
I made the same setup, no problems. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18
JDK 1.6_11 Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org