Finalizing classes in common or shared directories

2008-03-14 Thread Tushar Madhukar
Hello,

I have several contexts running in Tomcat(5.5.23), which use some common
utilities. Classes for these utilities are in shared/ directory of the
Catalina installation.
Is there a way by which Tomcat can invoke a callback on these classes
(shared/*) when it is shutting down? I need this to perform cleanups.
Basically, I would use an equivalent of
ServletContextListener.contextDestroyed() callback in deployed contexts. I
failed to stumble upon any useful googled info.

Thanks


Re: Custom URL handlers in Tomcat web app

2008-03-14 Thread pmanvi

Hi Matt,

I am trying to port legacy JRun application to Tomcat  facing same problem.
I also tried out the listed options but without any luck.

Do let me know if you are able to crack. Since I have legacy application, I
do not want to introduce any new code to make it work.

Thanks,
Praveen M.



MK-24 wrote:
 
 Hi everybody,
 
 I have the following problem:
 My Web application needs to handle Lotus Notes URLs which use the scheme
 notes. However, since Java does not know this protocol by default, it
 throws a
 MalformedUrlException when I construct a java.net.URL from a notes://
 URL-string.
 
 So, I read up on custom URL handlers and as far as I understand, you have
 to
 code a custom URLStreamHandler class and a custom URLConnection class.
 Okay, no
 big deal. However, there are three ways to register your new handler:
 
 1) put it in the sun.net.www.protocol.yourprotocol package
 2) put it in a custom package and declare that package to the JRE using
 the
 java.protocol.handler.pkgs system property
 3) register a custom URLStreamHandlerFactory using
 URL.setUrlStreamHandlerFactory
 
 problem is, none of these approaches work in Tomcat 5.5. For 1), this
 simply
 didn't have any effect for me. 2) neither, maybe Tomcat simply ignores
 that
 property? 3) doesn't work because Tomcat already registers its own
 factory, and
 for some reason I can't quite put my hands on you are not allowed to call
 that
 method twice per JVM instance.
 
 This issue is also discussed on Sun's Java issue tracker:
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4648098
 
 The ticket has been opened six years ago and still no fix!
 
 Does Tomcat meanwhile have some workaround for this? I mean, I don't even
 need
 an actual URL connection, I just want to pass custom URL strings, which
 should
 be perfectly fine if they are valid URLs, no?!
 
 I hope you can help!
 
 Best,
 Matt
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
:-((
-- 
View this message in context: 
http://www.nabble.com/Custom-URL-handlers-in-Tomcat-web-app-tp15629476p16045321.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: STM

2008-03-14 Thread David Steinberg
Filip/Martin,

Many thanks. I used the context approach and have successfully upped the limit.

Regards
Dave Steinberg
Hello Currency
+44 (0)7810 752 708
www.hellocurrency.com 



-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wed 12/03/2008 16:35
To: Tomcat Users List
Subject: Re: STM
 
you could create your own

class MyWrapper extends StandardWrapper {
  public MyWrapper() {
super();
setMaxInstances(xxx);
  }
}

and then in context.xml

Context wrapperClass=...MyWrapper

/Context

something along those lines

Filip

David Steinberg wrote:
 Thanks Martin.

 But can I access the StandardWrapper through my web application?

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com 



 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: Wed 12/03/2008 14:56
 To: Tomcat Users List
 Subject: Re: STM
  
 when you set maxInstances with the setMaxInstances method
 setMaxInstances(int maxInstances)

 http://www.jdocs.com/tomcat/5.5.17/org/apache/catalina/core/StandardWrapper.
 html

 ?
 Martin-

 - Original Message -
 From: David Steinberg [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, March 12, 2008 8:31 AM
 Subject: RE: STM


 Martin,

 No this does not have anything to do with threads. The StandardWrapper
 object is limiting STM servlets to a maximum of 20 instances. I would just
 like to know if I can set this higher through configuration.

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wed 12/03/2008 14:03
 To: Tomcat Users List
 Subject: Re: STM

 do you mean maxThreads=150 on the connector in server.xml?
 could you clarify maxInstances parameter

 Regards
 Martin-
 - Original Message -
 Wrom: GMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRE
 To: users@tomcat.apache.org
 Sent: Wednesday, March 12, 2008 7:43 AM
 Subject: STM


 Is there anyway to increase the 'maxInstances' value in the StandardWrapper
 from the current limit of 20? I have a short term issue with a STM servlet
 and need more than 20 instances.

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 
 


   
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 No virus found in this incoming message.
 Checked by AVG. 
 Version: 7.5.518 / Virus Database: 269.21.7/1325 - Release Date: 3/11/2008 
 1:41 PM
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Java Mail Inside Tomcat

2008-03-14 Thread Sameer Acharya
Can you give the line number as to where the error is
happening.
I found this link on google search you can read thru
the same it describes similar problems.
We have not had problems using java mail under tomcat
but we dont use imap.
http://forum.java.sun.com/thread.jspa?threadID=761635messageID=4347363

-Sameer

--- jamieb [EMAIL PROTECTED] wrote:

 
 
 Hi there
 
 I have encountered a bizzare problem... I have a
 small peice of code that
 fetches emails from an IMAP server using TLS. This
 code works perfectly in a
 standalone application, however, when I copy and
 paste it over to a Tomcat
 application it does not work.  The code uses Java
 Mail 1.4.1 and Java Secure
 Sockets. 
 
 The following error is outputted when the code is
 run from within Tomcat:
 
 javax.mail.MessagingException: Unrecognized SSL
 message, plaintext
 connection?;
   nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL
 message, plaintext connection?
 
 NOTE: in case you are wondering: YES in both cases
 the server is connecting
 to the same port. 
 
 Now I have checked:
 - the same java mail version is used across
 applications
 - the same JRE (v1.6)
 - all input parameters are the same
 
 Any ideas on what might be causing this problem in
 the Tomcat environment? 
 
 package com.test.support;
 
 import java.io.*;
 import java.security.Security;
 import java.util.Properties;
 import javax.mail.*;
 import javax.mail.internet.*;
 import java.net.*;
 
 public class TestMailboxConnection {
 
   /**
* @param args
*/
   
   private static final String DUMMY_SSL_FACTORY =
 com.test.support.DummySSLSocketFactory;
   
   public static void main(String[] args) {
 
 
  if (args.length3) {
   System.out.println(\n\nUtility to
 Detect Mail Server
 Connection Settings);
   System.out.println(Usage:
 TestMailboxConnection server
 username password port secure_port );
   return;
   }
   String server = args[0];
   String username = args[1];
   String password = args[2];
   
   String port = 143;
   String secureport = 993;
   
   if (args.length3) {
   port   = args[3];
   secureport   = args[4];
   }
   
   
   Properties props = new Properties();
   // Insecure Test
   testEcho(server,port);
   //testEcho(server,secureport);
   System.out.println(properties:+props);
   String protocol = imap;
   props.put(mail.+protocol+.port,port); 
   test(imap

insecure,protocol,server,Integer.valueOf(port),username,password,props);
 
 props.put(mail.+protocol+.starttls.enable,
 Boolean.TRUE);
 

props.put(mail.+protocol+.socketFactory.fallback,true);
 
 props.put(mail.+protocol+.socketFactory.class,
 getSSLFactory());
 

props.put(mail.+protocol+.socketFactory.port,secureport);
 
   test(imap tls

(fallback),protocol,server,Integer.valueOf(port),username,password,props);
 

props.put(mail.+protocol+.socketFactory.fallback,false);
   test(imap

tls,protocol,server,Integer.valueOf(port),username,password,props);
   
   protocol = imaps;
   props = new Properties();
 

props.put(mail.+protocol+.socketFactory.fallback,false);
 
 props.put(mail.+protocol+.socketFactory.class,
 getSSLFactory());
 

props.put(mail.+protocol+.socketFactory.port,secureport);
   test(imap

ssl,protocol,server,Integer.valueOf(port),username,password,props);

   
 
   }
 
   public static String getSSLFactory() {
   return DUMMY_SSL_FACTORY;
   }
   
   public static void test(String testName, String
 protocol, String server,
 int port, String username, String password,
 Properties props) {
   java.security.Provider[] providers =
 Security.getProviders(); 
   Session session = Session.getInstance(props,
 null);
 session.setDebug(true);
 Store store = null;
 try {
   store = session.getStore(protocol);
 } catch (Exception nspe) {
   System.out.println(no such provider);
   return;
 }
 try {
 

System.out.println(\nprotocol='+protocol+',server='+server+',port='+port+',username='+username+',password='+password+'});
   System.out.println(props+\n);
   store.connect(server,Integer.valueOf(port),
 username,password);
 } catch (Exception e) {
   System.out.println(\n
 failed:+e.getMessage()+\n);
   System.out.println(mailbox connection
 properties +props);
  

Re: tomcat/axis not compiling java

2008-03-14 Thread atheus


Christopher Schultz-2 wrote:
 
 Is it possible that you are missing:
 
 JkMount   /*.jwsmyWorker
 
 ??
 
 - -chris
 

Yes! thank you!
-- 
View this message in context: 
http://www.nabble.com/tomcat-axis-not-compiling-java-tp16010755p16048075.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.1.30 Compression Not Working

2008-03-14 Thread Smith, Tim
We have a Linux server running Tomcat 4.1.30, serving jsp pages. We have
tried to enable gzip compression by the addition of the compression=on
attribute to the server.xml file. We've seen some odd results. First of
all we couldn't get any compression to take place (using Fiddler to
monitor responses). We spent along time tweaking the settings, mainly
the compressableMimeType list. Eventually we witnessed some compressed
results, but a few moments later it wasn't working again with no changes
from ourselves. This happened on more than one occasion.

 

The interesting thing is that we have another test server on a Windows
Server OS on which the compression works fine.

 

JRE version is 1.4.2 if that's of any relevance.

 

Any help greatly appreciated...

*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**



Re: STM

2008-03-14 Thread Martin Gainty
David
Glad to hear that worked for you..keep us apprised if you need any further
help
Martin--
- Original Message -
From: David Steinberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 14, 2008 4:33 AM
Subject: RE: STM


Filip/Martin,

Many thanks. I used the context approach and have successfully upped the
limit.

Regards
Dave Steinberg
Hello Currency
+44 (0)7810 752 708
www.hellocurrency.com



-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wed 12/03/2008 16:35
To: Tomcat Users List
Subject: Re: STM

you could create your own

class MyWrapper extends StandardWrapper {
  public MyWrapper() {
super();
setMaxInstances(xxx);
  }
}

and then in context.xml

Context wrapperClass=...MyWrapper

/Context

something along those lines

Filip

David Steinberg wrote:
 Thanks Martin.

 But can I access the StandardWrapper through my web application?

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com



 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: Wed 12/03/2008 14:56
 To: Tomcat Users List
 Subject: Re: STM

 when you set maxInstances with the setMaxInstances method
 setMaxInstances(int maxInstances)


http://www.jdocs.com/tomcat/5.5.17/org/apache/catalina/core/StandardWrapper.
 html

 ?
 Martin-

 - Original Message -
 From: David Steinberg [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, March 12, 2008 8:31 AM
 Subject: RE: STM


 Martin,

 No this does not have anything to do with threads. The StandardWrapper
 object is limiting STM servlets to a maximum of 20 instances. I would just
 like to know if I can set this higher through configuration.

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wed 12/03/2008 14:03
 To: Tomcat Users List
 Subject: Re: STM

 do you mean maxThreads=150 on the connector in server.xml?
 could you clarify maxInstances parameter

 Regards
 Martin-
 - Original Message -
 Wrom: GMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRE
 To: users@tomcat.apache.org
 Sent: Wednesday, March 12, 2008 7:43 AM
 Subject: STM


 Is there anyway to increase the 'maxInstances' value in the
StandardWrapper
 from the current limit of 20? I have a short term issue with a STM servlet
 and need more than 20 instances.

 Regards
 Dave Steinberg
 Hello Currency
 +44 (0)7810 752 708
 www.hellocurrency.com



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 --
--
 



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 No virus found in this incoming message.
 Checked by AVG.
 Version: 7.5.518 / Virus Database: 269.21.7/1325 - Release Date: 3/11/2008
1:41 PM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connections grow after redeploy

2008-03-14 Thread David Cassidy
try netbeans
its free and the profiler will watch all your objects being created.
it will also work with snapshots...




On Thu, 2008-03-13 at 20:56 +0200, Juha Laiho wrote:
 Scott McClanahan wrote:
   On Thu, 2008-03-13 at 12:02 -0400, Christopher Schultz wrote:
   Caldarale, Charles R wrote:
  | From: Scott McClanahan [mailto:[EMAIL PROTECTED]
  | Subject: Re: Database connections grow after redeploy
 
  | As far as the continuing data base connections, I can only speculate
  | that the prior instances of the webapp are still active, thereby
  | preventing cleanup of their resources.
 
   I agree. Scott: are you able to run your application through a tool that
   allows you to observe the heap and object graphs?
 
   More likely is that one or more application-level objects has retained a
   reference to a specific Connection object, which, of course, retains
   references back to the connection pool that created it. I would check
   any ServletContextListener classes you have, and then a generic search
   for putting things into the ServletContext, since that is one of the
   only places that applications typically store long-lived objects.
 
  Do you have any suggestions for a profiling tool like you described?
  Preferably open source.  Thanks.
 
 Don't know about open source products, but I can vouch for YourKit Java
 Profiler. As far as I know, the main difference between YourKit and other
 profilers is that YourKit allows you to work through snapshots, whereas
 other profilers inject their probes into Java object creation methods.
 This means that more or less the only moment when YourKit has an effect
 on the performance of your application is when you take a memory snapshot.
 The other profilers I've seen attempt to trace each object allocation and
 deallocation in real time, which can be rather CPU consuming (especially
 if you're tracing a problem you cannot replicate in test environments).
 With YourKit, you take snapshots of the Java VM memory of your application,
 and compare them off-line (i.e. without needing any connection to the
 live application).


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connections grow after redeploy

2008-03-14 Thread Bently Drake
Memory leaks and deadlocks and CPU hogs! Java application developers often face 
these runtime problems. They can be particularly daunting in a complex 
application with multiple threads running through hundreds of thousands of 
lines of code -- an application you can't ship because it grows in memory, 
becomes inactive, or gobbles up more CPU cycles than it should.
 
Here are some tools that can help you finding out your application performance. 
You can monitor thread usages, memory leaks, instance count etc; also in case 
of web application you can find out the number of sessions, number of request 
per second, average response time, database connection time, error count etc.
 
1 JProfiler: JProfiler is an award-winning all-in-one Java profiler. 
JProfiler's intuitive GUI helps you find performance bottlenecks, pin down 
memory leaks and resolve threading issues. You can use it to monitor a 
standalone java application or a web application.
 
http://www.ej-technologies.com/products/jprofiler/overview.html
 
Features:
 
·  Live profiling of a local session
·  Live profiling of a remote session
·  Offline profiling
·  Snapshot comparisons
·  Memory profiling
·  Heap walker
·  CPU profiling
·  Thread profiling
 
 

 
 
 
 
 
 

 
 
 
 
 
 

 
 
 
2. ManageEngine® Applications Manager 8
http://manageengine.adventnet.com/products/applications_manager/applications-monitoring-features.html
Applications Manager provides in depth monitoring of web applications, be it a 
CRM application, banking / finance application or any business critical 
application. Applications Manager can also help monitor the underlying 
infrastructure which may consist of application servers, databases, systems, 
mail servers and other Java/J2EE Applications. 
Through the application monitoring feature you can ensure the health and 
availability of your application servers through Microsoft .NET Monitoring, 
Oracle Application Server Monitoring, JBoss Monitoring, Tomcat Monitoring, 
WebLogic Monitoring, and WebSphere Monitoring. Out-of-the-box support for 
databases through Oracle Monitoring, SQL Server Monitoring, MySQL Monitoring, 
DB2 Monitoring is also present.
 
Applications Manager helps ensure higher uptime by detecting and diagnosing 
problems of application servers and their services faster

 
 
 

3. JMeter
http://jakarta.apache.org/jmeter/
 
 
Apache JMeter is a 100% pure Java desktop application designed to load test 
functional behavior and measure performance. It was originally designed for 
testing Web Applications but has since expanded to other test functions.
 
Apache JMeter may be used to test performance both on static and dynamic 
resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, 
FTP Servers and more). It can be used to simulate a heavy load on a server, 
network or object to test its strength or to analyze overall performance under 
different load types. You can use it to make a graphical analysis of 
performance or to test your server/script/object behavior under heavy 
concurrent load
 
Apache JMeter features include: 
· Can load and performance test HTTP and FTP servers as well as 
arbitrary database queries (via JDBC) 
· Complete portability and 100% Java purity . 
· Full Swing and lightweight component support (precompiled JAR uses 
packages javax.swing.* ). 
· Full multithreading framework allows concurrent sampling by many 
threads and simultaneous sampling of different functions by seperate thread 
groups. 
· Careful GUI design allows faster operation and more precise timings. 
· Caching and offline analysis/replaying of test results. 
· Highly Extensible: 
oPluggable Samplers allow unlimited testing capabilities. 
oSeveral load statistics may be choosen with pluggable timers . 
oData analysis and visualization plugins allow great extendibility as 
well as personalization. 
oFunctions can be used to provide dynamic input to a test or provide 
data manipulation. 
oScriptable Samplers (BeanShell is fully supported; and there is a 
sampler which supports BSF-compatible languages) 
 

 
 
 
4 Lambda Probe (formerly known as Tomcat Probe)
http://www.lambdaprobe.org/d/index.htm
 
 
 
Lambda Probe (formerly Tomcat Probe) is a self sufficient web application, 
which helps to visualize various parameters of Apache Tomcat instance in real 
time. Lambda Probe is designed to work specifically with Tomcat so it is able 
to access far more information that is normally available to JMX agents.
 
JVM memory usage monitor 
JBoss compatibility 
Display of deployed applications, their status, session count, session object 
count, context object count, datasource usage etc 
Ability to view deployed JSP files 
Display of list of sessions for a particular application 
Graphical display of datasource details including maximum number of 

RE: Database connections grow after redeploy

2008-03-14 Thread Scott McClanahan

On Thu, 2008-03-13 at 09:23 -0500, Caldarale, Charles R wrote:
  From: Scott McClanahan [mailto:[EMAIL PROTECTED] 
  Subject: Re: Database connections grow after redeploy
  
  Some times our exchange server really mangles e-mails or out right
  blocks them so this is just a resend in case it didn't make 
  it through.
 
 Before resending, look in the archives to see if your original message
 is there (it is):
 http://marc.info/?l=tomcat-user
 
 As far as the continuing data base connections, I can only speculate
 that the prior instances of the webapp are still active, thereby
 preventing cleanup of their resources.  There are numerous possible
 causes, including such things as spawning extra threads and not
 terminating them when the webapp is told to shut down.  You should be
 able to work around the problem by making the connection pool global
 rather than local to the webapp.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Making the DBCP a global resource and linking it into the applications
specifically does fix the problem.  Good suggestion.  Thanks.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connections grow after redeploy

2008-03-14 Thread Scott McClanahan

On Fri, 2008-03-14 at 13:43 +, David Cassidy wrote:
 try netbeans
 its free and the profiler will watch all your objects being created.
 it will also work with snapshots...
 
 
 
 
 On Thu, 2008-03-13 at 20:56 +0200, Juha Laiho wrote:
  Scott McClanahan wrote:
On Thu, 2008-03-13 at 12:02 -0400, Christopher Schultz wrote:
Caldarale, Charles R wrote:
   | From: Scott McClanahan [mailto:[EMAIL PROTECTED]
   | Subject: Re: Database connections grow after redeploy
  
   | As far as the continuing data base connections, I can only speculate
   | that the prior instances of the webapp are still active, thereby
   | preventing cleanup of their resources.
  
I agree. Scott: are you able to run your application through a tool that
allows you to observe the heap and object graphs?
  
More likely is that one or more application-level objects has retained a
reference to a specific Connection object, which, of course, retains
references back to the connection pool that created it. I would check
any ServletContextListener classes you have, and then a generic search
for putting things into the ServletContext, since that is one of the
only places that applications typically store long-lived objects.
  
   Do you have any suggestions for a profiling tool like you described?
   Preferably open source.  Thanks.
  
  Don't know about open source products, but I can vouch for YourKit Java
  Profiler. As far as I know, the main difference between YourKit and other
  profilers is that YourKit allows you to work through snapshots, whereas
  other profilers inject their probes into Java object creation methods.
  This means that more or less the only moment when YourKit has an effect
  on the performance of your application is when you take a memory snapshot.
  The other profilers I've seen attempt to trace each object allocation and
  deallocation in real time, which can be rather CPU consuming (especially
  if you're tracing a problem you cannot replicate in test environments).
  With YourKit, you take snapshots of the Java VM memory of your application,
  and compare them off-line (i.e. without needing any connection to the
  live application).
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Thanks for all of the suggestions!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: interrupting a multipart post request?

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian,

Christian Kindler wrote:
| Is something like Thread.currentThread().interrupt() the only way to
| stop a multipart post request?

I'm pretty sure you don't want to do that. The javadoc for
Thread.interrupt states that any blocked I/O calls will be aborted, but
you never know what Tomcat will do in that case.

You might want to check out the thread-handling code in Tomcat to see
what happens, or re-post with /that/ question to see what some of the
old salts have to say about it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfai9wACgkQ9CaO5/Lv0PDCvACgqJxTekwjCNm7Iyl44IbZN40f
C20An0XxYsg70dZZqFMLWugKogRcu3fu
=hhhK
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: interrupting a multipart post request?

2008-03-14 Thread Christian Kindler

Christian Kindler schrieb:

Christopher Schultz schrieb:

Christian Kindler wrote:
| I want to interrupt a multipart post request (e.g. if the 
content-length

| exceeds a given limit). The problem is, that the client seems to
| continue sending the data to the server and gets no response from the
| server until the whole data is send.

Maybe try this:

~ if (request.getContentLength()  100) {
~request.getInputStream().close();

~ throw new ServletException(request limit exceeded.);
~ }

...or some variant thereof.


Hello Christopher,

that works, thanks!


Sorry, I was a little bit headily. Ist does not work.
Is something like Thread.currentThread().interrupt() the only way to 
stop a multipart post request?


Regards, Christian

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1.30 Compression Not Working

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Smith, Tim wrote:
| We have a Linux server running Tomcat 4.1.30, serving jsp pages. We have
| tried to enable gzip compression by the addition of the compression=on
| attribute to the server.xml file. We've seen some odd results.

Is the client sending an Accept-Encoding header which includes gzip?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfajMgACgkQ9CaO5/Lv0PAIagCfbIDKH3LzkzN6VeG6xacazNxj
QU8An2ITN3+gmN2+Wt/RQ8lc2u1BkY5M
=+t1A
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connections grow after redeploy

2008-03-14 Thread Bently Drake
Memory leaks and deadlocks and CPU hogs! Java application developers often face 
these runtime problems. They can be particularly daunting in a complex 
application with multiple threads running through hundreds of thousands of 
lines of code -- an application you can't ship because it grows in memory, 
becomes inactive, or gobbles up more CPU cycles than it should.
 
Here are some tools that can help you finding out your application performance. 
You can monitor thread usages, memory leaks, instance count etc; also in case 
of web application you can find out the number of sessions, number of request 
per second, average response time, database connection time, error count etc.
 
1 JProfiler: JProfiler is an award-winning all-in-one Java profiler. 
JProfiler's intuitive GUI helps you find performance bottlenecks, pin down 
memory leaks and resolve threading issues. You can use it to monitor a 
standalone java application or a web application.
 
http://www.ej-technologies.com/products/jprofiler/overview.html
 
Features:
 
·  Live profiling of a local session
·  Live profiling of a remote session
·  Offline profiling
·  Snapshot comparisons
·  Memory profiling
·  Heap walker
·  CPU profiling
·  Thread profiling
 
 

 
 
 
 
 
 

 
 
 
 
 
 

 
 
 
2. ManageEngine® Applications Manager 8
http://manageengine.adventnet.com/products/applications_manager/applications-monitoring-features.html
Applications Manager provides in depth monitoring of web applications, be it a 
CRM application, banking / finance application or any business critical 
application. Applications Manager can also help monitor the underlying 
infrastructure which may consist of application servers, databases, systems, 
mail servers and other Java/J2EE Applications. 
Through the application monitoring feature you can ensure the health and 
availability of your application servers through Microsoft .NET Monitoring, 
Oracle Application Server Monitoring, JBoss Monitoring, Tomcat Monitoring, 
WebLogic Monitoring, and WebSphere Monitoring. Out-of-the-box support for 
databases through Oracle Monitoring, SQL Server Monitoring, MySQL Monitoring, 
DB2 Monitoring is also present.
 
Applications Manager helps ensure higher uptime by detecting and diagnosing 
problems of application servers and their services faster

 
 
 

3. JMeter
http://jakarta.apache.org/jmeter/
 
 
Apache JMeter is a 100% pure Java desktop application designed to load test 
functional behavior and measure performance. It was originally designed for 
testing Web Applications but has since expanded to other test functions.
 
Apache JMeter may be used to test performance both on static and dynamic 
resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, 
FTP Servers and more). It can be used to simulate a heavy load on a server, 
network or object to test its strength or to analyze overall performance under 
different load types. You can use it to make a graphical analysis of 
performance or to test your server/script/object behavior under heavy 
concurrent load
 
Apache JMeter features include: 
· Can load and performance test HTTP and FTP servers as well as 
arbitrary database queries (via JDBC) 
· Complete portability and 100% Java purity . 
· Full Swing and lightweight component support (precompiled JAR uses 
packages javax.swing.* ). 
· Full multithreading framework allows concurrent sampling by many 
threads and simultaneous sampling of different functions by seperate thread 
groups. 
· Careful GUI design allows faster operation and more precise timings. 
· Caching and offline analysis/replaying of test results. 
· Highly Extensible: 
oPluggable Samplers allow unlimited testing capabilities. 
oSeveral load statistics may be choosen with pluggable timers . 
oData analysis and visualization plugins allow great extendibility as 
well as personalization. 
oFunctions can be used to provide dynamic input to a test or provide 
data manipulation. 
oScriptable Samplers (BeanShell is fully supported; and there is a 
sampler which supports BSF-compatible languages) 
 

 
 
 
4 Lambda Probe (formerly known as Tomcat Probe)
http://www.lambdaprobe.org/d/index.htm
 
 
 
Lambda Probe (formerly Tomcat Probe) is a self sufficient web application, 
which helps to visualize various parameters of Apache Tomcat instance in real 
time. Lambda Probe is designed to work specifically with Tomcat so it is able 
to access far more information that is normally available to JMX agents.
 
JVM memory usage monitor 
JBoss compatibility 
Display of deployed applications, their status, session count, session object 
count, context object count, datasource usage etc 
Ability to view deployed JSP files 
Display of list of sessions for a particular application 
Graphical display of datasource details including maximum number of 

latest mod_jk version compatible with Apache 1.3.26

2008-03-14 Thread Stephanie Wullbieter
Hi,

when running Apache 1.3.26 (from Debian Woody), what is the latest mod_jk 
version compatible to that apache version?

On 
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.26/i386/
for example is written:

mod_jk-1.2.26-httpd-1.3.39-eapi.so is for Apache 1.3.x with EAPI extensions and 
works with Apache 1.3.39 and later.


So it seems that mod_jk-1.2.26 does not work with Apache 1.3.26 ?

And no, unfortunateley I am not allowed to update the Apache itself...

Thanks
Stephanie
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Database connections grow after redeploy

2008-03-14 Thread Caldarale, Charles R
 From: Scott McClanahan [mailto:[EMAIL PROTECTED] 
 Subject: RE: Database connections grow after redeploy
 
 Making the DBCP a global resource and linking it into the applications
 specifically does fix the problem.

Well, really it just masks the problem.  Classes and objects from the
replaced webapp are likely still around, eating up heap space,
especially PermGen.  That will cause OOME problems after some number of
redeployments.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: latest mod_jk version compatible with Apache 1.3.26

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephanie,

Stephanie Wullbieter wrote:
| when running Apache 1.3.26 (from Debian Woody), what is the latest
| mod_jk version compatible to that apache version?

mod_jk should work with all reasonably recent versions of Apache
httpd. Binaries are only available for certain versions, but it's easy
to build mod_jk yourself. What OS are you using and do you have access
to a compiler?

Since you were looking at Linux versions of the library, I'm guessing
you're on Linux which nearly always has access to gcc and GNU make. Try
downloading the mod_jk source package and reading the (very short)
BUILDING.txt file that is included in the archive.

You'll get a binary that is custom-built for your environment. It only
takes about 5 minutes.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfajxQACgkQ9CaO5/Lv0PA7yQCgnQPCGft807qHp4ZbaWBer7Ei
qAIAoIilBBrUX/i1G+vUlNCnfAgJPhCF
=bwpY
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: interrupting a multipart post request?

2008-03-14 Thread Christian Kindler

Christopher Schultz wrote:

Christian Kindler wrote:
| Is something like Thread.currentThread().interrupt() the only way to
| stop a multipart post request?

I'm pretty sure you don't want to do that. The javadoc for
Thread.interrupt states that any blocked I/O calls will be aborted, but
you never know what Tomcat will do in that case.

You might want to check out the thread-handling code in Tomcat to see
what happens, or re-post with /that/ question to see what some of the
old salts have to say about it.


Hi Chris,

Thread.currentThread().interrupt() does not work anyway. I don't know if 
it is a Tomcat problem or a generall problem of the HTTP protocol.


Maybe it's a good question for tomcat-dev...


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: interrupting a multipart post request?

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian,

Christian Kindler wrote:
| Maybe it's a good question for tomcat-dev...

Agreed. Post back if you find a solution.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfakgQACgkQ9CaO5/Lv0PBvugCgjf0mgQNh+dKQ74yAt3/0lJv5
PUcAn39Ns7BUDuGHh+AkHSgG8jVtcwtv
=mCKK
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Finalizing classes in common or shared directories

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tushar,

Tushar Madhukar wrote:
| Is there a way by which Tomcat can invoke a callback on these classes
| (shared/*) when it is shutting down? [snip]
| Basically, I would use an equivalent of
| ServletContextListener.contextDestroyed() callback in deployed contexts.

So, you want something that only runs on JVM shutdown? How about
Runtime.addShutdownHook?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfaj/IACgkQ9CaO5/Lv0PDwqQCfXCMK3g5NWb1Kjr72LUNU/F0w
aJEAoKI73bVu8AHnKCt7CI5nbTPuNHXb
=hJUP
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: latest mod_jk version compatible with Apache 1.3.26

2008-03-14 Thread swullb
Thanks for Your reply.

 mod_jk should work with all reasonably recent versions of Apache

My OS is Debian Woody x86, which was released in the year 2002.

It seems that the Apache Version 1.3.26 is provided by that distribution, so it 
seems to be somehow old. (I did not find a apache version history)

gcc and apxs are availably. Here is the result:

$ ./configure --with-apxs=/usr/bin/apxs 
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
./configure: /dev/null: Permission denied
This script requires a shell more modern than all the
shells that I found on your system. Please install a
modern shell, or manually run the script under such a
shell if you do have one.
$ echo $SHELL
/bin/bash
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1.30 Compression Not Working

2008-03-14 Thread Smith, Tim
Hi, thanks for reply. I can confirm that the client is sending an
Accept-Encoding header which includes 'gzip'.  

Accept-Encoding: gzip, deflate


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 14 March 2008 14:34
To: Tomcat Users List
Subject: Re: Tomcat 4.1.30 Compression Not Working

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Smith, Tim wrote:
| We have a Linux server running Tomcat 4.1.30, serving jsp pages. We
have
| tried to enable gzip compression by the addition of the
compression=on
| attribute to the server.xml file. We've seen some odd results.

Is the client sending an Accept-Encoding header which includes gzip?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfajMgACgkQ9CaO5/Lv0PAIagCfbIDKH3LzkzN6VeG6xacazNxj
QU8An2ITN3+gmN2+Wt/RQ8lc2u1BkY5M
=+t1A
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the [EMAIL PROTECTED] and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WAR reloading after restart

2008-03-14 Thread Sameer Tyagi
Cant figure why this is happening and wanted to see if anyone on the list 
knew.

Using tomcat 6.0.16 on windows.  
A war is deployed  - works fine.
server is shut down, war file updated and server restarted.

The new war is not picked up or exploded. I ve put a file named warname.xml 
in conf/catalina/lohcalhost with the following line
path=/mywar reloadable=true antiJARLocking=true...

Any ideas ? What do I need to do for the new war to get picked up ? 

Thanks
/s

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: latest mod_jk version compatible with Apache 1.3.26

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephanie,

[EMAIL PROTECTED] wrote:
| Thanks for Your reply.
|
| mod_jk should work with all reasonably recent versions of Apache
|
| My OS is Debian Woody x86, which was released in the year 2002.

Wow, that's old. Have you been keeping it up-to-date with apt-get or
aptitude or anything like that. You mentioned that upgrading Apache
httpd was not an option. Why not?

| It seems that the Apache Version 1.3.26 is provided by that
| distribution, so it seems to be somehow old. (I did not find a apache
|  version history)

The current 1.3 version of Apache httpd is 1.3.41. Your version appears
to be .. yup, 5 years old. You should really upgrade if you have the
opportunity. There are lots of important security updates that you
should have.

| This script requires a shell more modern than all the shells that I
| found on your system. Please install a modern shell, or manually run
| the script under such a shell if you do have one.

Heh. Yeah, you're out of luck. It appears that mod_jk is only available
as a package through Debian for httpd 2.x, not for 1.3.

Again, why can't you upgrade?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfanCQACgkQ9CaO5/Lv0PBByACdENtODLJAEa/U1p/c0JRQJOZ1
/0MAnAvDk4zgb2pSgJcmLYxRCCCU9wzI
=egCj
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CGIServlet in Tomcat 6

2008-03-14 Thread rachmat
 See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on
 behalf of a User

 Sorry for a kind of a necropost, but is't enough to add privileged=true
 to the root tag of main context.xml which is in
 $CATALINA_HOME/conf/context.xml

 In Response To:

 Hi all,

 I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat
 6 I get this error when deploying my web application:

 java.lang.SecurityException: Servlet of class
 org.apache.catalina.servlets.CGIServlet is privileged and cannot be
 loaded by this web application

 In Tomcat 6, I noticed that the servlet-cgi.jar is now part of
 catalina.jar, but that's it.

 thanks a lot for any advice.

 Yannick


 compete error message:

 java.lang.SecurityException: Servlet of class
 org.apache.catalina.servlets.CGIServlet is privileged and cannot be
 loaded by thisweb application
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
 at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:451)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

my be this is error in your script, if you was change servlet-cgi to
servlet-cgi.jar and add in web.xml addHandler,,,



best regard


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WAR reloading after restart

2008-03-14 Thread Caldarale, Charles R
 From: Sameer Tyagi [mailto:[EMAIL PROTECTED] 
 Subject: WAR reloading after restart
 
 The new war is not picked up or exploded. I ve put a file 
 named warname.xml in conf/catalina/lohcalhost with the 
 following line
 path=/mywar reloadable=true antiJARLocking=true...

For starters, the path attribute is illegal here.  Take it out and see
if anything changes.  (The URI path is determined by the name of the
.xml file; if you want something different, change the name of the .xml
file and the name of the .war file to match.)

If you choose to manually update the .war, you may need to clean out the
corresponding work directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and parallel security realms

2008-03-14 Thread Juergen Weber
Christopher,

the idea you sketched depends on the constructor being called with a
list of realms. Is that so?
If you look at http://tomcat.apache.org/tomcat-6.0-doc/api/index.html
all realms in org.apache.catalina.realm have only the default constructor.

Probably one would have to get the surrounding container with
Realm.getContainer() and browse the whole nested container tree to get
all realms.

So, a delegating realm seems not that easy. Anyway, I think the
feature of using several realms should be in the server core.

Juergen

On Thu, Mar 13, 2008 at 8:14 PM, Schultz [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Jürgen,


  Juergen Weber wrote:
  | So, if user tomcat logs in, JNDI realm should say User unknown and
  | afterwards memory realm should say fine, user is allowed.
  |
  | Unfortunately, Tomcat can only use one active realm. Is that right?

  Right.


  | Is there any other way to get the manager user into Tomcat?

  Write a Realm that wraps two other realms, and use that. Something like
  this:

  public class MultiRealm
  ~extends RealmBase
  {
  ~private List _realms;
  ~public MultiRealm(List realms)
  ~{
  ~_realms = realms;
  ~}

  ~public Principal authenticate(String username, String credentials)
  ~{
  ~for(Iterator i=_realms.iterator(); i.hasNext(); )
  ~{
  ~Principal p = ((Realm)i.next()).authenticare(username,
  ~ credentials);

  ~if(null != p)
  ~return p;
  ~}

  ~return null;
  ~}

  ~// implement the other methods similarly as pass-through methods

 }

  | Setting up OpenLdap as Meta Directory before our LDAP server and
  | putting the tomcat user into OpenLDAP seems a bit overblown.

  I would tend to agree.

  If you were to write a decent implementation of the above, I would
  imagine that the Tomcat folks would happily accept it as a contribution
  to the project.

  - -chris
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.8 (MingW32)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

  iEYEARECAAYFAkfZfRkACgkQ9CaO5/Lv0PCbowCghB4vDu2Rg3GUR7hFvKX2zLZt
  hz4An2jU7GxmtDsNdU/Z41ftVgVV/4Bc
  =TiR4
  -END PGP SIGNATURE-

  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and parallel security realms

2008-03-14 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jürgen,

Juergen Weber wrote:
| the idea you sketched depends on the constructor being called with a
| list of realms. Is that so?

Not necessarily. Most objects that represent elements in server.xml have
no-arg constructors and then setFoo() methods on them. I would imagine
that you could write a setRealm() method on your new realm
implementation and allow it to be called multiple times (more of an
addRealm, really, but I think setRealm is what you'll likely get). You
might have to change the digester rules to allow realm within a
realm, though.

| Probably one would have to get the surrounding container with
| Realm.getContainer() and browse the whole nested container tree to get
| all realms.

You could do that, but I'm not sure how you would identify all the
realms that should be included (versus those that should not be).

| So, a delegating realm seems not that easy. Anyway, I think the
| feature of using several realms should be in the server core.

Like I said, I'm sure the Tomcat folks would accept a sample
implementation if you wrote one. The alternative is to write your own
essentially from scratch.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfayQ8ACgkQ9CaO5/Lv0PDUEACgqNNrRM4JKTDFcVE9ZqTX/qDW
ZpYAn14lOAPk89xoV8amonsYlDOPvPoN
=KtnJ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Trouble building jsvc

2008-03-14 Thread jarrod

Hi all. I'm trying to follow the Tomcat docs instructions for building jsvc.
I can't get past the ./configure step. Any help would be greatly
appreciated.

Trying to build on Ubuntu Linux. Linux linux-workstation 2.6.22-14-generic.

I've uninstalled all versions of Java except the JDK 6 I downloaded from
Sun. I set JAVA_HOME and added JAVA_HOME/bin to my PATH.

I tried to run it like this:

./configure --with-java=/usr/local/java/bin/java

I get this:

*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

Then I check the log and find...

Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2131: $? = 0configure:2138: gcc -V 5
gcc: '-V' option must have argument
configure:2141: $? = 1
configure:2164: checking for C compiler default output file name
configure:2191: gccconftest.c  5
/usr/bin/ld: crt1.o: 
No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2194: $? = 1
configure:2232: result: configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2239: error: C compiler cannot create executables
See `config.log' for more details.



-

ebdb
http://aeondust.com
-- 
View this message in context: 
http://www.nabble.com/Trouble-building-jsvc-tp16055587p16055587.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble building jsvc

2008-03-14 Thread Rainer Jung

Hi,

jarrod schrieb:

Hi all. I'm trying to follow the Tomcat docs instructions for building jsvc.
I can't get past the ./configure step. Any help would be greatly
appreciated.

Trying to build on Ubuntu Linux. Linux linux-workstation 2.6.22-14-generic.


which version of jsvc do you try to compile?
Which docs page are you referring to?



I've uninstalled all versions of Java except the JDK 6 I downloaded from
Sun. I set JAVA_HOME and added JAVA_HOME/bin to my PATH.

I tried to run it like this:

./configure --with-java=/usr/local/java/bin/java

I get this:

*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables

See `config.log' for more details.

Then I check the log and find...

Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2131: $? = 0configure:2138: gcc -V 5
gcc: '-V' option must have argument
configure:2141: $? = 1
configure:2164: checking for C compiler default output file name
configure:2191: gccconftest.c  5
/usr/bin/ld: crt1.o: 
No such file: No such file or directory

collect2: ld returned 1 exit status
configure:2194: $? = 1
configure:2232: result: configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| /* end confdefs.h.  */
| 
| int

| main ()
| {
| 
|   ;

|   return 0;
| }
configure:2239: error: C compiler cannot create executables
See `config.log' for more details.


I downloaded commons-daemon-1.0.1 (the most recent although 3 years old) 
and it runs configure without problems. I compared the line numbers from 
your output and they don't coincide with mine. So either you are using a 
strange jsvc version, or you regenerated the configure script. Check if 
your configure script still has an old time stamp (mine is May 17, 2005) 
and is located in daemon-1.0.1/src/native/unix.


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need to upgrade to Tomcat 5.5.26 in JBoss 4.0.5

2008-03-14 Thread Adamus, Steven J.
Greetings; 

We're using JBoss 4.0.5.GA, bundled with Tomcat 5.5.20. 

Security vulnerabilities were found in Tomcat 5.5 and Tomcat 6.0 and
fixed 
in Tomcat 5.5.26 and 6.0.16, and users are advised to upgrade. 

The design of Tomcat folders/files in JBoss 4.0.5.GA doesn't match the
full 
(or embedded) Tomcat 5.5.26 installation, so I don't know how to upgrade
Tomcat 
without upgrading JBoss. 

I looked at JBoss upgrades, but no stable release is available that
includes 
the required Tomcat version.  I asked JBoss Support how to upgrade
Tomcat 
without upgrading JBoss, but didn't get a response. 

Can Tomcat be upgraded separately from JBoss, or is the upgrade
something that 
JBoss must provide?  Can someone point me in the right direction on how
to 
upgrade from Tomcat 5.5.20 to 5.5.26 within JBoss 4.0.5? 

Thanks, 
Steve 


Re: Trouble building jsvc

2008-03-14 Thread jarrod

Thanks for the reply.

 which version of jsvc do you try to compile?

The one distributed with Tomcat 6.0.16. It's in tomcat/bin as jsvc.tar.gz.

 Which docs page are you referring to?

I mean the main Tomcat site...

http://tomcat.apache.org/tomcat-5.5-doc/setup.html

I also checked the file INSTALL.txt that's inside jsvc.tar.gz.

I tried generating the configure script using autoconf. And also I tried
what it said in INSTALL.txt:

sh support/buildconf.sh

Same result each time -- what I described.


Rainer Jung-3 wrote:
 
 I downloaded commons-daemon-1.0.1 (the most recent although 3 years old) 
 and it runs configure without problems. I compared the line numbers from 
 your output and they don't coincide with mine. So either you are using a 
 strange jsvc version, or you regenerated the configure script. Check if 
 your configure script still has an old time stamp (mine is May 17, 2005) 
 and is located in daemon-1.0.1/src/native/unix.
 
 Regards,
 
 Rainer
 

Yeah, I guess we're using different versions. I had not heard of
commons-daemon before. I was going by the docs on the Tomcat site.

Is it better to use commons daemon?

Ethan

-

ebdb
http://aeondust.com
-- 
View this message in context: 
http://www.nabble.com/Trouble-building-jsvc-tp16055587p16062054.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DelegatingCallableStatement.getInnermostDelegate() -- NoSuchMethodError

2008-03-14 Thread Jim Garrison

I'm getting a NoSuchMethodError on 
org.apache.commons.dbcp.DelegatingCallableStatement.getInnermostDelegate
().

AFAICT DelegatingCallableStatement inherits ultimately from
DelegatingStatement, which DOES have such a method. I've examined the
commons-dbcp-1.2.1.jar file that's in the classpath, and the
inheritance hierarchy looks OK and there IS a getInnermostDelegate()
method on DelegatingStatement.


Since this is running in BusinessObjects' Tomcat 5.0 server I thought
there might be a classloader problem.  I printed out the classloaders
at the point where the error happens, but the debugging output seems
to indicate that everything should work -- but I still get the
exception.  I can't really post an SSCCE as this is buried in a much
larger system that runs only under Tomcat.

Source Fragment
===

import java.sql.*;
import org.apache.commons.dbcp.DelegatingCallableStatement;
.
.
.
PreparedStatement stmt;
.
.
.
protected void executeStatement() throws SQLException
{
  if ( TPMonitor.TYPE_ORACLE == TPMonitor.getInstance().getDBType() )
  {
System.out.println(DBTYPE: ORA);
System.out.println(stmt CLASS:  + stmt.getClass().getName());
System.out.println(stmt LOADER:  +
stmt.getClass().getClassLoader().toString());

DelegatingCallableStatement dcs = (DelegatingCallableStatement)
stmt;
System.out.println(dcs CLASS:  + dcs.getClass().getName());
System.out.println(dcs LOADER:  +
dcs.getClass().getClassLoader().toString());

Statement cs = dcs.getInnermostDelegate();


The above statement throws the following exception:

java.lang.NoSuchMethodError:
org.apache.commons.dbcp.DelegatingCallableStatement.getInnermostDelegate
()Ljava/sql/CallableStatement;



Debugging Output


DBTYPE: ORA
stmt CLASS: org.apache.commons.dbcp.DelegatingCallableStatement
stmt LOADER: StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Business Objects\Tomcat\common\classes\
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xalan.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xercesImpl.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xml-apis.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\ant-launcher.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ant.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-collections-2.1.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-dbcp-1.2.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-el.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-pool-1.2.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-compiler.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-runtime.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\jsp-api.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-common.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-factory.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-java.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-resources.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ojdbc14.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\servlet-api.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\sqljdbc.jar
-- Parent Classloader:
[EMAIL PROTECTED]

dcs CLASS: org.apache.commons.dbcp.DelegatingCallableStatement
dcs LOADER: StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Business Objects\Tomcat\common\classes\
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xalan.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xercesImpl.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xml-apis.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\ant-launcher.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ant.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-collections-2.1.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-dbcp-1.2.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-el.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-pool-1.2.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-compiler.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-runtime.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\jsp-api.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-common.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-factory.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-java.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-resources.jar

Re: DelegatingCallableStatement.getInnermostDelegate() -- NoSuchMethodError

2008-03-14 Thread Martin Gainty
Jim

http://commons.apache.org/dbcp/apidocs/org/apache/commons/dbcp/DelegatingSta
tement.html#getInnermostDelegate()
I would check to make sure you have (at least version( 1.21 DBCP
e.g. commons-dbcp-1.2.1.jar

Martin-
- Original Message -
From: Jim Garrison [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 14, 2008 7:03 PM
Subject: DelegatingCallableStatement.getInnermostDelegate() --
NoSuchMethodError



I'm getting a NoSuchMethodError on
org.apache.commons.dbcp.DelegatingCallableStatement.getInnermostDelegate
().

AFAICT DelegatingCallableStatement inherits ultimately from
DelegatingStatement, which DOES have such a method. I've examined the
commons-dbcp-1.2.1.jar file that's in the classpath, and the
inheritance hierarchy looks OK and there IS a getInnermostDelegate()
method on DelegatingStatement.


Since this is running in BusinessObjects' Tomcat 5.0 server I thought
there might be a classloader problem.  I printed out the classloaders
at the point where the error happens, but the debugging output seems
to indicate that everything should work -- but I still get the
exception.  I can't really post an SSCCE as this is buried in a much
larger system that runs only under Tomcat.

Source Fragment
===

import java.sql.*;
import org.apache.commons.dbcp.DelegatingCallableStatement;
.
.
.
PreparedStatement stmt;
.
.
.
protected void executeStatement() throws SQLException
{
  if ( TPMonitor.TYPE_ORACLE == TPMonitor.getInstance().getDBType() )
  {
System.out.println(DBTYPE: ORA);
System.out.println(stmt CLASS:  + stmt.getClass().getName());
System.out.println(stmt LOADER:  +
stmt.getClass().getClassLoader().toString());

DelegatingCallableStatement dcs = (DelegatingCallableStatement)
stmt;
System.out.println(dcs CLASS:  + dcs.getClass().getName());
System.out.println(dcs LOADER:  +
dcs.getClass().getClassLoader().toString());

Statement cs = dcs.getInnermostDelegate();


The above statement throws the following exception:

java.lang.NoSuchMethodError:
org.apache.commons.dbcp.DelegatingCallableStatement.getInnermostDelegate
()Ljava/sql/CallableStatement;



Debugging Output


DBTYPE: ORA
stmt CLASS: org.apache.commons.dbcp.DelegatingCallableStatement
stmt LOADER: StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Business Objects\Tomcat\common\classes\
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xalan.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xercesImpl.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xml-apis.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\ant-launcher.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ant.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-collections-2.1.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-dbcp-1.2.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-el.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-pool-1.2.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-compiler.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-runtime.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\jsp-api.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-common.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-factory.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-java.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\naming-resources.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ojdbc14.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\servlet-api.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\sqljdbc.jar
-- Parent Classloader:
[EMAIL PROTECTED]

dcs CLASS: org.apache.commons.dbcp.DelegatingCallableStatement
dcs LOADER: StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Business Objects\Tomcat\common\classes\
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xalan.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xercesImpl.jar
file:C:\Program Files\Business
Objects\Tomcat\common\endorsed\xml-apis.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\ant-launcher.jar
file:C:\Program Files\Business Objects\Tomcat\common\lib\ant.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-collections-2.1.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-dbcp-1.2.1.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-el.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\commons-pool-1.2.jar
file:C:\Program Files\Business
Objects\Tomcat\common\lib\jasper-compiler.jar
file:C:\Program 

RE: DelegatingCallableStatement.getInnermostDelegate() -- NoSuchMethodError

2008-03-14 Thread Caldarale, Charles R
 From: Jim Garrison [mailto:[EMAIL PROTECTED] 
 Subject: DelegatingCallableStatement.getInnermostDelegate() 
 -- NoSuchMethodError
 
 I've examined the commons-dbcp-1.2.1.jar file that's 
 in the classpath

What do you mean by classpath?  The CLASSPATH environment variable
must NEVER be set for Tomcat (nor should it be used for any other Java
application, these days), and the command line -cp argument should not
contain any additional jars beyond those set by the Tomcat startup
scripts.  Any jars needed by specific webapps should be in that webapp's
WEB-INF/lib directory (or possibly in shared/lib, if absolutely
necessary).

Note that Tomcat includes its own renamed version of commons-dbcp to
support container-managed DB connection pools; why aren't you using
Tomcat's built-in facility, rather than rolling your own?

 this is running in BusinessObjects' Tomcat 5.0 server

Also note that Tomcat 5.0 is no longer actively supported, having been
supplanted by 5.5 and 6.0.  Since this is a repackaged, unsupported
version of Tomcat, you should discuss the problem with the Business
Objects support group.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]