Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
HI there, According to the tomcat online document, do I have to modify the context.xml file? $CATALINA_HOME/conf/context.xml with the following new setup: where username/password is the root/admin user/password of the mysql database? thanks > - Original Message - > From

Re: SSL on TOMCAT with keytool

2008-08-27 Thread Alex Mestiashvili
Alexey Eronko wrote: Hello Guys! Don't beat me because I found so much docs about ssl and keystore but I can't get it working with together. I have pem cert,rsa_key and ca cert from my own CA. I don't understand what kind of cert do I need in keystore to make it works on tomcat.

SSL on TOMCAT with keytool

2008-08-27 Thread Alexey Eronko
Hello Guys! Don't beat me because I found so much docs about ssl and keystore but I can't get it working with together. I have pem cert,rsa_key and ca cert from my own CA. I don't understand what kind of cert do I need in keystore to make it works on tomcat. I tried keytool -im

RE: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread Martin Gainty
make sure you have the full path for bash on the first line you have #!/bin/bash i have #!/usr/bin/bash also.. set -vset -o verbosePrints shell input lines as they are read.set -xset -o xtracePrint command traces before executing command. take every opportunity to debug your bash script with e

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
This error looks like an error in your shell script. Maybe someone else can offer up some help with this. I use jsvc in my environment. --David edponce wrote: just that -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied

答复: Failed to override global naming r esources in specific app!

2008-08-27 Thread William
Bcz if no resourcelink into my webapp, the global resource will not be visible. And I tried to remove it, my jsp only got env-entry value from web.xml. In online help: The GlobalNamingResources Component It said like this: ** The GlobalNamingResources element defines

Re: From which stable version Tomcat uses java NIO

2008-08-27 Thread Filip Hanik - Dev Lists
NIO wasn't introduced to Tomcat until sometime in the 6.0 release. The most stable is the current, 6.0.18 Filip Diego Bolanos wrote: >From which stable version Tomcat uses java NIO I spend 30 minutes on google looking for the first stable version of Tomcat that make use of Java NIO package.

Error starting 2nd instance of tomcat

2008-08-27 Thread edponce
I am getting an error starting my 2nd instance with the script i created... this is my error on my command line > [EMAIL PROTECTED] ~]# tomcat5-test start > In the config file > Starting tomcat5-test: [ FAILED ] and this is my catalina.out file... -sh: lin

Re: antioJarLocking not working

2008-08-27 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I set the workdir on the global context - I can see that files are being created there, however that same error still exists. For some reason it insists on looking in Tomcat 6\temp-Foo5 Any suggestions? Mark Thomas wrote: | Aaron Axelsen wrote:

Re: antioJarLocking not working

2008-08-27 Thread Mark Thomas
Aaron Axelsen wrote: > I understand how it works - the problem is that the folder is not > actually getting created. I double checked permissions - and the apache > user does have full permissions to that tomcat 6 folder. Any thoughts? > > The name of the war is temp Foo5.war. I can see folders

RE: Another question about CGI on Tomcat 6 - access

2008-08-27 Thread Ted Byers
OOPS, A slight typo there. Anyway, perhaps a little more information might accelerate obtaining a useful response. What I have found is quite baffling. A practice I routinely use on Apache's httpd server, which works fine, does not work when I try the same thing with Tomcat's CGI. Here is a co

Re: Getting OpenBlueDragon and Tomcat to traverse directories

2008-08-27 Thread Shawn_Usry
Hi Jordan - Was just following this thread and I'm wondering if there's an update on the Open BD - httpd connector you elude to below? I'm getting ready to deploy several OS images for development servers and wonder if I need to stick with CF or if I can make the plunge to OBD! Thanks- Jorda

Re: antioJarLocking not working

2008-08-27 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I understand how it works - the problem is that the folder is not actually getting created. I double checked permissions - and the apache user does have full permissions to that tomcat 6 folder. Any thoughts? The name of the war is temp Foo5.war.

Re: antioJarLocking not working

2008-08-27 Thread Mark Thomas
Aaron Axelsen wrote: > Is there any reason its going to look in temp-Foo5? That is how the antiresource locking works. It copies the entire war to a temp location with a unique name and runs it from there. If you reload it would probably use temp-Foo6 etc. Mark -

Re: antioJarLocking not working

