Re: Application configuration: how to read files from a web application

2006-05-18 Thread Hans Sowa
Hi Download the log4j Source from Apache. Look at the class org.apache.log4j.helpers.Loader and here you will a logic which is used to find the log4j.xml. This works for every application. Hope this will help. On 5/17/06, Tim Lucia [EMAIL PROTECTED] wrote: I have always responded with this

Re: FW: tomcat hangs with error msg-All Threads are Busy.....

2006-05-18 Thread David Delbecq
This most probably means there is deadlock somewhere in your webapplication, leading to HTTP threads not being released because they are stuck waiting for something before sending response to a user that dropped hours agos. To get clues on where your problem is when this happens, send signal

Re: Context Problem

2006-05-18 Thread Alexander E Genaud
Fretzlaff, path not patch Context path=/test docBase=D:/apps/test /Context Alex -- 55.67N 12.588E CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1 -- -- Videresendt meddelelse -- From: fretzlaff [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Wed, 17 May 2006 11:58:24

RE: FW: tomcat hangs with error msg-All Threads are Busy.....

2006-05-18 Thread Ajit Narayanan
Thanx for ur interest Dav.I am fairly new to java and tomcat programming so I am bit low on debugging these. Yes,I do have some of the data from the dumps, I don't know whether these will be of any help or not but this what I have.This happened on live about 7 months ago and it has been reopened

Catching RequestDispatcher not found errors

2006-05-18 Thread Stephen Suen
Hi, I'm using RequestDispatcher to dynamically include content. When the target resource does not exist, a 404 error page returns from Tomcat. Acording to the API, the included servlet cannot change the response status code or set headers, and any attempt to make a change is ignored. I did a

Re: FW: tomcat hangs with error msg-All Threads are Busy.....

2006-05-18 Thread David Delbecq
ok, i bet then you problem is in this :D: au.com.AdmTech.incontrol.secureproxy.SecureProxy.doGet(SecureProxy.java:298) - locked 0xf227ea88 (a au.com.alcatel.incontrol.secureproxy.SecureProxy) at au.com.AdMtech.incontrol.secureproxy.SecureProxy.doPost(SecureProxy.java:435 ) it

Restarting war application

2006-05-18 Thread Ingo . Bischofs
Hi list I've got a problem restarting an war packed application after succesful installation. After installing and running the application succesfully i have to re-start the application from time to time. Doing this always results in Error - Could not start application with context path

tomcat doesn't deliver page on first call

2006-05-18 Thread Abid Hussain
Hi everybody, After restarting Tomcat (5.0.28), it doesn't deliver the requested jsp-page on the first calls. I have to hit about 5-8 times the reload-button until tomcat delivers the requested page (e.g. index.jsp). Also this problem sometimes turns up when calling servlets for the first

Is it possible to use regular expressions in web.xml's servlet mapping?

2006-05-18 Thread Paul Hamer
Hi All! I want to map a single servlet to multiple URLs. Ofcourse in web.xml I could do this, which works fine: servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/one/*/url-pattern /servlet-mapping servlet-mapping servlet-nameMyServlet/servlet-name

Re: Is it possible to use regular expressions in web.xml's servlet mapping?

2006-05-18 Thread Mikolaj Rydzewski
Paul Hamer wrote: But I know that for instance Resin supports the url-regexp tag, so I could do: servlet-mapping servlet-nameMyServlet/servlet-name url-regexp/(one|two)/.*/url-regexp /servlet-mapping Which I think is much neater :) Is there any way to do this using Tomcat 5.5 ?

Re: Is it possible to use regular expressions in web.xml's servlet mapping?

2006-05-18 Thread Tim Funk
There is no regex support for URI mapping. At one time it was to be part of the 2.5 servlet spec - but for reasons unknown to me - it was yanked. -Tim Paul Hamer wrote: Hi All! I want to map a single servlet to multiple URLs. Ofcourse in web.xml I could do this, which works fine:

Re: Newbie: Deploying .war file, getting it working with MySQL

2006-05-18 Thread Hugh Morgan
I have finally fixed this problem. It was to do with the Resource tags name parameter in server.xml not matching the res-ref-name tag in the applications WEB-INF/web.xml file. Thanks for all the patient help I got here. Hugh Morgan

