Re: setting opts to avoid OutOfMemory errors

2003-12-19 Thread David Rees
David Strupl wrote: Sorry but how do I set the fork attribute of the JspServlet to true? Look at Tomcat's conf/web.xml, and you will see it. This seems like an obvoius memory leak in somewhere IMHO: snip Is this how is tomcat supposed to work (on SUN's JDK)? Your script will cause TC to run OOM

Re: How can I compile Mod_jdk2 ?

2003-12-19 Thread Christopher Schultz
William, I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-apache2=/usr/local/apache2\ --with-apach2-include=/usr/local/apache2/include\ --with-apache2-lib=/usr/local/apache2/lib \ then in the end of configure process, I

Realms question

2003-12-19 Thread Riaan Oberholzer
Hi, I have a web-app that defines different roles, so a user do not have access to all jsp/servlets in the web-app. Depending on his role. An admin user e.g. can see pages to edit data, while a 'normal' user can only view it. What's the best way to enforce this security? I am no doing it by

indtall mod_jk problem

2003-12-19 Thread dhayalan
Hi all, Thanks the work goes fine with the information what we were posted in this group ,i hope every one feel,no i am intalling mod_jk by using jakarta-tomacat-connectors-4.0.16 the command i given is usr/local/src :$tar xvfz jakarta-tomacat-connectors-4.0.16

Re: rtexprvalue ignored? - fixed

2003-12-19 Thread Rodrigo Ruiz
Hi, just a tip for portability: WebSphere JSP parser will complain when you use an expression containing the same string delimiter used for the attribute. This means that attr=%= aaa % will produce a compiler error. To avoid this, simply use a different quotation marks for the attribute

Broken pipe exception

2003-12-19 Thread Markus Brigl
Hi I received the following exception! We are using Tomcat 4.1.18, jre1.3.1_09 and explorer 6.0.2 The exception happens always if I'm adding elements to a table and I'm refreshing the data from server. The size of this list doesn't matter because I happens just with short lists: 2003-12-12

how to create a web and where to store the jsp and html files in APache with tomcat via mod_jk

2003-12-19 Thread dhayalan
Hi all, I am new ly installed apache and tomcat with mod_jk i would like to know where to create web and where to store JSP files and Html weather In Apache of Tomcat . how do i change server name in httpd.conf file Help me Regards Dhayalan.G

cluster problems on tomcat5.0.16

2003-12-19 Thread moch
tomcat-userHello, I am having trouble with tomcat 5.0.16 cluster under the following config: Apache2.0.48 + jakarta-tomcat-connectors-jk2.0.2-win32-apache2.0.43 :2 Tomcat servers on 1 machine. I just uncomment the Cluster and Valve in server.xml, and change 8005 to 11005, 8009 to 11009. add

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-19 Thread Tony Colson
I have filed this bug with Tomcat under Bugzilla as bug #25508. -Original Message- Sent: Saturday, December 13, 2003 12:09 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: JNDI comp namespace - Tomcat Developers Please Read I narrowed down the problem a bit more. I found 2

Re: Further details - RequestDispatcher in servlet is not working

