accesing webapplication without the web context

2009-09-23 Thread rama.honge
Hi, What to know to to access a webapp without using the context in the url in tomcat 6.0 for ex: Instead of using http://myserver.com/TestApp, it should be accessible with http://myserver.com There is only one web application deployed in tomcat. Any help on this much appreciated.. -- View

RE: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Caldarale, Charles R
> From: Daniel B. Thurman [mailto:d...@cdkkt.com] > Subject: Re: Tomcat 5.5.28: Admin Tool login page problem? > > http://localhost:8080/admin > > All of my URLs in regards to Tomcat is on port 8080. > Now I see why that proxy reference was mentioned! Now back to your original problem: I can't r

RE: Tomcat and Outgoing SSL

2009-09-23 Thread Caldarale, Charles R
> From: Steve Cohen [mailto:sco...@javactivity.org] > Subject: Tomcat and Outgoing SSL > > I would like some way to configure Tomcat This has nothing to do with Tomcat - it plays no role whatsoever in your outbound requests. Whatever certificates you make available to the remote web services i

JNDI authentication

2009-09-23 Thread daniel steel
All, we are using jndi authentication for authenticating the user against active directory. the user is hitting the load balancer and then the request is forwarded to the tomcat. at times we are seeing slowness and on analyzing the access log, the jsps having high execution duration do not

Tomcat and Outgoing SSL

2009-09-23 Thread Steve Cohen
I have an backend application that runs under Tomcat. It does not serve Web pages. It depends on various services that use SSL in one way or another: 1) It connects with a vendor's Web Service over https:, which depends on one of the certificates in the default cacerts file 2) It connects with

Re: what does j_security_check do in clustering?

2009-09-23 Thread Filip Hanik - Dev Lists
On 09/23/2009 11:40 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 9/23/2009 10:12 AM, Filip Hanik - Dev Lists wrote: j_security_check is stored as a note with the user session, but that data is not being replicated. So, the session notes spec

Re: webapps examples and security manager

2009-09-23 Thread Alan
Many thanks dear Mark. It's late here too but I finally, with your diligent and precious help, I could figure out what's going on here and even manage to have tomcat with security working for tomcat6.0.20 and tomcat5.5.28 (but not for tomcat5.5.26, last version available for Mac via Fink). Thank

Re: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Daniel B. Thurman
On 09/23/2009 01:28 PM, Caldarale, Charles R wrote: >> From: Daniel B. Thurman [mailto:d...@cdkkt.com] >> Subject: Re: Tomcat 5.5.28: Admin Tool login page problem? >> >> >> Just wondering if this problem has been reported: >> URL: http://localhost/admin >> >> I have A

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread George Sexton
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Wednesday, September 23, 2009 2:32 PM > To: Tomcat Users List > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > > From: George Sexton [mailto:geor...@mhsoftware.co

Re: webapps examples and security manager

2009-09-23 Thread Mark Thomas
Mark Thomas wrote: > Mark Thomas wrote: >> Alan wrote: >>> Thanks Mark, let's deal by parts: >> OK. I've reproduced it. It is happening with 1.6.0_14 and 1.6.0_16 JVMs >> but not a 1.6.0_00 JVM. >> >> The latest 1.5 JVM seems OK too. >> >> Time to check the release notes. I'll hopefully have a work

Re: webapps examples and security manager

2009-09-23 Thread Mark Thomas
Mark Thomas wrote: > Alan wrote: >> Thanks Mark, let's deal by parts: > > OK. I've reproduced it. It is happening with 1.6.0_14 and 1.6.0_16 JVMs > but not a 1.6.0_00 JVM. > > The latest 1.5 JVM seems OK too. > > Time to check the release notes. I'll hopefully have a workaround (other > than usi

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Caldarale, Charles R
> From: George Sexton [mailto:geor...@mhsoftware.com] > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > The one case I can say where this may be desirable is log4j. Because of > dependencies, log4j.jar has to go in common/lib, and log4j.properties > has to go into

RE: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Caldarale, Charles R
> From: Daniel B. Thurman [mailto:d...@cdkkt.com] > Subject: Re: Tomcat 5.5.28: Admin Tool login page problem? > > Just wondering if this problem has been reported: > URL: http://localhost/admin > > I have Apache running at port 80 and Tomcat running at port 8080. Then please explain ho

Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)

2009-09-23 Thread doume
Nikola Milutinovic-2 wrote: > > Just to make the picture complete, it can also be done with Apache + > mod_auth_kerb + mod_jk. It does require some steps and the most tricky one > is getting a proper Kerberos Service key from MS ADS. We've done it, so it > is not really a big deal. However, peop

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread George Sexton
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Wednesday, September 23, 2009 7:24 AM > To: Tomcat Users List > Subject: RE: jars in common/lib directory Vs webapps/APP_NAME/WEB- > INF/lib > > > From: V Jayakumar [mailto:v...@hotmail.com] > > S