error page

2006-05-18 Thread Zohar
Hello, I'm trying to use the error handling mechanism described in http://java.sun.com/developer/EJTechTips/2003/tt0114.html. When an exception in thrown in JSP1 it is indeed redirected to JSP2. in JSP2 I've put System.out.println(exception.getMessage()); and sure enough the exception's message

Extract resource from context.xml from external app

2006-05-18 Thread Arthur van Dorp
Hi all I've got webapps deployed in tomcat 5.5.x that use some resources defined in their respective context.xml files. I'd like to use those resource in a java program on the same machine (which isn't a webapp). Most resource descriptions would be easy enough to parse with a bit of xpath, but

Re: Help with Tomcat MySQL using JNDI

2006-05-18 Thread Hugh Morgan
Stephen More wrote: Is there a war file available for download that will do nothing more than: select 'HelloWorld from MySQL'; using JNDI ? I have tried following many examples on the web and I keep ending up with: Cannot create JDBC driver of class '' for connect URL 'null' At this

Re: tomcat doesn't deliver page on first call

2006-05-18 Thread Hugh Morgan
Newbie answer: Are you sure you are waiting long enough? The fisrt timre a page is requested tomcat does the compilation, and so it can take quite a while (a few seconds). After this the page is servered much quicker. HTH, Hugh Abid Hussain wrote: Hi everybody, After restarting Tomcat

Using mod_jdk?

2006-05-18 Thread Bjørn T Johansen
I am using the following mount command in my apache config.: JkMount /webapp/* worker1 But I have to use this url to make it work..: http://www.domain.no/webapp/ and I would like this url to work also..: http://www.domain.no/webapp Is that possible? Regards, BTJ --

RE: FW: tomcat hangs with error msg-All Threads are Busy.....

2006-05-18 Thread Ajit Narayanan
You are right! The code does implement a mutex() part. But the problem lasted for 7 days untill the server was restarted manually. There were about 15 threads which were found to be in locked state.And for all these days tomcat was not accepting any requests. Do you think Dev that this could

Re: Using mod_jk?

2006-05-18 Thread Bjørn T Johansen
It should be mod_jk On Thu, 18 May 2006 13:11:26 +0200 Bjørn T Johansen [EMAIL PROTECTED] wrote: I am using the following mount command in my apache config.: JkMount /webapp/* worker1 But I have to use this url to make it work..: http://www.domain.no/webapp/ and I would like this

Re: error page

2006-05-18 Thread Franck Borel
I'm trying to use the error handling mechanism described in http://java.sun.com/developer/EJTechTips/2003/tt0114.html. When an exception in thrown in JSP1 it is indeed redirected to JSP2. in JSP2 I've put System.out.println(exception.getMessage()); and sure enough the exception's message

Re: Using mod_jk?

2006-05-18 Thread Franck Borel
Try this IfModule mod_jk.c JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel warn JkMount /webapp ajp13 JkMount /webapp/* ajp13 /IfModule -- Franck It should be mod_jk On Thu, 18 May 2006 13:11:26 +0200 Bjørn T Johansen [EMAIL PROTECTED]

Re: error page

2006-05-18 Thread Zohar
No, I've used the Letting a page define its error page option. - Original Message - From: Franck Borel [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 18, 2006 14:20 Subject: Re: error page I'm trying to use the error handling mechanism described

Re: Using mod_jk?

2006-05-18 Thread Bjørn T Johansen
Yes, that did the trick... Thx... :) BTJ On Thu, 18 May 2006 13:24:44 +0200 Franck Borel [EMAIL PROTECTED] wrote: Try this IfModule mod_jk.c JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel warn JkMount /webapp ajp13 JkMount /webapp/*

Using [EMAIL PROTECTED] in APR-enhaced Tomcat does not work

2006-05-18 Thread Olle Östlund
I'm trying to use the Connector-attribute address in the Tomcat 5.5.17 I'm running, as I want the Tomcat to listen to a specific IP-address (I'm running two Tomcats on the same server). This works fine when I'm running the Tomcat without APR, but when I run the Tomcat with APR enabled it refuses

Re: Using mod_jdk?

2006-05-18 Thread Gaël Lams
Hi, I am using the following mount command in my apache config.: JkMount /webapp/* worker1 But I have to use this url to make it work..: http://www.domain.no/webapp/ and I would like this url to work also..: http://www.domain.no/webapp Is that possible? Yes, rewrite it first:

Re: tomcat doesn't deliver page on first call

2006-05-18 Thread Parsons Technical Services
And if it takes long enough the browser will give up and time out. Thus giving the appearance of Tomcat not serving on the first request. Doug - Original Message - From: Hugh Morgan [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 18, 2006 6:59 AM

Re: FW: tomcat hangs with error msg-All Threads are Busy.....

2006-05-18 Thread David Delbecq
I think you should not use synchronized sections / mutex to get informations from client. Common policy in using mutex is to keep them as little time as possible and do only the critical work inside the exclusive part.This is to prevent long waiting queues and ... things like that :) Ajit

Newbie: Help on directory structure

2006-05-18 Thread Allen Williams
I have an Java app called login, in a package called UserConfig. This is just a very simple app to help me get started. The directory structure: app-name| |-login.jsp |-welcome.jsp |-WEB-INF| ||-classes| |||-UserConfig| |

Re: TOMCAT - HTTP Status 500

2006-05-18 Thread mlt-df
org.apache.jasper.JasperException: access denied (java.io.FilePermission execute) java.security.AccessControlException: access denied (java.io.FilePermission execute) What means these lines? -- View this message in context:

Wildcard role-name in auth-constraint.

2006-05-18 Thread Ronny Batty
I am using the containers JDBCRealm but would like to allow any authenticated users (without roles) to access protected resources. I realise that the handling of role-name*/role-name was modified to comply with the Servlet specification in Tomcat 5.5.x but is it really necessary to give all users

org.apache.naming / JNDI lookups and unit testing

2006-05-18 Thread Tim Lucia
All, Is anyone using the org.apache.naming package outside of Tomcat? I am interested in (possibly) using it for unit testing (w/o needing Cactus). My main issue with unit testing right now is obtaining JNDI resources as varied as one can while using Tomcat. For example, I would like mail

[javajni.c] [error] CreateJavaVM Failed

2006-05-18 Thread Asensio, Rodrigo
Hello, I have a production server tomcat 5.5 java 1.5_06 I have set memory min and max as 2048m and thorows this error [javajni.c] [error] CreateJavaVM Failed =) obviosly my server has 4 GB of memory It work with 1600m , 1024m, etc, but no more than 2000m Any clue ?? Thanks guys This

