why datasource get an already closed connection?

2009-09-04 Thread vicattomcat
Hi buddies, I want to ask a question about connection pool, and my environment is apache-tomcat-5.5.27, mysql-5.0.67(mysql-connection-j-5.1.8) and default apache DBCP. Here is a short description of the problem I met. I configured a datasource in $catalina.base/conf/server.xml, and get a

Re: Class loading question (with aspectj)

2009-09-04 Thread Mark Thomas
neo anderson wrote: I read the document at http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html and have a question. What is the class loading order if the classes are located under /WEB-INF/classes/ and /WEB-INF/lib/ respectively? The search order is always: /WEB-INF/classes

Re: An unexpected error has been detected by Java Runtime Environment:

2009-09-04 Thread Tsirkin Evgeny
Why SIGBUS is Cool? What is strange is that running 32 bit java helped. Of course i can explain it that the 32 have less address space and it does not get to the bad RAM ,but still ... Evgeny On Fri, Sep 4, 2009 at 12:32 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN

RE: maling list archives and bug tracker dumps for academic research evaluation

2009-09-04 Thread Iqbal, Aftab
Dear Mark, thanks for your response and cooperation. For the evaluation of our research work, we would like to run experiments on the last 12 months activity on Tomcat project. I would like to have the tomcat-dev archives of last 12 months (Aug2008 - Aug 2009). It would be even

Re: Class loading question (with aspectj)

2009-09-04 Thread neo anderson
I do not put the same class i.e. TapestryFilter.java in both location (WEB-INF/classes and WEB-INF/lib). The way how I test is by copying TapestryFilter.java to another foler under WEB-INF/classes and renaming it to another name e.g. MyTapestryFilter.java. Then configure web.xml to use

jkstatus - Error connecting to tomcat - ajp_process_callback write failed

2009-09-04 Thread mateo-jl
Hello everybody, i got many errors about mod_jk but i don't know whether it's the good forum ... I have configured 4 tomcat identical servers reached by a front server apache through mod_jk. When I look at the jkstatus page, I can note a strange behaviour: only the same server (4) is under

Re: maling list archives and bug tracker dumps for academic research evaluation

2009-09-04 Thread Konstantin Kolinko
2009/9/4 Iqbal, Aftab aftab.iq...@deri.org: Any update or news about the maling list archives and bug tracker dumps ? regards Aftab Iqbal By the way, the mail archives are available here: http://tomcat.apache.org/mail/dev/ Those are gzipped mbox files. Though I do not see that location to

Re: Monitor Tomcat Performance

2009-09-04 Thread ramzi khlil
Hello, Try using yourkit. Ramzi On Fri, Sep 4, 2009 at 12:34 AM, Zaki Akhmad zakiakh...@gmail.com wrote: Hello, I am using tomcat on my web application. I want to monitor my tomcat performance. What tools I can use? From the cacti graph, shows that the memory usage is very big (90%).

Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Lataxes, Karl
I am attempting to migrate a servlet from Tomcat 5.0.25 to 6.0.18, but my efforts to access it while running under 6.0.18 have been unsuccessful. The servlet is accessed on the server via HTTP, but has web interfaces for simple testing and to check servlet loading and client-server message

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Caldarale, Charles R
From: Lataxes, Karl [mailto:karl.lata...@nielsen.com] Subject: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18 The context.xml and web.xml files as described are similar to what we have running under Tomcat 5.0.25. Which is likely the problem. The Context element has

Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread David Smith
As configured below, try http://d1uap:4901/UMI/UMI/servlet/HUControlServlet The servlet mapping in WEB-INF/web.xml should not include the context path of the webapp. --David Lataxes, Karl wrote: I am attempting to migrate a servlet from Tomcat 5.0.25 to 6.0.18, but my efforts to access it

RE: Monitor Tomcat Performance

