Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Hi. This is a beginner-like question. I have tried to download and find this in the Servlet 2.5 Specification, but I seem to get a series of html pages describing the API, without telling me much about the general principles. So just in case this is not nicely explained in English in the

can mod_jk detect web service unavailable

2008-12-03 Thread Zeke
Hi: I have a JBOSS cluster which use Apache with mod_jk as HTTP load balancer. In my cluster, some nodes are deployed web service, but not all. For example, node 1 contains web servicebook_service, I can call the web service using URL http://www.node1.com/book_service;, but node 2 does not

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread Markus Schönhaber
André Warnier: I have tried to download and find this in the Servlet 2.5 Specification, but I seem to get a series of html pages describing the API, without telling me much about the general principles. Yep, for some reason unknown to me it's unnecessarily difficult to find the PDF with the

tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread pharish2
Hi I am using weblogic.jar and api.jar in my project and when i try to run it from the tomcat 6.0.14, I am getting this error in console ile INFO: validateJarFile(C:\apache-tomcat-6.0.14\webapps\DinahGui\WEB-INF\lib\api.j ar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Markus Schönhaber wrote: André Warnier: I have tried to download and find this in the Servlet 2.5 Specification, but I seem to get a series of html pages describing the API, without telling me much about the general principles. Yep, for some reason unknown to me it's unnecessarily difficult

mixed html and jsp site using ProxyPass

2008-12-03 Thread David Goodenough
I have a site which is a mixture of html (and a bunch of images and flash and other such stuff which came in from the web designer) and a couple of JSPs. I have implemented this with Apache 2.2 and Tomcat 5.5, using ProxyPass statements with ajp in the Location tag. My location block looks

RE: mixed html and jsp site using ProxyPass

2008-12-03 Thread Peter Crowther
From: David Goodenough [mailto:[EMAIL PROTECTED] I have a site which is a mixture of html (and a bunch of images and flash and other such stuff which came in from the web designer) and a couple of JSPs. I have implemented this with Apache 2.2 and Tomcat 5.5, using ProxyPass statements with

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread Chris Wareham
David Goodenough wrote: I have a site which is a mixture of html (and a bunch of images and flash and other such stuff which came in from the web designer) and a couple of JSPs. I have implemented this with Apache 2.2 and Tomcat 5.5, using ProxyPass statements with ajp in the Location tag. My

Re: can mod_jk detect web service unavailable

2008-12-03 Thread Mark Thomas
Zeke wrote: Hi: I have a JBOSS cluster which use Apache with mod_jk as HTTP load balancer. In my cluster, some nodes are deployed web service, but not all. For example, node 1 contains web servicebook_service, I can call the web service using URL http://www.node1.com/book_service;, but

Re: tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread Mark Thomas
pharish2 wrote: Hi I am using weblogic.jar and api.jar in my project and when i try to run it from the tomcat 6.0.14, I am getting this error in console ile INFO: validateJarFile(C:\apache-tomcat-6.0.14\webapps\DinahGui\WEB-INF\lib\api.j ar) - jar not loaded. See Servlet Spec 2.3, section

Re: tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread pharish2
java.lang.NoClassDefFoundError: weblogic/wsee/jaxrpc/ServiceImpl java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) I am getting this exception

Re: tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread Mark Thomas
pharish2 wrote: java.lang.NoClassDefFoundError: weblogic/wsee/jaxrpc/ServiceImpl java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) I am getting

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread David Goodenough
The reason was that Tomcat did not serve the Flash correctly, never did manage to get to the bottom of why but the browser did not complain - it just left big blank spaces. With this setup at least that bit works. David On Wednesday 03 December 2008, Peter Crowther wrote: From: David

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread Chris Wareham
David Goodenough wrote: The reason was that Tomcat did not serve the Flash correctly, never did manage to get to the bottom of why but the browser did not complain - it just left big blank spaces. With this setup at least that bit works. David My gut response is that the MIME type is wrong,

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread André Warnier
David Goodenough wrote: [...] Is there a way to divert just the .jsp files? I tried Location /*.jsp but that did not seem to work - maybe I got something else wrong. You may have more luck on the Apache users list ([EMAIL PROTECTED]) for this. But, assuming all your other content is to be

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread André Warnier
Chris Wareham wrote: David Goodenough wrote: The reason was that Tomcat did not serve the Flash correctly, never did manage to get to the bottom of why but the browser did not complain - it just left big blank spaces. With this setup at least that bit works. David My gut response is that

Re: mixed html and jsp site using ProxyPass

2008-12-03 Thread Chris Wareham
André Warnier wrote: Chris Wareham wrote: David Goodenough wrote: The reason was that Tomcat did not serve the Flash correctly, never did manage to get to the bottom of why but the browser did not complain - it just left big blank spaces. With this setup at least that bit works. David My

JK Connector problem

2008-12-03 Thread nitingupta183
Hi all, I am trying to integrate Apache server with Tomcat using mod_jk. I am folllowing the basic tutorials on this but still cant start the Apache server when I configure httpd.conf to load the mod_jk module. It says The requested operation has faiked!. I am not able to log the problem either

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread Markus Schönhaber
André Warnier: It appears anyway that my previous attempted logic was quite wrong. But I still find the spec quite confusing. There is some kind of mixture between servlet and web application that is not very clear, at least to me. As I understand it now, there are 2 steps : 1) the

RE: Tomcat mapping of URLs - servlets

2008-12-03 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets Even when you get there though, it is still difficult to download this thing. The proposed filename is not a valid path and must be changed.. What browser and platform are you using? (I'm asking

RE: jvm cowardly refuses to print a thread dump

2008-12-03 Thread Martin Gainty
if its a bean make sure you declare your attributes as having either private or protected access in the case of attribute called size contained in class FuBar class FuBar { public FuBar() { ; } //default no-arg constructor private int Size; //declare accessor getSize public getSize() {

RE: Tomcat mapping of URLs - servlets

2008-12-03 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Tomcat mapping of URLs - servlets Note that the servlet-2_5-mrel2-spec.pdf button cannot be right-clicked and processed with Save As I was mistaken; you can do a right-click and Save As, without any problems. Were you on the correct page when you

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Markus Schönhaber wrote: André Warnier: It appears anyway that my previous attempted logic was quite wrong. But I still find the spec quite confusing. There is some kind of mixture between servlet and web application that is not very clear, at least to me. As I understand it now, there

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread Mark Thomas
André Warnier wrote: Then I guess I have (at least) 2 webapps : a /foo webapp, and a /foo/bar webapp. Now a request comes in with the url /foo/bar/baz/various.jsp How does Tomcat determine that /foo/bar/baz is not itself a webapp, but merely a sub-dir of webapp /foo/bar ? The longest

Re: jvm cowardly refuses to print a thread dump

2008-12-03 Thread Chris Wareham
Martin Gainty wrote: if its a bean make sure you declare your attributes as having either private or protected access in the case of attribute called size contained in class FuBar class FuBar { public FuBar() { ; } //default no-arg constructor private int Size; //declare accessor getSize

[ANN] Apache Tomcat 4.1.39 stable is released

2008-12-03 Thread Mark Thomas
The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.39 stable. This build contains a small number of bug fixes and two important, one moderate and one low severity security fixes. Apache Tomcat is an implementation of the Java Server Pages 1.2 and Java Servlet 2.3

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Caldarale, Charles R wrote: From: Caldarale, Charles R Subject: RE: Tomcat mapping of URLs - servlets Note that the servlet-2_5-mrel2-spec.pdf button cannot be right-clicked and processed with Save As I was mistaken; you can do a right-click and Save As, without any problems. Were you on

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Caldarale, Charles R wrote: [...] Forgot to add : mine is an Official Firefox, running on an Official Windows XP. ;-) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Mark Thomas wrote: André Warnier wrote: Then I guess I have (at least) 2 webapps : a /foo webapp, and a /foo/bar webapp. Now a request comes in with the url /foo/bar/baz/various.jsp How does Tomcat determine that /foo/bar/baz is not itself a webapp, but merely a sub-dir of webapp /foo/bar ?

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread Mark Thomas
André Warnier wrote: Mark Thomas wrote: André Warnier wrote: Then I guess I have (at least) 2 webapps : a /foo webapp, and a /foo/bar webapp. Now a request comes in with the url /foo/bar/baz/various.jsp How does Tomcat determine that /foo/bar/baz is not itself a webapp, but merely a

RE: Tomcat mapping of URLs - servlets

2008-12-03 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets I was using Firefox 2.0.0.15, on a Windows XP station. Hmmm... I haven't used Firefox 2 in a very long time - not since Firefox 3 was in beta.

Re: can mod_jk detect web service unavailable

2008-12-03 Thread Zeke
Mark Thomas [EMAIL PROTECTED] wrote: Zeke wrote: Hi: I have a JBOSS cluster which use Apache with mod_jk as HTTP load balancer. In my cluster, some nodes are deployed web service, but not all. For example, node 1 contains web servicebook_service, I can call the web service using URL

Re: [ANN] Apache Tomcat 4.1.39 stable is released

2008-12-03 Thread André Warnier
Mark Thomas wrote: The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.39 stable. Remembering numerous exhortations on this list to upgrade, I must say this announcement is somewhat surprising to me. So there are older versions which are still

Re: JspC processFile java.lang.NullPointerException

2008-12-03 Thread Marco Machmer
marco wrote: hi, we have the same error message. the problem seems to be that we have bundled our standard tag files in an jar library file and call these tagfile tags from inside another tagfile tag that is located in WEB-INF/tags. only the first tagfile tag of the jsp will be

Re: [ANN] Apache Tomcat 4.1.39 stable is released

2008-12-03 Thread Len Popp
On Wed, Dec 3, 2008 at 10:30, André Warnier [EMAIL PROTECTED] wrote: Remembering numerous exhortations on this list to upgrade, I must say this announcement is somewhat surprising to me. So there are older versions which are still maintained/enhanced ? Yes. See

RE: What exactly happens when I configure a different host

2008-12-03 Thread Caldarale, Charles R
From: Anand HS [mailto:[EMAIL PROTECTED] Subject: Re: What exactly happens when I configure a different host I changed the Host Name and Engine defaultHost back to localhost and the error vanishes. However, it re appears when I give a different name than localhost. Finally had time to go

Re: [OT] Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets I was using Firefox 2.0.0.15, on a Windows XP station. Hmmm... I haven't used Firefox 2 in a very long time - not since Firefox 3 was in beta.

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Mark Thomas wrote: André Warnier wrote: Mark Thomas wrote: André Warnier wrote: Then I guess I have (at least) 2 webapps : a /foo webapp, and a /foo/bar webapp. Now a request comes in with the url /foo/bar/baz/various.jsp How does Tomcat determine that /foo/bar/baz is not itself a webapp,

Re: can mod_jk detect web service unavailable

2008-12-03 Thread David Knox
Hi Zeke, You didn't say which version of JBOSS you're using, I'm assuming its a recent 4.x version that includes buddy-clustering. You're JBOSS cluster will need to be reconfigured to do what you want. The JBOSS community lists and wiki (www.jboss.org) is the best place for your

RE: Tomcat mapping of URLs - servlets

2008-12-03 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets At deployment time thus (in my hypothetical case above when Tomcat starts and finds a such webapps top dir), does it recursively go through the webapp dirs and subdirs, to determine what is a webapp

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets At deployment time thus (in my hypothetical case above when Tomcat starts and finds a such webapps top dir), does it recursively go through the webapp dirs and subdirs, to

Re: Tomcat mapping of URLs - servlets

2008-12-03 Thread Mark Thomas
André Warnier wrote: Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets At deployment time thus (in my hypothetical case above when Tomcat starts and finds a such webapps top dir), does it recursively go through the

RE: Tomcat mapping of URLs - servlets

2008-12-03 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat mapping of URLs - servlets Except if there was, for /foo/bar, an appropriate Context element, inside a foo#bar.xml file, itself located under (tomcat_base)/conf/Catalina/(hostname)/ Or an [appBase]/foo#bar directory, or an

Re: tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread Juha Laiho
Mark Thomas wrote: pharish2 wrote: java.lang.NoClassDefFoundError: weblogic/wsee/jaxrpc/ServiceImpl java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x?

2008-12-03 Thread andre John Mas
Hi, We are currently experiencing session issues with our customer's Tomcat server, in a production environment. Basically what is happening is that, despite the idle time-out being set for 20 minutes we are seeing sessions that have been idle (have not been accessed) for over 3 hours. The

RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x?

2008-12-03 Thread andre John Mas
From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Subject: RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x? From: andre John Mas [mailto:[EMAIL PROTECTED] Subject: Session timeout related fixes between Tomcat 5.0 and Tomcat

RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x?

2008-12-03 Thread Caldarale, Charles R
From: andre John Mas [mailto:[EMAIL PROTECTED] Subject: RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x? When I speak to our operations team they tell me that the server crashes because it is unable to create any more sessions They're fudging, so you really do need to

Re: can mod_jk detect web service unavailable

2008-12-03 Thread Rainer Jung
Zeke schrieb: Hi: I have a JBOSS cluster which use Apache with mod_jk as HTTP load balancer. In my cluster, some nodes are deployed web service, but not all. For example, node 1 contains web servicebook_service, I can call the web service using URL http://www.node1.com/book_service;, but node

Re: Forward all subfolders/files to the root

2008-12-03 Thread Hassan Schroeder
On Tue, Dec 2, 2008 at 7:41 PM, tuckker [EMAIL PROTECTED] wrote: How do I redirect all subfolders/files to the root of the link domain.com? If it's all one context, add something like this to your web.xml: servlet servlet-namewhatever/servlet-name

PostMethod call fails in Tomcat

2008-12-03 Thread kpalania
I am trying to access a REST service from within an application deployed in Tomcat but, however, this call seems to fail: PostMethod method = new PostMethod(http://...;); I am able to call the same service using PostMethod from a junit test. Any thoughts? -- View this message in context:

Re: JK Connector problem

2008-12-03 Thread Rainer Jung
nitingupta183 schrieb: Hi all, I am trying to integrate Apache server with Tomcat using mod_jk. I am folllowing the basic tutorials on this but still cant start the Apache server when I configure httpd.conf to load the mod_jk module. It says The requested operation has faiked!. I am not

Re: PostMethod call fails in Tomcat

2008-12-03 Thread Leon Rosenberg
On Wed, Dec 3, 2008 at 11:17 PM, kpalania [EMAIL PROTECTED] wrote: I am trying to access a REST service from within an application deployed in Tomcat but, however, this call seems to fail: PostMethod method = new PostMethod(http://...;); I am able to call the same service using PostMethod

Unable to connect to DB using DataSource

2008-12-03 Thread Stefan Deitmer
Hello list. I am trying to use a JDBC DataSource to connect to a PostgreSQL server from within an Axis WebService running in Tomcat. What confuses me is that I managed to get this to work on one server, but now am failing miserably to do so on a second server. The first server is a Debian

Unable to stop SimpleTcpReplicationManager

2008-12-03 Thread Pieter Temmerman
Hi all, I'm having two Tomcats which are placed in a cluster. If I stop and start a context (instead of completely stopping/restarting Tomcat), then I see the following error in catalina.out: ERROR: Unable to stop SimpleTcpReplicationManager No other information is specified. I have been

RE: PostMethod call fails in Tomcat

2008-12-03 Thread Martin Gainty
this is AXIS REST code .. structure your client code as String epr=http://MySiteIsGreatestSiteOnEarth.com;; ServiceClient client = new ServiceClient(); Options options = new Options(); client.setOptions(options); options.setTo(new

Re: Unable to connect to DB using DataSource

2008-12-03 Thread André Warnier
Stefan Deitmer wrote: Hi. You can totally disregard this, because I am really not competent. But just because I saw this in your post : at java.security.AccessController.doPrivileged(Native Method) did you compare the line TOMCAT_SECURITY=... in /etc/default/tomcat5.5 between your systems ?

Re: What exactly happens when I configure a different host

2008-12-03 Thread Anand HS
Whew.. that was a problem alright.. Does that mean when we change the Host, we have to have a handler added in logging.properties as well. ? I see there are already defined for applications packaged with tomcat like manager and host-manager. Thanks, Anand On Wed, Dec 3, 2008 at 7:54 AM,

RE: What exactly happens when I configure a different host

2008-12-03 Thread Caldarale, Charles R
From: Anand HS [mailto:[EMAIL PROTECTED] Subject: Re: What exactly happens when I configure a different host Does that mean when we change the Host, we have to have a handler added in logging.properties as well. ? Have to - no; should - probably. If you don't define one, the logging info

Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-03 Thread Justin Randall
Hello, I have a very strange issue with Tomcat 6.0.18 and I'm not sure what information to provide to help debug further. I have an installation of Tomcat 6.0.18 which fails to properly initialize servlets upon restart. If I deploy a new application.war file while Tomcat is running (even if

RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-03 Thread Justin Randall
I've been doing some more testing and added a bunch of System.out.println statements to the init, init(ServletConfig), and doPost/doGet methods so that I could see what my application was doing without log4j initialized. Basically when I restart Tomcat, it doesn't call any of the init methods

RE: Tomcat 6.0.18 Servlet Loading/Reloading

2008-12-03 Thread Caldarale, Charles R
From: Justin Randall [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading Basically when I restart Tomcat, it doesn't call any of the init methods of the Servlet Unless you have load-on-startup set for the servlet in your webapp's WEB-INF/web.xml, that is correct

Need help : Tomcat Stuck up

2008-12-03 Thread Kranti™ K K Parisa
We are facing very serious issues of tomcat getting stuck after using it for some time. I am getting scared that allocating 1.5GB of RAM for java in tomcat is causing any problem?? There is no exception/error in log files. I am using the following on windows 2003 std edition. Tomcat 5.5.25

RE: Need help : Tomcat Stuck up

2008-12-03 Thread Caldarale, Charles R
From: Kranti(tm) K K Parisa [mailto:[EMAIL PROTECTED] Subject: Need help : Tomcat Stuck up We are facing very serious issues of tomcat getting stuck after using it for some time. What does a thread dump show? What does running with -verbose:gc show? Try connecting to the stuck JVM with

Re: Need help : Tomcat Stuck up

2008-12-03 Thread Kranti™ K K Parisa
Hi, Thanks for the quick reply. Could you please help me with the commands that i need to run to watch the thread dump. and when i run java -verbose:gc its asking for options, what can i select along with that ? Sorry to ask you this, but all these are new things for me. So please suggest On

Re: JK Connector problem

2008-12-03 Thread nitingupta183
Hi, I solved the problem. Actually it was a silly mistake in the configuration. I was using a folder name with spaces and without putting it inside a double quote. Now it is working fine. Regards, Nitin Rainer Jung-3 wrote: nitingupta183 schrieb: Hi all, I am trying to integrate Apache

Pointing domain to a context in tomcat

2008-12-03 Thread nitingupta183
Hi all, I have recently started using Apache web server with Tomcat. I need to have something like this: www.mydomain.com maps to something like www.mydomain.com:8080/mycontext With the help of mod_jk i am now able to achieve www.mydomain.com/mycontext. I want to be able to have

Re: Unable to connect to DB using DataSource

2008-12-03 Thread Stefan Deitmer
André Warnier schrieb: Stefan Deitmer wrote: Hi. You can totally disregard this, because I am really not competent. But just because I saw this in your post : at java.security.AccessController.doPrivileged(Native Method) did you compare the line TOMCAT_SECURITY=... in /etc/default/tomcat5.5

RE: Unable to connect to DB using DataSource

2008-12-03 Thread BEN HMIDA aymen
Hi, There's something confusing in your post but i think you 've forgotten to specify the port number userd by postgres -Message d'origine- De : Stefan Deitmer [mailto:[EMAIL PROTECTED] Envoyé : jeudi 4 décembre 2008 08:35 À : Tomcat Users List Objet : Re: Unable to connect to DB using