SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Gunnar.Bostrom
Hi, The problem is not to get the parameters in my java filter. The problem is that I need to pass the posted parameters from the form plus one additional parameter to my Perl script. Regards Gunnar -Ursprungligt meddelande- Från: Martin Gainty [mailto:[EMAIL PROTECTED] Skickat:

possibility of different classpaths under the same web application

2006-10-17 Thread Rocky Agrawal
Hi everyone, I have a web application in which I have different user domains/groups. There are some classes, which are customized according to the user groups/domain with the same quantified class name, but in different jar files. Based on the login information, I need to change the classpath for

Re: Tomcat unable to find the apr library

2006-10-17 Thread Michael Courcy
Hum, I remember that I had to download the source apr-1.2.7.tar.gz for APR directly from the apache website and use the classic ./configure make make install, Then I untar tomcat-native.tar.gz in the bin directory and run again configure --with-apr=/usr/local/apr/bin/ make make

Re: Tomcat unable to find the apr library

2006-10-17 Thread Mladen Turk
Michael Courcy wrote: Hum, I remember that I had to download the source apr-1.2.7.tar.gz for APR directly from the apache website and use the classic ./configure make make install, You need apr sources only if building from SVN, then you first have to ./buildconf.sh

Re: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Michael Courcy
Can't u use request.sendRedirect(myperlscript.cgi?aparam=+request.getParameter(blah)); Mic [EMAIL PROTECTED] a écrit : Hi, The problem is not to get the parameters in my java filter. The problem is that I need to pass the posted parameters from the form plus one additional parameter to my

Re: Tomcat, ajp, IIS - loosing connection

2006-10-17 Thread Mladen Turk
Peter Olin wrote: This is what I found in the Tomcat log, and I guess that this is the last thing that happened before the IIS-Tomcat connection stopped working. 2006-10-16 23:20:29 [EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/index.jsp] ClientAbortException:

SV: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Gunnar.Bostrom
Hi, No I can't because it is a form with data posted that should be sent over to the Perl script and one additionally parameter. Regards Gunnar -Ursprungligt meddelande- Från: Michael Courcy [mailto:[EMAIL PROTECTED] Skickat: den 17 oktober 2006 11:05 Till: Tomcat Users List

RE: Newbie Tomcat question - where to store dependency DLLs?

2006-10-17 Thread Peter Crowther
From: AStefanS [mailto:[EMAIL PROTECTED] my DLL can be downloaded successfully (after adding application/x-msdownload MIME mapping), but the dependency DLLs are not downloaded. Turn on access logging via the access log valve and see what requests IE is making for the dependency DLLs. Put

Re: Tomcat, ajp, IIS - loosing connection

2006-10-17 Thread Peter Olin
We already have that: worker.ajp15w.type=ajp13 worker.ajp15w.host=xx.xx.xx.xx worker.ajp15w.port=8009 worker.ajp15w.socket_keepalive=True worker.ajp15w.socket_timeout=60 I guess that you are talking about what we have specified as worker.ajp15w.socket_keepalive=True Right? Or is there an

RE: Newbie Tomcat question - where to store dependency DLLs?

2006-10-17 Thread AStefanS
Hi Peter Thanks for the reply. I have managed to solve the problem by turning off case-sensitivity in my DLL directory's context, as it turns out that IE sometimes sends HTTP request for *.DLL instead of *.dll (found out about that after turning on the access log valve as you suggested). Spent

SV: SV: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Gunnar.Bostrom
Hi, My code is in a filter that executes before the CGIServlet in Tomcat kicks in. It worked with Tomcat 5.5.17 but NOT with Tomcat 5.5.20 and I would like to know if there is some workaround. Regards Gunnar -Ursprungligt meddelande- Från: Michael Courcy [mailto:[EMAIL PROTECTED]

Re: problems with unpacking ROOT.war

2006-10-17 Thread Michael Courcy
Maybe a stupid clue but instead of Context path= debug=1 /Context What happen if u try Context path=/ debug=1 /Context [EMAIL PROTECTED] a écrit : Hi again, OK - here are some steps you can try out to reproduce the problem I am experiencing - I'm hoping this will tempt someone into

Re: Using a custom connector in Tomcat 5.5

2006-10-17 Thread Peter Rossbach
HI Mladen, good way! But sometimes the changes are inside the Adapter Class and then you must change the connector class. +1 to have the attribute className back Peter Am 17.10.2006 um 09:36 schrieb Mladen Turk: Jacob Marcus wrote: Hi, The examples no longer show the className

SV: SV: SV: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Gunnar.Bostrom
Hi, I can reach the request object and add a parameter, the problem is that the CgiServlet in Tomcat has been changed so my code doesn't work anymore. Regards Gunnar -Ursprungligt meddelande- Från: Michael Courcy [mailto:[EMAIL PROTECTED] Skickat: den 17 oktober 2006 12:26 Till:

XP network connections freeze after request by IE

2006-10-17 Thread Martin Heiden
Hi! I've got some serious problems with the following configuration: Windows XP Prof. SP2 Apache 2.2.3 mod_proxy_http Tomcat 5.5.20 Java Sun SDK 1.5.0_09 After some requests by IE from any machine on the network all network connections on the server freeze. The only solution is

RE: XP network connections freeze after request by IE

2006-10-17 Thread Peter Crowther
From: Martin Heiden [mailto:[EMAIL PROTECTED] Does anybody have an idea how to debug this behaviour? As a divide-and-conquer: what happens if you configure a HTTP connector directly on Tomcat and test to that instead of through Apache? Same symptoms? - Peter

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
Looks like the connection the pool is attempting to return is null. Are there any errors further up the logs that might indicate an other issue that might be causing this? For what it's worth, the code and config posted look good. --David Saurabh Nanda wrote: Hi, I'm trying to configure

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
One other thought I just had. I don't use the Oracle driver, so bear with me. Is there ever a case where the Oracle driver might return a null connection instead of throwing an exception? David Smith wrote: Looks like the connection the pool is attempting to return is null. Are there any

Multipart form patch application problem

2006-10-17 Thread HALSTEAD SGT WARREN F
All, I am running Tomcat 5.0.28. It is precompiled on a secure system, so I can't just upgrade or compile over it. But I need to get multipart/form-part working. I saw that the issue had been noted and rectified in Bug 32023 (see below sig for link). The fix was to patch the

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread Saurabh Nanda
This is the complete stacktrace of the error if it helps. The ojdbc14.jar file is in the WEB-INF/classes directory. SEVERE: Servlet.service() for servlet test threw exception java.lang.NullPointerException at

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
I think I see the problem... ojdbc14.jar should be in $TOMCAT_HOME/common/lib to be available to both the container and your webapp. .jar files are always stored in a lib folder. Relative to tomcat's home dir -- shared/lib, common/lib. Relative to the webapp -- WEB-INF/lib --David

Re: problems with unpacking ROOT.war

2006-10-17 Thread andrew . w . cooke
Hi Michael, thanks for the response. I tried this - but no luck. In any case, I'm pretty sure for the default web app (ROOT), you should set a path of : If you specify a context path of an empty string (), you are defining the default web application for this Host, which will process all

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread Saurabh Nanda
ojdbc14.jar should be in $TOMCAT_HOME/common/lib to be available to both the container and your webapp. Nopes: o Put it in $CATALINA_HOME/common/lib alone -- same error o put it in webapps/appname/WEB-INf/lib and $CATALINE_HOME/common/lib, both -- same error! Does oracle drier support DBCP?

Re: Multipart form patch application problem

2006-10-17 Thread Martin Gainty
Good Morning You can always rip the jar apart and put it together as in this example (best to start with a new folder I called it SomeNewDir mkdir SomeNewDir cd SomeNewDir jar -xvf servlets-cgi.jar place new file in exact package location (look at the package signature at top of java file) so

RV: Memory problem in Tomcat

2006-10-17 Thread Inma Marín López
Hello, I have a web service running in Tomcat (v 5.5.4) + axis (v 1.2). It receives a file and it makes some operations with that file. When receiving small files (2Mb) the web service executes successfully; however, with files of bigger size, the service throws InvocationTargetException

Re: jvm thread dump

2006-10-17 Thread Christopher Schultz
Riz, hmmm...still having issues with this. Dont understand why..I commented out the A1 appender and uncommented the R appender (as below). The applications are still logging to catalina.out !! How do I stop this??? Please help! log4j.rootLogger=INFO, R

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
Is the driver in exactly one place -- $TOMCAT_HOME/common/lib? This is the only place the driver is documented to work from. If the jar file is in multiple places it can cause classloader issues. Related to that, also check it isn't in any classpath or the JVM endorsed folder. Did you

RE: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread DE VINZELLES, Guillaume \(ext.\)
Yes, it does support DBCP. (see my older post about DBCP pool exhaustion). Regards. Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : Saurabh Nanda [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 octobre 2006 14:13

RE: problems with unpacking ROOT.war

2006-10-17 Thread Caldarale, Charles R
From: Michael Courcy [mailto:[EMAIL PROTECTED] Subject: Re: problems with unpacking ROOT.war Maybe a stupid clue but instead of Context path= debug=1 /Context What happen if u try Context path=/ debug=1 /Context Neither one is correct. You must NOT use the path attribute in a

Re: jvm thread dump

2006-10-17 Thread Martin Gainty
Set log level to OFF for Message Object {R} log4j.rootLogger=OFF, R http://logging.apache.org/log4j/docs/manual.html HTH Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
Some fishing through source and online -- your problem can happen if the connection url is not recognized by the driver. I was looking at the jdbc url you first posted: jdbc:oracle:thin:[EMAIL PROTECTED] This doesn't come up as a valid form in any online docs I can find. You might want to

RE: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread DE VINZELLES, Guillaume \(ext.\)
Here is a valid url : url=jdbc:oracle:thin:@address:port:schema Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : David Smith [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 octobre 2006 17:16 À : Tomcat Users List

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread HALSTEAD SGT WARREN F
Sir, I in no way am implying that the members of this list have been derisive. I meant to state answers I found else where seemed dersive. I did find an example of a non-derisive write it in Java. I sumbit to your attention:

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread Martin Gainty
You'll need to have a valid Driver class for the Class.forName statement e.g. private static Driver c_Driver = (Driver)Class.forName( DriverClass ).newInstance(); M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread David Smith
Right, but that would have generated a different error -- ClassNotFoundException. Here, DBCP has a bug in that it get's connections using Driver.connect() and never checks to see if the connection object is not null. The Sun JDK javadocs states a null return on Driver.connect() is normal and

Re: RHEL4 with App Server 3 and the missing tomcat5 manager

2006-10-17 Thread John McCoy, Jr
It does not appear so (see below). David could you shoot me a file list from the manager directory so I can do a more thorough search? Thanks. Is it possible to build only the manager app from the tarball? OR is this just to crazy an idea. So many systems with so many updates to keep an eye

RE: RHEL4 with App Server 3 and the missing tomcat5 manager

2006-10-17 Thread Caldarale, Charles R
From: John McCoy, Jr [mailto:[EMAIL PROTECTED] Subject: Re: RHEL4 with App Server 3 and the missing tomcat5 manager Is it possible to build only the manager app from the tarball? You don't need to build anything with Tomcat; other than the optional APR connector, it's pure Java, so you can

Re: RHEL4 with App Server 3 and the missing tomcat5 manager

2006-10-17 Thread David Smith
Install tomcat55-admin-webapps-5.5.17-4jpp.noarch.rpm See the JPackage site for further info. They created your rpms. --David John McCoy, Jr wrote: It does not appear so (see below). David could you shoot me a file list from the manager directory so I can do a more thorough search? Thanks.

Re: RHEL4 with App Server 3 and the missing tomcat5 manager

2006-10-17 Thread John McCoy, Jr
Ah sorry dumb sys admin, thanks Chuck will do. Caldarale, Charles R wrote: From: John McCoy, Jr [mailto:[EMAIL PROTECTED] Subject: Re: RHEL4 with App Server 3 and the missing tomcat5 manager Is it possible to build only the manager app from the tarball? You don't need to build anything

Re: possibility of different classpaths under the same web application

2006-10-17 Thread David Smith
You are stuck then. There is no vehicle to dynamically change the classpath based on some data field. I would strongly encourage you to invest a little time in refactoring your code base. Most modern IDEs have tools that make the process almost as simple as point and click. The simplest

RE: Tomcat 4.1.30 + SSI + CruiseControl

2006-10-17 Thread EJ Ciramella
So if I have something like this in my webapps web.xml: servlet-mapping servlet-nameSSIServlet/servlet-name url-pattern/artifacts/specificpathtopagebuild/*/url-pattern /servlet-mapping servlet-mapping servlet-nameArtifactServlet/servlet-name

RE: Tomcat 4.1.30 + SSI + CruiseControl

2006-10-17 Thread Caldarale, Charles R
From: EJ Ciramella [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 4.1.30 + SSI + CruiseControl servlet-mapping servlet-nameSSIServlet/servlet-name url-pattern/artifacts/specificpathtopagebuild/*/url-pattern /servlet-mapping servlet-mapping

RE: max_threads issue blocked threads (*warning* long thread dump attached)

2006-10-17 Thread Caldarale, Charles R
From: Derek Wormdahl [mailto:[EMAIL PROTECTED] Subject: max_threads issue blocked threads (*warning* long thread dump attached) We've been investigating an issue with a web application that is causing us problems. We are seeing the Tomcat server running out of available threads after

best way to setup servlet and filter for REST style URLs

2006-10-17 Thread Jason Novotny
Hi, I'm developing a web application and have a couple important constraints: + URLs should look nice and be bookmarkable in the style of REST e.g. http://localhost/myapp/mylayout/someaction/ + Should be relatively easy to move the WAR call it myapp.war to some other WAR e.g.

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Christopher Schultz
Warren, I am running Tomcat 5 with CGI enabled. I am attempting to use Net::SMTP to send e-mail, and it works fine from the command line, but not running as a CGI script. Can you describe the failure in any more detail? I do not have that option, and so I must ask if there is some

Re: best way to setup servlet and filter for REST style URLs

2006-10-17 Thread Michael Courcy
Hi, If you don't want to use a filter you should consider the urlrewrite capacity of apache. Here is a tech note that should help you http://www.amitysolutions.com.au/documents/URLRewriting-technote.pdf Of course if u use tomcat as a stand alone server it could be not adapted. Though It's

Re: best way to setup servlet and filter for REST style URLs

2006-10-17 Thread Hassan Schroeder
On 10/17/06, Jason Novotny [EMAIL PROTECTED] wrote: I'm unsure what you're trying to do -- + URLs should look nice and be bookmarkable in the style of REST e.g. http://localhost/myapp/mylayout/someaction/ The approach I started to take was to use a servlet filter that could take any

Re: Using a custom connector in Tomcat 5.5

2006-10-17 Thread Jacob Marcus
Thanks for the replies. Using the protocol=my.Class does help me give my own implementation of the ProtocolHandler for the Connector. The className attribute would have helped me specify my own implementation of the Connector itself. Removal of the className attribute means that I can no longer

Re: Tomcat unable to find the apr library

2006-10-17 Thread Michael Courcy
Hi, I follow your advice and compiled successfully doing $ ./buildconf --with-apr=/home/ovh/src/soft/apr-1.2.7 $ ./configure --with-apr=/home/ovh/src/soft/apr-1.2.7 $ make $ make install All that went fine, the last message of make install was that libraries where put in /usr/local/apr/lib

Error occurred during initialization of VM

2006-10-17 Thread Jim Douglas
Everything was ok last week, I just restarted Tomcat today and got this errror message, Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Tomcat 5.5.14 Apache 2.2 Fedore Core 5 jdk1.5.0_08 (No VM) java -version, from the command line returns, java

Help with isapi_redirect.properties

2006-10-17 Thread Woytasik Joe
I am trying to use IIS 6.0 as a front end for Tomcat 5.5 which I have working as expected. The issue I have is that I can only get it working using the registry settings and not using isapi_redirect.properties. We will have several sites and I want them to be independent of each other and I

RE: Error occurred during initialization of VM

2006-10-17 Thread Caldarale, Charles R
From: Jim Douglas [mailto:[EMAIL PROTECTED] Subject: Error occurred during initialization of VM Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object That's about as basic as you can get... jdk1.5.0_08 java -version, from the command line returns,

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Martin Gainty
As Tomcat is written in Java JSP and Servlet (with C code for native function calls to the underlying OS~this is at least for the majority on this list )This is the expertise we offer to you If its not written in Java such as fitting a CGI/CFM/PHP script or non Java class we're not saying its

Re: Error occurred during initialization of VM

2006-10-17 Thread Martin Gainty
Jim- I would re-download /and re-install 1.5 JVM/JDK http://java.sun.com/j2se/1.5.0/download-netbeans.html set your JAVA_HOME to the location where you have installed Java to when in doubt write down the Java install location directory and later set JAVA_HOME to that folder e.g. set

Re: max_threads issue blocked threads (*warning* long thread dump attached)

2006-10-17 Thread Derek Wormdahl
We initially started this project running on the Sun JVM but ran into an issue with the JVM aborting when doing a PDF conversion in the application. Some conflict with the iText libraries or something. JRockit was the only JVM that seemed to not have the problem. We haven't tried the Sun

Re: context.xml problem

2006-10-17 Thread Mark Thomas
Andre Prasetya wrote: I understand that it tried to find com.ricochet.im3.MTQueueProcessor, but i dont see it set on any xml (and for this project, we're expecting other listener). Any ideas where the config might reside ? the web.xml of your application conf/web.xml HTH, Mark

After stopping tomcat, the tomcat process still appears to be running

2006-10-17 Thread Elaine TING
Hi, This is what I have done: 1) use shutdown.sh to shut down tomcat 2) Now the website appears to be down 3) Use ps -ef | grep tomcat to check the processes, tomcat still appears to be running: ps -ef | grep tomcat root 21892 1 1 14:30 pts/21 00:00:17 /local/Java/bin/java

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Mike Klein
Perhaps tomcat has security policy preventing certain socket connections. JRE/JDK has a root/default policy...but tomcat may extend this. I think most servlet engines use mail.jar/activation.jar...perhaps tomcat is restricting certain sockets to these libraries. mike HALSTEAD SGT WARREN F

Re: wrong StandardContext

2006-10-17 Thread Mark Thomas
Caldarale, Charles R wrote: From: Oleg [mailto:[EMAIL PROTECTED] Subject: Re: wrong StandardContext I know declare docBase for every application as absolute path, docBase=E:/Webspace/domain1/ROOT This seem to fix the problem and my vrtual hosts do not try to load localhost webApp anymore.

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Warren Halstead
Ok, Here goes 1) I can from my server ping the mail server. 2) I can from the Windows command line, telnet to port 25 (SMTP) of the mail server. It works. 3) Using a packet sniffer I see #2 happening. 4) Using a packet sniffer I see nothing happening network wise

Re: SV: SV: SV: SV: Problem with filter and calling Perl-script with Tomcat 5.5.20

2006-10-17 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi, I can reach the request object and add a parameter, the problem is that the CgiServlet in Tomcat has been changed so my code doesn't work anymore. Regards Gunnar You are correct. The fix for bug 37285 is the root of your problems. You have a couple of

Re: Multipart form patch application problem

2006-10-17 Thread Mark Thomas
HALSTEAD SGT WARREN F wrote: Does anyone have a way for me to apply your patch to a already compiled system? Perhaps a compiled servlets-cgi.jar that already has the patch that they could send me? Any help you could provide is this matter would be greatly appreciated. You should be able to

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Mark Thomas
Mike Klein wrote: Perhaps tomcat has security policy preventing certain socket connections. JRE/JDK has a root/default policy...but tomcat may extend this. Not by default. I think most servlet engines use mail.jar/activation.jar...perhaps tomcat is restricting certain sockets to these

Re: Using a custom connector in Tomcat 5.5

2006-10-17 Thread Bill Barker
Jacob Marcus [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the replies. Using the protocol=my.Class does help me give my own implementation of the ProtocolHandler for the Connector. The className attribute would have helped me specify my own implementation of the

Re: CGI vs SMTP vs Tomcat

2006-10-17 Thread Wade Chandler
Hmm. Which user is Tomcat being run as? Are you running Tomcat as the same user as your are running the script? Wondering if maybe there is not some type of a port blocker installed on your system outside of the servers. Maybe when you ran your script or one previously maybe quite some time

Re: After stopping tomcat, the tomcat process still appears to be running

2006-10-17 Thread Christopher Schultz
Elaine, 1) use shutdown.sh to shut down tomcat 2) Now the website appears to be down 3) Use ps -ef | grep tomcat to check the processes, tomcat still appears to be running: I suspect that you are seeing another Tomcat process that is either left over from a previous configuration (say, you

Re: Database connection pooling errors in Tomcat 5.5.17

2006-10-17 Thread Saurabh Nanda
Thanks. I got it working: 1. Removed the oracle driver from WEB-INF/lib and put it in common/lib 2. Used the format of the URL given below: jdbc:oracle:thin:@address:port:schema -- but it's rather strange -- is this documented anywhere? When I was using the normal (non DBCP) method to connect to

IIS 6.0 Tomcat 5.0 Isapi_Redirect 1.2.19

2006-10-17 Thread Beard, Jason
Hello all, I'm configuring a new development server and I'm having some issues configuring the redirect. Versions: W2K3 Std SP1 Tomcat 5.0.28 IIS 6.0 Isapi_Redirect 1.2.19 Java 1.5.0_06 I have Tomcat installed as a service I have the isapi_redirect configured as a filter I have 1