RE: mod_rewrite and mod_jk

2003-07-23 Thread Ori Tend
Simon, thanks, it did help. Looks like I missed it for some reason. Ori. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 6:34 PM To: Tomcat Users List Subject: RE: mod_rewrite and mod_jk Did you try this?

RE: mod_rewrite and mod_jk

2003-07-23 Thread Simon Pabst
np, four eyes see more than two ;-) At 09:31 23.07.2003 +0200, you wrote: Simon, thanks, it did help. Looks like I missed it for some reason. Ori. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 6:34 PM To: Tomcat Users List Subject: RE:

RE: Custom Homepage

2003-07-23 Thread Rene Vangsgaard ML
If you make your index file a JSP you can redirect to your servlet by doing this: %pageContext.getServletContext().getRequestDispatcher(/aservlet).forward( request, response);% /René -Original Message- From: Robert Wray To: Tomcat Users List Sent: 22-07-03 17:24 Subject: Re: Custom

Tomcat stops serving jsp under load

2003-07-23 Thread Euan Guttridge
Tomcat slows then eventually stops serving jsps under load (100+ concurrent users), html is always fine. The behaviour is sporadic and not easily reproducable but only occurs under load. Standalone (Coyote) 1.1.24, J2SDK1.4.1_03, Linux RH9. Anyone else experiencing this? Thanks Euan

LifecycleListener Do not work