2008-08-27 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The reason we have docbase == appbase is because students will upload war files to the doc base for deployment within a given subdomain. However, that said, there is no reason why we need to set the context path at all, since the war files all dep

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
just that -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied David Smith-2 wrote: > > Anything in catali

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
Anything in catalina.out related to the failed startup? --David edponce wrote: david... my only problem now is [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] i cant find what is the problem in the config

Form Authentication Issues

2008-08-27 Thread Erik Rumppe
Hello All, After getting a response yesterday about BASIC authentication and being told to switch to FORM based authentication, I've been trying to do this for quite awhile and I can get FORM authentication to work sometimes on test applications but I can never get it to work on a real applica

Re: antioJarLocking not working

2008-08-27 Thread Mark Thomas
Aaron Axelsen wrote: > Is there a trick to get antiJarLocking and antiResourceLocking to work > with tomcat 6? I have the following in the config: > > ~unpackWARs="true" autoDeploy="true"> > ~ antiResourceLocking="true" /> Setting docBase==appBase is going to get you a world of pain. I

Re: FW: CVE-2008-2370 Query

2008-08-27 Thread Mark Thomas
Mott, Frank (Dimension Data) wrote: > > Please can someone advise me on my query below. You need one of the following: - 5.5.27 (expected to be released shortly) - a local build with the relevant patch applied Mark > > Regards > Frank > Level 2 Support Engineer > GASDO Team > Dimension

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
Tom, ive done everything as youve indicated and when i run my script i get this error that cant debug, any ideas? [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] this is my script

Re: Failed to override global naming resources in specific app!

2008-08-27 Thread Mark Thomas
William wrote: > Hi, > > description > webapp definition cannot override global one, even though > override attribute set to true. > Why? > Is that the right way to define resource for common use and > redefine it within specific webapp? > > scenario > version: 5.5.20 > global definition in c

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
ive duplicated my folder...modified the specif files created a script for starting up the 2nd instance and when i start it i get this error, but cant debut it... any ideas anybody? [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test:

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
david... my only problem now is [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] i cant find what is the problem in the config file? any ideas? David Smith-2 wrote: > >> >> [EMAIL PROTECTED] rc5.d]# tomca

SSL on TOMCAT with keytool

2008-08-27 Thread Alexey Eronko
Hello Guys! Don't beat me because I found so much docs about ssl and keystore but I can't get it working with together. I have pem cert,rsa_key and ca cert from my own CA. I don't understand what kind of cert do I need in keystore to make it works on tomcat. I tried keytool -im

antioJarLocking not working

2008-08-27 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a trick to get antiJarLocking and antiResourceLocking to work with tomcat 6? I have the following in the config: ~antiResourceLocking="true" /> ~ ~ There do not appear to be any error logs on anything, but the jar's

Re: Tomcat 5.5 won't use APR

2008-08-27 Thread Len Popp
On Wed, Aug 27, 2008 at 12:03, Gregor Schneider <[EMAIL PROTECTED]> wrote: > If I'm not mistaken, Tomcat should state in tomcat.log.INFO that it is > using APR, right? Right. > So according to the above tomcat.log.INFO, is it > true that in my case Tomcat is not using the APR? No, it also logs a

Re: Can't execute servlet project

2008-08-27 Thread David Smith
The datasource for your webapp isn't setup correctly. Take a look at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html for help on how to properly setup a database connection pool. My only edit that article I would recommend is don't add ?autoReconnect=true to the en

Re: Can't execute servlet project

2008-08-27 Thread David Smith
The only web.xml file you should be editing is in the WEB-INF folder of your webapp -- DbTest in this case. Don't place it anywhere else and don't mess with the web.xml file in tomcat's conf directory unless you have an excellent reason to as those settings apply to _all_ webapps under tomcat.

Re: Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
BTW, where should I place the web.xml file in the tomcat server? The web (root) execution path of my tomcat server is: /tomcat/apache-tomcat-5.5.26/webapps/DBTest Thanks Sam > - Original Message - > From: sam wun > Sent: 28/08/08 02:45 am > To: Tomcat Users List, Tomcat Users List >

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
HI there, I managed to fix the jdk version error, now it comes with a different error. The url I am trying to put on the firefox browser is http://10.1.9.1:8080/DBTest/CreateCustomerServlet The error is: TTP Status 500 - type Exception report message description The server encount

