Re: Where to store classpath resources outside of WAR

2007-12-21 Thread David Delbecq
In custom context.xml, you can define the ressource, that is mainly Datasources that are linked with jndi. Just define a datasource and store your config in the database. Or if you want more complicated things, store other tyes of objects in your jndi, by defining them in your context.xml.

how to run a simple jsp file

2007-12-21 Thread Joly M
Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an error number 500. When I run JSP files not containing any Java code at all, Everything works. It seems like the problem comes from Java files. I know that I've

Re: how to run a simple jsp file

2007-12-21 Thread David Smith
Could you post the error in your logs corresponding to the 500 error? Also would be helpful to know tomcat, os, and java versions. --David Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an

Re: how to run a simple jsp file

2007-12-21 Thread Joly M
the log says it can't load the class for JSP 2007/12/21, Pid [EMAIL PROTECTED]: Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an error number 500. When I run JSP files not

Re: how to run a simple jsp file

2007-12-21 Thread Pid
Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an error number 500. When I run JSP files not containing any Java code at all, Everything works. It seems like the problem comes from Java

Re: how to run a simple jsp file

2007-12-21 Thread Joly M
Hello David, I'm using -Windows XP -Tomcat 6.0 I don't know what Java Version is installed on my computer as I'm currently at work, but I will let you know as soon as possible. Could be the Java Version the trigger of the error ? There is the error message : Etat HTTP 500 - type Rapport

Re: Tagging mod_jk 1.2.26

2007-12-21 Thread Peter Rossbach
Hi Rainer, I have successfully test new mod_jk 1.2.26-dev with MacOS X Tiger 10.4.11 (Intel) and Leopard 10.5.1 PPC64. At all my test cases I see now the uri maps from all vhosts and the new JkMountCopy All also work well. The only mapping that we don't present is the jkstatus mappings! The

Re: how to run a simple jsp file

2007-12-21 Thread David Smith
In my experience, there is almost always another error before this one where the jsp is compiled to a .java file before it's compiled to a .class file. If what you posted is really the first error message related to the request: stop tomcat, empty tomcat's work directory, start tomcat, and

Re: Tagging mod_jk 1.2.26

2007-12-21 Thread Rainer Jung
Hi Peter, Peter Rossbach wrote: I have successfully test new mod_jk 1.2.26-dev with MacOS X Tiger 10.4.11 (Intel) and Leopard 10.5.1 PPC64. At all my test cases I see now the uri maps from all vhosts and the new JkMountCopy All also work well. The only mapping that we don't present is the

Using META-INF/context.xml

2007-12-21 Thread Andrew Connick
I'm having problems trying to set up a DataSource in META-INF/context.xml If I specify the Resource within a Context in server.xml it works fine. Similarly, if I put it into conf/Catalina/localhost/myapp.xml it's fine, but putting it in myapp/META-INF/context.xml does not work. I also found that

Re: Using META-INF/context.xml

2007-12-21 Thread Sebastian Gerdes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Andrew, your 'context' tag is missing the attributes 'docbase' and 'path'. It should look like this: Context docbase=webapps/myapp.war path=/myapp !-- Db connection -- Resource name=jdbc/wdcc auth=Container [...] This should

RE: Using META-INF/context.xml