JSSE13SocketFactory in a 1.5 JVM and SUN-SPECIFIC classes

2006-05-18 Thread Joe Bohn
I'm trying to build Tomcat 5.5.15 using the IBM 1.5 JDK. Why? Because I'm working with a user that wants to run with the IBM 1.5 JDK in production. They want to build Tomcat with the IBM JDK for 2 reasons: 1) To ensure that they can build if they have to fix/change something (and this is

RE: ClassCastException on cluster deserialization

2006-05-18 Thread Tim Lucia
Are there multiple copies of this class in scope (loaded by different class loaders)? I know if you have some Oracle classes in WEB-INF/lib AND in common/lib, you can get a CCE casting from a oracle.X to an oracle.X as they come from different class loaders. Tim -Original Message-

Re: ClassCastException on cluster deserialization

2006-05-18 Thread Jean-Christophe Praud
No. This a specific class for my webapp. It is located in the webapp's /classes tree, and is instantiated only once per session. Tim Lucia wrote: Are there multiple copies of this class in scope (loaded by different class loaders)? I know if you have some Oracle classes in WEB-INF/lib AND in

Re: Newbie: Help on directory structure

2006-05-18 Thread Steve Ochani
On 18 May 2006 at 9:10, Allen Williams wrote: I have an Java app called login, in a package called UserConfig. This is just a very simple app to help me get started. The directory structure: app-name| |-login.jsp |-welcome.jsp |-WEB-INF| |

Re: Newbie: Help on directory structure

2006-05-18 Thread Hassan Schroeder
On 5/18/06, Allen Williams [EMAIL PROTECTED] wrote: I have an Java app called login, in a package called UserConfig. This is just a very simple app to help me get started. The directory structure: app-name| |-login.jsp |-welcome.jsp |-WEB-INF| |

RE: Newbie: Help on directory structure

2006-05-18 Thread Williams, Allen
I tried referencing the class with the name UserConfig.login in the .jsp file, with a directory structure classes/UserConfig/login.class and classes/UserConfig.login.class. Neither worked, but I could have made a mistake and will try again. Where should the name UserConfig.login be used? As the

RE: Newbie: Help on directory structure

2006-05-18 Thread Williams, Allen
Aha! I'm not sure which pair I did, but I only put top four lines in my web.xml file (the servlet-name and servlet-class pair, and surrounding servlet tag). Tonight I'll try it with all the lines recommended here, and see. The book I'm using only had the four lines. Is this a change between

Re: Newbie: Help on directory structure

2006-05-18 Thread Hassan Schroeder
On 5/18/06, Williams, Allen [EMAIL PROTECTED] wrote: Tonight I'll try it with all the lines recommended here, and see. The book I'm using only had the four lines. Is this a change between Tomcat4 and Tomcat5? Yes. Throw that book away and use the excellent documentation on the Tomcat web

Virtual Host and classpath related problem on deployment

2006-05-18 Thread Mladen Adamovic
My application runs fine on my local server (Tomcat bundled with NetBeans 5.0). But, I have problem with the virtual host on deployment computer. Lets say I have ./webapps/mysite and beneath it I have more directories with JSP's like ./webapps/mysite/widgetA In my server.xml I have something

JDK 1.4 Compatibility package for Tomcat 5.5.x

2006-05-18 Thread Carlos Alberto Peláez Ayala
Hi, Someone can tell me the exact URL where I can to download the JDK 1.4 Compatibility package for Tomcat 5.5.x ?, because I can not found this in the http://tomcat.apache.org/download-55.cgi#5.5.12 URL. Thanks.

the very beginning

2006-05-18 Thread Ersin Ersoy
I am a beginner with tomcat.. I worked on a project that was on tomcat, but the whole system was built so i just sit and started writing in java. Now i want to build that system on my own computer at home. I have the codes of the worked project and i want to run them. Can you tell me what

RE: the very beginning

2006-05-18 Thread Allen Williams
Start here: http://tomcat.apache.org/tomcat-5.5-doc/introduction.html but, I must say, I'm having a lot of trouble with directory structures, naming conventions, etc. myself. Allen -Original Message- From: Ersin Ersoy [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 6:15 PM To:

update jar file does not work immediately

2006-05-18 Thread Tony Smith
Hi, I am using Tomcat 5.5.9 on Windows. I use Eclipse to write my server code. Every time I change my code, I export the jar directly to the myapp/WEB-INF/lib directory and restart Tomcat. I found that the new code is not immediately used by Tomcat, I have to re-export, re-start Tomcat a

deploying myapp.war as / - confused

2006-05-18 Thread Nikita Tovstoles
Hi, I have myapp.war that I'd like to deploy by copying myapp.war to catalina.base/webapps; but I would like to bind the app to context /. I have $tomcat.base/conf/server.xml, in myapp.war I have: /META-INF/context.xml I know that somewhere I should specify Context path= docBase=???. So

Re: Can't build Tomcat 4: Help!?

2006-05-18 Thread Mark Thomas
R. Christian Call wrote: I could use some help in getting Tomcat 4 to build. I've downloaded the source for Tomcat 4.1.31, and I've installed the various other packages required by steps 1-11, as documented in BUILDING.txt, yet I still seem to be missing some pieces--at this point, the

Re: update jar file does not work immediately

2006-05-18 Thread Calvin Deiterich
Tony, I have the same problem. Eclipse 3.1 WTP install. I ended up shutting down tomcat and deleting the .war and the folder, then saving the new .war file and start the tomcat up again. I also publish to another tomcat server and still have to do the same thing. On both machines I am running

Re: Catching RequestDispatcher not found errors

2006-05-18 Thread Mark Thomas
Stephen Suen wrote: Can any body tell me where I can find such source code, and give me some basic explanation on it. http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java Search for SC_NOT_FOUND Mark

Re: Where is jakarta-servletapi-4?

2006-05-18 Thread Mark Thomas
R. Christian Call wrote: I've been trying to find the jakarta-servletapi-4 binary distribution, which I need in order to build Tomcat 4.1.24. Although I've browsed all through the jakarta ftp site, and searched the web, I can't find it anywhere. Can anyone tell me how I can get my hands on

Re: [javajni.c] [error] CreateJavaVM Failed

2006-05-18 Thread Mark Thomas
Asensio, Rodrigo wrote: Hello, I have a production server tomcat 5.5 java 1.5_06 I have set memory min and max as 2048m and thorows this error [javajni.c] [error] CreateJavaVM Failed =) obviosly my server has 4 GB of memory It work with 1600m , 1024m, etc, but no more than 2000m