Tomcat 5.5 won't use APR

2008-08-27 Thread Gregor Schneider
Hi folks, some background-information first: OS : Debian (Etch) Tomcat: Tomcat 5.5.26 Java : 1.5.014 I've compiled jsvs (which is running) and tomcat-native. I've copied all compiler-output from tomcat-native to $catalina-home/lib: -rw-r--r-- 1 tomcat tomcat 1506416 2008-08-26 15:49 l

Tomcat 5.5 won't use APR

2008-08-27 Thread Gregor Schneider
Hi folks, some background-infos: OS: -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
is that something like this... ln -s /etc/tomcat5-test S71tomcat5-test? David Smith-2 wrote: > >> >> [EMAIL PROTECTED] rc5.d]# tomcat5-test start >> -bash: /usr/bin/tomcat5-test: Permission denied > You need to add the execute privilege to your tomcat5-test script. Take > a look at the man

Migration from 4.1 to 6

2008-08-27 Thread Jody Williams
I need to migrate from tomcat 4.1 to 6. Are there any concerns I need to know about before starting? Are there any suggestions to make the transition easier? In the data center, we are using a RedHat (AS 2.1 I believe) server. I don't have the ability to test the application on another server to

RE: Re: Can't execute servlet project

2008-08-27 Thread Peter Crowther
> From: sam wun [mailto:[EMAIL PROTECTED] > OK, I followed your instruction to invoke the servlet class > file, but I got errors. [...] > root cause java.lang.UnsupportedClassVersionError: Bad version number in > .class file You're compiling your class with a newer Java version than your Tomcat in

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
[EMAIL PROTECTED] rc5.d]# tomcat5-test start -bash: /usr/bin/tomcat5-test: Permission denied You need to add the execute privilege to your tomcat5-test script. Take a look at the man page for chmod. ... wich was /etc/tomcat5 (where i have the catalina policies and jkproperties, etc) for /etc

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
OK, I followed your instruction to invoke the servlet class file, but I got errors. the url is http://10.1.9.1:8080/DBTest/CreateCustomerServlet Errors are: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from ful

Re: Can't execute servlet project

2008-08-27 Thread David Smith
Looks normal .. you won't get a file named CreateCustomerServlet under DbTest. You should get a class named CreateCustomerServlet.class in WEB-INF/classes/servlet. That class will be called when your webapp receive's a request for http://localhost:8080/DbTest/CreateCustomerServlet (assuming t

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
ive created this start script in the /usr/bin/ folder...what i did is modified the previous path of the original tomcat instance to the new one... wich was /etc/tomcat5 (where i have the catalina policies and jkproperties, etc) for /etc/tomcat5-testbut that raised other questions should i be

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
that is on windows... I am working on linux via ssh! I dont have anything installed on my PC... David Smith-2 wrote: > > If you installed tomcat using the .exe installer, go get the .zip > download and grab the service.bat file from it's bin directory. If you > installed .zip version of tom

Tomcat 5.5.26 OutOfMemoryError -Xms -Xmx Set

2008-08-27 Thread Tom Grahame (GMSA)
I'd like to confirm that I am trying the right things in fixing a memory error and discover what else I can do to resolve my problem. I realise this is a common problem as I have Googled, read the Tomcat memory FAQ and searched the mailing lists. I have tried looking at catalina.out however I am no

Re: Multiple authentication within a webapps

2008-08-27 Thread Johnny Kewl
- Original Message - From: "python my" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 27, 2008 12:02 PM Subject: Multiple authentication within a webapps Hi there, I'm running tomcat v5.5.26 in my machine. I would like to add tomcat-authentication feature into my webapps. I would

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
I got a similar web.xml, but the is different. Here is the entire content of my web.xml. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>        

Re: config problem

2008-08-27 Thread Eric Gichuhi
Assuming you are running private IP's in your internal network and a public IP on the external network, you can create a dns such as mynetwork.mydomain.com which will resolve to the private IP when accessed inside the network and public IP when accessed externally. use this name as the hostname in

Re: Can't execute servlet project