2003-07-23 Thread Adi Katz
Hello, I implemented org.apache.catalina.LifecycleListener and registered it in server.xml in the following way: Context path=/myapp ... ... Listener className=mypackage.MyListener/ ... /Context Naturally mypackage.MyListener is in my webapp but it seems that when server.xml is being

Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-23 Thread achana
Hiya, thanks for the tip. When I ran ./configure --help, the option --enable-ssl is missing. So I tried this : ./configure --with-apache= --with-ssl= --prefix= So komme ich auch nicht weiter ! Those options are not available in configure !?! TIA :( Simon Pabst wrote: This should go to

Help needed in configuring tomcat 4.1.24

2003-07-23 Thread Sarika Inamdar
Hi All, We need to start tomcat with a user-defined port. To enable the same , in server.xml, we give the following !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector !-- WEB_PORT --port=8080

Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian

2003-07-23 Thread Christian Platzer
Hi there. I have a problem while starting the Tomcat Server. On my server runs a Debian woody system I've installed the 4.1.24 tomcat with jdk 1.4.1_02. Both are not the debian packages, but downloaded from the jakarta project and sun. the JAVA_HOME variable is set to /usr/lib/j2se/j2re1.4.1,

RE: Help needed in configuring tomcat 4.1.24

2003-07-23 Thread René Vangsgaard ML
The xml parser complains about the comment inside the tag. I think you have to use grep when you shutdown as well in order to remove the WEB_PORT comment. /René -Original Message- From: Sarika Inamdar To: [EMAIL PROTECTED] Sent: 23-07-03 11:53 Subject: Help needed in configuring tomcat

Deploy a .war and auto compile jsp in it?

2003-07-23 Thread Riaan Oberholzer
Is it possible to deploy an application and let Tomcat immediately compile all the jsp's in it? I don't want to pre-compile my jsps's and put them as such in the .war, as the maintenance of the web.xml becomes too tedious. I'd prefer to have Tomcat just compile all the JSP's when it is deployed,

Re: Custom Homepage

2003-07-23 Thread Tim Funk
Since its a jsp, 'jsp:forward page=/aservlet/' might be a little cleaner. -Tim Rene Vangsgaard ML wrote: If you make your index file a JSP you can redirect to your servlet by doing this: %pageContext.getServletContext().getRequestDispatcher(/aservlet).forward( request, response);% /René

Re: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian

2003-07-23 Thread Chris Halstead
Are you sure you've exported JAVA_HOME? -chris On Wed, 2003-07-23 at 06:02, Christian Platzer wrote: Hi there. I have a problem while starting the Tomcat Server. On my server runs a Debian woody system I've installed the 4.1.24 tomcat with jdk 1.4.1_02. Both are not the debian packages, but

RE: achieving a clients (browsers) certificate in a webapp

2003-07-23 Thread Karli Christoph (CSE)
this helped me a lot!! now i've installed the native jk connector from jakarta-tomcat-connectors-4.1.26 (where this bug is fixed) - and suddenly i achieve the clients certificate in my webapps.. thanks! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Mittwoch,

config help

2003-07-23 Thread Geoff Peters
Hi - I am currently in the process of deploying a web app using Tomcat 4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for a period of 3 - 4 hours, (probably a couple of thousand hits per minute), then never used again. I am wondering what exactly I should do to enhance

Re: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian

2003-07-23 Thread Christian Platzer
Hi chris. Thanks for response... Yes, if i try echo $JAVA_HOME it gives me the right path to the j2re1.4.2 directory. I've installed the j2re1.4.2-linux-i586.bin file from sun. Thanks Christian Chris Halstead ([EMAIL PROTECTED]) schrieb: Are you sure you've exported JAVA_HOME? -chris On Wed,

Re: config help

2003-07-23 Thread Riaan Oberholzer
You could set the max-connections in your dbpool (defined in the datasource) to quite a big number. If you have this low (eg 16), then chances are good that you will have a bottleneck here and clients will have to wait for a connection before they can continue. Check that the size you configure

Re: config help

2003-07-23 Thread Andoni
I would recommend you write a tiny java program that keeps opening connections to your database and counting the number of open connections. Then when it starts getting errors you can shut the connections but record the maximum number of open connections. Then since your period is so intense you

Sporadic error- JasperException

2003-07-23 Thread benoît ARCHEN
Hi everyone, I'm developping a web service application using Nusoap for the server side in php and Axis for the client side in java. The service make request to a MySQL database on a distant computer. I want to present the result in a portal (jetspeed) so I'm using jsp pages for the client side.

Re: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian

2003-07-23 Thread Chris Halstead
Having JAVA_HOME set and having it exported are two different things. Just before calling catalina.sh, execute the command 'export JAVA_HOME' and see if it helps... -chris On Wed, 2003-07-23 at 07:39, Christian Platzer wrote: Hi chris. Thanks for response... Yes, if i try echo $JAVA_HOME it

RE: config help

2003-07-23 Thread Geoff Peters
Andoni - thanks for the advice - someone else just mentioned the same thing in a reply (Riaan) - setting the datasource connection pool parameter - where would this parameter go? Is it a parameter at the server level config or application level? We have a MySQL person in house, I will ask her

RE: config help

2003-07-23 Thread Riaan Oberholzer
It sounds as if you are indeed opening/closing connections as you need them. You need to configure a datasource for your db connections: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Its fairly easy to set up and the gain is significant. I would say it is

Tomcat deployment problem: Exception processing TLD

2003-07-23 Thread Aurele Venet
Hola, we've just upgrade our tomcat server from 4.0.3 to 4.1.24 and after a few teething problems which I managed to fix, I am left with one app that refused to start up. This webapp worked fine in the previous installation. Here is the log error message I get, can any one be so kind as to

Re: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian

2003-07-23 Thread Christian Platzer
Nothing. Always the same problem I try to execute 'export JAVA_HOME', before catalina.sh or startup.sh, but always the same problem. A question. The file for the java JDK, is it the j2re1.4.2-linux-i586.bin, or the j2sdk1.4.2-linux-i586.bin? The sun site isn't very clearly BTW. I i try

RE: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread Bill Saez
Tim, Your example shows something I ran into when trying to get Tomcat to run though Apache- basically if I load the mod_jk.conf file dynamically I have problems with my virtual host listings in my httpd.conf. For example, I wanted different document roots for localhost, my LAN IP, and my

RE: config help

2003-07-23 Thread Geoff Peters
Thanks - I am plugging through that now. Another question - if I use the following as a basic connection creator / counter: public static void main (String[] args) { try{ for (int i = 0; i 1; i++){ Class.forName(org.gjt.mm.mysql.Driver);

tomcat web application manager question

2003-07-23 Thread kitty winslet
Hi.. I followed the book and wrote a simple index.html and hello.jsp and saved in my W2K tomcat server, path = C:\Tomcat\Tomcat-4-1-18\webapps\examples\ It works. After that I was asked to create hello.war file with this 2 files Q1)May I know why I need to create war file? Q2)Will JSP page

RE: config help

2003-07-23 Thread Shapira, Yoav
Howdy, Give at much memory to the heap as your server hardware will allow (-Xmx java option). I guess Windows doesn't have a ulimit-equivalent so you probably don't need to worry about that. Remove all unneeded connectors, valves, services from server.xml. Remove all unneeded webapps (examples,

Newbie : Probs tomcat 4.1.24 with apache 1.3 (sunOS)

2003-07-23 Thread Olivier Marie
Hello all Tomcat works alone (port 8080) Apache works too. When i try to display a JSP page, i obtain in mod_jserv.log : (EMERGENCY) ajp12[1]: cannot scan servlet headers (500) (ERROR) an error returned handling request via protocol ajpv12 I use jserv_module to permits apache to communicate

Re: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread Juan Nin
From: Bill Saez [EMAIL PROTECTED] Tim, Tim or Juan? :oP #My production site VirtualHost mydomain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache2/htdocs ServerName mydomain.com:80 ErrorLog logs/error_log CustomLog logs/access_log common

Re: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian -- SOLVED

2003-07-23 Thread Christian Platzer
Hi. I solved the problem. It was the JAVA SDK. Probably i've install the standart edition, not the jdk. Now works. Thanks a lot... Christian Chris Halstead ([EMAIL PROTECTED]) schrieb: Having JAVA_HOME set and having it exported are two different things. Just before calling catalina.sh,

RE: Help needed in configuring tomcat 4.1.24

2003-07-23 Thread Shapira, Yoav
Howdy, You have to be consistent in your grep/replace operation for startup and shutdown. Alternatively you can do it in one place, catalina.sh. I really dislike XML comments inside tags: they're confusing and hard to read. Yoav Shapira Millennium ChemInformatics -Original Message-

RE: how to track compilation errors

2003-07-23 Thread Shapira, Yoav
Howdy, The list of errors when you compile has the file name, so that's the first part of your question. The second part is CVS list element history: read the CVS docs. Yoav Shapira Millennium ChemInformatics -Original Message- From: bas perumal [mailto:[EMAIL PROTECTED] Sent:

Tomcat deployment under Unix

2003-07-23 Thread Blanchet Samuel
Hi all, I've just install Tomcat 4.1.24 under unix but when I launch it, my WAR files (in webapps directory) are not deployed. Could you help me ? Sam

RE: LifecycleListener Do not work

2003-07-23 Thread Shapira, Yoav
Howdy, You're on the right track: tomcat needs the class on startup. Put your listener (and any classes it needs) in $CATALINA_HOME/common/lib instead of your webapp's WEB-INF/lib. As always, I ask: can you justify using a Catalina-specific LifecycleListener and not a spec-standard

RE: Tomcat deployment under Unix

2003-07-23 Thread Shapira, Yoav
Howdy, I've just install Tomcat 4.1.24 under unix but when I launch it, my WAR files (in webapps directory) are not deployed. Could you help me ? Seeing as how you've already helped me with a bit of a laugh this morning, I feel obliged to return the favor ;) ;) What errors are in your log

RE: Probs running tomcat 4.1.24 + jdk 1.4.1_02 on debian -- SOLVED

2003-07-23 Thread Halstead, Chris
Yup, that would do it ;) Hi. I solved the problem. It was the JAVA SDK. Probably i've install the standart edition, not the jdk. Now works. Thanks a lot... Christian - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: tomcat web application manager question