Re: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Daniel B. Thurman
On 09/23/2009 11:42 AM, David Smith wrote: > Daniel B. Thurman wrote: > >> On 09/23/2009 10:13 AM, Mark Thomas wrote: >> >>> Daniel B. Thurman wrote: >>> Just wondering if this problem has been reported: URL: http://localhost/admin 1) The Login.jpg image is n

Re: webapps examples and security manager

2009-09-23 Thread Mark Thomas
Alan wrote: > Thanks Mark, let's deal by parts: OK. I've reproduced it. It is happening with 1.6.0_14 and 1.6.0_16 JVMs but not a 1.6.0_00 JVM. The latest 1.5 JVM seems OK too. Time to check the release notes. I'll hopefully have a workaround (other than using Java 1.5) shortly. Mark --

Re: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread David Smith
Daniel B. Thurman wrote: > On 09/23/2009 10:13 AM, Mark Thomas wrote: > >> Daniel B. Thurman wrote: >> >> >>> Just wondering if this problem has been reported: >>> >>> URL: http://localhost/admin >>> >>> 1) The Login.jpg image is not appearing, and the >>> Login/Password inputboxes

Re: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Daniel B. Thurman
On 09/23/2009 10:13 AM, Mark Thomas wrote: > Daniel B. Thurman wrote: > >> Just wondering if this problem has been reported: >> >> URL: http://localhost/admin >> >> 1) The Login.jpg image is not appearing, and the >> Login/Password inputboxes are a bit off center >> and to the right. >

Re: what does j_security_check do in clustering?

2009-09-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 9/23/2009 10:12 AM, Filip Hanik - Dev Lists wrote: > j_security_check is stored as a note with the user session, but that > data is not being replicated. So, the session notes specifically are not replicated? That seems to indicate that se

Re: server.findServices() returns empty array

2009-09-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sergio, On 9/23/2009 7:41 AM, Sergio Bello wrote: > I'm trying to get access to services defined inside the server element > on my server.xml. I'm using a Tomcat 5.0.28. > My problem is that when I execute the next code: > > Server server = ServerFac

RE: Error when starting ASF Tomcat on iSeries

2009-09-23 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Error when starting ASF Tomcat on iSeries > > > I'm using java 1.3. > > Those classes are not in any of the current codebases. At a guess you > are using Tomcat 3. That hasn't been supported for many years. You need > to upgrade to a su

Re: webapps examples and security manager

2009-09-23 Thread Alan
Thanks Mark, let's deal by parts: On Wed, Sep 23, 2009 at 16:33, Mark Thomas wrote: > Alan wrote: >> Ok, I downloaded the latest and did: >> >> wget -c >> http://mirror.ox.ac.uk/sites/rsync.apache.org/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz >> tar xvfz apache-tomcat-5.5.28.tar.gz

Re: Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Mark Thomas
Daniel B. Thurman wrote: > Just wondering if this problem has been reported: > > URL: http://localhost/admin > > 1) The Login.jpg image is not appearing, and the > Login/Password inputboxes are a bit off center > and to the right. > > 2) After logging in successfully, one is taken to:

Re: Error when starting ASF Tomcat on iSeries

2009-09-23 Thread Mark Thomas
John McCleskey wrote: > I'm trying to start ASF Tomcat on an iSeries running Webfacing, but my > server is throwing a java exception in the java log file. The error is: > > java.lang.NullPointerException > > org/apache/tomcat/context/AutoSetup.engineInit(Lorg/apache/tomcat/core/ContextManager;)V+

Tomcat 5.5.28: Admin Tool login page problem?

2009-09-23 Thread Daniel B. Thurman
Just wondering if this problem has been reported: URL: http://localhost/admin 1) The Login.jpg image is not appearing, and the Login/Password inputboxes are a bit off center and to the right. 2) After logging in successfully, one is taken to: URL: http://localhost:8080/admin/image

Error when starting ASF Tomcat on iSeries

2009-09-23 Thread John McCleskey
I'm trying to start ASF Tomcat on an iSeries running Webfacing, but my server is throwing a java exception in the java log file. The error is: java.lang.NullPointerException org/apache/tomcat/context/AutoSetup.engineInit(Lorg/apache/tomcat/core/ContextManager;)V+86 (AutoSetup.java:118) org/apach

Re: webapps examples and security manager

2009-09-23 Thread Mark Thomas
Alan wrote: > Ok, I downloaded the latest and did: > > wget -c > http://mirror.ox.ac.uk/sites/rsync.apache.org/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz > tar xvfz apache-tomcat-5.5.28.tar.gz # gnu tar What is going on here? Which version of Tomcat are you using? > cd ~/Programmes

