Re: MOD_JK Redirection issues

2007-01-03 Thread Rainer Jung
OK, from the config I would guess, that you actually forward the request to tomcat, but get the 404 from there. What does the debug log tell you about the request in question? Small hint not related to your problem: delete the cachesize lines if you've got no special reason for them.

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
Thanks for the tip and I will delete the cachelines. I want jkmod to redirect all the requests to tomcat and it is working fine except for the request which has %2f in the url before the parameter part. For eg: http://loadbalancer.xxx.com/authenticate%2Fjagadeesh?key=12345678 will not be

Re: Manager deployment for ROOT.war not working properly.

2007-01-03 Thread David Delbecq
En l'instant précis du 01/03/07 01:21, Keith Bottner s'exprimait dans toute sa noblesse: Now this works perfectly if I do it from http://10.0.0.2/manager/html and use the Web interface to upload the ROOT.war. It deploys to / with no problems. But if I use the non HTML version it will not

Re: MOD_JK Redirection issues

2007-01-03 Thread Rainer Jung
Set JkLogLevel to trace and have a look at the JkLogFile. Jagadeesh wrote: Thanks for the tip and I will delete the cachelines. I want jkmod to redirect all the requests to tomcat and it is working fine except for the request which has %2f in the url before the parameter part. For eg:

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
I changed the loglevel to TRACE, But I couldn't find any new log file. The access_log now shows 61.17.42.35 - - [03/Jan/2007:03:48:05 +] GET /APIServer/authz/list/master/AB?apikey=WEB_INTERFACE_API HTTP/1.1 200 1350 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206

Re: Embedding Tomcat in a standalone JAR

2007-01-03 Thread Vacuum Joe
I ended up going with Jetty. It was not too difficult to write my own handlers for content within Jetty. It didn't have any built-in handlers where I could give it a URL as a base, but I was able to write a primitive static content handler and a very primitive Servlet handler which are enough

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
Further to my last mail, whenever I try accessing this url http://xxx.xxx.xxx/APIServer/authz/list/master%2fAB?apikey=WEB_INTERFACE_API the browser shows exactly the below response Not Found The requested URL /APIServer/authz/list/master/AB was not found on this server. Apache/2.2.2 (Fedora)

disable war deployment

2007-01-03 Thread Stephan Schöffel
hi, is there a way to disable deployment of war files dropped into the appBase? i dont mean the autoDeploy attribute. i need tomcat to not deploy any war files at all... gtx stephan - To start a new topic, e-mail:

Re: MOD_JK Redirection issues

2007-01-03 Thread David Smith
I can see how the server might decode %2f in the path to /. The % character is a special character in urls and should be decoded. If you really mean for the url to literally include '%2f' as part of the file name, I would think the url should be:

Re: disable war deployment

2007-01-03 Thread David Delbecq
Is the purpose to prevent users having access to file system from adding wars to tomcat? If yes, just use the OS to forbid write access to appBase for any user and also protect work directory from all users but tomcat. En l'instant précis du 01/03/07 11:22, Stephan Schöffel s'exprimait dans toute

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
i do need the write access to the tomcat dirs. but i need tomcat to not start apps i dont want it to. David Delbecq wrote: Is the purpose to prevent users having access to file system from adding wars to tomcat? If yes, just use the OS to forbid write access to appBase for any user and also

Re: disable war deployment

2007-01-03 Thread David Delbecq
See http://tomcat.apache.org/tomcat-5.5-doc/config/host.html, the deployOnStartup, autoDeploy and deployXML properties are probably what you need to play with. En l'instant précis du 01/03/07 12:01, Stephan Schöffel s'exprimait dans toute sa noblesse: i do need the write access to the tomcat

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
i had a look at those already and tried out different combinations. yet there is no way (obvious to me) to prevent tomcat from starting war files. i could use the deployOnStartup attribute but then i would prevent tomcat from starting apps that are not packed in a war, too. i had to start them

Re: disable war deployment

