Re: Tomcat+apache on name_based virtual hosts

2010-03-04 Thread Pid
On 04/03/2010 04:01, chenll wrote: Note: both a.university.com and b.university.com are built on Apache instead of Tomcat, so they are not in the directory of webapps. just a.university.com/webap is pointed to the web application which is built on Tomcat. Please start a new thread. p

Re: Apache 2.2.3(mod_proxy_ajp) - Tomcat 6.0.13 Loadbalancing - error logs in apache

2010-03-04 Thread Pid
On 04/03/2010 05:34, jkv wrote: Thanks for the reply Ster, But we don't have the privilege to upgrade Apache, Find someone who does. because we are using Red Had Enterprise Linux and we have to go with the default httpd installation in it, i.e., 2.2.3, Why? RHEL has a built-in updater

RE: RE: problems with welcome files

2010-03-04 Thread martin
From: martin [mailto:mrt...@googlemail.com] Subject: problems with welcome files i have installed apache http 2.2.14 and tomcat 6.0.24. Step 1: Get httpd out of the game; test with Tomcat's HTTP Connector first. When that works, add httpd back in. Ok, httpd is not running anymore I added

Creating a directory from a webapp

2010-03-04 Thread Florent Georges
Hi, Within my webapp, I try to create a new directory on the file system by using File.mkdir(). This webapp has the permissions read write on the parent directory: grant codeBase file:${catalina.base}/webapps/myapp/- { permission java.io.FilePermission /somewhere/-, read,write;

Re: Creating a directory from a webapp

2010-03-04 Thread Peter Crowther
On 4 March 2010 10:40, Florent Georges li...@fgeorges.org wrote: Hi, Within my webapp, I try to create a new directory on the file system by using File.mkdir(). This webapp has the permissions read write on the parent directory: grant codeBase file:${catalina.base}/webapps/myapp/- {

Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Chinmoy Chakraborty
Hi All, Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running? I tried to delete the jar from 'lib' after putting following entry in catalina.policy: grant codeBase file:${catalina.home}/webapps/abcd/WEB-INF/lib { permission java.io.FilePermission read, write, delete; };

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Pid
On 04/03/2010 10:53, Chinmoy Chakraborty wrote: Hi All, Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running? I tried to delete the jar from 'lib' after putting following entry in catalina.policy: It might be possible, but it would be a *very* bad idea. grant

Startin tomcat5 instead of jsvc with java

2010-03-04 Thread Petr Hracek
Hello *, from the documention I have read that tomcat5.5 ( http://tomcat.apache.org/tomcat-5.5-doc/setup.html) can be started with the help of command jsvc. Is there any other possibility how to start up tomcat with java? I wouldn't start tomcat 5.5 over rcScript stored in /etc/init.d/ Thank you

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Chinmoy Chakraborty
Actually I want to update the jar with the latest one inside 'lib'...and want to make our app hot-updatable. what would be a good idea for that? On Thu, Mar 4, 2010 at 5:23 PM, Pid p...@pidster.com wrote: On 04/03/2010 10:53, Chinmoy Chakraborty wrote: Hi All, Is it possible to delete a

can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
Hi: I am using Ubuntu9.10. I have install jdk1.6 in /home/kk/ProgramFiles/jdk1.6 , also I have set up a permanent environment variable JAVA_HOME which link to the jdk directory. I just downloaded apache-tomcat-6.0.24.tar.gz and extact it to /home/kk/ProgramFiles/apache-tomcat-6.0.24, since the

Re: Creating a directory from a webapp

2010-03-04 Thread Konstantin Kolinko
2010/3/4 Florent Georges li...@fgeorges.org:  Is there anything else I could check out?  I cannot find any clue of what I did wrong. File.mkdir() Try with File.mkdirs() Note, that catalina.policy is only used when you are running with a SecurityManager enabled. (Many people run without it).

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Mark Thomas
On 04/03/2010 12:56, Chinmoy Chakraborty wrote: Actually I want to update the jar with the latest one inside 'lib'...and want to make our app hot-updatable. what would be a good idea for that? Replace the WAR file with the a new version. Tomcat (with default settings) will take care fo the

Re: Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is running?

2010-03-04 Thread Michael Powe
On Thu, Mar 04, 2010 at 06:26:50PM +0530, Chinmoy Chakraborty wrote: Actually I want to update the jar with the latest one inside 'lib'...and want to make our app hot-updatable. what would be a good idea for that? Hello, See: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html in

Re: Startin tomcat5 instead of jsvc with java

2010-03-04 Thread Markus Schönhaber
04.03.2010 13:50, Petr Hracek: from the documention I have read that tomcat5.5 ( http://tomcat.apache.org/tomcat-5.5-doc/setup.html) can be started with the help of command jsvc. Is there any other possibility how to start up tomcat with java? I wouldn't start tomcat 5.5 over rcScript

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread David Smith
On 3/4/2010 8:00 AM, maven apache wrote: Hi: I am using Ubuntu9.10. I have install jdk1.6 in /home/kk/ProgramFiles/jdk1.6 , also I have set up a permanent environment variable JAVA_HOME which link to the jdk directory. I just downloaded apache-tomcat-6.0.24.tar.gz and extact it to

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
2010/3/4 David Smith d...@cornell.edu On 3/4/2010 8:00 AM, maven apache wrote: Hi: I am using Ubuntu9.10. I have install jdk1.6 in /home/kk/ProgramFiles/jdk1.6 , also I have set up a permanent environment variable JAVA_HOME which link to the jdk directory. I just downloaded

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Markus Schönhaber
04.03.2010 14:00, maven apache: I am using Ubuntu9.10. I have install jdk1.6 in /home/kk/ProgramFiles/jdk1.6 , also I have set up a permanent environment variable JAVA_HOME which link to the jdk directory. I just downloaded apache-tomcat-6.0.24.tar.gz and extact it to

RE: can not start tomcat and the jre_home var error

2010-03-04 Thread Caldarale, Charles R
From: David Smith [mailto:d...@cornell.edu] Subject: Re: can not start tomcat and the jre_home var error It seems that tomcat did not identify the JAVA_HOME var, so how to do next in my case? How exactly are you starting tomcat? It's important to understand where tomcat is getting it's

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Markus Schönhaber
04.03.2010 14:44, maven apache: The tomcat directory is /home/kk/ProgramFiles/apache-tomcat-6.0.24' In the terminal , I enter this the bin directory and run sudo ./startup.sh Why do you start Tomcat as root? -- Regards mks

RE: can not start tomcat and the jre_home var error

2010-03-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error In the terminal , I enter this the bin directory and run sudo ./startup.sh Try it without the sudo. You should never run Tomcat as root. - Chuck THIS COMMUNICATION MAY

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
2010/3/4 Markus Schönhaber tomcat-us...@list-post.mks-mail.de 04.03.2010 14:44, maven apache: The tomcat directory is /home/kk/ProgramFiles/apache-tomcat-6.0.24' In the terminal , I enter this the bin directory and run sudo ./startup.sh Why do you start Tomcat as root? Ok, I tried it

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Markus Schönhaber
04.03.2010 14:56, maven apache: 2010/3/4 Markus Schönhaber tomcat-us...@list-post.mks-mail.de Why do you start Tomcat as root? Ok, I tried it again. ? -- Regards mks - To unsubscribe, e-mail:

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error In the terminal , I enter this the bin directory and run sudo ./startup.sh Try it without the sudo. You should

RE: RE: problems with welcome files

2010-03-04 Thread Caldarale, Charles R
From: martin [mailto:mrt...@googlemail.com] Subject: RE: RE: problems with welcome files Ok, httpd is not running anymore You didn't have to shut off httpd, just use the HTTP Connector port. But if you're not using httpd for anything else, they you should get rid of it. Added this Alias

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Markus Schönhaber
04.03.2010 15:01, maven apache: 2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error In the terminal , I enter this the bin directory and run sudo ./startup.sh Try it

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
2010/3/4 Markus Schönhaber tomcat-us...@list-post.mks-mail.de 04.03.2010 15:01, maven apache: 2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error In the terminal , I

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
I have config the manager by adding user username=admin password=000 roles=role1/ Then I found that I can not enter the manager page by a 403 error. I restart the tomcat many times, and I am sure I enter the correct username and password. However I always got the 403 error page.

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Philip Wigg
On 4 March 2010 14:13, maven apache apachemav...@gmail.com wrote: 2010/3/4 Markus Schönhaber tomcat-us...@list-post.mks-mail.de 04.03.2010 15:01, maven apache: 2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread Markus Schönhaber
04.03.2010 15:13, maven apache: Now I found there is something wrong with the apr component because I got the info: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

Re: java.util.logging - help needed with configuration and problem determination

2010-03-04 Thread Konstantin Kolinko
2010/3/3 Stuart Grace sgr...@us.ibm.com: logging.properties handlers = 6IBINET.org.apache.juli.FileHandler, 7IBMIN.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler You have not defined .handlers property in your logging.properties. If I understand the

Re: Creating a directory from a webapp

2010-03-04 Thread Florent Georges
Konstantin Kolinko wrote: Is there anything else I could check out? I cannot find any clue of what I did wrong. File.mkdir() Try with File.mkdirs() Thanks. But the parent dir does exists and yes, I've tried that without success ;-) Note, that catalina.policy is only used when you

RE: can not start tomcat and the jre_home var error

2010-03-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error I have config the manager by adding user username=admin password=000 roles=role1/ Did you remove the XML comment markers from around the list? - Chuck THIS COMMUNICATION

Re: Creating a directory from a webapp

2010-03-04 Thread Konstantin Kolinko
2010/3/4 Florent Georges li...@fgeorges.org:  Is there a simple way to disable the security manager in order to be sure this is such an issue? There is a setting somewhere. I do not run Ubuntu and thus do not know exactly, but it was mentioned several times in the archives of this list. At

Re: Creating a directory from a webapp

2010-03-04 Thread Florent Georges
Konstantin Kolinko wrote: At least, you can replace your catalina.policy with grant { permission java.security.AllPermission; }; Good to know, thanks for the hint! In the meantime, using strace, I figured out what the problem was: as simple as a wrong owner of one of the parent

Re: Creating a directory from a webapp

2010-03-04 Thread Peter Crowther
On 4 March 2010 15:43, Florent Georges li...@fgeorges.org wrote: In the meantime, using strace, I figured out what the problem was: as simple as a wrong owner of one of the parent directories. I must admit I am not really proud of this, but well, there is no diagnostic at all with mkdir() :-(

HttpServletRequest.getParameter() inside a valve

2010-03-04 Thread PAROLINI Antonio
Hello, We are using a custom valve that scan the request parameters (POST AND GET) . If it find a parameter called secuId with a valide value , it set the session principals ( a kind of SSO).When this work most of the times, we have somes cases where calling the HttpServletRequest

Re: unified doXXX()

2010-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aryeh, On 3/2/2010 7:12 PM, Aryeh M. Friedman wrote: Christopher Schultz wrote: If that string above is your entire POST request body, then it's not properly formatted. Instead, it should be: call=8347812459870132405987234985023450987 or

Re: HttpServletRequest.getParameter() inside a valve

2010-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antonio, On 3/4/2010 10:58 AM, PAROLINI Antonio wrote: We are using a custom valve that scan the request parameters (POST AND GET) . If it find a parameter called secuId with a valide value , it set the session principals ( a kind of SSO).When

RE: DB connection error -Tomcat 6 config

2010-03-04 Thread Anthony J. Biacco
If you're still getting the error: Could not create resource factory instance [Root exception is java.lang.InstantiationException : org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory Make sure you have tomcat-dbcp.jar in your tomcat/lib. The .dbcp.dbcp. factory comes from that jar (versus

[6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
Hi everyone, We have a custom resource defined in context.xml: Resource name=jdbc/postgres scope=Shareable type=javax.sql.DataSource ... driverClassName=org.postgresql.Driver/ We prefer to locate the postgres jar file in CATALINA_BASE, so we modified this line in catalina.config

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Konstantin Kolinko
2010/3/4 Rob S. r...@tintri.com: common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,* ${catalina.base}/lib,${catalina.base}/lib/*.jar* The above is wrong. The only mask that is recognized there is *.jar and only when used as a suffix. There are too many extra *s in your value.

RE: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Caldarale, Charles R
From: Rob S. [mailto:r...@tintri.com] Subject: [6.0.20] Using -Dcatalina.config breaks our databases resources We have a custom resource defined in context.xml: Which context.xml? The global one in the conf directory, or an app-specific one in its META-INF directory? we modified this

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
Hi Konstantin, The quote I'm seeing in your response isn't the line that was in my previous message, perhaps something is coming across scrambled? Those extra * characters aren't in our catalina.properties.

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
Hi Chuck, Which context.xml? The global one in the conf directory, or an app-specific one in its META-INF directory? The global one in the conf directory. we modified this line in catalina.config I presume you mean catalina.properties in the above statment. Yep, typo, sorry :)

RE: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Caldarale, Charles R
From: Rob S. [mailto:r...@tintri.com] Subject: Re: [6.0.20] Using -Dcatalina.config breaks our databases resources The global one in the conf directory. That means the Resource applies to all your webapps; is that what you want? DataSource ds = (DataSource) new

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
Hi Chuck, That means the Resource applies to all your webapps; is that what you want? Yep, we only have one webapp and it's deployed to our appliance :) DataSource ds = (DataSource) new InitialContext().lookup(java:comp/env/jdbc/postgres); ds.getConnection();

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
1) getting JMX running on Tomcat so I can connect w/jconsole. I've been following the 6.0 monitoring guide although jconsole says it can't connect and netstat doesn't report anyone listening on the port I specified. This is working and I can see the ServerClassLoader MBean inside of

RE: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Caldarale, Charles R
From: Rob S. [mailto:r...@tintri.com] Subject: Re: [6.0.20] Using -Dcatalina.config breaks our databases resources I've been following the 6.0 monitoring guide although jconsole says it can't connect What JVM version are you using? What's your platform? (If you're running Tomcat as a

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Rob S.
Ah, well I have to apologize, it looks like my IDE was culprit. IDEA deploys Tomcat from a newly created directory at each deploy (i.e. it copies some known files from CATALINA_BASE). Well of course it doesn't copy /lib since we created that directory - it's not part of the standard

isapi_redirect-1.2.30 - problem with dynamic images.

2010-03-04 Thread David Bolsover
I'm having a problem with the latest isapi_redirect-1.2.30. The problem is one of rendering some images generated dynamically (sequences of images loaded from database) using the RichFaces a4j:mediaOutput supported by a4j:poll tags to trigger image change and reload every 10 seconds. Platform:

Re: isapi_redirect-1.2.30 - problem with dynamic images.

2010-03-04 Thread Pid
On 04/03/2010 21:59, David Bolsover wrote: I'm having a problem with the latest isapi_redirect-1.2.30. The problem is one of rendering some images generated dynamically (sequences of images loaded from database) using the RichFacesa4j:mediaOutput supported bya4j:poll tags to trigger image

Help: ISAPI filter is unable to send data to IIS 7 on Windows 2008

2010-03-04 Thread Jason Foy
Hi guys, I have an issue here. I have Tomcat ISAPI filter(AMD64/1.2.28) set up with IIS 7 on windows 2008. Due to the backward compatibility, the Tomcat has to run as 32-bit mode. The ISAPI filter is 64-bit version and IIS 7 is also running 64-bit version. Everything work ok, including the

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
2010/3/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error I have config the manager by adding user username=admin password=000 roles=role1/ Did you remove the XML comment

RE: can not start tomcat and the jre_home var error

2010-03-04 Thread Caldarale, Charles R
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error Did you remove the XML comment markers from around the list? Yes , I did . Clearly, you did not remove them. This is the file:

Re: can not start tomcat and the jre_home var error

2010-03-04 Thread maven apache
Ok, it works, thanks for all of you . :) 2010/3/5 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: can not start tomcat and the jre_home var error Did you remove the XML comment markers from around the list? Yes , I did

NIO Connector results in requests with no responses

2010-03-04 Thread Ashish Jain
Hi, I am having an application which is based on comet and dojo. The application uses ActiveMQ to publish messages.I am using firebug to see the request/response of the XMLHttprrequests. I see a difference in behaviour in tomcat 6.0.18 where for every request there is a response. However in case

Tomcat 6 NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource

2010-03-04 Thread Logan Scott
Hello. I am a new subscriber. I have used Tomcat 5.5 without errors for almost two years, but I am still a novice at modifying the default configuration. I have twenty servers with an identical configuration. I have just upgraded one of my servers to Tomcat 6. I have verified that the only

RE: Tomcat 6 NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource

2010-03-04 Thread Caldarale, Charles R
From: Logan Scott [mailto:lo...@sqlist.com] Subject: Tomcat 6 NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource I have verified that the only change is Tomcat -- all other server config details remain unchanged from tomcat 5.5, including a minimalist server.xml file. If you used the

RE: Curious to know if the following is permitted

2010-03-04 Thread Karthik Nanjangude
Hi I believe what u said is correct, but if u have seen this thread as I have already said I could have used JBOSS or OC4j, but it does not make sense to use these J2EE containers for the simple 1 or 2 requirements My applications are restricted infrastructure to only WEB based and are made

POST to a url

2010-03-04 Thread vishalsant
I have a POST I need to a do to a url ( through Apache Jmeter and in fact any descent programmatic HTTP request libraries) I have my servlet is a war ( test.war ) with the web.xml having the correct url mapping servlet servlet-nametest/servlet-name

Re: Deploy war

2010-03-04 Thread Kaushal Shriyan
On Wed, Mar 3, 2010 at 9:22 PM, Gurkan Erdogdu cgurkanerdo...@gmail.com wrote: I wonder whether you have looked at http://tomcat.apache.org/tomcat-6.0-doc/index.html or not 2010/3/3 Kaushal Shriyan kaushalshri...@gmail.com On Wed, Mar 3, 2010 at 4:50 PM, André Warnier a...@ice-sa.com wrote:

Re: HttpServletRequest.getParameter() inside a valve

2010-03-04 Thread Rainer Frey
On Thursday 04 March 2010 17:41:17 Christopher Schultz wrote: It does: calling request.getParameter will consume the request body if the following are true: 1. The protocol is HTTP or HTTPS 2. The method is POST 3. The Content-Type is application/x-www-form-urlencoded [4. A call to

Comet event.setTimeOut

2010-03-04 Thread Animesh Sonkar
Hi, Was curious what event.setTimeOut(timeOutValue) means on a comet event. 1. Does it mean that the request will timeout after timeOutValue and the server will close the connection and call the END event. I am trying to establish a persistent connection for asynchronous message delivery using