Re: server.findServices() returns empty array

2009-09-23 Thread Mark Thomas
Sergio Bello wrote: >>> Yes, I try to access the Server object from a web app. What I really >>> want is to create new Connector objects on demand, for what I need to >>> access the Service object through the Server one (If I'm not wrong). >>> Thanks > Sorry, version is 6.0.20 That begs the quest

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-23 Thread André Warnier
Christopher Schultz wrote: ... I dunno. This is pretty ugly. Again, setting everything to UTF-8 dramatically reduces headaches in these areas. Thanks, Christopher. I fully agree. - To unsubscribe, e-mail: users-unsubscr...@to

RE: Error while deploying

2009-09-23 Thread Caldarale, Charles R
> From: Paul S [mailto:paulstadle...@hotmail.com] > Subject: Error while deploying > > SEVERE: Error deploying web application archive sample.war > java.lang.IllegalArgumentException > at > java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:301) > at > java.util.zip.Zip

Re: what does j_security_check do in clustering?

2009-09-23 Thread Filip Hanik - Dev Lists
j_security_check is stored as a note with the user session, but that data is not being replicated. Filip On 09/17/2009 12:05 AM, Rex Wang wrote: Dear Tomcat, I meet a problem when config a web project which using the form based security in clustering. When I set session affinity = true in m

Re: webapps examples and security manager

2009-09-23 Thread Alan
Ok, I downloaded the latest and did: wget -c http://mirror.ox.ac.uk/sites/rsync.apache.org/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz tar xvfz apache-tomcat-5.5.28.tar.gz # gnu tar cd ~/Programmes/apache-tomcat-6.0.20 export CATALINA_HOME=$PWD amadeus[2161]:~/Programmes/apache-tomcat

Custom CallbackHandler

2009-09-23 Thread Albert Attard
Hi: I would like to authenticate users based of a token provided as a parameter in the URL. For example, the user will access the url: http://www.myserver.com/myapplication/myservlet?token=abcdefg123456 I would like to authenticate the user by that URL without having to submit a username and a pa

Error while deploying

2009-09-23 Thread Paul S
Hi Env: Tomcat: 6.0.20 Linux I am getting this error while trying to deploy a war file. It is a simple app which has a tld. SEVERE: Error deploying web application archive sample.war java.lang.IllegalArgumentException at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream

Re: server.findServices() returns empty array

2009-09-23 Thread Sergio Bello
Sergio Bello escribió: Sergio Bello escribió: Mark Thomas escribió: Sergio Bello wrote: Hi all, I'm trying to get access to services defined inside the server element on my server.xml. I'm using a Tomcat 5.0.28. My problem is that when I execute the next code: Server server = ServerFactory.

Re: server.findServices() returns empty array

2009-09-23 Thread Sergio Bello
Sergio Bello escribió: Mark Thomas escribió: Sergio Bello wrote: Hi all, I'm trying to get access to services defined inside the server element on my server.xml. I'm using a Tomcat 5.0.28. My problem is that when I execute the next code: Server server = ServerFactory.getServer(); Service[] s

RE: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Caldarale, Charles R
> From: V Jayakumar [mailto:v...@hotmail.com] > Subject: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib > > 1) Instead of including these jar files as part of the > applicationX.war, can they be copied to $CATALINA_HOME/common/lib Yes, but it's usually a bad idea to do so. Note tha

Re: Yet another swallowOutput question

2009-09-23 Thread Mark Thomas
Vinicius Carvalho wrote: > Thanks Mark, do I have to set it for each context I have? I'm using > several Hosts with few contexts on each. Yes, but there is a short-cut. Set it in CATALINA_BASE/conf/context.xml and it should apply to all contexts on that instance. Mark > > Regards > > On Fri, S

Re: server.findServices() returns empty array

2009-09-23 Thread Sergio Bello
Mark Thomas escribió: Sergio Bello wrote: Hi all, I'm trying to get access to services defined inside the server element on my server.xml. I'm using a Tomcat 5.0.28. My problem is that when I execute the next code: Server server = ServerFactory.getServer(); Service[] services = server.findSe

Re: Yet another swallowOutput question

2009-09-23 Thread Vinicius Carvalho
Thanks Mark, do I have to set it for each context I have? I'm using several Hosts with few contexts on each. Regards On Fri, Sep 18, 2009 at 4:18 PM, Mark Thomas wrote: > Vinicius Carvalho wrote: >> Hello there! I'm trying to redirect some legacy System.out calls in >> our app to a different log

Re: server.findServices() returns empty array

