Re: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-08 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chuck, On 06/09/2011 07:52 AM, Caldarale, Charles R wrote: > Can you display the original request URL, or perhaps enable the > AccessLogValve? (I'm not sure if that captures forwards, however.) It does. The redirect URL set to the client can be

RE: Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-08 Thread Caldarale, Charles R
> From: Jocelyn Ireson-Paine [mailto:p...@j-paine.org] > Subject: Null-pointer exception from response.encodeUrl under Windows Tomcat 7 > I'm getting sporadic null-pointer exceptions from > 'response.encodeUrl'. First off, let me say that it's an unexpected pleasure to read such a complete (a

RE: Auth in Context.xml

2011-06-08 Thread Caldarale, Charles R
> From: Umesh Bhatt [mailto:umesh_bh...@mindtree.com] > Subject: RE: Auth in Context.xml > I am using Tomcat 6.0. 6.0.what? There are 32 versions of 6.0; be precise. > In Context.xml file Again, if you have a file named Context.xml, it will be ignored. Files must be named (and located) prop

RE: Auth in Context.xml

2011-06-08 Thread Umesh Bhatt
Hi, I am using Tomcat 6.0. In Context.xml file I found JDBC resource configuration as below. It has Auth attribute which can be either "Container" or "Application". When it is set to "Container" then we need to give DB user name and password in context.xml file and it will be used by tomcat

Null-pointer exception from response.encodeUrl under Windows Tomcat 7

2011-06-08 Thread Jocelyn Ireson-Paine
Hi, I'm getting sporadic null-pointer exceptions from 'response.encodeUrl'. This is with Tomcat 7.0.14, the latest stable version to which I upgraded an hour ago, and Java 1.6.0_26, which again I upgraded to at the same time, under Windows XP. I also got the error under Tomcat 5.5.33, which is

Re: War file deployment deletes configuration descriptor in Tomcat 6

2011-06-08 Thread Dharamshila Khandelwal
I found that when it deletes the configuration descriptor, it doesn't deploy it. I am not able to understand why it is not deploying the descriptor Logs from catalina.out: *When the configuration descriptor is not deleted: * Jun 8, 2011 4:31:45 PM org.apache.catalina.startup.HostConfig checkRes

Re: My web application to use SSL (JSSE - RSA)

2011-06-08 Thread Charles Van Damme
Dear, 1) I'm trying first with JSSE. Please see To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
Thanks Tim. If this is the case I could make it weight-in in the matter of building a well formed web.xml. Although it could take some time. Mapping each servlet to an "/*" url-pattern will avoid us from using invoker and at the same time get rid of "/servlet" in the URL and keep images under "/

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
yes - that would be a problem. The invoker doesn't know how to serve static resources. -Tim On Wed, Jun 8, 2011 at 1:44 PM, wrote: > I agree with you. > > The static resources where never a problem to me, but since I messed with > the web.xml they started to behave oddly. > > Maybe this line i

ServletRequestListener and Expect-Header

2011-06-08 Thread Simon Olofsson
Hi, I have a ServletRequestListener that tries too access a Request Parameter: sre.getServletRequest().getParameter("x"); When I send a POST-Request with the "Expect: 100-continue" HTTP Header it hangs waiting for the Request Body which isn't send because Tomcat didn't send a 100-continue Res

War file deployment deletes configuration descriptor in Tomcat 6

2011-06-08 Thread Dharamshila Khandelwal
Hi, Every time I deploy war file in webapps, it deletes the configuration descriptor which is present at $CATALINA_BASE/conf/[enginename]/[hostname] directory. Tomcat auto deploys war file in my Tomcat 6 configuration. How should I stop this problem? Any idea? Thanks, DS.

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
I agree with you. The static resources where never a problem to me, but since I messed with the web.xml they started to behave oddly. Maybe this line is causing trouble: invoker /* It used to be: invoker /servlet/* What do you think? Can this

RE: Auth in Context.xml

2011-06-08 Thread Caldarale, Charles R
> From: Umesh Bhatt [mailto:umesh_bh...@mindtree.com] > Subject: Auth in Context.xml > In Context.xml No such file is recognized by Tomcat. Tomcat does look at files named context.xml (case matters - even on Windows). > I have set Auth="Application" There is no such attribute for the elemen

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
If your images are in the correct directory then tomcat will serve them for you with its DefaultServlet. There should be nothing to do. Then to serve resources via the invoker - this is where the filter is handy. You declare the invoker servlet - but you do not map it. The servlet api allows you t

RE: My web application to use SSL (JSSE - RSA)

2011-06-08 Thread Caldarale, Charles R
> From: Charles Van Damme [mailto:chava...@gmail.com] > Subject: My web application to use SSL (JSSE - RSA) > I'm trying to get my first applic using SSL started. I read > therefor SSL Configuration HOW-TO n times. Including the part about there being *two* SSL mechanisms? Which one are you a

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
Thanks a lot André for taking the time in explaining. Currently we do not have this kind of attacks because the app runs in an intranet. But I know that in this closed scenario we should beware of the users. Hopefully, someday, we will be able to properly map this application in web.xml and leav

Re: async requests on cluster

2011-06-08 Thread Filip Hanik - Dev Lists
On 6/7/2011 3:34 PM, Mark Thomas wrote: On 07/06/2011 21:46, Seth Lenzi wrote: The isAsyncSupported() method of the SerlvletRequest object returns false when you uncomment the element in the server.xml file (Tomcat 7.0.14). Basically, enabling clustering seems to break support for asynchronous

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
I thought the filter would allow me to serve the static resources under "/images/". I understand if it is in order to make invoker more secure. But what I'm actually trying to achieve is the proper serving of resources. I don't know exactly why, but mapping the default servlet to "/*" is not wor

My web application to use SSL (JSSE - RSA)

2011-06-08 Thread Charles Van Damme
Dear caring souls, I'm just subscribed in 'Tomcat users List'. I'm trying to get my first applic using SSL started. I read therefor SSL Configuration HOW-TOn times. I'm using - Apache Tomcat 7.0.11 - NetBeans IDE 7.0 (Build 201

Re: Static resource mapping in web.xml

2011-06-08 Thread André Warnier
falva...@geocom.com.uy wrote: I know we are going a little off the original topic, but for me this is very interesting. I think I understand your point: Any library in /webapp/lib/ that has access to executing linux commands (as you point) could be executed as well from any browser.

Re: Wine and tomcat

2011-06-08 Thread Dave Fisher
> Presently we use a library called "EzJcom". It is proprietary. > > In the future, we want to change for POI but I will not be able to to > everything we do with EzJcom. We need to connect to excel in realtime. Come over onto the POI user list - http://poi.apache.org/mailinglists.html - and

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
No - images will be served by the default servlet so nothing needs to be done for images. The filter is used as a way to let the invoker work and be a tiny bit more secure. So the filter is mapped to /* and will forward anything to the invoker serllet if the requested path *looks like one of your

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
I know we are going a little off the original topic, but for me this is very interesting. I think I understand your point: Any library in /webapp/lib/ that has access to executing linux commands (as you point) could be executed as well from any browser. If invoker is not enabled,

Auth in Context.xml

2011-06-08 Thread Umesh Bhatt
Hi, In Context.xml I have set Auth="Application" and want to connect with DataSource programatically. I am not seeing any example of how to do it. Can you share some link related to this? Thanks, Umesh http://www.mindtree.com/email/disclaimer.html --

RE: redirect to another URL in tomcat

2011-06-08 Thread Caldarale, Charles R
> From: RenuKumar [mailto:r...@dbxpert.com.my] > Subject: redirect to another URL in tomcat > Hope someone could provide some information on how to redirect to > another URL,can be configured. Try this: http://www.tuckey.org/urlrewrite/ You don't need any front end for this. - Chuck THIS

Re: redirect to another URL in tomcat

2011-06-08 Thread Francis GALIEGUE
On Wed, Jun 8, 2011 at 17:23, RenuKumar wrote: > Hi > > Hope someone could provide some information on how to redirect to another > URL,can be configured. > > for example > > > https://ipaddress/channelmgr/MaxisUssd --->  /http://ipaddress/soap/rpc > > > Is there a way in the system we could r

redirect to another URL in tomcat

2011-06-08 Thread RenuKumar
Hi Hope someone could provide some information on how to redirect to another URL,can be configured. for example https://ipaddress/channelmgr/MaxisUssd ---> /http://ipaddress/soap/rpc Is there a way in the system we could redirect the URL? Please assist. Thanks Renu --

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
Interesting Tim. But a little confusing for me. Never used filters, but for what you said and I googled: I would have to build a filter and map it to "/images/*", right? Something like: Resource filter com.mycompany.resourcefilter Resource filter mapped

Re: Static resource mapping in web.xml

2011-06-08 Thread André Warnier
falva...@geocom.com.uy wrote: ... Invoker: I know it is bad (even more than the overlord), probably don't know how bad or the impact it has in usage, but for now it works. I've read some about it, but never could really understand the problems it brings. http://wiki.apache.org/tomcat/FAQ/Mis

Re: serving pre-compressed files

2011-06-08 Thread André Warnier
Jesse Farinacci wrote: Greetings, I'm using Tomcat 7.0.14 and IBM Java 6. As part of my web application's bundling mechanism (via Maven) I have the ability to pre-gzip compress static resources. I'd like Tomcat to detect that a request for /path/to/resource has /path/to/resource.gz available, an

RE: Static resource mapping in web.xml

2011-06-08 Thread falvarez
Thanks Mark. I'll try to upgrade to the latest then. Invoker: I know it is bad (even more than the overlord), probably don't know how bad or the impact it has in usage, but for now it works. I've read some about it, but never could really understand the problems it brings. In our current situat

serving pre-compressed files

2011-06-08 Thread Jesse Farinacci
Greetings, I'm using Tomcat 7.0.14 and IBM Java 6. As part of my web application's bundling mechanism (via Maven) I have the ability to pre-gzip compress static resources. I'd like Tomcat to detect that a request for /path/to/resource has /path/to/resource.gz available, and serve the gzip'd conten

Re: Static resource mapping in web.xml

2011-06-08 Thread Tim Funk
Your "easiest" workaround is to use a filter. So 1) have the default servlet map to /* (which is the default) 2) keep the invoker declared 3) And make your filter do this ... doFilter(..) { if (request.getServletPath().matches(regex-here)) { servletContext.getNamedDispatcher("invoker").for

Re: Static resource mapping in web.xml

2011-06-08 Thread Mark Thomas
On 08/06/2011 15:17, falva...@geocom.com.uy wrote: > I have a WEBAPP which uses the "invoker" servlet (i know how > bad it is, but for now it gets the job done). That is such a monumentally bad idea I'm not at all sure you really do understand just how bad it is. >

Static resource mapping in web.xml

2011-06-08 Thread falvarez
Dear all, I'm faceing the following problem in tomcat (probably just configuration). I have a WEBAPP which uses the "invoker" servlet (i know how bad it is, but for now it gets the job done). The static content

Re: Mod_jk working for failover

2011-06-08 Thread Manuel Fernández Panzuela
Woowww Now, mod_jk is working perfectly Thank you so much FELIX !!! Best regards 2011/6/8 Felix Schumacher > Am Mittwoch, den 08.06.2011, 09:47 +0200 schrieb Manuel Fernández > Panzuela: > > Yes Felix, you are right i am working with 2 instances. > > I want primary node receives all requests

Re: Mod_jk working for failover

2011-06-08 Thread Felix Schumacher
Am Mittwoch, den 08.06.2011, 09:47 +0200 schrieb Manuel Fernández Panzuela: > Yes Felix, you are right i am working with 2 instances. > I want primary node receives all requests and on failure send requests to > the secondary node. > Is it possible with your recomendation ? You may also want to rea

Tomcat 7.0.14 / 6.0.32 session gets obviously invalid after request / JSESSIONID changes

2011-06-08 Thread Sascha Hesse
Hello all, I'm hosting our spring mvc 3.0.5 application in tomcat 7.0.14 and also tried 6.0.32 The server is hosting two webapps. The frontend: http://localhost:50012/frontend The backend: http://localhost:50012/backend The Request-Flow looks as following: User: http://localhost:50012/frontend

Re: Wine and tomcat

2011-06-08 Thread bigdidz
Presently we use a library called "EzJcom". It is proprietary. In the future, we want to change for POI but I will not be able to to everything we do with EzJcom. We need to connect to excel in realtime. Thanks a lot for your answer. Konstantin Kolinko wrote: > > 2011/6/8 bigdidz : >> >>

Re: Wine and tomcat

2011-06-08 Thread Konstantin Kolinko
2011/6/8 bigdidz : > > I know but its is not what I want.  With a vm, I will not be able to debug my > web applications (it uses Excel...).  Hence, I really need to "wine" tomcat. Do you really need Excel? Have you heard about Apache POI? http://poi.apache.org/ > [QUOTE] > Using CATALINA_BASE:

Re: Wine and tomcat

2011-06-08 Thread Mikolaj Rydzewski
On Wed, 8 Jun 2011 01:52:51 -0700 (PDT), bigdidz wrote: I know but its is not what I want. With a vm, I will not be able to debug my web applications (it uses Excel...). Hence, I really need to "wine" tomcat. You don't. You can debug remote java applications. It looks like a topic not for t

Re: Wine and tomcat

2011-06-08 Thread bigdidz
I know but its is not what I want. With a vm, I will not be able to debug my web applications (it uses Excel...). Hence, I really need to "wine" tomcat. With my small experience of wine, I do not see why it would not be possible. Wine is a fiberglassted piece of code. Mikolaj Rydzewski-2

Re: Wine and tomcat

2011-06-08 Thread Mikolaj Rydzewski
On Wed, 8 Jun 2011 00:15:09 -0700 (PDT), bigdidz wrote: At my job, we are developing a program in Java that connect to Excel to web page. Indeed, we only work on Windows but I cannot live with that any more. Windows just sucks! Try virtualbox / vmware. Develoop on linux (or whatever you lik

Re: Mod_jk working for failover

2011-06-08 Thread Manuel Fernández Panzuela
Yes Felix, you are right i am working with 2 instances. I want primary node receives all requests and on failure send requests to the secondary node. Is it possible with your recomendation ? worker.43m2g1.activation=d degraded ??? is a condition ? then all requests will be redirected to 43m2g1 ??

Re: Mod_jk working for failover

2011-06-08 Thread Felix Schumacher
Am Mittwoch, den 08.06.2011, 08:41 +0200 schrieb Manuel Fernández Panzuela: > my setup: > > # Define list of workers that will be used for mapping requests > worker.list=loadbalancer43,status > > # Definicion de plantilla > worker.template43.port=8009 > worker.template43.type=ajp13 > worker.templ

Wine and tomcat

2011-06-08 Thread bigdidz
Hello there, At my job, we are developing a program in Java that connect to Excel to web page. Indeed, we only work on Windows but I cannot live with that any more. Windows just sucks! Hence, I'm trying the impossible here: develop a program that depend heavily on Windows and Excel under Linux