Re: enabling/disabling a servlet filter conditionally

2008-08-03 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | Can one dynamically disable a servlet filter under some conditions, from | within another preceding filter ? | | In other words, suppose I have a servlet configured approximately like | this

Re: Would like to monitor memory use offline

2008-08-03 Thread Mark Thomas
Richard S. Huntrods wrote: SO - my question - is there a relatively easy way to create something (say a servlet) to watch the stack *just like I can do manually using the manager application* but email me when the stack approaches the memory limits? Richard, Tomcat is open source so if you

Re: Tomcat 6 fail to detect a matching certificate and stuck in an infinite loop

2008-08-03 Thread Mark Thomas
Assaf Vizner wrote: Hi I have a .keystore file which doesn't matches the SSL definitions in the server.xml. tomcat 4 handled it well - it was unable to connect to it but the logs showed a friendly messages and the server continue working fine. However in tomcat 6 when I configured the

Re: Creating a new Service

2008-08-03 Thread André Warnier
Hi and Welcome to the list. I can't answer your questions below, but since you are new to the list, allow me to make a couple of predictions : The first thing you are going to be asked is under which OS you are running this, and from where you downloaded and installed Tomcat 5.5. So you

Re: Would like to monitor memory use offline

2008-08-03 Thread Ben Stringer
On Sat, 2008-08-02 at 19:18 -0700, Richard S. Huntrods wrote: SO - my question - is there a relatively easy way to create something (say a servlet) to watch the stack *just like I can do manually using the manager application* but email me when the stack approaches the memory limits? Hi

Tomcat 6 fail to detect a matching certificate and stuck in an infinite loop

2008-08-03 Thread Assaf Vizner
Hi I have a .keystore file which doesn't matches the SSL definitions in the server.xml. tomcat 4 handled it well - it was unable to connect to it but the logs showed a friendly messages and the server continue working fine. However in tomcat 6 when I configured the connectors in the

Creating a new Service

2008-08-03 Thread Robert Drescher
Hello everyone in this list! This is my first post in the users-help, after successfully installing Tomcat5.5 The default applications are running (in the /usr/share/tomcat5.5-webapps folder), but for testing my application, I'd like to move mine to a different location in the filesystem. Am I

RE: Creating a new Service

2008-08-03 Thread Martin Gainty
hello Robert- first looking at your present folder layout Not under tomcats control.. /usr/share/myapp/ Not under tomcats control.. /usr/share/myapp/webapp I would suggest reading how to configure your tomcat engine at /conf/server.xml

configure tomcat

2008-08-03 Thread Nadun Herath
I am a newbie to tomcat. I installed it ubuntu added the following line to bashrc file export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-api.jar When I run startup.sh it runs ok. Giving this message Using CATALINA_BASE: /usr/local/tomcat Using

Re: configure tomcat

2008-08-03 Thread Alessandro Ferrucci
Make sure none of the ports specified in conf/server.xml are being used. You can check this by running netstat -na | grep port if nothing comes up then the port is free. -- Signed, Alessandro Ferrucci On Sun, Aug 3, 2008 at 10:07 AM, Nadun Herath [EMAIL PROTECTED] wrote: I am a newbie to

Re: configure tomcat

2008-08-03 Thread Nadun Herath
Thanks a lot Alessandro When I type that command. this appeared tcp6 0 0 :::8080 :::* It seems tomcat working well isn't it.? What is wrong. Thanks again. On Sun, Aug 3, 2008 at 7:43 PM, Alessandro Ferrucci [EMAIL PROTECTED] wrote: Make sure none of the ports

Re: Creating a new Service