2009-09-23 Thread Mark Thomas
Sergio Bello wrote: > Hi all, > I'm trying to get access to services defined inside the server element > on my server.xml. I'm using a Tomcat 5.0.28. > My problem is that when I execute the next code: > > Server server = ServerFactory.getServer(); > Service[] services = server.findServices(); > >

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-23 Thread David kerber
Leon Rosenberg wrote: On Tue, Sep 22, 2009 at 1:41 PM, Excelsior Java Team wrote: Please help us beta test Apache Tomcat support in the forthcoming Excelsior JET 7.0 release. Excelsior JET is a compliant Java SE 6 implementation (JVM) with an ahead-of-time native code compiler. Version 7.0 w

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-23 Thread David kerber
ramzi khlil wrote: Hi, I think it's not a good idea especially when application are subject to modification frequetly or if we plan to deploy a new application on the server. Tomcat has a very interesting feature which allows user to load application on fly without closing the server. But If I c

RE: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-23 Thread Excelsior Java Team
Thanks for raising valid concerns in your follow-ups. I have posted an extended response to our blog: http://www.excelsior-usa.com/blog/?p=304 I think the discussion does not quite belong to this mailing list, but we will be happy to continue it in the comments to the above blog post, or privat

server.findServices() returns empty array

2009-09-23 Thread Sergio Bello
Hi all, I'm trying to get access to services defined inside the server element on my server.xml. I'm using a Tomcat 5.0.28. My problem is that when I execute the next code: Server server = ServerFactory.getServer(); Service[] services = server.findServices(); the services array is 0 length, wh

Re: Building a mod_jk that is webdav-enabled

2009-09-23 Thread Arne v.Irmer
> Very interesting. How did you find out? Whar are they doing exactly > (config or changing source code)? Well, I always use tomcat only with mod_jk on the server. WebDAV is part of our web-application an uses the sso-valve with our application. I installed on a new machine (OpenSuse 11.1) Apache

Re: Building a mod_jk that is webdav-enabled

2009-09-23 Thread Rainer Jung
On 23.09.2009 12:27, Arne v.Irmer wrote: > Hi Mark, > your right. The mod_jk coming with SuSE has turned of webdav methods. But > building mod_jk from source solves the problem. Very interesting. How did you find out? Whar are they doing exactly (config or changing source code)? Regards, Rainer

Re: Building a mod_jk that is webdav-enabled

2009-09-23 Thread Rainer Jung
On 23.09.2009 12:16, Mark Thomas wrote: > Arne v.Irmer wrote: >> Hi, >> I try to connect a webdav enabled servlet via ajp and mod_jk. But every >> webdav-method is rejected (Status 405) via ajp and accepted via http. >> >> What are the tricks in compiling mod_jk with enabled webdav methods? > >

Re: Building a mod_jk that is webdav-enabled

2009-09-23 Thread Arne v.Irmer
Hi Mark, your right. The mod_jk coming with SuSE has turned of webdav methods. But building mod_jk from source solves the problem. Thanks for the immediate response. Yours Arne > > Hi, > > I try to connect a webdav enabled servlet via ajp and mod_jk. But every > > webdav-method is rejected (

Re: Building a mod_jk that is webdav-enabled

2009-09-23 Thread Mark Thomas
Arne v.Irmer wrote: > Hi, > I try to connect a webdav enabled servlet via ajp and mod_jk. But every > webdav-method is rejected (Status 405) via ajp and accepted via http. > > What are the tricks in compiling mod_jk with enabled webdav methods? None. AJP supports all of the WebDAV methods. Mar

Building a mod_jk that is webdav-enabled

2009-09-23 Thread Arne v.Irmer
Hi, I try to connect a webdav enabled servlet via ajp and mod_jk. But every webdav-method is rejected (Status 405) via ajp and accepted via http. What are the tricks in compiling mod_jk with enabled webdav methods? Yours Arne Apache: Event-2.2.13-1.1 Tomcat Connectors:1.2.28 smime.p7s Desc

Re: jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread Mikolaj Rydzewski
V Jayakumar wrote: 1) Instead of including these jar files as part of the applicationX.war, can they be copied to $CATALINA_HOME/common/lib Yes, you can copy them. However, for many reasons it's better not to 'optimize' tomcat in such way. 2) What is the significance of $CATALINA_HOME/com

jars in common/lib directory Vs webapps/APP_NAME/WEB-INF/lib

2009-09-23 Thread V Jayakumar
Hello OS : RedHat Linux Enterprise 5.0 Apache Tomcat version : 5.5.20 We install many application beans in Tomcat. Each application's war file contains $ jar tvf appName.war 0 Thu Sep 03 18:25:10 IST 2009 META-INF/ 106 Thu Sep 03 18:25:08 IST 2009 META-INF/MANIFEST.MF

Re: Tomcat hangs on Startup

2009-09-23 Thread Mark Thomas
RogerV wrote: > I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to > start automatically through the init process, but it hangs using 95+% of the > CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the > process. I've tried manually starting it as root with /e