2003-07-23 Thread Shapira, Yoav
Howdy, Q1)May I know why I need to create war file? Probably for practice: ask your book's author. Q2)Will JSP page works in pure apache or IIS server ? No. After that I decided to create index.html and hello.jsp file to a different directory C:\Tomcat\Tomcat-4-1-18\webapps\hello\ But

RE: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread Bill Saez
Hehe, sorry, Juan. Yeah, the same document root was a copy/paste. It does work, but forces me to go in by hand and change multiple virtual host entries if I need to change any structure here. mmhh, I don't get your point here, can you clarify? Basically, since I have multiple

Re: Newbie : Probs tomcat 4.1.24 with apache 1.3 (sunOS)

2003-07-23 Thread John Turner
Hi - First, the correct connector to use with mod_jserv is org.apache.tomcat.service.connector.Ajp12ConnectionHandler, not org.apache.ajp.tomcat4.Ajp13Connector (at least, for Tomcat 3.1 which I still use). If you're using Tomcat 4.1, my advice is to switch to mod_jk or mod_jk2. In my

Re: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread Juan Nin
From: Bill Saez [EMAIL PROTECTED] Maybe you can define this once at server (global) context using Directotry insted of Location: Directory /usr/local/tomcat/webapps/examples/juan Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory

RE: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread Bill Saez
Plus I figure I can create a file myself that I can include...that would keep things clean. Bill -Original Message- From: Juan Nin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:20 AM To: Tomcat Users List Subject: Re: My Tomcat + Apache + mod_jk HOWTO From: Bill

Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values suggested in http://jakarta.apache.org/tomcat/faq/misc.html#compile i.e.: _RUNJAVA=%JAVA_HOME%\bin\java _RUNJAVAW=%JAVA_HOME%\bin\javaw _RUNJDB=%JAVA_HOME%\bin\jdb _RUNJAVAC=%JAVA_HOME%\bin\javac but I'm still getting the HTTP Status 500 Error message:

Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values suggested in http://jakarta.apache.org/tomcat/faq/misc.html#compile Here is the full error log - I hope it helps your diagnosis. Thanks - Olumde ** ERROR * type Exception report message description The server encountered an

