Re: Memory Leak in Tomcat

2011-02-22 Thread הילה
I've posted my problem in the sourceforge forums, but no comments have received so far. :( If you have any suggestions to replace this, another way to authenticate the tomcat to the DB with user and password that do not appear in clear text, I'll be glad to hear about it. Thanks Hila 2011/2/23 A

RE: Issue with oralce drive under tomcat 7

2011-02-22 Thread Caldarale, Charles R
> From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] > Subject: Issue with oralce drive under tomcat 7 > Caused by: java.lang.ClassCastException: > oracle.jdbc.driver.OracleResultSetMetaData > cannot be cast to oracle.jdbc.OracleResultSetMetaData This is frequently caused by h

Re: Memory Leak in Tomcat

2011-02-22 Thread André Warnier
הילה wrote: ... The tomcat service (on windows) ran with local system... Ok, now I get it. ... Now the tomcat service is running (as a Windows domain user) and authenticates to the DB with a domain user The above are two entirely distinct matters. 1) the Tomcat service was running as "Lo

Re: Tomcat 7 Cluster Issue

2011-02-22 Thread Filip Hanik - Dev Lists
It can probably be fixed, there are a few references to this http://www.techienuggets.com/CommentDetail?tx=355312 https://issues.jboss.org/browse/JGRP-777 I'd have to reproduce it, so that I can fix it/work around it. I will open a bugzilla item with this In the meantime, does this still happe

Tomcat 7 Cluster Issue

2011-02-22 Thread Bruce Pease
Good Afternoon: I am running Windows server 2008 with Oracle/Sun jdk 1.6u24 and Tomcat 7.0.8. Windows server 2008 multicast is defaulted on. I am attempting to set up a cluster (config that currenly works in Windows server 2000 and tomcat 6), and getting the exception listed below. I haven't

Re: Memory Leak in Tomcat

2011-02-22 Thread הילה
Hey, When going to tomcat site, you can download "32-bit/64-bit Windows Service Installer " That's what I have installed. When installing this, it creates the tomcat service in windows + the regular folder under c:\progr

Issue with oralce drive under tomcat 7