Re: JSSE13SocketFactory in a 1.5 JVM and SUN-SPECIFIC classes

2006-05-18 Thread Mark Thomas
Joe Bohn wrote: Have other folks built Tomcat using JDKs other than Sun's? How do you work around problems like this? Deleting the class any any reference seems like the way to go to me. Mark - To unsubscribe, e-mail:

Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-18 Thread Nicholas Sushkin
On Thursday 18 May 2006 20:52, you wrote: I did find that when I used: img src=/webapp/path/to/servlet.jpg?recId= + member.getID() + / The id that was returned had a / after the id which really caused issues. (ended up looking like 345556/) I changed the / to / (a space prior to the /)

Re: JDK 1.4 Compatibility package for Tomcat 5.5.x

2006-05-18 Thread Mark Thomas
Carlos Alberto Peláez Ayala wrote: Someone can tell me the exact URL where I can to download the JDK 1.4 Compatibility package for Tomcat 5.5.x ?, because I can not found this in the http://tomcat.apache.org/download-55.cgi#5.5.12 URL. Look down that page until you find JDK 1.4

Re: deploying myapp.war as / - confused

2006-05-18 Thread Mark Thomas
Nikita Tovstoles wrote: Hi, I have myapp.war that I'd like to deploy by copying myapp.war to catalina.base/webapps; but I would like to bind the app to context /. Rename it to ROOT.war Mark - To unsubscribe, e-mail: [EMAIL

Re: update jar file does not work immediately

2006-05-18 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Re: JSSE13SocketFactory in a 1.5 JVM and SUN-SPECIFIC classes

2006-05-18 Thread Bill Barker
Joe Bohn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to build Tomcat 5.5.15 using the IBM 1.5 JDK. Why? Because I'm working with a user that wants to run with the IBM 1.5 JDK in production. They want to build Tomcat with the IBM JDK for 2 reasons: 1) To

Re: Tomcat: The Definitive Guide Question

2006-05-18 Thread Frank Murray
Hello, Can you provide a direct link(s) for that Tomcat online documentation? Any information is appreciated. Thank you. fjm On 06 May 2006, at 13:56, Gaël Lams wrote: I read Professional Tomcat 5 (Wrox Press). Not bad, but I'd say for real problems the mailing list is still the best

Re: Catching RequestDispatcher not found errors

2006-05-18 Thread Stephen Suen
On 5/19/06, Mark Thomas [EMAIL PROTECTED] wrote:Stephen Suen wrote: Can any body tell me where I can find such source code, and give me some basic explanation on it. http://svn.apache.org/repos /asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java

Re: Tomcat: The Definitive Guide Question

2006-05-18 Thread Mark Petrovic
http://tomcat.apache.org/tomcat-5.5-doc/index.html On 5/18/06, Frank Murray [EMAIL PROTECTED] wrote: Hello, Can you provide a direct link(s) for that Tomcat online documentation? Any information is appreciated. Thank you. fjm On 06 May 2006, at 13:56, Gaël Lams wrote: I read

Re: Extract resource from context.xml from external app

2006-05-18 Thread Bill Barker
Arthur van Dorp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I've got webapps deployed in tomcat 5.5.x that use some resources defined in their respective context.xml files. I'd like to use those resource in a java program on the same machine (which isn't a webapp).