2008-08-27 Thread David Smith
But if you followed the tutorial, there should be a servlet mapping in your web.xml looking like what I copied and pasted from the article below: Create Customers Servlet ListCustomers ListCustomers servlet.ListCustomersServlet ListCustomers /ListCustomers This defines a s

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
HI there, It sounds logical, but there is no LIstCustomers in the DBTest folder. Thanks Sam > - Original Message - > From: David Smith > Sent: 27/08/08 09:59 pm > To: Tomcat Users List > Subject: Re: Can't execute servlet project > > I see the jsp is a view and as such wasn'

RE: Can't execute servlet project

2008-08-27 Thread Martin Gainty
tough to follow without seeing the code can you start with a simple example as described in http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html The value of beanName is either a package and class name or an Expression that evaluates to a package and class name, and is passed to Be

Re: redeploy/delete issue with tomcat6

2008-08-27 Thread Mark Shifman
Read the faq. I want to redeploy web applications, how do I prevent resources from getting locked? http://wiki.apache.org/tomcat/FAQ/Windows#Q5 Aaron Axelsen wrote: > I've been tasked with setting up a tomcat enviorment for course work. > The instructor is working with jruby. The problem is tha

Re: Can't execute servlet project

2008-08-27 Thread David Smith
I see the jsp is a view and as such wasn't designed to be run on it's own. Try http://localhost/DBTest/ListCustomers in your browser. That should hit the servlet which in turn should generate the required bean and forward the user to your jsp. --David sam wun wrote: Hi, thanks for tr

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
Hi, thanks for trying to help. I dont' have a clue on this *bean*. The entire tutorial doesn't mention about how to setup a bean... The tutorial I;ve followed is shown as below: http://java.sys-con.com/node/152270 Thanks Sam > - Original Message - > From: David Smith > Sent:

Multiple authentication within a webapps

2008-08-27 Thread python my
Hi there, I'm running tomcat v5.5.26 in my machine. I would like to add tomcat-authentication feature into my webapps. I would like to have multiple user (role) login to different part of the webapps. The details is like this: for "user1" (role1), only can access content under "WEB-INF/pages/aaa

FW: CVE-2008-2370 Query

2008-08-27 Thread Mott, Frank (Dimension Data)
Please can someone advise me on my query below. Regards Frank Level 2 Support Engineer GASDO Team Dimension Data United Kingdom Dimension Data House Building 2, Waterfront Business Park Hampshire GU51 3QT +44 (0) 1252 779 370 Office +44 (0) 1252 779 010 Fax [EMAIL PROTECTED] -Or

Re: Tomcat 5.5.0.26 / Performance issue

2008-08-27 Thread Anthony COMMUNIER
Hi Peter 2008/8/27, Peter Crowther <[EMAIL PROTECTED]>: > > > From: Anthony COMMUNIER [mailto:[EMAIL PROTECTED] > > I'am doing load tests with a web application that is deployed > > under Tomcat 5.5.0.26 > > Tomcat has 3-character version numbers, so this is probably 5.0.26 or > 5.5.26? Sorry, i

RE: Tomcat 5.5.0.26 / Performance issue

2008-08-27 Thread Peter Crowther
> From: Anthony COMMUNIER [mailto:[EMAIL PROTECTED] > I'am doing load tests with a web application that is deployed > under Tomcat 5.5.0.26 Tomcat has 3-character version numbers, so this is probably 5.0.26 or 5.5.26? > With only one request (no load just one call) it tooks 150 ms > to call the m

Failed to override global naming resources in specific app!

2008-08-27 Thread William
Hi, description webapp definition cannot override global one, even though override attribute set to true. Why? Is that the right way to define resource for common use and redefine it within specific webapp? scenario version: 5.5.20 global definition in conf/server.xml: webapp defin

config problem

2008-08-27 Thread reno . rkcrew
hello, we are facing a problem! config: jdk 1.4 tomcat 4 the server is configured to be accessed by an network internal IP but it is not working with an external IP . i did the config in the server.xml but it is not working [...] [...

Tomcat 5.5.0.26 / Performance issue

2008-08-27 Thread Anthony COMMUNIER
Hi, I'am doing load tests with a web application that is deployed under Tomcat 5.5.0.26 / Windows 2003 / VMWare Dual core Opteron 1.8 Ghz / 2GB. We only have tuned the memory parameters (512 MB), all other parameters are the default parameters (JVM and Tomcat). I have corrected all performance iss