2007-12-21 Thread Caldarale, Charles R
From: Sebastian Gerdes [mailto:[EMAIL PROTECTED] Subject: Re: Using META-INF/context.xml your 'context' tag is missing the attributes 'docbase' and 'path'. Thank you for posting completely incorrect information. Properly placed Context elements should never have either the path or

Re: [Announce] Enhanced ISAPI Redirector + Tomcat Connector Binaries

2007-12-21 Thread Rainer Jung
Hi Tim, Tim Whittington wrote: There's one in particular that we feel is very useful that hasn't been accepted though, which is the addition of chunked encoding support to the ISAPI Redirector, which allows IIS to use HTTP keep alives between the browser and IIS - we've found this has major

RE: Using META-INF/context.xml

2007-12-21 Thread Caldarale, Charles R
From: Andrew Connick [mailto:[EMAIL PROTECTED] Subject: Using META-INF/context.xml Similarly, if I put it into conf/Catalina/localhost/myapp.xml it's fine, but putting it in myapp/META-INF/context.xml does not work. I also found that if I put completely invalid xml in

Merry Christmas Chuck

2007-12-21 Thread Scott McClanahan
This mailing list is always so helpful and I REALLY appreciate it. Mainly I enjoy your responses Chuck because they include such helpful links, commentary, and almost always the right answer. But you're such a hard ass about it! Always makes me laugh like crazy. Thanks bud! Sorry for

RE: how to run a simple jsp file

2007-12-21 Thread Propes, Barry L
this sounds like you maybe haven't properly imported the necessary class packages into your JSP file with @page declarative statement, like so for example: % @ page import=java.util.*,% just a guess, but probably a sound one in this case. -Original Message- From: Joly M [mailto:[EMAIL

TrustedPrincipalAuthorizor (extends AuthenticatorBase) Discussion / Comments

2007-12-21 Thread Louis
Hi, I'm new to the list though I've been developing on Tomcat and JBoss for a few years now. Presented below are two classes I'd like feedback on. Anything is appreciated but I'm hoping for feedback mostly on the ideas behind the implementation more than particular bug fixes (that can come if

TrustedPrincipalAuthorizor (extends AuthenticatorBase) Discussion / Comments

2007-12-21 Thread Louis
Hi, I'm new to the list though I've been developing on Tomcat and JBoss for a few years now. Presented below are two classes I'd like feedback on. Anything is appreciated but I'm hoping for feedback mostly on the ideas behind the implementation more than particular bug fixes (that can come if

Job Opportunity for Developers, Java Web at Fredhopper

2007-12-21 Thread Vasil Kokareshkov
TOP SOFTWARE PRODUCT COMPANY OFFERS TALENTED JAVA WEB DEVELOPERS A UNIQUE OPPORTUNITY TO BUILD LARGE SCALE WEB APPLICATIONS Company: Fredhopper, Location: Amsterdam or Sofia, Position: Full-time Do you have a talent for seeing a problem and immediately contemplating the likely solution? Are

Re: [Announce] Enhanced ISAPI Redirector + Tomcat Connector Binaries

2007-12-21 Thread Jim Jagielski
On Dec 21, 2007, at 9:56 AM, Rainer Jung wrote: Hi Tim, Tim Whittington wrote: There's one in particular that we feel is very useful that hasn't been accepted though, which is the addition of chunked encoding support to the ISAPI Redirector, which allows IIS to use HTTP keep alives

Re: Merry Christmas Chuck

2007-12-21 Thread mgainty
Merry Christmas to one and all (and especially the list maintainers and committers who sometimes take considerable abuse to keep the discussions lively, informative and accurate) in 82 a BAL programming course on a sperry-rand machine..whatever became of sperry-rand or burroughs??? Martin-- P.S.

Add URLClassLoader search path to default context classloader

2007-12-21 Thread lightbulb432
In a web application that loads resources expecting them to be available on the classpath (e.g. ResourceBundle.getInstance(resource)), is there a way to alter what locations the web context classloader includes? I'd like to add a URL to the search path of the web context classloader, so that in

RE: Merry Christmas Chuck

2007-12-21 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Merry Christmas Chuck in 82 a BAL programming course on a sperry-rand machine..whatever became of sperry-rand or burroughs??? http://en.wikipedia.org/wiki/UNIVAC - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

jstack dump and cpu usage

2007-12-21 Thread daniel steel
all, We are running tomcat 6.0.14 (jdk 1.6.03) on Windows server with NIO connector. After some time, one of the thread starts using 50% of the cpu and that thread never stops serving.I was able to match the thread id from process explorer with nid of jstack thread dump and this is the

RE: how to run a simple jsp file

2007-12-21 Thread Propes, Barry L
maybe you're lacking a jar file required? Maybe servlet jar file or other? -Original Message- From: Joly M [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 1:30 PM To: Tomcat Users List Subject: Re: how to run a simple jsp file well, the thing is i'm just trying to run

Re: how to run a simple jsp file

2007-12-21 Thread Joly M
well, the thing is i'm just trying to run examples provided by Tomcat 6 and located in the example directory. normally those files already contain such things(% @ page import= java.util.*,%) i have added some and it doesn't change anything. actually all import routines are already contained in

Re: how to run a simple jsp file

2007-12-21 Thread mgainty
Please Display jsp and accompanying web.xml Thanks M- - Original Message - Wrom: MQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGV To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 21, 2007 2:36 PM Subject: RE: how to run a simple jsp file maybe you're lacking a jar file

Re: jstack dump and cpu usage

2007-12-21 Thread Alan Chaney
What exactly do you mean by 'never stops serving' - do you mean that the page GET never completes? The browser just hangs at that page? Or that you have observed a stream of data. Regards Alan Chaney daniel steel wrote: all, We are running tomcat 6.0.14 (jdk 1.6.03) on Windows server

Tomcat 6 getRemoteUser() returns null

2007-12-21 Thread Natalie Wang
Hi, We have to retrieve the userid of the remote user when the user logs on. But request.getRemoteUser() is returning null in Tomcat 6. Authentication is done through LDAP. It works fine in Tomcat 5 and 4. Any suggestion? Thanks, Natalie

Re: jstack dump and cpu usage

2007-12-21 Thread daniel steel
i haven't got a chance to look at the client end but when i log on to tomcat manager / status, i see a jsp that has been running for a long time with S ( service) as stage. thanks dan Alan Chaney [EMAIL PROTECTED] wrote: What exactly do you mean by 'never stops serving' - do you mean

Re: Tomcat 6 getRemoteUser() returns null

2007-12-21 Thread Gabe Wong
Natalie Wang wrote: Hi, We have to retrieve the userid of the remote user when the user logs on. But request.getRemoteUser() is returning null in Tomcat 6. Authentication is done through LDAP. It works fine in Tomcat 5 and 4. Any suggestion? Thanks, Natalie This me be an issue with the

Re: Tomcat 6 getRemoteUser() returns null

2007-12-21 Thread Natalie Wang
It does not work either. Thanks, Natalie --- Gabe Wong [EMAIL PROTECTED] wrote: Natalie Wang wrote: Hi, We have to retrieve the userid of the remote user when the user logs on. But request.getRemoteUser() is returning null in Tomcat 6. Authentication is done through LDAP. It

Re: how to run a simple jsp file

2007-12-21 Thread Joly M
*JSP content:* *html !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version

Re: [Announce] Enhanced ISAPI Redirector + Tomcat Connector Binaries (and IIS 6.0)

2007-12-21 Thread Travis Haagen
Tim, Have you had experience testing your version of the ISAPI redirector DLL with IIS 6.0? What specific IIS configuration settings take the fullest advantage of the persistent HTTP connections that your version offers? Also, I've seen zero discussion thus far on whether version 1.2.25 of the

Re: Tomcat and IIS losing their link

2007-12-21 Thread Travis Haagen
It appears that my problem with IIS losing its link with Tomcat was actually an application problem, as several of you suggested. The JMX thread dump (very helpful over terminal services) indicated that 100 threads were locked up with Hibernate trying to get a database connection from DBCP. Upon

Re: [Announce] Enhanced ISAPI Redirector + Tomcat Connector Binaries (and IIS 6.0)

2007-12-21 Thread Martin Gainty
Travis- Since this is a tomcat users list could you give us a quick definition on the delta between worker process isolation mode and IIS 5 isolation mode Thanks/ M-- - Original Message - From: Travis Haagen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday,

Re: Tomcat 6 getRemoteUser() returns null

2007-12-21 Thread Gabe Wong
Natalie Wang wrote: It does not work either. Thanks, Natalie --- Gabe Wong [EMAIL PROTECTED] wrote: Natalie Wang wrote: Hi, We have to retrieve the userid of the remote user when the user logs on. But request.getRemoteUser() is returning null in Tomcat 6.

Re: Add URLClassLoader search path to default context classloader

2007-12-21 Thread Bill Barker
lightbulb432 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In a web application that loads resources expecting them to be available on the classpath (e.g. ResourceBundle.getInstance(resource)), is there a way to alter what locations the web context classloader includes? Not