2008-08-03 Thread Johnny Kewl
- Original Message - From: Robert Drescher [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, August 03, 2008 12:27 PM Subject: Creating a new Service Hello everyone in this list! This is my first post in the users-help, after successfully installing Tomcat5.5 The default

Re: configure tomcat

2008-08-03 Thread Ravi Sharma
i guess u need to write localhost*:*8080 and not localhost*/*8080(See the : and / , and if its typo then may be some other problem) Ravi. On Sun, Aug 3, 2008 at 4:21 PM, Nadun Herath [EMAIL PROTECTED] wrote: Thanks a lot Alessandro When I type that command. this appeared tcp6

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Len Popp
There might be a simpler solution than migrating to a completely different OS. :-) What exactly do you mean by don't get retrieved? Does it throw an exception? Is there an error message in Tomcat's log? When you execute the query in MySQL, do you get exactly the same results as on the old

Re: example about deploy application from windows eclipse to linux Tomcat

2008-08-03 Thread Edoardo Panfili
Sam Wun ha scritto: Hi, Can anyone link me an example about deploy application from windows eclipse to linux Tomcat? Thanks The target operating system is not so important, I use eclipse on mac and deploy applications on linux. Simply copy the content of WebContent folder in a folder under

RE: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Glyn Thomas
Len, Thanks for your comments and interest. I hadn't thought to check the Tomcat log because the majority of the query appeared to execute, but there is an error being put into the log, see below. Note, this is with a slight variation on the query that I added in my earlier post, but has the

Re: configure tomcat

2008-08-03 Thread Alessandro Ferrucci
Well if something is listening on port 8080 when tomcat is not running, then that is the reason (port 8080 is already used), check tomcat logs under logs/catalina.out to see if there are any port conflict errors, or any other exceptions thrown at startup. -- Signed, Alessandro Ferrucci On Sun,

HEAD request to a Servlet

2008-08-03 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=46841 Posted on behalf of a User A request like: HEAD /SomeServlet?id=10471 HTTP/1.1 500 returns a 500 error. The log has the following: javax.servlet.ServletException: Original SevletResponse or wrapped original ServletResponse not

Re: HEAD request to a Servlet

2008-08-03 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=46841 Posted on behalf of a User That's exactly it. Thanks for pointing me in the right direction! Now I have to figure out which version of JBoss will be built around that version of Tomcat. In Response To: [EMAIL PROTECTED] wrote: A

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-08-03 Thread DIGLLOYD INC
I've been having the same issues others have been asking about. This discussion has been useful, but... === What is a viable workaround for switching to http from https once the user is authenticated? And is that idea unreasonable (see use case below). My main concern is that sending

Re: configure tomcat

2008-08-03 Thread Gabe Wong
Hi Nadun, Did you install a Tomcat version from tomcat.apache.org or is it from Ubuntu's repository? If the latter you will find much more success with the former. Also nothing good usually results from adding CLASSPATH with Tomcat Nadun Herath wrote: Thanks a lot Alessandro When I type

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Len Popp
That error looks like a communication problem between Tomcat MySQL, but I don't know why it would only happen when accessing certain columns. Perhaps someone who knows more about JDBC MySQL can explain what it means. -- Len On Sun, Aug 3, 2008 at 13:21, Glyn Thomas [EMAIL PROTECTED] wrote:

Re: enabling/disabling a servlet filter conditionally

2008-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | To talk in concrete terms, this here is filter B : | http://jcifs.samba.org/src/docs/ntlmhttpauth.html The details of Filter B are entirely irrelevant. | After filter B, I have my own filter C, which must remain in

Re: Session lost when switching from https to http after upgrade to Tomcat 6

2008-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: | What is a viable workaround for switching to http from https once | the user is authenticated? Simple: make sure that the user has a session before you switch into HTTPS mode. - -chris -BEGIN PGP SIGNATURE-

Re: example about deploy application from windows eclipse to linux Tomcat

2008-08-03 Thread Sameer Acharya
I have not used Eclipse so cant say about the same, Netbeans can build a war file (so Iam assuming Eclipse can do the same too) for a web project. You can just copy the war file into webapps folder of Tomcat if directory sharing is done else ftp it to that folder, depends on how your machines

Re: Would like to monitor memory use offline

2008-08-03 Thread Sameer Acharya
You can write a simple JSP which will run a freeMemory/totalMemory call in your JVM and possibly send a mail/log when the limits are reached. You could set a refresh interval and have this page refresh say every 5 minutes in your browser. Alternatively you can tweak with the manager app code.

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Sameer Acharya
Error seems to originate from the MySQL JDBC driver, weird if you say it was working earlier. Can you write a simple Java class to use the same driver to execute the same query and run it with same JDK version under which your Tomcat is running, see if its working or still throwing the error.