2003-12-19 Thread Basavaraju P. Banakar
Correct me if I am wrong Try Using... RequestDispatcher objReqDispatcher = getServletContext().getRequestDispatcher(strURL); instead of what u r using ... RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); ( in this case all the paths are relative to the calling

mixed up pages

2003-12-19 Thread J D
I have a loadbalancer + apache 2.0.48 (mod_jk) + (JBoss 3.2 + tomcat 4.1.24) setup. Occassionally there are reports of pages intended for one user being served to another. The pages are stateful and we are trying to log the incoming jsessionid and the outgoing jsessionid in both tomcat and

Re: precompile jsp

2003-12-19 Thread Hans Steinraht
That was it, I had the same har in my classpath, removed it ant jspc is running smoothly now. Thanks for (all) the Help I got, Hans On Wed, Dec 17, 2003 at 03:51:56PM +0100, Reinhard Moosauer wrote: Hi Hans, your problem is a version conflict. ant simply uses the wrong version of

jsp precompile problems

2003-12-19 Thread Riaan Oberholzer
I'm trying to precompile jsp's... I get a null pointer exception using the ant jspc taks, then the 2nd run it generates all .java files successfully (???). Now trying to javac these, I get: [javac] D:\projects\workdir\hv\obi\rts\service\jsp-compile\lidOpvragen_jsp.java:102:

Re: Apache SSL again... those variables are getting me mad!

2003-12-19 Thread Federico Fernandez Cruz
Thanks Bill! I will try but... I thought that mod_jk2 was the most advanced and that it was recommended for Apache 2. Moving to mod_jk 1.2.5 is a step back, isn't it? Thanks again! Bill Barker wrote: Can you try with mod_jk 1.2.5? I really don't know mod_jk2 that well to know if/how it

Re: Apache SSL again... those variables are getting me mad!

2003-12-19 Thread Federico Fernandez Cruz
Yes! It returns null. The servlet (jsp) that executes this code is running in Tomcat (obviously!) And the whole web application is mapped from apache to tomcat. The steps are the following: 1.- https://my-machine/UserMan (UserMan is a location in Apache that is mapped to my web application

Re: mod_jk installation

2003-12-19 Thread Federico Fernandez Cruz
Dahyalan, If you have installed apache 2.0.x you should use ./configure --with-apxs2=/usr/sbin/apxs And make sure you can access it with your user rights! Maybe you can do a su - root... Let me know if you have any problem... [EMAIL PROTECTED] wrote: Hello Federico,

RE: mod_jk installation

2003-12-19 Thread dhayalan
if i used what u given i ll getting checking for libtool... /usr/bin/libtool no apxs given checking for target platform... unix no apache given configure: error: Cannot find the WebServer error And also i am using apache 2.0 ver regards Dhayalan.G Original Message

Re: Realms question

2003-12-19 Thread Duncan Smith
If you switch to using a realm, you can use wildcards in the constraints so that it applies to a whole directory? Whether this is useful obviously depend on whether you have all your JSPs in the same directory or you could have a *.jsp wildcard to cover all jsps. Will depend on your naming

RE: Broken pipe exception

2003-12-19 Thread Edson Alves Pereira
Which database are you using? -- De: Markus Brigl[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: sexta-feira, 19 de dezembro de 2003 6:06 Para: [EMAIL PROTECTED] Assunto: Broken pipe exception Hi I received the following exception! We

Stupid servlet question...

2003-12-19 Thread Mikael Aronsson
Hi ! I have an application scope servlet and it works fine, but I would like to run it all the time as soon as tomcat starts, not just after the first use, is this possible ? Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Stupid servlet question...

2003-12-19 Thread Antony Paul
What is an application scope servlet ?. You can ask the container to initialize a servlet at container start up by setting the load-on-startup parameter to 1 in web.xml. like this. servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class

Re: Stupid servlet question...

2003-12-19 Thread Ben Souther
Add that to your servlet node in web.xml load-on-startup1/load-on-startup On Friday 19 December 2003 07:11 am, you wrote: Hi ! I have an application scope servlet and it works fine, but I would like to run it all the time as soon as tomcat starts, not just after the first use, is this

Re: Broken pipe exception

2003-12-19 Thread Markus Brigl
We use Versant 6.0.5 patch 10! Do you think the problem is connected to the database? Thank's for help! Markus Edson Alves Pereira wrote: Which database are you using? -- De: Markus Brigl[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:sexta-feira, 19 de

Re: setting opts to avoid OutOfMemory errors

2003-12-19 Thread David Strupl
David Rees wrote: David Strupl wrote: Sorry but how do I set the fork attribute of the JspServlet to true? Look at Tomcat's conf/web.xml, and you will see it. Aha. I see. I was editing only server.xml previously. This seems like an obvoius memory leak in somewhere IMHO: snip Is this how is

RE: Broken pipe exception

2003-12-19 Thread Edson Alves Pereira
Here we have Oracle9i and some time ago, we used to have this problem when too much connection were open with Oracle and some were too much network connection open. I donĀ“t know this database, but maybe its a path to solve it. -- De: Markus Brigl[SMTP:[EMAIL PROTECTED]

Re: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Tim Funk
You won't be able to get the servlet reference. A possibility is to define the filter multiple times with different parameters. For example, here is the same class name defined 4 times as 4 different filters. filter filter-namefilter1/filter-name filter-classmore.Cowbell/filter-class

RE: tomcat 4.1 on JDK1.4

2003-12-19 Thread Kal Govindu
Thanks for the reply, I will give that a try. Kal -Original Message- From: Howard Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:44 PM To: Tomcat Users List Subject: RE: tomcat 4.1 on JDK1.4 I had a similar problem, and although I don't feel that I figured it out

Re: mod_jk + Apache 1.3 Tomcat 4.1.29 on OSX (Panther)

2003-12-19 Thread Michael Griffith
Bill, Thanks for chiming in -- forgive me for being so stupid, but if both executed as root, wouldn't those permissions be default? I do think I have some sort of permissions problem -- my mod_jk log file is zero bytes (it is in /tomcat/logs/) and everything else looks like it is connecting up

RE: Broken pipe exception

2003-12-19 Thread Shapira, Yoav
Howdy, This is not related to your DB (at least, not likely to be related to your DB). It's probably your user closing the browser while the request is still processing. This issue in Coyote was fixed in Tomcat 4.1.24 I believe, so you should try upgrading to tomcat 4.1.29 or 5.0.16 and see

RE: Further details - RequestDispatcher in servlet is not working

2003-12-19 Thread Shapira, Yoav
Howdy, Just return; to exit the doGet method. Believe me, I know the doGet method returns void ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Teja Jo [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:17 PM To: Tomcat Users List Subject: RE: Further

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-19 Thread Shapira, Yoav
Howdy, See, it's messages like these that annoy me. And on a Friday, too. I responded to one of your messages saying there might be a startup error with one of your contexts causing this behavior. (http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2) But you never replied to that.

RE: setting opts to avoid OutOfMemory errors

2003-12-19 Thread Shapira, Yoav
Howdy, The fact that in the stock distribution the fork attrribute is set to false by default is IMHO not very good choice. Took me several days of headaches trying to find the leak in my code. When there is a disign choice slow versus crash for 1% of users I would choose slow and put into some

RE: Stupid servlet question...

2003-12-19 Thread Shapira, Yoav
Howdy, I'm not sure I understand your question, but there's no such thing as a stupid question ;) (Though a poorly-researched question is a different matter altogether). Others have shown how to get the server to initialize on server startup. What do you mean by run it all the time? BTW,

RE: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Shapira, Yoav
Howdy, I don't think this is possible, but I'm giving it a shot anyway. :) I'd like to get ahold of a servlet reference from within a filter. Is there a way? Your intuition is right in this case -- the above is impossible (using only the Servlet APIs -- it IS possible [though not trivial]

Re: Broken pipe exception

2003-12-19 Thread Markus Brigl
Hi, the client is an applet and the browser hasn't been closed! Could it be the applet goes in timeout? Because after this error on server side the applet throws a an exception if we refresh the data! could not send requests to server (root exception: java.io.IOException: First header field

architecture advice

2003-12-19 Thread Dale, Matt
Title: architecture advice I currently have a 6 processor Solaris box that we wish to turn into a tomcat application server for 250-500 users. My current plan would be to run two instances of tomcat 5 in a cluster with the session replication enabled and load balance between these two

FW: mod_jk + Apache 1.3 Tomcat 4.1.29 on OSX (Panther)

2003-12-19 Thread Michael Griffith
Here are the exact attributes of the /examples directory: drwxr-xr-x 6 griff staff 204 31 Jul 19:28 examples Am I missing something? Any other ideas? Thanks in advance! MG Bill, Thanks for chiming in -- forgive me for being so stupid, but if both executed as root, wouldn't those

RE: Broken pipe exception

2003-12-19 Thread Shapira, Yoav
Howdy, the client is an applet and the browser hasn't been closed! Could it be the applet goes in timeout? Because after this error on server side the applet throws a an exception if we refresh the data! Yup, that's a good theory. Have you experimented with the connectionTimeout parameters on

JK connector / Tomcat 5

2003-12-19 Thread Dale, Matt
Hi, Recently I tried to use the last beta release of Tomcat 5 before it went to stable and found that the connector appeared to not be implemented or if it was then it was differently from Tomcat 4. Does anyone know if this has now been implemented or can point me towards some documentation

Importing the Certificate?

2003-12-19 Thread Anibal Constante Brito
Please some one responde my question, I don't want somebody that just response Go to verisign, there is a chain certificate somewhere on the site (I do not remember where). I ask because I don't know, I want a somebody with really knowledge in the theme. Hello: A read this in ssl=howto: a..

RE: architecture advice

2003-12-19 Thread Shapira, Yoav
Howdy, I currently have a 6 processor Solaris box that we wish to turn into a tomcat application server for 250-500 users. My current plan would be to run two instances of tomcat 5 in a cluster with the session replication enabled and load balance between these two using the JK2 connector from

A weird issue

2003-12-19 Thread Cui Xiaojing-a13339
Hello All, Now my software platform as below: Windows 2000 JDK1.4.1_02 Tomcat 4.1.24 Sql Server 2000 I have a piece of code as below: private String jdbcDriverClass=sun.jdbc.odbc.JdbcOdbcDriver; private String jdbcURL=jdbc:odbc:cfdata; private String jdbcUserName=sss;

RE: architecture advice

2003-12-19 Thread Dale, Matt
Thanks, I think I'll take your advice, the apps guys are going to use J-Meter for app testing so I'll get them to use this for stress testing as well. Thanks for clearing up my misunderstanding, it came from my observations but they were hardly conclusive. Thanks Matt -Original

Re: Broken pipe exception

2003-12-19 Thread Tim Funk
The applet might be buggy and close the connection before the entire response is received. (Just a theory) -Tim Markus Brigl wrote: Hi, the client is an applet and the browser hasn't been closed! Could it be the applet goes in timeout? Because after this error on server side the applet

Re: A weird issue

2003-12-19 Thread Tim Funk
Try again with a type 4 jdbc driver to SQL server and NEVER use Sun's odbc bridge. http://jakarta.apache.org/tomcat/faq/database.html -Tim Cui Xiaojing-a13339 wrote: Hello All, Now my software platform as below: Windows 2000 JDK1.4.1_02 Tomcat 4.1.24 Sql Server 2000 I have a piece

EJB Compliance

2003-12-19 Thread Tony Colson
Is Tomcat 4.1 (or even 5.0) EJB Compliant? If so, is it compliant with the EJB 1.2 or 2.0 specification? I can't seem to find appropriate documentation. Also, in the Tomcat docs under the Context element, it doesn't even mention the Ejb element, but, of course, it is provided in the sample

java.net.BindException: Address in use: JVM_Bind

2003-12-19 Thread Prasad Dhulipala
Hi I am trying to simultaneously run two installations of Apache Tomcat 4.0.6 on my windows XP professional machine. Each is installed in a different folder. Each boots up and works fine independently. But when I try to start up one with the other instance already running, it fails with this

RE: architecture advice

2003-12-19 Thread Shapira, Yoav
Howdy, Not a problem, good luck, have a good weekend, be cogent, and keep us updated on how it goes ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:40 AM To: Tomcat Users List Subject: RE:

RE: A weird issue

2003-12-19 Thread George Sexton
Download the MS JDBC driver, and never use ODBJ-JDBC bridge. -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 8:36 AM To: Tomcat Users List Subject: A weird issue Hello All, Now my software platform as below: Windows 2000

RE: java.net.BindException: Address in use: JVM_Bind

2003-12-19 Thread Shapira, Yoav
Howdy, Change the server shutdown port, 8005 by default, in the 2nd installation's server.xml file so that they don't both try to bind the same port 8005. Yoav Shapira Millennium ChemInformatics -Original Message- From: Prasad Dhulipala [mailto:[EMAIL PROTECTED] Sent: Friday, December

RE: EJB Compliance

2003-12-19 Thread Shapira, Yoav
Howdy, Tomcat is not EJB-compliant. It is a servlet container, not a full J2EE server. You can use JBoss, Jonas, or any of the commercial J2EE servers if you need EJB features. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tony Colson [mailto:[EMAIL PROTECTED]

Re: Broken pipe exception

2003-12-19 Thread Markus Brigl
Hi, I don't think the connectionTimeout is the problem. I tought more about corrupted connection than a lost connection, because the applet is made by more internal frames. This special frame will be closed after this error, but applet continues to work! Markus Shapira, Yoav wrote: Howdy,

Re: java.net.BindException: Address in use: JVM_Bind

2003-12-19 Thread L.Karam
You need to change the port that one of them running, in server.xml !! - Original Message - From: Prasad Dhulipala To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 11:50 AM Subject: java.net.BindException: Address in use: JVM_Bind Hi I am trying to

RE: Broken pipe exception

2003-12-19 Thread Shapira, Yoav
Howdy, Then perhaps as someone else suggested, look for a bug in the applet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Markus Brigl [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 11:03 AM To: Tomcat Users List Subject: Re: Broken pipe exception Hi, I

Database Rollback doesn't work

2003-12-19 Thread monicaf
Hi! I have a simple webapp that allows users to register. The user is inserted in the DB and a confirmation mail is sent to the user. If the mail fails I'd like the DB to rollback the transaction, but it doesn't do it. The new user entry is kept in the DB. I'm using Tomcat 4.1 and mySQL 2.3.2. I

RE: Database Rollback doesn't work

2003-12-19 Thread George Sexton
I thought transactions were one of those features MySQL decided that real developers didn't need. Are you really certain mySQL Supports transactions in the relatively low version you are using? Also, I hope you don't need to scale. You are essentially locking the table until the mail goes or

two installations of Tomcat

2003-12-19 Thread L.Karam
Hi What i have to do to run two installations of Tomcat, using the same Apache Httpd ? I can do start both, but can't access the context one of them Tks Leandro

Re: setting opts to avoid OutOfMemory errors

2003-12-19 Thread David Strupl
Hi, Shapira, Yoav wrote: Howdy, The fact that in the stock distribution the fork attrribute is set to false by default is IMHO not very good choice. Took me several days of headaches trying to find the leak in my code. When there is a disign choice slow versus crash for 1% of users I would

Re: Mime type for authorware content

2003-12-19 Thread Jon Wingfield
http://filext.com/detaillist.php?extdetail=AAS Sarel Bester wrote: Hi all I have 2 Tomcat servers - v3.3 and v4.1.27 - (on Windows and IIS) which host a webapp that plays Macromedia Authorware content. The content doesn't play through Tomcat. I suspect it is because of MIME type that is not

RE: setting opts to avoid OutOfMemory errors

2003-12-19 Thread Shapira, Yoav
Howdy, Sorry - I was trying to use tomcat 4.1.29 and never looked at 5.0 docs. The same is documented in the places I mentioned for the tomcat 4.1 versions, e.g. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html. In 4.1 ones there are really vague advices regarding memory ;-(

tomcat config questions

2003-12-19 Thread Naimesh . V . Shah
I installed tomcat 4.1.29. I can see the page http://localhost:8080/index.jsp. I placed my application under webapps.I cannot see it's default page . It says requested resource not available. what's the solution? Naimesh Shah [EMAIL PROTECTED]

Start and stop server

2003-12-19 Thread Naimesh . V . Shah
How Can I start and stop tomcat 4.1.29 server on windows plateform. Can I make icon or include them in start/programs/list? Naimesh Shah [EMAIL PROTECTED]

Re: Database Rollback doesn't work

2003-12-19 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George Sexton wrote: I thought transactions were one of those features MySQL decided that real developers didn't need. Are you really certain mySQL Supports transactions in the relatively low version you are using? I assume the poster meant

WebDAV - Missing WAR

2003-12-19 Thread Mike Reed
Hi folks - I'm relatively new to TOMCAT, and I'm having a problem figuring out how to install WEBDAV support. I have two machines - my local box is running Apache 1.3.x that ships with OSX. I have successfully modified it for WebDAV support and tested against it - it works great. I have

Re: How can I compile Mod_jdk2 ?

2003-12-19 Thread William Marques
Hi, Chris! Well, I made it! Now I have my mod_jsk2.so. Then I copy to $APACHE_HOME/modules, and put a line in the end of my httpd.conf, just the same way I sought in the Apache-Tomcat HOWTO. Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto Then I'll have to start Tomcat before Apache 'cause this

Re: setting opts to avoid OutOfMemory errors

2003-12-19 Thread David Strupl
Shapira, Yoav wrote: The same is documented in the places I mentioned for the tomcat 4.1 versions, e.g. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html. You are right. It is there. I sincerely apologize but I have read only http://jakarta.apache.org/tomcat/faq/memory.html and

RE: WebDAV - Missing WAR

2003-12-19 Thread Shapira, Yoav
Howdy, I understand that there's WebDAV support in Tomcat (v5), and I WebDAV support is also present in tomcat v4.x. understand that I need to deploy it via the tomcat manager. Problem You don't have to deploy it via the tomcat manager, but that's one easy option. is, I can't find the right

Re: WebDAV - Missing WAR

2003-12-19 Thread Mike Reed
On Dec 19, 2003, at 11:40 AM, Shapira, Yoav wrote: There's a webdav directory under the webapps directory in tomcat 4. In tomcat 5, see $CATALINA_HOME/server/lib/servlets-webdav.jar. There is no WAR file. I'm relatively new to the list, so if you'd be willing to cc: me directly on any replies,

RE: setting opts to avoid OutOfMemory errors

2003-12-19 Thread Shapira, Yoav
Howdy, You are right. It is there. I sincerely apologize but I have read only http://jakarta.apache.org/tomcat/faq/memory.html and it was not there, nore in the links mentioned there. Should have searched longer ... I just added there as well, especially for this situation. prominent and easy

Re: WebDAV - Missing WAR

2003-12-19 Thread Mike Reed
On Dec 19, 2003, at 11:40 AM, Shapira, Yoav wrote: is, I can't find the right source to deploy it from. There's no webdav.war file, and there's no webdav directory. I even re-downloaded the tomcat source to make sure I didnt' miss something in my install. There's a webdav directory under the

RE: WebDAV - Missing WAR

2003-12-19 Thread Shapira, Yoav
Howdy, Yes, I have this. And maybe I'm being too detailed, but I can't see where to deploy this at without a WAR file in Tomcat 5, at least not without a WAR file. I'm using Tomcat Manager to look at this - if there's another method, I'd certainly be open to hearing it. OK. In tomcat 4 there

Re: Start and stop server

2003-12-19 Thread Patrick Burma
There is a Startup and Shutdown batch scripts in your Tomcat's bin directory. Use these to start and stop the Server. You can use shortcuts of those two files and place them in the Program lists. You may need to define some variables in your Catalina.bat file or create environmental system

External resources with a fallback

2003-12-19 Thread Simon Tardell
Hello all, I try to figure out how to make Tomcat 5 load resources externally to the webapp, and failing over to loading them from the webapp if they are not present in the external location. I figure I should subclass BaseDirContext (or implement DirContext straight away), setting it in the

Re: Apache SSL again... those variables are getting me mad!

2003-12-19 Thread Mark W. Webb
I use mod_jk with tomcat 4.1.x and apache from source. I have not had any problems to date. Try mod_jk and see if that helps. Federico Fernandez Cruz wrote: Yes! It returns null. The servlet (jsp) that executes this code is running in Tomcat (obviously!) And the whole web application is

Re: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Seth Ladd
Tim Funk wrote: You won't be able to get the servlet reference. A possibility is to define the filter multiple times with different parameters. For example, here is the same class name defined 4 times as 4 different filters. Good idea. Thanks for the helpful response. Since I can't get a

RE: External resources with a fallback

2003-12-19 Thread Shapira, Yoav
Howdy, I try to figure out how to make Tomcat 5 load resources externally to the webapp, and failing over to loading them from the webapp if they are not present in the external location. I figure I should subclass BaseDirContext (or implement DirContext straight away), setting it in the

RE: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Shapira, Yoav
Howdy, You won't be able to get the servlet reference. A possibility is to define the filter multiple times with different parameters. For example, here is the same class name defined 4 times as 4 different filters. Good idea. Thanks for the helpful response. Since I can't get a reference

Re: Way to get Reference to Servlet from Filter?

2003-12-19 Thread Sean Dockery
I've got a fever... and the only cure is more cowbell! LOL. :-D Tim Funk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You won't be able to get the servlet reference. A possibility is to define the filter multiple times with different parameters. For example, here is the same

RE: Start and stop server

2003-12-19 Thread Michael Coughlan
There is a Startup and Shutdown batch scripts in your Tomcat's bin directory. I also remember that Tomcat 4 also used to be a Windows Service, for stopping, starting, and running on startup. Start - Settings - Control Panel - Services I've moved to Tomcat on Linux and can't verify that fact.

Re: Database Rollback doesn't work

2003-12-19 Thread monicaf
Hi! Thanks a lot for your answer. I have decided to implement the transactionality in the code as suggested. It seems a better way of doing it. Monica -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George Sexton wrote: I thought transactions were one of those features MySQL decided that

Welcome File Oddities in Tomcat 5.0.16

2003-12-19 Thread David Ramsey
In a webapp on which I work, we could specify a welcome file with the following syntax: welcome-file-list welcome-file jsp/myLogin.jsp /welcome-file /welcome-file-list This worked in Tomcat 4.x without problems. I yesterday installed Tomcat 5.0.16 and am

RE: Welcome File Oddities in Tomcat 5.0.16

2003-12-19 Thread Shapira, Yoav
Howdy, Welcome file behavior was changed because the spec was changed to allow servlets as welcome files. There could be a bug in the code, or it could be that your relative path to welcome file is no longer legal in servlet specification 2.4 containers. I don't know which one is true, as I

Re: Welcome File Oddities in Tomcat 5.0.16

2003-12-19 Thread Tim Funk
4.1 did redirects for welcome files, 5 does forwards. So in 4.1, asking for http://myserver.mydomain.com:8080/myapplication/ would issue a redirect to http://myserver.mydomain.com:8080/myapplication/jsp/myLogin.jsp But in 5.0: http://myserver.mydomain.com:8080/myapplication/ is servered directly

getRequestURI and encoding

2003-12-19 Thread Pierre Ripochin
Hi, It is my understanding that  should always return the unencoded URI. I.e. for href=foo%20bar, getrequestURI should return 'foo bar', not 'foo%20bar'. Now, this seems to not always be the case. Does it depend on the browser? Thanks Hi, It is my understanding that

mod_jk2 sticky LB

2003-12-19 Thread Steve
my googling has only proven to show that mod_jk2 does not yet support lb with sticky sessions.. Or is this not he case? thanks -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Need help with Virtual Host Directive

2003-12-19 Thread Wehner, Terry
Title: Need help with Virtual Host Directive I have several Virtual Hosts (IP addresses) running on one Unix Server serviced by Apache 2.0.48 I have defined all of them in both my apache httpd.conf file as well as Tomcats server.xml file. This works fine. What I am trying to do now is

Odd problem with pathing for appbase and docbase

2003-12-19 Thread daniel
I am trying to figure out why my tomcat 5.0.16 server cannot find the web.xml for the parks.com. Its located at /home/parks/htdocs/WEB-INF/web.xml the permissions of the file are such that anyone can read the file. and here is my config for the server.xml !-- parks.com settings-- Host

RE: Manager App Doesn't Reload wars

2003-12-19 Thread Sleeper, Jesse
Art, I assume you could not get the Deploy and Undeploy features to work either since you are using a work around? Consequently, I found that the redeploying [with the details below] doesn't work in any version of Tomcat 4.x. This is a problem because the more applications I realease the less

RE: Need help with Virtual Host Directive

2003-12-19 Thread Shapira, Yoav
Howdy, So you want to disallow access based on local, rather than remote (the request's), IP address? Remote address filtering is easy: see the Valve How-To page section on RemoteAddressValve. Local address filtering is also not very difficult, but requires you to write some code. Namely,

RE: Odd problem with pathing for appbase and docbase

2003-12-19 Thread Shapira, Yoav
Howdy, Its located at /home/parks/htdocs/WEB-INF/web.xml and here is my config for the server.xml Host name=parks.com debug=0 appBase=/home/parks/htdocs Context path= docBase=/ debug=0/ Consider using appBase=/home/parks and docBase=htdocs. docBase is relative to appBase or absolute.

RE: Need help with Virtual Host Directive

2003-12-19 Thread Wehner, Terry
Yoav, Moving to Tomcat 5 is not an option right now. Your alternative suggestion sounds interesting. How does the autodeploy feature work? If I turn it off, how do I specifically name directories (apps)? Terry -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent:

RE: Need help with Virtual Host Directive

2003-12-19 Thread Shapira, Yoav
Howdy, Your alternative suggestion sounds interesting. How does the autodeploy feature work? If I turn it off, how do I specifically name directories (apps)? If you're playing with a multiple virtual hosts configuration, you really want to thoroughly understand this page:

RE: Need help with Virtual Host Directive

2003-12-19 Thread Wehner, Terry
Thanks, In the interim I got it to work :-) -Terry -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 3:04 PM To: Tomcat Users List Subject: RE: Need help with Virtual Host Directive Howdy, Your alternative suggestion sounds

Re: getPathInfo behaviour changed in tomcat 5.x?

2003-12-19 Thread Remy Maucherat
Bill Barker wrote: I haven't profiled it, but according to Remy (who did most of the work, with a bit of help from me and Tim), yes ;-). Well, let's say the profile is hotspot free. The performance of the HTTP stack is equivalent to that of 4.1.29 (not surprising, it's now the same), but will

Re: Odd problem with pathing for appbase and docbase

2003-12-19 Thread daniel
I've tried both ways and i am still getting the same error that it cannot find the web.xml. So I tried appbase =/home/parks docbase = htdocs appbase =/home/parks/htdocs docbase = . So im still getting this message INFO: Processing Context configuration file URL

Re: Odd problem with pathing for appbase and docbase

2003-12-19 Thread daniel
Oh wow found out what happend. Tomcat created the conf/Tomcat-Standalone/parks.com/.xml due to my earlier server.xml changes I just went back in to my conf dir and deleted the Tomcat-Standalone directory and then proceed to restart tomcat. guess what that worked. Could that be a bug? or is that by

[OT] Source Code Visual Tree builder?

2003-12-19 Thread Justin Ruthenbeck
Drawing from the considerable collective experience of the list... Does anyone know of an OS/Free tool that processes a set of source files and outputs a visual tree of their relationships (basic is fine - who instantiates who is all I really need)? I feel like this should be a common tool,

UserConfig + autodeploy wars

2003-12-19 Thread John Beamon
I have a team of developers, each with a $HOME/tomcat/ directory. They are authenticating against nss-LDAP, so they are not in /etc/passwd. I would like for them to be able to drop wars in ~/tomcat/ and have them deploy without manually adding Contexts. I've tried this... = Host

RE: two installations of Tomcat

2003-12-19 Thread Dale, Matt
You need to modify the server.xml of one of the instances to start it on a different port. Then you should be able to access both seperately on the respective ports. To connect to either through apache you should read up on the jk connector. If you are using apache 1.3 then use JK, if you

Using Jikes as compiler for Tomcat 4.1 on Windows systems

2003-12-19 Thread Patrick Willart
Simple question. Is it possible or not? I use Jikes 1.18 and Tomcat 4.1.24. Based from other posts I figured out that it's not possible to configure Tomcat to use Jikes as JSP compiler because -encoding is not supported in the Windows version of Jikes. However out of different posts I get the

  1   2   >