2009-09-04 Thread Caldarale, Charles R
From: Zaki Akhmad [mailto:zakiakh...@gmail.com] Subject: Monitor Tomcat Performance I am using tomcat on my web application. Congratulations. Care to tell us the version of Tomcat and JVM you're using? I want to monitor my tomcat performance. If you're running on a reasonably recent JVM,

RE: why datasource get an already closed connection?

2009-09-04 Thread Caldarale, Charles R
From: vicattomcat [mailto:vicattom...@googlemail.com] Subject: why datasource get an already closed connection? Who can give me any advice to solve this problem in another way or tell me which is the best way among the ways I talked about? Look at the validationQuery and testOnBorrow

RE: Class loading question (with aspectj)

2009-09-04 Thread Caldarale, Charles R
From: neo anderson [mailto:javadeveloper...@yahoo.co.uk] Subject: Re: Class loading question (with aspectj) I do not put the same class i.e. TapestryFilter.java in both location (WEB-INF/classes and WEB-INF/lib). A .java file is not a class file. The way how I test is by copying

Can't fully undeploy a servlet application in Tomcat 6.0.18

2009-09-04 Thread JOman
I'm using the Tomcat Web Application Manager to deploy and undeploy servlet applications on a Windows 2003 server box. Sometimes, not all of the files are deleted from the application directory during an undeploy, because something has them locked. The files that are locked are one or more

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Lataxes, Karl
I made the recommended changes but am still getting the exception. The context file that I renamed to UMI.xml contains only the following: Context docBase=/amd/homes/lataxeks/umi/ap/DataColl reloadable=true /Context Context still is being loaded at startup, so that is not the issue.

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Caldarale, Charles R
From: Lataxes, Karl [mailto:karl.lata...@nielsen.com] Subject: RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18 I made the recommended changes but am still getting the exception. The context file that I renamed to UMI.xml contains only the following: Context

RE: Can't fully undeploy a servlet application in Tomcat 6.0.18

2009-09-04 Thread Caldarale, Charles R
From: jo...@catholic-doc.org [mailto:jo...@catholic-doc.org] Subject: Can't fully undeploy a servlet application in Tomcat 6.0.18 Are there any options that can be set in a Windows environment, that will prevent this from happening? Look at the antiJARLocking and antiResourceLocking

Re: /context not working -- mod_jk error: no match for /server-status

2009-09-04 Thread Dennis Christopher
Rainer, Apparently apache is calling /server-status - I see that mod_status is enabled in httpd.conf and exercises that context. One of the frustrations, and I dont know Apache well, is that the access log seldom updates. The error log in the same folder does update, but contains little

Re: how to unwrap a Request from RequestFacade

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 9/3/2009 10:47 PM, Bill Barker wrote: Christopher Schultz ch...@christopherschultz.net wrote in message news:4aa03ca3.4010...@christopherschultz.net... Muthu, On 9/3/2009 11:17 AM, muthu.chan...@sectra.se wrote: I am using tomcat

Re: tomcat 4.1.31 problem

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jamez, On 9/3/2009 11:15 PM, jamez smith wrote: This is the exception when removing the context element from the server.xml: [ERROR] [Cannot create JDBC driver of class '' for connect URL 'null']org.apache.commons.dbcp.SQLNestedException:

Re: mod jk - multiple applications, different server clusers, sticky sessions

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 9/4/2009 12:52 AM, Rainer Jung wrote: On 03.09.2009 23:31, Christopher Schultz wrote: Whenever a client browses to webapps found on / and /foo, the requests to /foo will get TWO cookies, and confusion may occur (I'm not sure what

Re: An unexpected error has been detected by Java Runtime Environment:

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 9/4/2009 5:12 AM, Tsirkin Evgeny wrote: Why SIGBUS is Cool? I've never seen one. The description of SIGBUS seems to indicate that it's pretty bad: http://en.wikipedia.org/wiki/SIGBUS (bad physical memory address, virtual memory pages

RE: maling list archives and bug tracker dumps for academic research evaluation

2009-09-04 Thread Iqbal, Aftab
Dear Konstantin, By the way, the mail archives are available here: http://tomcat.apache.org/mail/dev/ Those are gzipped mbox files. Though I do not see that location to be documented/mentioned anywhere. Best regards, Konstantin Kolinko thanks for the link to the archives. regards Aftab

Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karl, On 9/4/2009 8:56 AM, Lataxes, Karl wrote: I am attempting to migrate a servlet from Tomcat 5.0.25 to 6.0.18, but my efforts to access it while running under 6.0.18 have been unsuccessful. [snip] Here is the stack trace I received when

Re: An unexpected error has been detected by Java Runtime Environment:

2009-09-04 Thread Peter Crowther
2009/9/4 Christopher Schultz ch...@christopherschultz.net I've never seen one. The description of SIGBUS seems to indicate that it's pretty bad: http://en.wikipedia.org/wiki/SIGBUS (bad physical memory address, virtual memory pages have disappeared, etc.). Or a misaligned physical memory

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Lataxes, Karl
Chris, I tried your suggestion and replaced the trailing / in the url-pattern of the servlet-mapping tag with *, but got the same result. I even tried commenting out servlet-mapping altogether, but still received the file not found exception. The HUSim class is part of an application that I

The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)

2009-09-04 Thread achittela
Hi, I got the the below exception while i was accessing web application. I think this issue is related to Tomcat 6.0.20. Did anyone have fix for this? SEVERE: Servlet.service() for servlet debugjsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error

Re: The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)

2009-09-04 Thread Mark Thomas
achittela wrote: Hi, I got the the below exception while i was accessing web application. I think this issue is related to Tomcat 6.0.20. Did anyone have fix for this? SEVERE: Servlet.service() for servlet debugjsp threw exception org.apache.jasper.JasperException: Unable to compile class

Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 9/4/2009 10:50 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18 what happens if you change your URI

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18 what happens if you change your URI mapping to: servlet-mapping servlet-nameHUControlServlet/servlet-name

Re: The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)

2009-09-04 Thread achittela
Thanks Mark. markt-2 wrote: achittela wrote: Hi, I got the the below exception while i was accessing web application. I think this issue is related to Tomcat 6.0.20. Did anyone have fix for this? SEVERE: Servlet.service() for servlet debugjsp threw exception

Re: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karl, On 9/4/2009 11:10 AM, Lataxes, Karl wrote: I tried your suggestion and replaced the trailing / in the url-pattern of the servlet-mapping tag with *, but got the same result. I even tried commenting out servlet-mapping altogether, but still