2007-01-03 Thread Gregor Schneider
Hi Stephan, the real question here is: what do you want to achieve? I'm afraid you try to put the cart before the horse My guess is that you should take a look at what David wrote: Use your OS to prevent unauthorized access to your file-system. So I suggest you're letting us know what

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
Thanks David. With the solution that you have suggested, I have to encode the url twice to make sure '%' in '%2f' is again encoded. I do agree with you in that special characters like '%' shouldn't be part of the request URI, but considering the fact that I am using a REST implementation where

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
the problem is easy: i have to distribute the tomcat with preinstalled apps. i havae to make sure the tomcat only loads apps that i delivered with it. now im trying to delete all ways loading apps. only apps in dir-structures should be loaded (ie with the deployDirectory() method, which i

Re: Manager deployment for ROOT.war not working properly.

2007-01-03 Thread Mark Thomas
Keith Bottner wrote: I do believe that this is a legitimate bug but I need some way to workaround the issue since I can't wait to solve this until the next version of Tomcat is released. It is worth entering this in Bugzilla, along with any work-around, so it gets looked at. Mark

Re: disable war deployment

2007-01-03 Thread Mikolaj Rydzewski
Stephan Schöffel wrote: the problem is easy: i have to distribute the tomcat with preinstalled apps. i havae to make sure the tomcat only loads apps that i delivered with it. now im trying to delete all ways loading apps. only apps in dir-structures should be loaded (ie with the

Re: disable war deployment

2007-01-03 Thread David Delbecq
En l'instant précis du 01/03/07 13:05, Stephan Schöffel s'exprimait dans toute sa noblesse: the problem is easy: i have to distribute the tomcat with preinstalled apps. i havae to make sure the tomcat only loads apps that i delivered with it. And how is tomcat supposed to make the difference

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
that is another problem: i dont want to do that, i have to do that. as a requirement by my employer. the idea of not running other apps in my tomcat has juristic backgound... Mikolaj Rydzewski wrote: Stephan Schöffel wrote: the problem is easy: i have to distribute the tomcat with

Re: disable war deployment

2007-01-03 Thread Mikolaj Rydzewski
Stephan Schöffel wrote: the idea of not running other apps in my tomcat has juristic backgound... IMHO it should be clarified/solved within licensing terms, not within the software. In other case, I would run custom embeded tomcat or extend default host class. -- Mikolaj Rydzewski [EMAIL

Re: disable war deployment

2007-01-03 Thread Gregor Schneider
Hi Stephan, well, that's awkward. Even if you are able to disable automatic deployment, anybody knowing his ways around Tomcat will be able to change the settings again thus make Tomcat load the other apps :( my idea would be to write a valve checking which apps are installed: If any other

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
i already altered HostConfig to fit my needs. just wanted to know if there is a way to disable war-deployment. the way like using deployXML to prevent tomcat deploy an app based on context.xml file... David Delbecq wrote: En l'instant précis du 01/03/07 13:05, Stephan Schöffel s'exprimait

Re: disable war deployment

2007-01-03 Thread Stephan Schöffel
i know this solution is anything but not secure. but the main point iin doing this is a juristic question. if someone is able to put a war file into the tomcat installed to your computer he can do probably anything he wants to your computer. but if he is able to do so, this security break is

Re: disable war deployment

2007-01-03 Thread Mikolaj Rydzewski
Stephan Schöffel wrote: if someone is able to put a war file into the tomcat installed to your computer he can do probably anything he wants to your computer. Use security manager. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature

Re: disable war deployment

2007-01-03 Thread David Delbecq
En l'instant précis du 01/03/07 14:07, Mikolaj Rydzewski s'exprimait dans toute sa noblesse: Stephan Schöffel wrote: if someone is able to put a war file into the tomcat installed to your computer he can do probably anything he wants to your computer. Use security manager. And run tomcat

Re: disable war deployment

2007-01-03 Thread Mikolaj Rydzewski
David Delbecq wrote: And run tomcat within a a dedicated account having limited access to system. Are there any people who run tomcat as root? I can't believe! -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature

Re: disable war deployment

2007-01-03 Thread Leon Rosenberg
On 1/3/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: David Delbecq wrote: And run tomcat within a a dedicated account having limited access to system. Are there any people who run tomcat as root? I can't believe! there are people who run ambigious statement they've seen in some boards on

IllegalStateException

2007-01-03 Thread Leon van der Merwe
I am getting the above exception thrown all over my log files and I am not sure what it means... Does anyone know what this means? 20061113 09:54:33 ERROR PageTemplateManager java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteRespon

Re: Embedding Tomcat in a standalone JAR

2007-01-03 Thread Martin Gainty
Hi Joe- http://www.onjava.com/pub/a/onjava/2006/06/14/what-is-jetty.html?page=1 The tradeoff seems to be with tomcat you can teach your grandmother to load and deploy a webapp war But if your grandmother likes to program she can programmatically instantiate container(s), getContext(s) and

RE: installing the admin on 5.5

2007-01-03 Thread Fran Varin
Hi, I've read through all of the post material I can find on this topic and still cannot seem to get the admin app deployed correctly. I have unzipped the content to the directories as described in this post. When I start tomcat and try to access the admin application I received the following

Re: IllegalStateException

2007-01-03 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#illegalstate -Tim Leon van der Merwe wrote: I am getting the above exception thrown all over my log files and I am not sure what it means... Does anyone know what this means? 20061113 09:54:33 ERROR PageTemplateManager java.lang.IllegalStateException

Re: IllegalStateException

2007-01-03 Thread David Smith
Shooting from the hip here, it appears your web code is attempting to send the client a redirect after some response data has been sent to the client. You can't redirect after sending a response. Can you offer more context regarding what code is throwing this and what version of tomcat? --David

Re: installing the admin on 5.5

2007-01-03 Thread Martin Gainty
Good Morning Fran /***obtain admin distro / download jakarta-tomcat-5.5.7-admin.zip from http://archive.apache.org/dist/tomcat/tomcat-5/archive/v5.5.7/bin/ to a $TEMP folder /*** get commons-modeler***/ http://jakarta.apache.org/site/downloads/downloads_commons-modeler.cgi and copy to

RE: installing the admin on 5.5

2007-01-03 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: installing the admin on 5.5 /***obtain admin distro / download jakarta-tomcat-5.5.7-admin.zip from http://archive.apache.org/dist/tomcat/tomcat-5/archive/v5.5.7/bin/ to a $TEMP folder Please use a current Tomcat level, not

RE: installing the admin on 5.5

2007-01-03 Thread Caldarale, Charles R
From: Fran Varin [mailto:[EMAIL PROTECTED] Subject: RE: installing the admin on 5.5 Hi, I've read through all of the post material I can find on this topic and still cannot seem to get the admin app deployed correctly. The usual problem is starting with the Windows .exe download of the

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
With the solution that you have suggested, I have to encode the url twice to make sure '%' in '%2f' is again encoded. I do agree with you in that special characters like '%' shouldn't be part of the request URI, but considering the fact that I am using a REST implementation where the resources

Moving Tomcat

2007-01-03 Thread Steve Ingraham
I have a website running with jakarta-tomcat-5.5.9. The server this website resides on is going to have to be rebuilt so I am needing to move everything off of it onto another server. I know very little about tomcat, ok, I really know nothing about tomcat. This website was created before I

Re: Moving Tomcat

2007-01-03 Thread Mikolaj Rydzewski
Steve Ingraham wrote: I have a website running with jakarta-tomcat-5.5.9. The server this website resides on is going to have to be rebuilt so I am needing to move everything off of it onto another server. I know very little about tomcat, ok, I really know nothing about tomcat. This website

Re: Moving Tomcat

2007-01-03 Thread EDMOND KEMOKAI
First I'll suggest you backup your entire server, it is possible for instance if your server is running Linux that the webapps folder only contain the links to the actual webapp folders residing somewhere else on the filesystem..So again BACKUP before doing anything. About a month ago someone on

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: Moving Tomcat I believe that all of the content for the webpage(s) reside in /usr/local/src/jakarta-tomcat-5.5.9/webapps. That's where they are by default. However, apps can be deployed outside of the Tomcat directory tree by placing

Re: Moving Tomcat

2007-01-03 Thread EDMOND KEMOKAI
Hmm Interesting, the person was from Oklahoma Court, is that you again? On 1/3/07, EDMOND KEMOKAI [EMAIL PROTECTED] wrote: First I'll suggest you backup your entire server, it is possible for instance if your server is running Linux that the webapps folder only contain the links to the actual

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Subject: RE: Moving Tomcat From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: Moving Tomcat I believe that all of the content for the webpage(s) reside in /usr/local/src/jakarta-tomcat-5.5.9/webapps. That's where they

Re: Moving Tomcat

2007-01-03 Thread Hassan Schroeder
On 1/3/07, Steve Ingraham [EMAIL PROTECTED] wrote: I believe that all of the content for the webpage(s) reside in /usr/local/src/jakarta-tomcat-5.5.9/webapps. Lots of good answers already, but here's some others: First, use `ps -auxww | grep tomcat` to confirm the directory that Tomcat is

Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Gilbert, Antoine
Hi list I deploy an application WAR on a Tomcat 5.5 instance. This application use Log4j (via commons-logging) and create some logs in a file within the related Web app directory (/webapps/myWebApp). The file is defined by a file appender tag in my log4j.xml file. The problem is when I

Re: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Mikolaj Rydzewski
Gilbert, Antoine wrote: I deploy an application WAR on a Tomcat 5.5 instance. This application use Log4j (via commons-logging) and create some logs in a file within the related Web app directory (/webapps/myWebApp). The file is defined by a file appender tag in my log4j.xml file. It's a good

RE: installing the admin on 5.5

2007-01-03 Thread Fran Varin
Here are the steps that I have taken: 1) Download the zip for Tomcat 5.5.20 2) Download the zip for Java SE 1.4 compatibility (5.5.20) 3) Download the zip for the Admin tool (5.5.20) 4) Unzip Tomcat to -- c:\CMA_Dev\Servers\Tomcat - Base directory renamed from apache-tomcat-5.5.20 to

RE: installing the admin on 5.5

2007-01-03 Thread Caldarale, Charles R
From: Fran Varin [mailto:[EMAIL PROTECTED] Subject: RE: installing the admin on 5.5 snip Steps 1 - 5 looked o.k. 6) Unzip admin tool - copied admin directory and all of its contents to c:\CMA_Dev\Servers\Tomcat\tomcat-5.5.20\server\webapps (same location as manager and host-manager

RE: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Gilbert, Antoine
I'm not sure I understand. Calling shutdown within a finalize() of my objects ? Does this will cause problem to the other Web apps running within the tomcat instance ? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: January 3, 2007 10:52 AM To: Tomcat Users

RE: Moving Tomcat

2007-01-03 Thread Steve Ingraham
I believe you are talking about my post. I still have my job thank you. That particular issue was with another server and dealt with a .war file that was moved. I was successful in getting the file in question back onto the server. I do have a backup of this server. In reference to my posted

Re: Moving Tomcat

2007-01-03 Thread Hassan Schroeder
On 1/3/07, Steve Ingraham [EMAIL PROTECTED] wrote: . I am looking to copy everything in the /usr/local/src directory. So far I have not been able to see where anything associated with our website resides outside the /src directory. So, if that turns out to be the case could I be confident

RE: Moving Tomcat

2007-01-03 Thread Peter Crowther
From: Steve Ingraham [mailto:[EMAIL PROTECTED] So far I have not been able to see where anything associated with our website resides outside the /src directory. So, if that turns out to be the case could I be confident that everything for the website resides inside the /usr/local/src

Strange behaviour after upgrade to 5.5.20

2007-01-03 Thread Varley, Roger
Hi I've been undertaking a major tomcat upgrade, moving from Tomcat 4.1.31 running on Win NT with IIS 1.2 to Tomcat 5.5.20 running on Win 2003 Server with IIS 6.0. I'm just about there, but I've got a problem with a servlet that runs fine under the old setup but exhibits strange behaviour

RE: Moving Tomcat

2007-01-03 Thread Steve Ingraham
. I am looking to copy everything in the /usr/local/src directory. So far I have not been able to see where anything associated with our website resides outside the /src directory. So, if that turns out to be the case could I be confident that everything for the website resides

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: RE: Moving Tomcat Chuck mentioned the .xml files. From everything I can determine the catalina directory resides in /usr/local/src/jakarta-tomcat-5.5.9/conf. Yes, but the [appName].xml files may have docBase attributes in Context

Re: Moving Tomcat

2007-01-03 Thread EDMOND KEMOKAI
If your running fedora/redhat, it usually creates many symlinks and places the actual files into different folders. The only reason this is done I think is for flexibility. For instance with the server running my site now, I have my webapp in a different home directory and created a symlink

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: RE: Moving Tomcat There is a link in /usr/local for tomcat that directs to /usr/local/src/jakarta-tomcat-5.5.9. Is it important to have the tomcat link set up this same way on the new server? Is there a specific reason why it would

Re: Moving Tomcat

2007-01-03 Thread Hassan Schroeder
On 1/3/07, Steve Ingraham [EMAIL PROTECTED] wrote: There is a link in /usr/local for tomcat that directs to /usr/local/src/jakarta-tomcat-5.5.9. Is it important to have the tomcat link set up this same way on the new server? Is there a specific reason why it would have been set up this way?

RE: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Caldarale, Charles R
From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] Subject: RE: Undeploying problem with Tomcat 5.5 and Log4J I'm not sure I understand. Calling shutdown within a finalize() of my objects ? Does this will cause problem to the other Web apps running within the tomcat instance ? Please don't

RE: Moving Tomcat

2007-01-03 Thread Steve Ingraham
Chuck mentioned the .xml files. From everything I can determine the catalina directory resides in /usr/local/src/jakarta-tomcat-5.5.9/conf. Yes, but the [appName].xml files may have docBase attributes in Context entries that point to app locations outside of /usr/local/src; those must be

Matthew Lee from QAD Australia is out of the office

2007-01-03 Thread Matthew Lee
I will be out of the office starting 01/04/2007 and will not return until 01/09/2007. If you wish to report a new QAD Product support issue, you can log a call via our QAD ServicelinQ online service center at http://support.qad.com, so that our global support team can track this issue and

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: RE: Moving Tomcat Yes, but the [appName].xml files may have docBase attributes in Context entries that point to app locations outside of /usr/local/src; those must be individually checked and the targets copied if they reside

Re: MOD_JK Redirection issues

2007-01-03 Thread Rainer Jung
You need to use JkLogFile to configure a log file for mod_jk. This will tell us, what is happening. Have a look at the docs for mod_jk concerning JkLogFile. Have a look at http://tomcat.apache.org/connectors-doc/reference/apache.html Beware, that there is no default for this directive for

RE: Moving Tomcat

2007-01-03 Thread Steve Ingraham
Here is the website in question: http://www.okcca.net/online/ You can't tell where things are by looking from the outside; the URLs used to access the web site can be easily mapped to various locations in the file system by servlet-mappings, appBase and docBase attributes, filters, symbolic

from https to http?

2007-01-03 Thread John Doe
Hi, I new in the list. I hope can help somebody someday, but now I need a hand to solve this mail's subject question. I have configured a tomcat application to use https in a arbitrary jsp file (just for testing) when the user request it. So, the webapp's web.xml file contains the

Re: Moving Tomcat

2007-01-03 Thread EDMOND KEMOKAI
If you have the second server setup then you can install tomcat and copy the webapps folder over and see what happens. Once you start getting errors from the new server then you can troubleshoot until everything is fixed. It will be difficult to know if everything will work without testing. So

RE: Moving Tomcat

2007-01-03 Thread Caldarale, Charles R
From: Steve Ingraham [mailto:[EMAIL PROTECTED] Subject: RE: Moving Tomcat However, am I wrong in thinking that I can track down the location if I know where everything is residing? If you want an absolute answer, it's yes - you are wrong, at least if you're assuming that URL paths always

RE: installing the admin on 5.5

2007-01-03 Thread Fran Varin
Hi, thanks for responding...I'll address your questions based on my original step numbers: 6) Yes, I simply copied the admin directory to the server\webapps directory. So, all of the subordinate content came along as well. I did not modify anything underneath it. 8) I receive the same

Re: Moving Tomcat

2007-01-03 Thread Martin Gainty
I'm glad to hear that Steve! to recap-- Get same version JVM installed on new tomcat Get same version Tomcat installed (with manager and admin working) on new Tomcat copy over jars from $CATALINA_BASE/shared/lib/*.* copy over class files from $CATALINA_BASE/shared/classes/*.* if you see extra

RE: installing the admin on 5.5

2007-01-03 Thread Caldarale, Charles R
From: Fran Varin [mailto:[EMAIL PROTECTED] Subject: RE: installing the admin on 5.5 Hi, thanks for responding...I'll address your questions based on my original step numbers: The one you didn't answer is this: What happens if you start Tomcat from a command prompt with

Re: from https to http?

2007-01-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pablo, John Doe [Pablo] wrote: I have configured a tomcat application to use https in a arbitrary jsp file (just for testing) when the user request it. [snip] h1Index test/h1 a href=ssl/restricted.jspGo to SSL page/a [snip]

RE: from https to http?

2007-01-03 Thread Caldarale, Charles R
From: John Doe [mailto:[EMAIL PROTECTED] Subject: from https to http? _but_ when I want to go from restricted.jsp back to index.jsp using the anchor defined in it the URL is not replace by the standard http URL and then gets stuck with a https://localhost:8443/testSSL/index.jsp; To expand

Re: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Peter Pimley
Caldarale, Charles R wrote: Please don't use finalize() if you can possibly avoid it - it really bogs down the internal workings of the JVM. Hello. I'm new here :) I don't think you're even guaranteed that finalize will be called at all are you?

RE: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Caldarale, Charles R
From: Peter Pimley [mailto:[EMAIL PROTECTED] Subject: Re: Undeploying problem with Tomcat 5.5 and Log4J I don't think you're even guaranteed that finalize will be called at all are you? That is correct - no guarantee. The Finalizer concept is one of the relatively few bad ideas from the

RE: Undeploying problem with Tomcat 5.5 and Log4J

2007-01-03 Thread Tim Lucia
The following works fine for me, and has for years: public class ApplicationLifecycleListener implements ServletContextListener { private final static Log logger = LogFactory.getLog(ApplicationLifecycleListener.class); public void contextInitialized(ServletContextEvent sce) {

RE: Strange behaviour after upgrade to 5.5.20

2007-01-03 Thread Caldarale, Charles R
From: Varley, Roger [mailto:[EMAIL PROTECTED] Subject: Strange behaviour after upgrade to 5.5.20 I'm just about there, but I've got a problem with a servlet that runs fine under the old setup but exhibits strange behaviour under the new setup. I think you're going to have to be a bit less

Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
Hi Guys, I am new to all this so it could be a stupid question. In my server.xml I have setup a second host entry, to enable mapping of a particuar application to a virtual host in apache (via mod_jk2). The following seems to work ok, except or a possible bug: Host name=fish.org

RE: Problem setting server.xml host context field.

2007-01-03 Thread Caldarale, Charles R
From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Subject: Problem setting server.xml host context field. I have setup a second host entry, to enable mapping of a particuar application to a virtual host in apache (via mod_jk2). You do know that mod_jk2 has been deprecated for almost two years?

J2EE option missing in Eclipse environment for Servlet.

2007-01-03 Thread athula bogoda
Hi all, I install eclipse 3.2 with Tomcat 5.0 to run servlets under J2EE. I follow the steps as displayed in the demo by following link. http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoenix/demos/install-wtp/install-wtp.html But in Open Perspective J2EE option is not

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
Thanks for your reply! I was not aware that mod_jk2 was not the best one to use (I assumed 2=apache2). Rather than fixing my mess, how about I ask a different question! I am using the latest version of tomcat, I would like to have a single version of tomcat running on one port, which I can

Re: J2EE option missing in Eclipse environment for Servlet.

2007-01-03 Thread Mir Kasim Ali
Yes I too have same proble.If sombody have any solution regarding Eclipse 3.2 please suggeset ASAP But in 3.1 you can install plugins for J2EE available at MYECLIPSE.. On 1/4/07, athula bogoda [EMAIL PROTECTED] wrote: Hi all, I install eclipse 3.2 with Tomcat 5.0 to run servlets under J2EE.

URL rewriting For Session Tracking

2007-01-03 Thread jobs
Hi Everyone, I tried to find answer to this question on the archive and documentation, but I couldn't find a clear answer which is weird since I expected to find an answer easily. All I want to do is 'URL rewriting For Session Tracking'. Do I have to do this manually in my code (using

RE: Problem setting server.xml host context field.

2007-01-03 Thread Caldarale, Charles R
From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Subject: Re: Problem setting server.xml host context field. I would like to use virtual hosts so that: mainserver.com:8080/Application1/index.jsp maps to fish.com/index.jsp mainserver.com:8080/Application2/index.jsp maps to apples.com/index.jsp

RE: URL rewriting For Session Tracking

2007-01-03 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: URL rewriting For Session Tracking All I want to do is 'URL rewriting For Session Tracking'. I have to admit that I don't really understand your question. What do you need to do with sessions that Tomcat doesn't already do

Re: Problem setting server.xml host context field.

2007-01-03 Thread Mark Thomas
Jacob Rhoden wrote: Thanks for your reply! I was not aware that mod_jk2 was not the best one to use (I assumed 2=apache2). Rather than fixing my mess, how about I ask a different question! I am using the latest version of tomcat, I would like to have a single version of tomcat running on one

Re: J2EE option missing in Eclipse environment for Servlet.

2007-01-03 Thread Kristian Rink
athula bogoda schrieb: I install eclipse 3.2 with Tomcat 5.0 to run servlets under J2EE. [...] But in Open Perspective J2EE option is not available. Also Dinamic web Project option also not available. What's the wrong on it. Did you try to run eclipse -clean after installing the plugins?

Re: URL rewriting For Session Tracking

2007-01-03 Thread jobs
Thanks for your reply Chuck. I've been through the whole documentation and it hasn't helped. I'll try to make my question as clear as possible. Basically I have a webapp and I want to have a session for each user that connects to my server (just the usual servlet session that is created with

Presentation on Tomcat

2007-01-03 Thread Vijay Hatewar
Hi All I am very new to Tomcat and working as a QA Engineer , I have to deliver presentation on How web application can be deployed using tomcat , different configuration files and how they are used . basically I want to cover high level functional aspect . Please help me , as I am hardly

How can we use php with tomcat

2007-01-03 Thread Le Phuoc Canh
Can we use php with tomcat ? If anybody know about it, please help me. Thanks Best Regard.

RE: URL rewriting For Session Tracking

2007-01-03 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: URL rewriting For Session Tracking Basically I have a webapp and I want to have a session for each user that connects to my server (just the usual servlet session that is created with jsessionid). Do I have to wrap every link

Re: How can we use php with tomcat

2007-01-03 Thread dat
Hi, Tomcat is java container, can't use for PHP. If you like to use php and java in one web server, you have to make web server with following configure: Apache(php) + Tomcat (java) Can we use php with tomcat ? If anybody know about it, please help me. Thanks Best Regard.

Re: URL rewriting For Session Tracking

2007-01-03 Thread jobs
Your reply answered another question that I had. But I think I still haven't described my current question clearly. suppose I have 3 JSP pages in my application. -- first.jsp second.jsp third.jsp -- Now, in my first.jsp, I have nothing but 2 links to the other two JSP pages. If I want the

Re: Presentation on Tomcat

2007-01-03 Thread Andre Prasetya
Hi Vijay In my opinion, there are some ways to deploy application : 1. By war, using tomcat manager 2. By war, dropping on webapps 3. By classes, drop the folder to webapps (you might got problem in updating it, as i always got access problem, so i prefer war approach) 4. Using embedded tomcat,

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
I would like to use virtual hosts so that: mainserver.com:8080/Application1/index.jsp maps to fish.com/index.jsp mainserver.com:8080/Application2/index.jsp maps to apple.com/index.jsp Thanks for your patience, I have one final question I think, Based on previous posts, I have created inside

Re: How can we use php with tomcat

2007-01-03 Thread Hassan Schroeder
On 1/3/07, Le Phuoc Canh [EMAIL PROTECTED] wrote: Can we use php with tomcat ? Google is your friend: http://www.google.com/search?q=tomcat+php And the first entry: http://wiki.apache.org/tomcat/UsingPhp HTH! -- Hassan Schroeder [EMAIL PROTECTED]

RE: MOD_JK Redirection issues

2007-01-03 Thread Jagadeesh
I set the JkLogFile attribute and changed the JkRequestLogFormat to %w %V %T %B %q %U. Now whenever a request reaches the load balancer, the log file is getting updated and I am getting all the details like request header, status code etc. But when

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
Jacob Rhoden wrote: My question now however is, the manager to manage deployment of war files seems only to work for the first Host container with directory /usr/local/webapps. How do I make it work for both? Do I have to load two copies of the manager somehow? (I dont have much memory on this

Re: URL rewriting For Session Tracking

2007-01-03 Thread Bill Barker
Usually you would use a tag lib for this sort of thing. With struts, it would look something like: html:a href=second.jspsecond page /html:a [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Your reply answered another question that I had. But I think I still haven't described my