RE: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Shapira, Yoav
Howdy, Is this the full trace: there's no root cause?? Take the .java file for your .jsp from tomcat's work directory and try to compile it yourself. Yoav Shapira Millennium ChemInformatics -Original Message- From: Olumide [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:30

RE: config help

2003-07-23 Thread Geoff Peters
I guess my confusion arises from lack of complete understanding of what is going on. So, does Concurrent Users differ from requests? If a connection is opened in the init() method, and closed in the destroy method, would that not mean that the concurrency only applies to the amount of time

Controlling access to webapps from ajp13 connector

2003-07-23 Thread Nathan Ward
How can I configure Tomcat to filter requests received via the ajp13 connector on port 8009 based on whether the HTTP Request was received on a secure connection or not? I see the following in the souce code for tomcat4.CoyoteConnector class in the jakarta-tomcat-connector project: /**

Re: My Tomcat + Apache + mod_jk HOWTO

2003-07-23 Thread John Turner
That's what I do. I actually have an Include file for each VirtualHost, named hostname.conf. Then in httpd.conf, I have multiple includes: Include conf/host1.conf Include conf/host2.conf ... This makes it easy to change things using external system scripts and perl -pi -e given a list of

WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - Invalid DataSource

2003-07-23 Thread Michael Duffy
I've written a Web app that works fine under Tomcat 4.1.24. It uses an app-specific Context to set up a JNDI data source that works fine. It uses the org.apache.commons.dbcp.BasicDataSourceFactory and the Oracle 9.2 JDBC type IV thin driver. The Oracle JDBC driver JAR is in

Re: Controlling access to webapps from ajp13 connector

2003-07-23 Thread John Turner
Try isSecure() in the request object. John Nathan Ward wrote: How can I configure Tomcat to filter requests received via the ajp13 connector on port 8009 based on whether the HTTP Request was received on a secure connection or not? I see the following in the souce code for

RE: tomcat web application manager question

2003-07-23 Thread kitty winslet
Hi..Shapira and Dear All, May I know what do you mean by Simply create that context path under the webapps directory. You can also specify it in context.xml if you want, but that's not required. Can you explain in more detail? Do u mean add context entry in server.xml? or what? what is the

RE: config help

2003-07-23 Thread Riaan Oberholzer
Another tip: use PrepareStatements instead of normal Statements, as they get precompiled and cached and improve performance. If a connection is opened in the init() method, and closed in the destroy method, would that not mean that the concurrency only applies to the amount of time needed to

Re: WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - Invalid DataSource

2003-07-23 Thread Michael Duffy
Okay, I've got it. I moved the Commons and jdbc2_0-stdext JARs into TOMCAT_HOME/common/lib and everything is fine again. --- Michael Duffy [EMAIL PROTECTED] wrote: I've written a Web app that works fine under Tomcat 4.1.24. It uses an app-specific Context to set up a JNDI data source

Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
Sweet success at last !!! :-) I have tried the ENV values suggested in http://jakarta.apache.org/tomcat/faq/misc.html#compile i.e.: _RUNJAVA=%JAVA_HOME%\bin\java _RUNJAVAW=%JAVA_HOME%\bin\javaw _RUNJDB=%JAVA_HOME%\bin\jdb _RUNJAVAC=%JAVA_HOME%\bin\javac After making the ENV changes, I

Simple configuration seems to work ...

2003-07-23 Thread Jeff Howard
Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of what I did. Maybe this will help others and at the same time if there's something wrong or missing maybe

Re: Simple configuration seems to work ...

2003-07-23 Thread John Turner
Only comment is that with :8080 on the URL there is no need for Apache at all. John Jeff Howard wrote: Hi, I just finished setting up Red Hat 9, JDK 1.4, Apache 2.0.40 and Tomcat 4.1 with help from folks on the list. After all is said and done, it wasn't too bad. Here's a quick summary of

Re: WAR That Runs Fine Under Tomcat 4.1.24 Fails Under 4.0.6 - InvalidDataSource

2003-07-23 Thread Derek Chen-Becker
Funny, I had the opposite problem (worked under 4.0.6, died horribly under 4.1.24). Can you send a stack trace? I can't remember off the top of my head, but I think there's a way to inspect the JNDI tree under Tomcat. Derek Michael Duffy wrote: I've written a Web app that works fine under

RE: LifecycleListener Do not work

2003-07-23 Thread Adi Katz
Hi Yoav, Eventually I used a servlet spec listener which is better to do from a lot of reasons. Regarding your suggestion on putting the listener in common/lib, It is the firest thing I try but then I have the opposite problem: my listener cannot call classes from my web-app. ...It seems there

Re: Simple configuration seems to work ...

2003-07-23 Thread Jeff Howard
John, The webpages get called by http://ip address/path. There's no :8080 there. Don't I still need Apache for those pages? I only place I use :8080 is in some of the webpages when I want to process a servlet. Jeff John Turner wrote: Only comment is that with :8080 on the URL there is no need

Deploying a webapp with ant

2003-07-23 Thread Michael Kessler
Hi I try to deploy my webapp with ant to our server. I searched within the tomcat mailarchive and of course also google, but I found no working solution... My war file 'member.war' has a normal webapp structure, and I added context.xml to the META-INF folder with the content: context

Tomcat 5.0.4 fails to serve form-login-error page properly

2003-07-23 Thread Oleg S. Estehin
Hi I am porting my application from Tomcat 4.1.24 to Tomcat 5.0.4 (i.e. porting from Servlets 2.3/JSP 1.2 to Servlets 2.4/JSP 2.0). I have a servlet mapped to /auth that produces the page with login form. Form based authentication is set with the following fragment of the deployment descriptor:

RE: LifecycleListener Do not work

2003-07-23 Thread Shapira, Yoav
Howdy, Eventually I used a servlet spec listener which is better to do from a lot of reasons. Good. ...It seems there is an unbreakble wall between a web-app and tomcat and you can be either in this side or the other. You can be in the middle (common/lib), but all the classes that need

RE: Dynamic Context

2003-07-23 Thread Elisabeth Rotbach
Hi, 1) My goal is to store into th server files uploaded and the user must be able to consult these documents. My main application is deployed with a war. To consult document, I have found this solution : creation of an another webapp (docBase - store directory). 2) A webapp shouldn't create

Re: Deploying a webapp with ant

2003-07-23 Thread Aurele Venet
I managed to deploy using ant with the following script: target depends=init description=Declaration of new remove + install tasks. name=declare taskdef classname=org.apache.catalina.ant.RemoveTask classpath=${tomcatAntLib} name=remove/ taskdef

RE: achieving a clients (browsers) certificate in a webapp

2003-07-23 Thread Jay Garala
ROFL thats my bug! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 11:48 PM To: [EMAIL PROTECTED] Subject: Re: achieving a clients (browsers) certificate in a webapp Karli Christoph (CSE) [EMAIL PROTECTED] wrote in message news:[EMAIL

Please help

2003-07-23 Thread Pat Pomatto
Im running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these need to share a common images directory. Does anyone know how to do this? Ive tried numerous things and nothing works. Should the images be served by Tomcat or by IIS? Please help! Pat

RE: achieving a clients (browsers) certificate in a webapp

2003-07-23 Thread Jay Garala
The Apache - Tomcat - mod_ssl only works with Tomcat 4.0.6!! Sorry i totally forgot that i had put this bug in a long time ago. Wait til 4.1.26 comes out.. it is resolved there! Jay -Original Message- From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003

Re: Simple configuration seems to work ...

2003-07-23 Thread John Turner
If you have Apache, there's no need to use 8080 at all, and you can even disable that connector in server.xml. To do so, you would use a connector (mod_jk or mod_jk2). This gets loaded by Apache, and then you map various request URIs to be sent to Tomcat, such as /*.jsp and /servlet/*. Then

Re: Dynamic Context

2003-07-23 Thread Aurele Venet
Elisabeth, not sure what you use for uploading mechanism (i use the o-reilly classes - cos.jar) but just to say that we upload images to a dir on the server which are then included in a dyanmic page which is served by a jsp works fine! Not sure the content of your files, but if you

Re: Deploying a webapp with ant

2003-07-23 Thread Michael Kessler
With the install task the webapp is lost after a restart, so there is no use for me... thanks On Wed, 2003-07-23 at 16:55, Aurele Venet wrote: I managed to deploy using ant with the following script: target depends=init description=Declaration of new remove + install tasks.

Re: Please help

2003-07-23 Thread John Turner
Use IIS. Set up a new virtual host. Call it images.your-domain.com. In all web pages for all three apps, reference images.your-domain.com for image URLs. Problem solved. John Pat Pomatto wrote: Im running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. All of these

RE: Please help

2003-07-23 Thread Shapira, Yoav
Howdy, Since you already have a front-end (IIS) anyways, use it for the images. Have a directory on it /images, and have all your image URLs be /images/img1.gif etc., instead of /myApp1/images/img1.gif. One alternative is to have an images webapp on tomcat and use it to serve the images,

Re: Deploying a webapp with ant

2003-07-23 Thread Aurele Venet
then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in your servlet.xml file so at restart it will get redeployed! Michael Kessler wrote: With the install task the webapp is lost after a restart, so there is no use for me... thanks

RE: achieving a clients (browsers) certificate in a webapp - SOLVED

2003-07-23 Thread Karli Christoph (CSE)
thanks jay as i meantioned before, i've already solved it. 4.1.26 is out as an alpha-version and i took the jk-connector from this release with my tomcat 4.1.24 installation.. until now, it works really fine like that.. -Original Message- From: Jay Garala [mailto:[EMAIL PROTECTED]

Re: Simple configuration seems to work ...

2003-07-23 Thread Jeff Howard
Thanks for the explanation John. Jeff John Turner wrote: If you have Apache, there's no need to use 8080 at all, and you can even disable that connector in server.xml. To do so, you would use a connector (mod_jk or mod_jk2). This gets loaded by Apache, and then you map various request URIs

Re: Deploying a webapp with ant

2003-07-23 Thread Aurele Venet
sorry... I meant server.xml file! Aurele Venet wrote: then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in your servlet.xml file so at restart it will get redeployed! Michael Kessler wrote: With the install task the webapp is

Re: Deploying a webapp with ant

2003-07-23 Thread Michael Kessler
The Idea behind is to deploy a webapp automatically on severals servers in the cluster, manual deploy is not the problem ;-) On Wed, 2003-07-23 at 17:15, Aurele Venet wrote: then copy the war to your webapps dir first and make an install from there! Make sure autodeploy war file is set in

RE: Please help

2003-07-23 Thread Kannan Sundararajan
Are you using Tomcat and IIS in same box or different box. -Original Message- From: Pat Pomatto [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 10:53 AM To: 'Tomcat Users List' Subject: Please help I'm running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and

heap size

2003-07-23 Thread Geoff Peters
Yoav - Where do you specify heap size? I understand it is a parameter of the java command, but is in a Tomcat startup script somewhere? Or do I just execute it at the command line? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 9:55 AM

RE: heap size

2003-07-23 Thread Shapira, Yoav
Howdy, Yoav - Where do you specify heap size? I understand it is a parameter of the java command, but is in a Tomcat startup script somewhere? Or do I just execute it at the command line? Add JAVA_OPTS='-Xmx512m' to $CATALINA_HOME/bin/catalina.sh on unix. On windows, you can do this with a

Re: Deploying a webapp with ant

2003-07-23 Thread Aurele Venet
of course, sorry I meant copy it automatically using the ant script! Build the war file using ant and tell it to build it say in /tmp, then transfer it (using the copy task) to your webapp dir, and finally install it! All feasable under ant. If /tmp and weapps/ are not on the same network,

Tomcat Command Line Configuration

2003-07-23 Thread Oozy
Is there a command-line tool for Linux to configure Tomcat - to perform the functions of the admin webUI? I would like to find a way to modify the server.xml file via the command line so that such modifications could be scripted - this could be done w/ sed/awk/perl but those tools do not seem

Re: Deploying a webapp with ant

2003-07-23 Thread Michael Kessler
ok... I see... it's perhaps easier to copy the war file with ant to the remote machine than using the catalina ant tasks... thanks On Wed, 2003-07-23 at 17:38, Aurele Venet wrote: of course, sorry I meant copy it automatically using the ant script! Build the war file using ant and tell it

RE: Tomcat Command Line Configuration

2003-07-23 Thread Shapira, Yoav
Howdy, There are ant tasks that do the manager webapp's functions (install / deploy / stop / start a webapp, etc.). Equivalents don't exist for the admin webapp that I'm aware of. If you were to do it in java, via Ant, it wouldn't be too difficult. Yoav Shapira Millennium ChemInformatics

problems reading global environment variables.

2003-07-23 Thread David Chamberlin
I'm having problems reading global environment variables from a servlet running in a tomcat container. I'm creating a datasource and several environment variables through the tomcat admin screens and then trying to access them from my web application with no success. Any information or

RE: problems reading global environment variables.

2003-07-23 Thread Shapira, Yoav
Howdy, try { m_repository = (String) m_envCtx.lookup(opensite.repository); Out of curiosity, do you get the same error if you lookup(/opensite.repository) ? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and

War files don't work

2003-07-23 Thread Rick Roberts
My server.xml contains this: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- NSFS Context -- Context path=/nsfs docBase=nsfs debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=nsfs_log. suffix=.txt

RE: heap size

2003-07-23 Thread Geoff Peters
Thanks Yoav - one last dumb question and I will leave you alone! So by adding that to my environment variables list, Tomcat knows to add it as a startup parameter for Java? Or do I need to specify something else in the setclasspath.bat file as well?? Is there an easy way to check the JVM to see

Pb Form authentication

2003-07-23 Thread v.siguier
Hello, I work with Tomcat 4.1.24 and I have a problem with authentication (I use DataSourceRealm) at runtime. On login page, if I enter login - password existing in database with the rigth role to access to the specified ressource it is OK (the targeted page is displayed). The problem happens

RE: heap size

2003-07-23 Thread Shapira, Yoav
Howdy, Thanks Yoav - one last dumb question and I will leave you alone! So by There's more than one in this email ;) And no question is dumb (although that assertion is frequently tested on this list). adding that to my environment variables list, Tomcat knows to add it as a startup parameter

RE: War files don't work

2003-07-23 Thread Shapira, Yoav
Howdy, The error I get looks like this: HTTP Status 404 - /nsfs type Status report message /nsfs description The requested resource (/nsfs) is not available. Apache Tomcat/4.1 What the root cause and full stack trace? Yoav Shapira This e-mail, including any attachments, is a

RE: Tomcat 5.0.4 fails to serve form-login-error page properly

2003-07-23 Thread Raible, Matt
I have the following in my web.xml and it works fine for me on 5.0.4: login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/login.jsp?error=true/form-error-page /form-login-config

Re: problems reading global environment variables.

2003-07-23 Thread David Chamberlin
Nope, doesn't seem to have any effect, nor does: new InitialContext().lookup(java:comp/env/opensite.repository); - david. Shapira, Yoav wrote: Howdy, try { m_repository = (String) m_envCtx.lookup(opensite.repository); Out of curiosity, do you get

Again... cannot completely shutdown tomcat with embeded RMIRegistery

2003-07-23 Thread mourad jaber
Hi, I have a shutdown pb with tomcat4.1.24rpm ( linux kernel 2.4.21 and j2se1.4.2 ) since I'm using rmiregistery... To force RmiRegistery to unload, I implement a loop to empty completely the registery by unbinding bound objects and I try to unexport all objects I can I read the content of

Re: Pb Form authentication

2003-07-23 Thread Rick Roberts
If I understand the question, then: It sounds like you are trying to navigate directly to login.jsp which your not suppose to do. Reason: j_security_check intercepts your request and checks to see if your are currently authorized to go to that URI. If you are then it forwards you to that

Re: War files don't work

2003-07-23 Thread Rick Roberts
2003-07-23 10:04:43 WebappLoader[/nsfs]: Deploying class repositories to work directory /var/tomcat4/work/Standalone/localhost/nsfs 2003-07-23 10:04:43 WebappLoader[/nsfs]: Reloading checks are enabled for this Context 2003-07-23 10:04:43 ContextConfig[/nsfs]: Missing application web.xml, using

Re: War files don't work

2003-07-23 Thread John Turner
2003-07-23 11:09:30 StandardContext[/nsfs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/tomcat4/webapps/nsfs does not exist or is not a readable directory Seems self-explanatory to me. John Rick Roberts wrote: 2003-07-23 10:04:43 WebappLoader[/nsfs]:

HELP! Client Authentication in Tomcat 4.1.24

2003-07-23 Thread Farrell, Patrick
I am attempting to use client certificate authentication with Tomcat 4.1.24, but each time I connect via a browser (Internet Explorer) Tomcat indicates that it is unable to authenticate with the provided credentials. My client certificate is a personal certificate from Thawte. The

Re: Pb Form authentication

2003-07-23 Thread v.siguier
I am agree with you but I don't try to access directly to login.jsp, I call the site presentation page index.jsp. Following are my to authentication jsp pages : Login.jsp : - html head titleLogin Page for Examples/title body bgcolor=white form method=POST action='%=

RE: heap size

2003-07-23 Thread Dhruva B. Reddy
I recently discovered these two methods, and was wondering how accurate they are. I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK 1.4.1_03-b02. Nowhere in the startup scripts do I see it specified how much memory to use (i.e., with the -Xmx flag). When I call

Re: Problems compiling tomcat

2003-07-23 Thread Jon Wingfield
It is finding the jar, otherwise you'd be having a completely different error message. ;) The error implies you are compiling against a different version of the commons-fileupload component than the 4.1.24 src was written against. The 4.1.24 binary release bundled

  1   2   >