RE: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl

2012-08-20 Thread Dale Ogilvie
So, I ran with JVM option "-verbose:class" Then I requested a jsp from app1 and the console printed: ... [Loaded javax.el.ExpressionFactory from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar] [Loaded org.apache.jasper.runtime.JspApplicationContextImpl from file:/C:/sandpit-28/.metadata/.plugins/

RE: tomcat and DB oracle problem - only in higher versions

2012-08-20 Thread Dale Ogilvie
Does this help? https://forums.oracle.com/forums/thread.jspa?threadID=279238

Re: redirecting people to maintenance mode

2012-08-20 Thread André Warnier
Miguel González Castaños wrote: Dear all, I have a Tomcat web server. From time to time, I need to do some maintenance and want people not to interact with the Tomcat server while I'm doing it. The key thing here is that the Tomcat server is up and running. This is what I want to achieve:

Re: %{xxx}t not working

2012-08-20 Thread John Byrne
I've tried both 7.0.29 and 7.0.8. Thank you for the help. John Byrne John Byrne System Administrator, IS&T john_by...@apple.com On Aug 20, 2012, at 12:43 PM, Konstantin Kolinko wrote: > 2012/8/20 John Byrne : >> >> >>> I was wondering if you could help me with a server.xml log question.

Re: %{xxx}t not working

2012-08-20 Thread Konstantin Kolinko
2012/8/20 John Byrne : > > >> I was wondering if you could help me with a server.xml log question. I'm >> trying to format the times that go into the logs but not having any success. >> The output always ends up as : ???. I've read that any time format >> accepted by Java's SimpleDateFormat w

%{xxx}t not working

2012-08-20 Thread John Byrne
> > Hello Tomcat List, > > I was wondering if you could help me with a server.xml log question. I'm > trying to format the times that go into the logs but not having any success. > The output always ends up as : ???. I've read that any time format accepted > by Java's SimpleDateFormat wil

Re: redirecting people to maintenance mode

2012-08-20 Thread Jose María Zaragoza
> Sorry, for any reason the date was changed in my system inadvertently > > Corrected. I don't have any problem to fix issues to people from the future :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additio

Re: redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
On 20/08/2012 13:50, André Warnier wrote: Miguel González Castaños wrote: Dear all, I have a Tomcat web server. Apparently, you also have an email program that sends messages dated from the future. Or, maybe you should say then : I will have a Tomcat web server. Either way, it makes it

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
can you give me a sample code using content length? On Mon, Aug 20, 2012 at 5:38 PM, Konstantin Kolinko wrote: > 2012/8/20 Sahana Voleti : > > The documentation is fine but how do you use content length there? > > > > I am logging the value of the "content-length" header. > > What that header mea

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > The documentation is fine but how do you use content length there? > I am logging the value of the "content-length" header. What that header means is defined in the HTTP protocol specification. > On Mon, Aug 20, 2012 at 5:10 PM, Sahana Voleti > wrote: > >> Is there a

Re: redirecting people to maintenance mode

2012-08-20 Thread André Warnier
Miguel González Castaños wrote: Dear all, I have a Tomcat web server. Apparently, you also have an email program that sends messages dated from the future. Or, maybe you should say then : I will have a Tomcat web server. Either way, it makes it a bit harder to follow the gist of the conve

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
The documentation is fine but how do you use content length there? On Mon, Aug 20, 2012 at 5:10 PM, Sahana Voleti wrote: > Is there any size limitations fr this apache commons upload? Also is there > any standalone application I can use? > I think there is some problem in parsing because of which

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
Is there any size limitations fr this apache commons upload? Also is there any standalone application I can use? I think there is some problem in parsing because of which I am getting multipart/formdata request failed. On Mon, Aug 20, 2012 at 5:03 PM, Konstantin Kolinko wrote: > 2012/8/20 Sahana

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > Konstantin Kolinko, > U mentioned these steps in your mail: > 1. Read documentation for AccessLogValve. > 2. Use a text editor to edit server.xml file (for the global access > log) or the META-INF/context.xml file of your web application (for > your webapp's access log).

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > Also in my localhost logs in tomcat 7.0.29. It is logging like this: > 192.168.2.67 - - [20/Aug/2012:13:32:20 +0530] "(¬û>Ñ¿¿?? «ÊR˱{fÔb²¹? æè > 5í?&º Ù³,µj\­< ´?? }b y* Ý?ÀB5ÅÖ8añ¹¶i? ùÇ Z;?ÐÀû#pÌ8 >>ûæ ý5Å *1éIEWç?[?Y°U?ïs,5tÕù )?WÆ?iU¼??/µ£kîUð$?+º&05­ > | 7Î ¾ÒL«W

Re: Configure logs without date in the file name

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Ricardo F : > > Hello, > I have tomcat 7.0.26 and I see how the /logs folder grow every day with tons > of logs with the date, like: > catalina.2012-08-20.loghost-manager.2012-08-20.loglocalhost_access_log.2012-08-20.txtlocalhost.2012-08-20.logmanager.2012-08-20.log > How can I remove th

Re: difficulty in running acegisample.war file in tomcat

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Ragini : > > Hi all, > > I am trying to run acegisample.war file from tomcat. I have followed all the > instruction to run it from here. > (http://www.ibm.com/developerworks/java/library/j-acegi1/#section6.2). Using "Acegi" in very outdated. This product has been renamed to "Spring Secu

Re: redirecting people to maintenance mode

2012-08-20 Thread Konstantin Kolinko
2012/8/21 Miguel González Castaños : > On 20/08/2012 12:37, Jose María Zaragoza wrote: >>> >>>I assume I can use iptables to redirect people to a different web >>> server, >>> but how can I know that I need to redirect them to the maintenance.html >>> if >>> that server is serving other web pag

Re: redirecting people to maintenance mode

2012-08-20 Thread Jose María Zaragoza
> maybe I haven't worded my idea correctly. I can't assume the Tomcat service > in server1 is running all the time (since it's under maintenance, tomcat > might be restarted a few times during the maintenance). That's why I thought > about iptables. The issue is that iptables run at the IP level wh

Re: redirecting people to maintenance mode

2012-08-20 Thread mailingl...@j-b-s.de
What about a non-tomcat solution like a load balancer (apache, nginx?) in front of your tomcats? Sent from my iPhone On 21.08.2012, at 12:25, Miguel González Castaños wrote: > Dear all, > > I have a Tomcat web server. From time to time, I need to do some > maintenance and want people not

Re: redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
On 20/08/2012 12:37, Jose María Zaragoza wrote: I assume I can use iptables to redirect people to a different web server, but how can I know that I need to redirect them to the maintenance.html if that server is serving other web pages too? You can try Valve filters . With Valve, you have ac

difficulty in running acegisample.war file in tomcat

2012-08-20 Thread Ragini
Hi all, I am trying to run acegisample.war file from tomcat. I have followed all the instruction to run it from here. (http://www.ibm.com/developerworks/java/library/j-acegi1/#section6.2). When I try to run the file by (|http://localhost:8080/acegisample/|), it gives me http status- 404.

Re: redirecting people to maintenance mode

2012-08-20 Thread Jose María Zaragoza
> I assume I can use iptables to redirect people to a different web server, > but how can I know that I need to redirect them to the maintenance.html if > that server is serving other web pages too? You can try Valve filters . With Valve, you have access to Request and Response objects I didn'

redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
Dear all, I have a Tomcat web server. From time to time, I need to do some maintenance and want people not to interact with the Tomcat server while I'm doing it. The key thing here is that the Tomcat server is up and running. This is what I want to achieve: - I want all people to be red

Configure logs without date in the file name

2012-08-20 Thread Ricardo F
Hello, I have tomcat 7.0.26 and I see how the /logs folder grow every day with tons of logs with the date, like: catalina.2012-08-20.loghost-manager.2012-08-20.loglocalhost_access_log.2012-08-20.txtlocalhost.2012-08-20.logmanager.2012-08-20.log How can I remove the date between the name and the f

Re: Null pointer when calling getRemoteAddr in exception handling

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Peter Cipov : > Hello, > I have encountered ambiguous feature/bug of request > > ...servlet code ... > > throw new LoginException(String.format("Login failed for user %s from IP %s > (%s)", > principalName, > request.getRemoteAddr(), > type

AW: hostConfigClass attribute

2012-08-20 Thread Schulz-Hildebrandt, Ole
> -Ursprüngliche Nachricht- > Von: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Gesendet: Freitag, 17. August 2012 15:50 > An: Tomcat Users List > Betreff: Re: hostConfigClass attribute > > 2012/8/16 Schulz-Hildebrandt, Ole : > > Hi, > > > > I'm working with tomcat 7.0.29. In tomca

Null pointer when calling getRemoteAddr in exception handling

2012-08-20 Thread Peter Cipov
Hello, I have encountered ambiguous feature/bug of request ...servlet code ... throw new LoginException(String.format("Login failed for user %s from IP %s (%s)", principalName, request.getRemoteAddr(), type ), ex); .. t

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
Also in my localhost logs in tomcat 7.0.29. It is logging like this: 192.168.2.67 - - [20/Aug/2012:13:32:20 +0530] "(¬û>Ñ¿¿??«ÊR˱{fÔb²¹? æè 5í?&ºÙ³,µj\­<´?? }by*Ý?ÀB5ÅÖ8añ¹¶i?ùÇ Z;?ÐÀû#pÌ8 >ûæý5Å*1éIEWç?[?Y°U?ïs,5tÕù)?WÆ?iU¼??/µ£kîUð$?+º&05­ |7ξÒL«WXÒè¦-?Àp|wny· E?éX68Ä " 400 - W

MySQL connection error [was: error while shutting down tomcat]

2012-08-20 Thread Ognjen Blagojevic
Ijlal, On 18.8.2012 2:03, Ijlal EL HAZITI wrote: I understand that it's an access to mysql problem. So I gave the user sakai all permissions required, and re-verified the file catalina.properties (where I should put mysql username and the password) but in vain. I still have the same error. You