Jersey Client Call to Tomcat creates new servlet while for Metro Soap call it does not do that...

2011-01-16 Thread Tony Anecito
Hi All, I noticed with Jersey 1.5 that whenever I execute a Jersey client side request it creates a new servlet rather than reuse the existing servlet. I know this because in my constructor for my servlet I send out a message and it is going to the Tomcat command console. In my Web.xml I have

Re: Ant deploy task failing with listing of html from manager page

2011-01-16 Thread Aivar Annamaa
Thanks, that did the trick! :) Actually I tried "manager/text" before, but as I was using the role "manager" (as the documentation suggested) I got 403 for response. Aivar It should be [...]/manager/text > > Note, that your user should have the role of "manager-script" to be > able to access tha

Re: Configuring Tomcat 6 to "Always Load" and "Always Save Sessions"

2011-01-16 Thread Reinwald Warapen
Thanks Martin Grotzke for the answer. "Its's not possible with PersistentManager. PersistentManagerBase backups all sessions in batches (processMaxIdleSwaps(), processMaxIdleBackups() are called by the background thread). You might try to set maxIdleBackup and maxIdleSwap to 0. But even then sess

Re: Ant deploy task failing with listing of html from manager page

2011-01-16 Thread Konstantin Kolinko
2011/1/16 Aivar Annamaa : > Hi > > I'm trying to get started with Tomcat 7.0.6 on Win7. I'm able to deploy > using WAR upload form in Manager, but deploying using ant (1.8.2) "deploy" > task fails -- it just lists a bunch of html (without an error message) and > then says that BUILD FAILED. > > I w

Ant deploy task failing with listing of html from manager page

2011-01-16 Thread Aivar Annamaa
Hi I'm trying to get started with Tomcat 7.0.6 on Win7. I'm able to deploy using WAR upload form in Manager, but deploying using ant (1.8.2) "deploy" task fails -- it just lists a bunch of html (without an error message) and then says that BUILD FAILED. I wrote my build.xml according to sample fr

RE: Tomcat 6.0.26 startup issue

2011-01-16 Thread Caldarale, Charles R
> From: Jany Jose [mailto:jany.j...@gmail.com] > Subject: Tomcat 6.0.26 startup issue > In our application we are starting tomcat as a thread by calling the > bootstrap class. > Please find the code used: *String[] mArgs = {"start"}; > Bootstrap.main(mArgs); And a thread dump shows what? - Chu

RE: [OT] Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Caldarale, Charles R
> From: Len Popp [mailto:len.p...@gmail.com] > Subject: Re: [OT] Setting HTTP response headers caching for 1 year doesn't > work > > I suppose that there must be some implacable logic in the way it's done now, > > other than the evil intention to fool the unsuspecting programmer, but I > > hones

Re: [OT] Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Len Popp
On Sun, Jan 16, 2011 at 08:41, André Warnier wrote: > Ran Berenfeld wrote: >> >> well ...no... first evaluate, then assign. and constants are int by >> default. >> I think C/C++ would have the same problem... >> > Maybe.  But then why does the fact of specifying just the first right-hand > side co

Tomcat 6.0.26 startup issue

2011-01-16 Thread Jany Jose
Hi, In our application we are starting tomcat as a thread by calling the bootstrap class. Please find the code used: *String[] mArgs = {"start"}; Bootstrap.main(mArgs); *After starting the tomcat we are only getting the following message in * catalina.out* file and after that nothing is happening

Re: [OT] Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread André Warnier
Ran Berenfeld wrote: well ...no... first evaluate, then assign. and constants are int by default. I think C/C++ would have the same problem... Maybe. But then why does the fact of specifying just the first right-hand side constant in the calculation as a long, magically change the whole result

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
well ...no... first evaluate, then assign. and constants are int by default. I think C/C++ would have the same problem... On Sun, Jan 16, 2011 at 1:25 PM, André Warnier wrote: > Ran Berenfeld wrote: > >> thanks :) silly me. problem solved >> > > It's more silly Java. It could figure out tha

Re: Jersey & Tomcat...

2011-01-16 Thread Tony Anecito
Okay it is fixed. I did not have the @XmlRootElement on my POJO on my client side but did on my server side. Thanks, -Tony - Original Message From: Konstantin Kolinko To: Tomcat Users List Sent: Sun, January 16, 2011 3:30:37 AM Subject: Re: Jersey & Tomcat... 2011/1/16 Tony Anecito

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread André Warnier
Ran Berenfeld wrote: thanks :) silly me. problem solved It's more silly Java. It could figure out that the left side wants a long, couldn't it ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additiona

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
thanks :) silly me. problem solved On Sun, Jan 16, 2011 at 12:21 PM, Konstantin Kolinko wrote: > 2011/1/16 Ran Berenfeld : > >// cache for 1 year > >private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365); > > With this sample program: > public class foo{ > public static v

Re: Jersey & Tomcat...

2011-01-16 Thread Konstantin Kolinko
2011/1/16 Tony Anecito : > Hi All, > > I am a newby to Jersey (1.5) but not Tomcat (6.0.20). I am at a point where > when > I send a complex object from my client program to Tomcat I get this error > about > when reading the Message body a reader is not found. "this error" = what error? Please p

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Konstantin Kolinko
2011/1/16 Ran Berenfeld : >    // cache for 1 year >    private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365); With this sample program: public class foo{ public static void main(String[] a){ long _cacheTime = (1000 * 60 * 60 * 24 * 365); System.out.println("_cacheTime: " + _cacheTime

Jersey & Tomcat...

2011-01-16 Thread Tony Anecito
Hi All, I am a newby to Jersey (1.5) but not Tomcat (6.0.20). I am at a point where when I send a complex object from my client program to Tomcat I get this error about when reading the Message body a reader is not found. The odd thing is I can get the same complex object just fine back from t

Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
Hello I'm trying to set caching for 1 year for my static context (js,css and images) however seems like caching is only done for 2-3 weeks. below I put my caching filter and a response for some js file request. I've added this code in a special "catch-all" filter and verified that all resources a