Re: tomcat 4.1.31 problem

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 9/4/2009 11:21 AM, Mark Thomas wrote: Christopher Schultz wrote: Jamez, On 9/3/2009 11:15 PM, jamez smith wrote: This is the exception when removing the context element from the server.xml: [ERROR] [Cannot create JDBC driver of class

Re: [ANN] Apache Tomcat 5.5.28 released

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 9/3/2009 8:30 PM, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable. Great! I see this in the changelog, with no bug id or commit id: Enable the

Re: [ANN] Apache Tomcat 5.5.28 released

2009-09-04 Thread Mark Thomas
Christopher Schultz wrote: Filip, On 9/3/2009 8:30 PM, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable. Great! I see this in the changelog, with no bug id or commit id: Enable the CGIServlet to

Re: [ANN] Apache Tomcat 5.5.28 released

2009-09-04 Thread Mark Thomas
Mark Thomas wrote: Christopher Schultz wrote: Filip, On 9/3/2009 8:30 PM, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable. Great! I see this in the changelog, with no bug id or commit id: Enable the

Re: tomcat 4.1.31 problem

2009-09-04 Thread Mark Thomas
Christopher Schultz wrote: Mark, On 9/4/2009 11:21 AM, Mark Thomas wrote: Christopher Schultz wrote: Jamez, On 9/3/2009 11:15 PM, jamez smith wrote: This is the exception when removing the context element from the server.xml: [ERROR] [Cannot create JDBC driver of class '' for connect

Re: tomcat 4.1.31 problem

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 9/4/2009 12:31 PM, Mark Thomas wrote: Christopher Schultz wrote: Sorry, it's been a while since I used Tomcat 4.1, but I was suggesting that he disable autoDeply, in which case using an XML file in webapps wouldn't help. Sorry missed

Re: [ANN] Apache Tomcat 5.5.28 released

2009-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 9/4/2009 12:18 PM, Mark Thomas wrote: Christopher Schultz wrote: Filip, On 9/3/2009 8:30 PM, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable.

Re: tomcat 4.1.31 problem

2009-09-04 Thread Mark Thomas
Christopher Schultz wrote: Mark, On 9/4/2009 12:31 PM, Mark Thomas wrote: Christopher Schultz wrote: Sorry, it's been a while since I used Tomcat 4.1, but I was suggesting that he disable autoDeply, in which case using an XML file in webapps wouldn't help. Sorry missed that. In that case

Re: how to unwrap a Request from RequestFacade

2009-09-04 Thread Muthu . Chandir
Thanks Chris. Still not having any luck. Let me give you the snippet of the code so that you can understand the problem better: I have a servlet like this protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // some

Re: Using multiple DataSource's for fail-over.

2009-09-04 Thread Bill Davidson
Mohit Anchlia wrote: Something like this: (DESCRIPTION=(FAILOVER=ON)(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1526))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1526)))(CONNECT_DATA=(SERVICE_NAME=somesid))) I still haven't been able to locate the documentation,

RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18

2009-09-04 Thread Lataxes, Karl
I changed the servlet mapping to /servlet/HUControlServlet/* and it worked. Thanks, Chuck and Chris. Karl -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, September 04, 2009 12:00 PM To: Tomcat Users List Subject: Re: Unable to Access

Tomcat 6 for Windows won't start

2009-09-04 Thread John Oliver
I have Tomcat 6 installed on a W2K3 R2 Enterprise SP2 VM. It was running just fine. VMware had a stroke, and I had to reboot the physical host. When this VM came back up, Tomcat won't start. The only error I can see is stdout_log, and it says: Error occurred during initialization of VM

RE: Tomcat 6 for Windows won't start

2009-09-04 Thread Caldarale, Charles R
From: John Oliver [mailto:joli...@john-oliver.net] Subject: Tomcat 6 for Windows won't start Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Your JVM installation has been corrupted; you need to reinstall it. - Chuck THIS COMMUNICATION MAY

Realm configuration issues

2009-09-04 Thread Adam Posner
Hi, I have been trying to implement form based authentication using container managed security. I had tried originally to use the DataSource Realm but after struggling with that for so long I gave up because I had tried everything I could think of as far as putting the Realm declaration in

RE: Class loading question (with aspectj)

2009-09-04 Thread neo anderson
I don't explain well. I appologize for it. Those .java source were already compiled into .class file (I use maven I checked the war file. Class files are stored in the correct path.) It just looks like the webapp class loder doesn't load the aspectj class (whose source is ended with .aj and it

Re: how to unwrap a Request from RequestFacade

2009-09-04 Thread Bill Barker
Christopher Schultz ch...@christopherschultz.net wrote in message news:4aa12265.3020...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 9/3/2009 10:47 PM, Bill Barker wrote: Christopher Schultz ch...@christopherschultz.net wrote in message

Re: how to unwrap a Request from RequestFacade

2009-09-04 Thread Bill Barker
muthu.chan...@sectra.se wrote in message news:of85b6a7da.49853bd1-on85257627.006211ee-85257627.00657...@sectra.se... Thanks Chris. Still not having any luck. Let me give you the snippet of the code so that you can understand the problem better: I have a servlet like this protected void