Re: apache tomcat connector multi domains problem

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kalmn, On 6/26/2009 3:40 AM, Kalmn CHEUNG Ka Keung wrote: > Linux version 2.6.8.1-12mdksmp > Sun JDK1.4.2 > Apache-2.0.54 (domains: web.myserver.com, mobile.myserver.com) > jakarta-tomcat-connectors-jk2-2.0.4 > jakarta-tomcat-5.0.28 X 2 Note that the

Re: Stranded Threads in Standalone Tomcat 5.5.25 Server

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/19/2009 5:40 PM, Bontempi, Chris wrote: > Please send any constructive responses to > chris.bonte...@mckesson.com If you post to the list, expect a reply to the list. If you want special attention, pay

RE: Combining Apache RewriteRule and JkMount to pass through to Tomcat

2009-06-26 Thread David Crane
David Crane wrote: ... > > I also have this mod_jk directive, which would act on either version of > the URL: > > JkMount /* worker1 > André Warnier wrote: > Considering the above directive, then why do you have, at all : > - an Apache httpd in front of your Tomcat ? Since you are attempting

mod_auth_kerb / mod_spnego on Windows

2009-06-26 Thread Maciej Matecki
Hello, I have to run Kerberos with Apache + Tomcat on Windows. I tested everything in Linux and there everything works just great. I thought that there won't be any problems in Windows... I was wrong... :( Do You have any compiled module for Apache which provide Kerberos authorization under Window

RE: integrating Apache 2 server and Tomcat

2009-06-26 Thread Caldarale, Charles R
> From: Dimitrios Christodoulakis [mailto:dimi@gmail.com] > Subject: Re: integrating Apache 2 server and Tomcat > > I decided to try running my tomcat app as ROOT, by deploying it under > usr/java/tomcat-5.5/webapps/ROOT That's exactly what you should do, since it's your default webapp. > Ho

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Seeking authoritative answer re using Log4J with v6 > > I have checked recently (with 6.0.18) and it worked as > expected and documented. So why was it necessary for Suresh to place his log handler on Tomcat's startup classpath? Or t

Re: integrating Apache 2 server and Tomcat

2009-06-26 Thread Dimitrios Christodoulakis
I decided to try running my tomcat app as ROOT, by deploying it under usr/java/tomcat-5.5/webapps/ROOT It might not be the optimal way, but I want to at least first manage to access this app by www.mydomain.com However all I get is a 403 forbidden error. It turns out that running tomcat from with

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Seeking authoritative answer re using Log4J with v6 > > It looks very much like your build environment is broken. I just duplicated Jonathan's findings on my Vista box. There are several things broken, but the build environment doesn'

Re: Combining Apache RewriteRule and JkMount to pass through to Tomcat

2009-06-26 Thread André Warnier
David Crane wrote: ... I also have this mod_jk directive, which would act on either version of the URL: JkMount /* worker1 Considering the above directive, then why do you have, at all : - an Apache httpd in front of your Tomcat ? Since you are attempting to pass everything to Tomcat anyw

Re: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Mark Thomas
Mark Thomas wrote: > Caldarale, Charles R wrote: >>> From: Jonathan Ross [mailto:jonr...@alum.mit.edu] >>> Subject: Seeking authoritative answer re using Log4J with v6 >>> >>> if log4j.jar is placed in catalina.home/lib per instructions, >>> it's not on the system classpath, which is used by bootst

Re: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Mark Thomas
Caldarale, Charles R wrote: >> From: Jonathan Ross [mailto:jonr...@alum.mit.edu] >> Subject: Seeking authoritative answer re using Log4J with v6 >> >> if log4j.jar is placed in catalina.home/lib per instructions, >> it's not on the system classpath, which is used by bootstrap.jar. > > A recent pos

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
> From: Jonathan Ross [mailto:jonr...@alum.mit.edu] > Subject: RE: Seeking authoritative answer re using Log4J with v6 > > According to the > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > classloader howto , the order is: system classloader, webapp > classloader, common classlo

Combining Apache RewriteRule and JkMount to pass through to Tomcat

2009-06-26 Thread David Crane
I am having difficulty using the internal redirect capabilities of Apache mod_rewrite and passing through requests to Tomcat through mod_jk. We are using Apache/2.2.3 and Tomcat/6.0.16. Our tomcat war application is based on SpringFramework 2.5.4, configured with a SimpleUrlHandlerMapping. A c

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Caldarale, Charles R
> From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com] > Subject: RE: Tomcat 6.0 and JULI issue. > > Well, in this case, adding the Jar in setclasspath.sh, including it in > /tomcat/lib, and not having it in WEB-INF/lib doesn't make any > difference. So even if we load this second Ja

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Jonathan Ross
> > I can't move log4j.jar to the system classpath, because then it > > will be visible to all webapps > It was already visible to all webapps when the jar was in Tomcat's lib > directory, so moving it > should not matter. The local copies in WEB-INF/lib *should* be found > before the system >

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
Well, in this case, adding the Jar in setclasspath.sh, including it in /tomcat/lib, and not having it in WEB-INF/lib doesn't make any difference. So even if we load this second Jar (in addition to the first jar that helped with the initial issue), through setclasspath.sh we are still seeing this

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
> From: Jonathan Ross [mailto:jonr...@alum.mit.edu] > Subject: Seeking authoritative answer re using Log4J with v6 > > if log4j.jar is placed in catalina.home/lib per instructions, > it's not on the system classpath, which is used by bootstrap.jar. A recent posting by Mark T indicates the doc mig

RE: Null value in response.sendRedirect() causes original url tobe invoked 20 times

2009-06-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Null value in response.sendRedirect() causes original url > tobe invoked 20 times > > There's an earlier check in > org/apache/catalina/connector/Response.toAbsolute(String) (called > directly by sendRedirect). If the

Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Jonathan Ross
I'd like to use Log4J at the server level, but following the http://tomcat.apache.org/tomcat-6.0-doc/logging.html instructions at apache.org doesn't seeem to work with 6.0.18. 1) Rebuilding tomcat-juli.jar using extras.xml doesn't include an adapter for Log4J. The build file lists org/apache/

Re: How does one control what the path is on the JSESSIONID cookie?

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 6/24/2009 3:05 PM, John Caron wrote: > Christopher Schultz wrote: >> [...] >> That said, having overlapping webapp URL spaces is asking for trouble. >> > Sorry, I didnt explain much context. This isnt for browsers, its a > specialized web

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Caldarale, Charles R
> From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com] > Subject: RE: Tomcat 6.0 and JULI issue. > > Just want to add the Jar for this class file is at > webapps/WEB-INF/lib/. Is this jar file also in Tomcat's startup classpath (as Mark suggested)? If so, you must remove it from W

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/26/2009 1:40 PM, Caldarale, Charles R wrote: >> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: >> Re: Null value in response.sendRedirect() causes original url to be >> invoked 20 times >> >> Obviously a NullPointerExcep

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
tion 1246038355 20090626-17:45:55.834 :catalina: :E: :CAT9991: : java.io.IOException: Interrupted system call java.lang.InstantiationException: Unable to create a new transaction logger: java.lang.ClassNotFoundException: net.mirrorimage.rbcs.logging.Web AppTransa

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
ption 1246038355 20090626-17:45:55.834 :catalina: :E: :CAT9991: : java.io.IOException: Interrupted system call java.lang.InstantiationException: Unable to create a new transaction logger: java.lang.ClassNotFoundException: net.mirrorimage.rbcs.logging.Web AppTransactionLogge

RE: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Caldarale, Charles R
> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > Subject: Re: Null value in response.sendRedirect() causes original url > to be invoked 20 times > > doesn't setting the Location header boil down eventually > to a string concat Nope, it boils down to an empty header value, which is acc

RE: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Caldarale, Charles R
> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > Subject: Re: Null value in response.sendRedirect() causes original url > to be invoked 20 times > > Obviously a NullPointerException is being thrown at some level, Nope, no exceptions are being thrown. There is an explicit check for nul

RE: Null value in response.sendRedirect() causes original url tobe invoked 20 times

2009-06-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Null value in response.sendRedirect() causes original url > tobe invoked 20 times > > I would say that null cannot be converted into a valid URL, and so > throwing IllegalStateException is a reasonable behavior here.

RE: integrating Apache 2 server and Tomcat

2009-06-26 Thread Martin Gainty
mg>hopefully brief comments Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede

Re: integrating Apache 2 server and Tomcat

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dimitrios, On 6/26/2009 9:59 AM, Dimitrios Christodoulakis wrote: > I followed some steps they initially suggested which > involved creating a symbolic link between the default public directory > /home/myadmin/public_html/ and the application director

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
> "java.lang.> IllegalStateException - If the response was committed or if a > partial URL is given and cannot be converted into a valid URL" I was just about to quote this myself. Perhaps this is not a Tomcat issue per se, but rather a gray area of the Servlet spec. Obviously a NullPointerExcept

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
Yeah I'm now doing a null check before the sendRedirect. But why doesn't it throw a NullPointerException, doesn't setting the Location header boil down eventually to a string concat, which in this case be attempted on a null reference? On Fri, Jun 26, 2009 at 12:37 PM, Tim Funk wrote: > LiveHtt

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/26/2009 12:27 PM, Caldarale, Charles R wrote: >> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: >> Null value in response.sendRedirect() causes original url to be >> invoked 20 times >> >> A null value in bounce_url is c

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Tim Funk
LiveHttHeaders is your friend ... Lets assume I have this as foo.jsp: <% response.sendRedirect(null); if (out!=null) {return;} %> http://localhost/foo.jsp GET /foo.jsp HTTP/1.1 Host: localhost HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Conten

Re: integrating Apache 2 server and Tomcat

2009-06-26 Thread Brian Millett
On Fri, 2009-06-26 at 08:59 -0500, Dimitrios Christodoulakis wrote: > Hello, > > I have been struggling for the past couple of weeks to redirect > external traffic from the Apache 2 server to Tomcat 5.5 on a godaddy > dedicated server. > > We have created a new domain on the server, which default

RE: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Caldarale, Charles R
> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > Subject: Null value in response.sendRedirect() causes original url to > be invoked 20 times > > A null value in bounce_url is causing the original Request url to be > invoked exactly 20 times, rather than dying with NullPointerException:

Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
A null value in bounce_url is causing the original Request url to be invoked exactly 20 times, rather than dying with NullPointerException: public static synchronized void doSomething( HttpServletRequest request, HttpServletResponse response, JspWriter out) { f

Re: The best place for implementing context specific behavior?

2009-06-26 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 6/26/2009 9:21 AM, Christopher Schultz wrote: Don't use request.getLocalName: use request.getHeader("Server"). Er... that should have been request.getHeader("Host"). .. which should really have been reque

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Caldarale, Charles R
> From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com] > Subject: RE: Tomcat 6.0 and JULI issue. > > But with this change I am now getting a new ClassNotFoundException on a > different class when the WebApp comes up. > > I have been looking into this through yesterday trying various

RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
That was helpful and it fixed the original issue during Tomcat startup. But with this change I am now getting a new ClassNotFoundException on a different class when the WebApp comes up. This error will not happen if I only have the default Tomcat logging.properties, without my handler. I have b

RE: integrating Apache 2 server and Tomcat

2009-06-26 Thread Caldarale, Charles R
> From: Dimitrios Christodoulakis [mailto:dimi@gmail.com] > Subject: integrating Apache 2 server and Tomcat > > At the same time I have uploaded and deployed the application under > usr/java/tomcat-5.5/webapps/mydomain/ If you want it to be the default webapp, you should deploy it as /usr/ja

Re: SSL requests not forwarding to jk on Solaris x86

2009-06-26 Thread Kenneth Aung
Chris Thank you kind sir! You are a true gentlemen. I changed jkMount to JkMount (caps J) for consistency. I usually catch things like this, but not this time. I do have SSL configs in a separate file http-ssl.conf file in conf/extra. Since I kept changes to a minimum, it was, as delivered in sepa

integrating Apache 2 server and Tomcat

2009-06-26 Thread Dimitrios Christodoulakis
Hello, I have been struggling for the past couple of weeks to redirect external traffic from the Apache 2 server to Tomcat 5.5 on a godaddy dedicated server. We have created a new domain on the server, which default public path is /home/myadmin/public_html/ when someone points there browser to ww

Re: Custom Valve

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sumit, On 6/25/2009 7:42 AM, Sumit D wrote: > *By "write some data in an object" I wanted to say that, when the logs are > written, * > *then and there I would like to have the same information encapsulated in an > object* > because we need to send it

Re: SSL requests not forwarding to jk on Solaris x86

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth, On 6/25/2009 3:54 PM, Kenneth Aung wrote: > Then, mod_jk compiled the latest 1.2.28 from source (no binaries available). Building from source is the best option IMHO. Glad you didn't have any problems (although running 'make' isn't that hard

Re: Tomcat throwing some weird errors

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/26/2009 2:36 AM, André Warnier wrote: > I think you need to ask the RedHat support people what they have done > with the Tomcat and Java packages. Nobody here will be able to tell you. > > Note : this is not ill-will, nor some principled

Re: The best place for implementing context specific behavior?

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 6/26/2009 9:21 AM, Christopher Schultz wrote: > Don't use request.getLocalName: use request.getHeader("Server"). Er... that should have been request.getHeader("Host"). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW3

Re: The best place for implementing context specific behavior?

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 6/25/2009 12:04 PM, Jonathan Mast wrote: > Haha thanks, Andre, I'm not lost but it seems other people might be. > > I'm going to go ahead define separate hosts, although the option > mentioned might work, I don't know if it would preser

Re: The best place for implementing context specific behavior?

2009-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 6/25/2009 11:21 AM, Jonathan Mast wrote: > You misunderstood the issue at hand. The host name I'm detecting is not the > that of the viewer of my site, but my site, so there must be different host > virtualhosts setup. Pid is right: you

Re: Problem of port 8080

2009-06-26 Thread Andre-John Mas
On 26-Jun-2009, at 06:18, Xia Guowen wrote: Those three ports actually belong to the same process. # netstat -lnutp |grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 29907/java tcp0 0 0.0.0.0:8009 0.0.0.0:*

Re: The best place for implementing context specific behavior?

2009-06-26 Thread Pid
André Warnier wrote: > Pid wrote: >> >> The Filter checks the domain name is suitable, /looks up a config object/ >> and drops it into the request attributes for use on the page. > > Ha ! I believe that this is exactly what Jonathan is (or was originally) > looking for. > Where is this "config obj

RE: Tomcat and Salesforce Issue

2009-06-26 Thread Martin Gainty
sounds like salesforce people dropped the ball here if the call to Salesforce WebService works only part of the time and not other times there has to be some delta(more than likely bringing a server offline or a SF misconfig) that Salesforce introduces at that point in time to not make SF syste

Re: Problem of port 8080

2009-06-26 Thread André Warnier
Xia Guowen wrote: Those three ports actually belong to the same process. # netstat -lnutp |grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 29907/java tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN 29907/jav

Re: Problem of port 8080

2009-06-26 Thread Xia Guowen
Those three ports actually belong to the same process. # netstat -lnutp |grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 29907/java tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN 29907/java tcp0

Re: Best practices for switching back/forth between java 1.5/1.6

2009-06-26 Thread Ronald Klop
Hi, Make sure you compile everything with Java 1.5 or javac -target 1.5. That wil run in java 1.5 and 1.6. Ronald. Op woensdag, 24 juni 2009 20:54 schreef Ken Bowen :> Hi all, I failed at searching for this, even though I know it's been answered: Setting: Tomcat 6.0_20; Mac OS X 10.5.7;

Re: Problem of port 8080

2009-06-26 Thread Mark Thomas
André Warnier wrote: > Mark Thomas wrote: >>> --- Original Message --- >>> From: "Xia Guowen" >>> To: "Tomcat Users List" >>> Sent: 26/06/09, 02:35:58 >>> Subject: Re: Problem of port 8080 >>> >>> I'm so sorry for the first question. >>> >>> My tomcat listen on port 8080, I could access h

Re: Tomcat and Salesforce Issue

2009-06-26 Thread Jamz_2010
Sorry about that, I have checked the catalina.out file and it says that an exception is thrown, I will have a ensure it prints the stack trace and will have a look at it in the morning - sorry I can't test this earlier but I need to wait for it to fail overnight. At the moment I simply catch the e

Re: Problem of port 8080

2009-06-26 Thread André Warnier
Mark Thomas wrote: --- Original Message --- From: "Xia Guowen" To: "Tomcat Users List" Sent: 26/06/09, 02:35:58 Subject: Re: Problem of port 8080 I'm so sorry for the first question. My tomcat listen on port 8080, I could access http://server_ip:8080/ everything was ok. # netstat -lnu

Re: Problem of port 8080

2009-06-26 Thread Mark Thomas
> --- Original Message --- > From: "Xia Guowen" > To: "Tomcat Users List" > Sent: 26/06/09, 02:35:58 > Subject: Re: Problem of port 8080 > > I'm so sorry for the first question. > > My tomcat listen on port 8080, I could access http://server_ip:8080/ > everything was ok. > # netstat -ln

apache tomcat connector multi domains problem

2009-06-26 Thread Kalmn CHEUNG Ka Keung
Hi All, Linux version 2.6.8.1-12mdksmp Sun JDK1.4.2 Apache-2.0.54 (domains: web.myserver.com, mobile.myserver.com) jakarta-tomcat-connectors-jk2-2.0.4 jakarta-tomcat-5.0.28 X 2 I have an apache web server which is connecting 2 tomcat application servers with apache-tomcat connector. Now I am goin

Re: Problem of port 8080

2009-06-26 Thread André Warnier
Xia Guowen wrote: Why port 8080 is disapeared ? We do not know that either. What do the Tomcat logs say ? Is java or tomcat bind to port 8080? Well, it depends on the point of view.. It is Tomcat which takes the decision, but since Tomcat runs under a Java JVM, one could say that it is re