2011-02-22 Thread Robert.Jenkin
Hello I am run a webapp under tomcat that also runs under websphere and weblogic. I have identified changes to war and code needed to handle the jdni issues as well as differences in configuration of web services between the three containers. The issue I am having (it seems strange and not bel

RE: Secure AJP over ssl

2011-02-22 Thread Jason Pyeron
> -Original Message- > From: Mladen Turk [mailto:mt...@apache.org] > Sent: Tuesday, February 22, 2011 1:20 > To: users@tomcat.apache.org > Subject: Re: Secure AJP over ssl > > On 02/21/2011 10:31 PM, Jason Pyeron wrote: > > Does (or could) tomcat 5.5 support encrypted AJP? The > frontend

Re: Memory Leak in Tomcat

2011-02-22 Thread André Warnier
הילה (Interesting: my Thunderbird email client seems unable to remove your name above...) Anyway, hi. Your initial description says : Until now, we used [b]SQL Authentication[/b] for the tomcat service and configuration (user and password for tomcat to access the DB was provided within the xml

Re: related to bad url encoding?...

2011-02-22 Thread André Warnier
alex wrote: ... so, what do I do if I need to show error in this scenario and I run standalone tomcat? ... It seems to me that by the 400 status code, the error is already shown, correctly. Tomcat is doing the minimum, but it is doing it according to the RFC. HTTP RFC 2616 says: 10.4 Clie

Re: related to bad url encoding?...

2011-02-22 Thread Mark Thomas
On 22/02/2011 21:36, alex wrote: > Mark Thomas wrote: >> On 22/02/2011 17:26, Caldarale, Charles R wrote: From: alex [mailto:alex.alex.alex.9...@gmail.com] Subject: Re: related to bad url encoding?... shouldn't it be 404 error if tomcat can't map "this call"? >>> Tomcat 7 has introdu

Re: Memory Leak in Tomcat

2011-02-22 Thread הילה
Hey, I have used JProfiler to monitor the tomcat process, but haven't found anything useful. you can see that the tomcat process is the only one that increasing, and it started to happen since i switched to windows authentication.. so I think it's connected? what is a heap analysis? how can i enab

Re: related to bad url encoding?...

2011-02-22 Thread alex
Mark Thomas wrote: On 22/02/2011 17:26, Caldarale, Charles R wrote: From: alex [mailto:alex.alex.alex.9...@gmail.com] Subject: Re: related to bad url encoding?... shouldn't it be 404 error if tomcat can't map "this call"? Tomcat 7 has introduced revised handling for situations where there is n

Re: web application automatically goes to localhost

2011-02-22 Thread André Warnier
Caldarale, Charles R wrote: From: ahmet temiz [mailto:ahmettemi...@gmail.com] Subject: web application automatically goes to localhost My JSF web application automatically goes to localhost. I'll bite: what does the above sentence actually mean? I'll bite also. Using a bit of guesswork (Pid

Re: AccessLogValve pattern (timestamp, bytes sent and time taken)

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antonios, On 2/21/2011 11:05 AM, Antonios Kogias wrote: > If we use tomcat 7.0.8, the "timing for the whole request processing > cycle" will incorporate transmit time? > e.g. if using HTTP/1.0, will it represent the total time until the > teardown of

Re: connecting jsp with mysql

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anup, On 2/21/2011 10:20 AM, Anup Niroula wrote: > Hi, > out.println ("Cannot connect to database server message "+e.getMessage()); > "This gives following error msg: > "Cannot connect to database server com.mysql.jdbc.Driver." How about e.printStack

Re: Site Attack

2011-02-22 Thread Mark Thomas
On 22/02/2011 19:57, marketing wrote: > I notice a high density of warming messages in a TC log file this morning. > The message is "an attempt was made to authenticate the locked user > 'admin'". I guess that a script was used to hack into the admin account. > How the attack occurs? And how to hav

Re: Tomcat log analysis

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozgur, On 2/21/2011 4:31 AM, Ozgur Ozdemircili wrote: > Hi, > > I am looking for a log analysis program to make sense of our application > logs. We run Tomcat 5x in 9 servers and every server has the same > application installed. Yet when we need to

Site Attack

2011-02-22 Thread marketing
I notice a high density of warming messages in a TC log file this morning. The message is "an attempt was made to authenticate the locked user 'admin'". I guess that a script was used to hack into the admin account. How the attack occurs? And how to have a good protection? ---

Re: Reading a file in tomcathome/conf folder

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 2/17/2011 5:23 AM, Konstantin Kolinko wrote: > 2011/2/17 Captain Cid : >> >> Yes ..got your point...using spring its easy though >> >> My only question is , >> >> can it be accessed using classloader and getResource() >> > > Why? Just

Re: datasource & persistenceUnit configuration

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 2/20/2011 1:51 PM, Martin Mucha wrote: > Yes, I know I cannot use container managed EntityManager. Tomcat does > not support JTA, ok. But I should be able, also the article points it > out, to use application managed EntityManager with RESO

Re: Memory Leak in Tomcat

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 הילה, On 2/20/2011 8:28 AM, הילה wrote: > I work in a company which we use Tomcat (5.5.26 and recently we've upgraded > it to 6.0.29) to run our application. Any chance you can move all the way up to 6.0.32? > since we changed > configuration to use

RE: Updating Tomcate Windows Service

2011-02-22 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Updating Tomcate Windows Service > 'diff' is your friend. Some kind souls have ported it to win32: > http://www.google.com/search?q=diff%20win32 For Windows, I prefer these: http://www.grigsoft.com/ - Chuck THIS

Re: how to caculate the PV,ip,PU according to the tomcat log

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/18/2011 7:38 PM, maven apache wrote: > how to caculate the PV,ip,PU according to the tomcat log? Good question. What are PV, ip, and PU? > For the ip I can use : > > select count(distinct ip)... Okay, that explains /o

Re: Updating Tomcate Windows Service

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/17/2011 2:37 PM, Caldarale, Charles R wrote: >> From: spr...@gmx.eu [mailto:spr...@gmx.eu] >> Subject: RE: Updating Tomcate Windows Service > >> I will save my conf dir and wars, reinstall tomcat and then copy the >> conf and wars back t

Re: Tomcat Secuirty Problem

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jamana, On 2/17/2011 12:42 AM, jamana ramesh wrote: >> I am new to Tomcat server. I agree with /all/ of Chuck's comments. >> grant codeBase "http://localhost:8080/lanwan/-"; { Your code is in a JAR, not being served from a URL, right? Or, are you t

Re: CRLF in HTTP headers

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adrian, On 2/17/2011 10:51 AM, Adrian Fretwell wrote: > Thank you for your feedback, I have just confirmed CRLF is actually > present by using http://www.askapache.com/online-tools/http-headers-tool/ > When I grab the headers myself in a hex dump, onl

Re: Can datasource password be changed in jdbc-pool?

2011-02-22 Thread Filip Hanik - Dev Lists
hi Nicholas, yes and no. You can change the password by simply doing DataSource ds = PoolConfiguration pcf = (PoolConfiguration)ds; pcf.setPassword(...); however, this change would only take into effect for newly created connections, and not the ones already in the pool. There is some neede

RE: web application automatically goes to localhost

2011-02-22 Thread Caldarale, Charles R
> From: ahmet temiz [mailto:ahmettemi...@gmail.com] > Subject: web application automatically goes to localhost > My JSF web application automatically goes to localhost. I'll bite: what does the above sentence actually mean? http://www.catb.org/~esr/faqs/smart-questions.html - Chuck THIS COM

Re: JMX login error : java.lang.NullPointerException at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)

2011-02-22 Thread Dustin Chesterman
Thanks for the reply. netstat -a | grep 9888 returned nothing. netstat -an | grep 9888 returns : tcp0 0 :::9888 :::* LISTEN Removing the -debug parameter has no effect. -Dustin On Tue, Feb 22, 2011 at 9:17 AM, Martin Gainty wrote: > netstat -a | grep

web application automatically goes to localhost

2011-02-22 Thread ahmet temiz
hello My JSF web application automatically goes to localhost. what are possible reasons I will appreciate if you give any idea. kind regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km

Can datasource password be changed in jdbc-pool?

2011-02-22 Thread Nicholas Sushkin
Hi, I am checking out the new Tomcat's jdbc-pool. So far it's great. I like JMX monitoring feature. I searched lists and google for how to change database password in the JNDI data source and couldn't find anything. Can it be done? If not, then can JMX MBean be extended with an operation to s

Re: related to bad url encoding?...

2011-02-22 Thread Mark Thomas
On 22/02/2011 17:26, Caldarale, Charles R wrote: >> From: alex [mailto:alex.alex.alex.9...@gmail.com] >> Subject: Re: related to bad url encoding?... > >> shouldn't it be 404 error if tomcat can't map "this call"? > > Tomcat 7 has introduced revised handling for situations where there is no > R

RE: related to bad url encoding?...

2011-02-22 Thread Caldarale, Charles R
> From: alex [mailto:alex.alex.alex.9...@gmail.com] > Subject: Re: related to bad url encoding?... > shouldn't it be 404 error if tomcat can't map "this call"? Tomcat 7 has introduced revised handling for situations where there is no ROOT webapp; you might want to try that. Regardless, you sti

Re: related to bad url encoding?...

2011-02-22 Thread alex
André Warnier wrote: alex wrote: Mark Thomas wrote: On 22/02/2011 13:27, alex wrote: alex wrote: Mark Thomas wrote: On 21/02/2011 04:25, alex wrote: hi all, I get 404 err, if I add %D0 to url, but I get just blank page if I add %zD0 . I'm supposed to get bad request in this case. how do I

Re: related to bad url encoding?...

2011-02-22 Thread André Warnier
alex wrote: Mark Thomas wrote: On 22/02/2011 13:27, alex wrote: alex wrote: Mark Thomas wrote: On 21/02/2011 04:25, alex wrote: hi all, I get 404 err, if I add %D0 to url, but I get just blank page if I add %zD0 . I'm supposed to get bad request in this case. how do I fix this problem? C

Re: related to bad url encoding?...

2011-02-22 Thread alex
Mark Thomas wrote: On 22/02/2011 13:27, alex wrote: alex wrote: Mark Thomas wrote: On 21/02/2011 04:25, alex wrote: hi all, I get 404 err, if I add %D0 to url, but I get just blank page if I add %zD0 . I'm supposed to get bad request in this case. how do I fix this problem? Check the respons

JMX login error : java.lang.NullPointerException at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)

2011-02-22 Thread Dustin Chesterman
Hello all - We are running Tomcat 6 on RHEL 5 and Oracle JDK 1.6_24 and I am having a problem loggin into the jmx services remotely through jconsole. Here is my setenv.sh : JAVA_OPTS="-Xms512m -Xmx1152m -XX:MaxPermSize=512m" CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun

RE: 400 Errors while trying to deploy manager app.

2011-02-22 Thread Martin Gainty
this shared-build war sounds like you *might* want a base servlet webapp (portal) servicing n number of portals checkout liferay, hippo and jetspeed (portal management systems) for those specific implementations... follow konstantins advice to successfully deploy this webapp under tomcat Martin

RE: server running website

2011-02-22 Thread Caldarale, Charles R
> From: Joel [mailto:felixtheratr...@gmail.com] > Subject: server running website > But when I try to go to the page "localhost:8080" or "localhost:80" > Safari says: > "Safari can't open the page "http://function2.basiceng.umr.edu/view"; because > Safari can't find the server "function2.basiceng

Re: 400 Errors while trying to deploy manager app.

2011-02-22 Thread Dave Shevett
On 2/22/2011 3:37 AM, Konstantin Kolinko wrote: > Two steps: > 1. Remove path and docBase from the file. > 2. Rename the context file into "META-INF/context.xml" (exact name -- > case of characters does matter!) and add it into your war file. (That > is easy with Ant, or with `jar -uf`, I do not k

Re: server running website

2011-02-22 Thread David Smith
Check the logs to find out what happened when you attempted to start the server. Is there something else already running on the ports tomcat is trying to use? What does netstat list as listening ports with and without tomcat running? Also what connectors are configured in your tomcat's server.xm

server running website

2011-02-22 Thread Joel
So my boss has a Tomcat folder that was running a website at his old job. I don't know how to determine the exact version but in the realease notes there is: "$Id: RELEASE-NOTES-4.1.txt,v 1.81 2003/10/27 13:40:27 remm Exp $" he wants to run it on a new machine, the OS is: Mac OS X Server 10.6.5 W

Re: related to bad url encoding?...

2011-02-22 Thread Mark Thomas
On 22/02/2011 13:27, alex wrote: > alex wrote: >> Mark Thomas wrote: >>> On 21/02/2011 04:25, alex wrote: hi all, I get 404 err, if I add %D0 to url, but I get just blank page if I add %zD0 . I'm supposed to get bad request in this case. how do I fix this problem? >>> >>> Check

Re: related to bad url encoding?...

2011-02-22 Thread alex
alex wrote: Mark Thomas wrote: On 21/02/2011 04:25, alex wrote: hi all, I get 404 err, if I add %D0 to url, but I get just blank page if I add %zD0 . I'm supposed to get bad request in this case. how do I fix this problem? Check the response headers. If you don't see a 400 response, exactly

Re: Tomcat won't serve newly created files

2011-02-22 Thread angelicos
>One possibility is that you have a ROOT.xml in conf/Catalina/localhost that >defines a different docBase for your webapp. Sorry there's no such file defined in that directory path. There is only one version of tomcat on the system. The web.xml is the one I found in the conf folder for tomcat and

Re: Regarding GSoC

2011-02-22 Thread Mark Thomas
On 22/02/2011 08:39, rukhsana afroz wrote: > Hi, > > I want to address the attention from the administrative people of this > group. Are you participating in GSoC program this year? If so, which part of > this project, you want to enhance? If you could give me a little bit idea > about that, it wo

Regarding GSoC

2011-02-22 Thread rukhsana afroz
Hi, I want to address the attention from the administrative people of this group. Are you participating in GSoC program this year? If so, which part of this project, you want to enhance? If you could give me a little bit idea about that, it would be great help for me. I am very interested to work

Re: 400 Errors while trying to deploy manager app.

2011-02-22 Thread Konstantin Kolinko
2011/2/22 Dave Shevett : > So in all honesty, this is now going back to a question I was trying to > solve to begin with - this may hijack the thread, but here goes anyway. > > The other vhosts have fixed deployments.  They have ROOT.xml's that > deploy the .war file for each vhost: > > >