Re: database application

2008-08-14 Thread André Warnier
Brantley Hobbs wrote: Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... Actually, I think he may have missed this one as he was hammering someone else for using a packaged Tomcat instead of the official distribution. ;-) 3..2..1..

Re: My Log4j statements going crazy in catalina.out

2008-08-14 Thread emerson cargnin
Thanks gregor. This would be to get tomcat to rotate right? What i was testing was to have a log4j.properties (which I believe is the same outcome as the log4j.xml) in the common/classes, and commons logging and log4j jars in the common/lib. This worked right I had a tomcat.log which rotates and

Re: database application

2008-08-14 Thread Brantley Hobbs
LOL Absolutely no problem. Someone has to do it! B. Caldarale, Charles R wrote: From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Subject: Re: database application Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... (Sorry I'm late, our marvelous

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Johnny Kewl
- Original Message - From: Peter Desjardins [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, August 14, 2008 6:58 AM Subject: Hot redeploying a WAR - HTML is not refreshed Hi. I have a web application that consists of an online help system. It serves HTML content using

Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread KalChitown
We recently upgraded from 6.0.14 to 6.0.18 due to an XSS security alert we received. The following code was working in 6.0.14 version but not in 6.0.18. Can anyone explain this or a work around. String sessionId = Our session ID; String cookieValue = sessionId + ; Path=/; HttpOnly ; Cookie

Re: database application

2008-08-14 Thread David Smith
Ok... I'm assuming you are using tomcat 5.0.x given they way you configured your datasource. If this isn't true, you might want to get a copy of the tomcat-docs webapp for your particular version of tomcat. The way JDBC connections are configured changed with tomcat 5.5.x and 6.0.x.

Re: Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread Tim Funk
With 6.0.18 : ; Path=/; HttpOnly [literally] becomes part of the cookie value. [That it worked before was sheer luck.] -Tim KalChitown wrote: We recently upgraded from 6.0.14 to 6.0.18 due to an XSS security alert we received. The following code was working in 6.0.14 version but not in

Tomcat JConsole

2008-08-14 Thread Tokajac
How can i monitor Tomcat with JConsole? I found sg like: $ CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=test-idc.internet2.edu; $

Re: Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread KalChitown
Tim, Thanks for the reply. Can you explain what you mean by becomes part of the value. I thought I had them part of the cookieValue already? Can point out the change I need to make in my code snippet? -Kal Tim Funk wrote: With 6.0.18 : ; Path=/; HttpOnly [literally] becomes part of the

Tomcat admin webapp LoginModule configuration

2008-08-14 Thread Adam Gordon
I've got the Tomcat admin webapp up and running but am seeing an error (when I try and log in) in catalina.out informing me that there are no LoginModules configured for engine_name We use JAAS for our web app so I'm familiar with the concept of the LoginModule and we have a JAAS Realm

Re: ssl certificate

2008-08-14 Thread Alonzo Wilson
Please explain. How does adding a new connector restart tomcat and activate the new ssl cert? Mark Thomas [EMAIL PROTECTED] 8/12/2008 5:05 PM Alonzo Wilson wrote: 4.1.30 and 6.0.16 4.1.30 you should be able to use the admin app to add a new connector. With 6.0.16 you might be able to use

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Peter Desjardins
Thanks for the information. I know it is not the browser caching. I've tried both IE and Firefox, clearing all caches and refreshing. I did look more closely at what Tomcat is doing when it hot redeploys my WAR file. I'm using an unmodified copy of Tomcat to test this issue. So Tomcat deploys

Re: Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread Tim Funk
A cookie is composed of many parts such as: name, value, path, expiration, secure Cookie.setValue is only meant to set the value of the cookie. Your code had the lucky side effect of setting the path and the HttpOnly flag. If you wish to set a cookie with the HttpOnly flasg set - you need to

RE: https j_security_check apparently Solved :P

2008-08-14 Thread Julio César Chaves Fernández
Hi, I was testing somethings within the login page that is configured in the web.xml file... and there was a piece of code doing a redirection to assure that the page is loaded over https... first i proved with a simple login page over https with no more than the login form ...and it worked

Re: ssl certificate

2008-08-14 Thread Mark Thomas
Alonzo Wilson wrote: Please explain. How does adding a new connector restart tomcat and activate the new ssl cert? It doesn't. In 4.1.30 you can use the admin app to add a connector and start it. In 6.0.16 the admin app doesn't exist so JMX is your only option but this could be tricky so

Re: Tomcat JConsole

2008-08-14 Thread Johnny Kewl
- Original Message - From: Tokajac [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, August 14, 2008 4:24 PM Subject: Tomcat JConsole How can i monitor Tomcat with JConsole? I found sg like: $ CATALINA_OPTS=-Dcom.sun.management.jmxremote

servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread ge
Hi, Servlet works, jsp not. Why? Result of servlet: Datensätze jdbc:mysql://localhost:3306/javatestcom.mysql.jdbc.Driver javauserjavadude NameVorname 1 hello 2 hellox Result of jsp: - Results ${row.foo} ${row.bar} Servlet

Re: Tomcat JConsole

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time

Re: Tomcat JConsole

2008-08-14 Thread Tokajac
I appreciate Your answer a lot, Johnny! Can U provide me more details about configuring? Which file should be edited? Where is the right place to put -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.authenticate=false

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Johnny Kewl
- Original Message - From: Peter Desjardins [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 14, 2008 5:00 PM Subject: Re: Hot redeploying a WAR - HTML is not refreshed Thanks for the information. I know it is not the browser caching. I've

Re: https j_security_check apparently Solved :P

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: I was testing somethings within the login page that is configured in the web.xml file... and there was a piece of code doing a redirection to assure that the page is loaded over https... first i proved

Form design or framework from Eclipse or Tomcat.

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, ge wrote: sql:query var=rs dataSource=jdbc:mysql://localhost:3306/javatest?user=javauserpassword=javadude select id, foo, bar from testdata /sql:query I think you want to use the name of the dataSourced, here, not the URL. You want

RE: Tomcat JConsole

2008-08-14 Thread Caldarale, Charles R
From: Tokajac [mailto:[EMAIL PROTECTED] Subject: Tomcat JConsole $ CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
I'm going to guess the servlet spec version in your web.xml isn't up to a level that supported the JSTL expression language. What's your web.xml look like? --David ge wrote: Hi, Servlet works, jsp not. Why? Result of servlet: Datensätze

RE: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Caldarale, Charles R
From: Peter Desjardins [mailto:[EMAIL PROTECTED] Subject: Re: Hot redeploying a WAR - HTML is not refreshed I did look more closely at what Tomcat is doing when it hot redeploys my WAR file. Exactly how are you accomplishing this hot redeployment? Does Tomcat really shut down the

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Peter Desjardins
Those are excellent suggestions. Thanks. The other thing is that I cant actually recall ever seeing an HTML file in the work folder... I see stuff like... basic_002darithmetic_jsp.class basic_002darithmetic_jsp.java which is what it is used for... ie to hold the compiled JSP's... if you

RE: Tomcat JConsole

2008-08-14 Thread Tokajac
Finally i started with monitoring I was trying to start a remote monitoring with IP address:port Instead of that now i'm using the local monitoring of org.apache.catalina.startup.Bootstrap start Details which regard the discussion: Windows XP; apache-tomcat-5.5.26; jdk1.6.0_07;

tomcat default page

2008-08-14 Thread Zico
Hi, I am working on the dspace of BRAC University. Here is our site: http://dspace.bracu.ac.bd Here, you can see that, the *main page of dspace* takes a longer time to load; in the mean time, the main page of tomcat halts for some seconds. Though i put *CONTENT=0 *in the html tagging,but tomcat

Re: tomcat default page

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zico, Zico wrote: Here, you can see that, the *main page of dspace* takes a longer time to load; in the mean time, the main page of tomcat halts for some seconds. Though i put *CONTENT=0 *in the html tagging,but tomcat pages shows for some

where to place context configuration

2008-08-14 Thread Robert Dietrick
Hi, I just noticed that I had a Context definition in both $CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml and in $CATALINA_HOME/webapps/mywebapp.war/META-INF/context.xml. In both of these context definitions, I define a JNDI database connection pool with the same name and identical

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
I'm going to guess the servlet spec version in your web.xml isn't up to a level that supported the JSTL expression language. What's your web.xml look like? web.xml looks: -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC

Re: where to place context configuration

2008-08-14 Thread Mark Thomas
Robert Dietrick wrote: Hi, I just noticed that I had a Context definition in both $CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml and in $CATALINA_HOME/webapps/mywebapp.war/META-INF/context.xml. In both of these context definitions, I define a JNDI database connection pool with the

Fwd: Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
Please see in text my answer. ge wrote: sql:query var=rs dataSource=jdbc:mysql://localhost:3306/javatest?user=javauserpassword=javadude select id, foo, bar from testdata /sql:query I think you want to use the name of the dataSourced, here, not the URL. You want something like

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Johnny Kewl
- Original Message - From: Peter Desjardins [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 14, 2008 7:00 PM Subject: Re: Hot redeploying a WAR - HTML is not refreshed Those are excellent suggestions. Thanks. The other thing is that I cant

RE: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Martin Gainty
quiesce the container *look for shutdownbat/sh* clean off everything under %TOMCAT_HOME%/work clean off everything under %TOMCAT_HOME%/logs clean off everything under %TEMP% start tc Martin - __ Disclaimer and confidentiality note Everything in this

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
I would very much prefer to use only the one in mywebapp/META-INF/contex.xml, as this is much less invasive (does not require changing/adding anything to tomcat's global config directories). But this doesn't seem to work. I can leave it as is (and am becoming resigned to the fact that this is my

RE: where to place context configuration

2008-08-14 Thread Angus Mezick
Am I the only one that is REALLY disturbed about that idea of REQUIRING two identical files to run an app? One in the war file and one in the conf directory? If the only in the conf directory takes priority, why the one in the war file needed at all? I am just hoping this isn't in tomcat 6.0..

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
You are definitely not alone, Angus. For the record, I'm using Tomcat 5.5. -rob On Thu, Aug 14, 2008 at 11:30 AM, Angus Mezick [EMAIL PROTECTED] wrote: Am I the only one that is REALLY disturbed about that idea of REQUIRING two identical files to run an app? One in the war file and one in

Re: where to place context configuration

2008-08-14 Thread Guojun Zhu
I am not sure about the second case. But I don't have context.xml in the war (META-INF/ directory) and the application works fine for me. On Thu, Aug 14, 2008 at 1:30 PM, Angus Mezick [EMAIL PROTECTED] wrote: Am I the only one that is REALLY disturbed about that idea of REQUIRING two

Re: where to place context configuration

2008-08-14 Thread Mark Thomas
Robert Dietrick wrote: I would very much prefer to use only the one in mywebapp/META-INF/contex.xml, as this is much less invasive (does not require changing/adding anything to tomcat's global config directories). But this doesn't seem to work. That isn't the way it is designed. I can

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
From: Robert Dietrick [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration I would very much prefer to use only the one in mywebapp/META-INF/contex.xml I hope the above is a typo, because if it's really in contex.xml Tomcat won't look at it. But this doesn't seem to

Re: where to place context configuration

2008-08-14 Thread Len Popp
What you're missing is how Tomcat copies the META-INF/context.xml file to conf/localhost/Catalina/mywebapp.xml under some circumstances. (Not surprising that you missed this, since it doesn't seem to be mentioned in the Tomcat docs.) One guess is that context.xml is copied into the conf directory

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
From: Angus Mezick [mailto:[EMAIL PROTECTED] Subject: RE: where to place context configuration Am I the only one that is REALLY disturbed about that idea of REQUIRING two identical files to run an app? Probably, because Tomcat does not require that. You may place the Context element in

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
This thread may be very helpful to you: http://forums.sun.com/thread.jspa?messageID=3335080 Essentially you've declared your tags for jstl 1.1, which requires servlet spec 2.4, not 2.3. Replace the DOCTYPE and web-app with this in your web.xml: web-app

Re: where to place context configuration

2008-08-14 Thread Len Popp
So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? Setting aside for the moment what you think I deserve... That's far from ideal in an environment where the developers and

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread eleonora46
Please see in text This thread may be very helpful to you: http://forums.sun.com/thread.jspa?messageID=3335080 The thread is about EL- I do not use xpression Language. Essentially you've declared your tags for jstl 1.1, which requires servlet spec 2.4, not 2.3. Replace the DOCTYPE and

Re: where to place context configuration

2008-08-14 Thread Mark H. Wood
On Thu, Aug 14, 2008 at 01:57:22PM -0500, Caldarale, Charles R wrote: You may place the Context element in either location, but Tomcat *may* copy the one from META-INF/context.xml to conf/Catalina/[host] so it can access it directly. Proper undeployment will remove the copy. Is there a page

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
On Thu, Aug 14, 2008 at 11:52 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Robert Dietrick [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration I would very much prefer to use only the one in mywebapp/META-INF/contex.xml I hope the above is a typo, because

Re: Hot redeploying a WAR - HTML is not refreshed

2008-08-14 Thread Peter Desjardins
Exactly how are you accomplishing this hot redeployment? Does Tomcat really shut down the application and reload it? I copy the new version of the WAR file into C:\apache-tomcat-6.0.18\webapps\, overwriting the old copy. Here's the log: Aug 14, 2008 3:45:05 PM

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread David Smith
The thread is about EL- I do not use xpression Language. What do you think ${row.foo} is? It's the expression language which isn't being interpreted by your jsp page. Also did you reload your webapp or tomcat afterwards so it pick's up the change? As soon as I copy

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
From: Len Popp [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? Depends on how the

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
From: Mark H. Wood [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration Is there a page somewhere which documents this? I don't think so, at least not in sufficient detail. Mark T's recent message covers the steps: http://marc.info/?l=tomcat-userm=121873999115208w=2

Re: Reading environment variable from Tomcat

2008-08-14 Thread André Warnier
David kerber wrote: Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using

Re: where to place context configuration

2008-08-14 Thread Len Popp
On Thu, Aug 14, 2008 at 15:55, Caldarale, Charles R [EMAIL PROTECTED] wrote: If you just want to replace the webapp, then dropping in a new .war file will not lose the element in conf/Catalina/[host]/[appName].xml file, but things may not be cleaned up properly, especially on Windows systems

Re: Tomcat monitoring

2008-08-14 Thread Kees Jan Koster
Dear Tokajac, I want to monitor performance of Tomcat server when I'm running an application. Memory usage, threads, objects, user sessions, sql queries and as much as possible of other information on server. JMX is the way to go. JConsole was already suggested. If you want to really monitor

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
From: Len Popp [mailto:[EMAIL PROTECTED] Subject: Re: where to place context configuration But earlier you said: if you're updating the .war without doing an undeployment first, you're breaking the rules, and all bets are off. Yes, that was probably a bit excessive. Is there someone who

Re: Tomcat monitoring

2008-08-14 Thread Tokajac
Thanks for your answer Jan! As far as I see http://www.zabbix.com http://www.zabbix.com is not available for WinXP (that's my platform). I downloaded Zapcat. Can Zapcat be useful without zabbix? Any more advice for this situation? Regards -- View this message in context: