Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-23 Thread Lukasz Lenart
2009/1/22 Jan Fröhlich :
> 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



Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-22 Thread Musachy Barroso
fixed in xwork trunk, not that it helps much

musachy

On Thu, Jan 22, 2009 at 3:00 PM, Lukasz Lenart
 wrote:
> 2009/1/22 Jan Fröhlich :
>> 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

2009-01-22 Thread Lukasz Lenart
2009/1/22 Jan Fröhlich :
> 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

2009-01-16 Thread Giovanni Azua
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 :
> >> 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



Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Lukasz Lenart
2009/1/16 Lukasz Lenart :
>> 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

2009-01-16 Thread Lukasz Lenart
2009/1/16 Giovanni Azua :
> 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-01-16 Thread Giovanni Azua
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-01-15 Thread Lukasz Lenart
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



Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-15 Thread Lukasz Lenart
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

2009-01-15 Thread Musachy Barroso
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  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