RE: UndeclaredThrowableException as a result of false ClassLoading

2010-03-26 Thread Mikasch, Fares (EXT-IBM - DE/Berlin)
Hi Chuck,

Thanks for your response.

You are right, the webapp does the RMI call, and as I am debugging I got
unsure if this is a tomcat issue or a jbossall-client(.jar) issue.

Of course it is the Java runtime that wraps exceptions with the UTE when
the (non Runtime-) Exception does not meet the interface.

To reproduce this issue I didn't use the SOAP service. 

Some additional information: Sometimes the behavior changes during the
runtime of the tomcat from wrapped to unwrapped and vice versa. But it
is much easier to reproduce it by just restarting the tomcat a few times
and retry.

Regards
Fares

-Original Message-
From: ext Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, March 25, 2010 4:16 PM
To: Tomcat Users List
Subject: RE: UndeclaredThrowableException as a result of false
ClassLoading

 From: Mikasch, Fares (EXT-IBM - DE/Berlin)
 [mailto:fares.mikasch@nsn.com]
 Subject: UndeclaredThrowableException as a result of false
ClassLoading
 
 Short description of the use case:
 - User fills form with some wrong information
 - tomcat sends (RMI call) to another server

Let's get the terminology right: it's your webapp doing this, not
Tomcat.  Tomcat has no knowledge of or involvement with outbound
connections that your webapp attempts.

 - tomcat _sometimes_ wraps the ValidationException with
 UndeclaredThrowableException

No, Tomcat doesn't.  There is no usage of UndeclaredThrowableException
within Tomcat.

 In the case where the ValidationException is wrapped by the
 UndeclaredThrowableException, the WebappClassLoader instance of the
 current thread and the instance of the WebappClassLoader of the caught
 (and wrapped) ValidationException are different.

Are you sure they are instances of *Tomcat's* WebappClassLoader?  Note
that Axis uses its own classloading mechanism, and you may well be
stumbling into a problem with that.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: UndeclaredThrowableException as a result of false ClassLoading

2010-03-26 Thread Mikasch, Fares (EXT-IBM - DE/Berlin)
Hi chris,

Thanks for you support.

There are no ClassLoader references stored in the ValidationExceptions
(VE) and I doublechecked serialization - all ValidationExceptions are
identical. The VE class only exists in one jar which is deployed in
several wars. 

INFO [...] - Not a ValidationException:
[...].validation.ValidationException
INFO [...] -thrown Exception class:
[...].validation.ValidationException:
[...@[...].validation.validationexception@f8f...@cid:178a...@] 
 :
[...@org.apache.catalina.loader.webappclassloader@294...@cid:1d38...@]
INFO [...] -  expected Exception class:
[...].validation.ValidationException: 
[...@[...].validation.validationexception@6dc...@cid:113e...@]
 :
[...@org.apache.catalina.loader.webappclassloader@12b3...@cid:1d38...@]

Thread
ClassLoader:[...@org.apache.catalina.loader.webappclassloader@294...@cid:1d
38...@]
Hint: [...@fullyqualifiedclassname@instanc...@classid@]

As I already indicated in a previous mail I am currently debugging
jbossall-client code. At a first glance it seems to make use of
Thread.currentThread().getContextClassLoader() but I will have a closer
look.

Regards
Fares

-Original Message-
From: ext Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, March 25, 2010 8:48 PM
To: Tomcat Users List
Subject: Re: UndeclaredThrowableException as a result of false
ClassLoading

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fares,

On 3/25/2010 6:56 AM, Mikasch, Fares (EXT-IBM - DE/Berlin) wrote:
 In the case where the ValidationException is wrapped by the
 UndeclaredThrowableException, the WebappClassLoader instance of the
 current thread and the instance of the WebappClassLoader of the caught
 (and wrapped) ValidationException are different.

Can you supply the full source of ValidationException? Are you storing
ClassLoader objects in the ValidationException or anything like that,
which might have a problem being de-serialized? Is it possible that you
are throwing a ValidationException from one container whose
serialVersionID doesn't match that of the receiving container?

 getUniqueID also prints the ClassLoader information. In this case both
 ValidationExceptions are loaded by different WebappClassLoader
 instances.

Care to show us the output of the above code?

 It seems that during unmarshalling of the ValidationException it is
not
 predictable which ValidationException (identified by its ClassLoader)
is
 constructed. It seems that the WebApp may get a ValidationException
that
 doesn't fit to its own ClassLoader but to a ClassLoader of another
 WebApp.

Are you calling a lookback RMI server (meaning the JVM is contacting
itself)? It would be strange for one webapp to get an object that was
loaded by another webapp unless you had put your library in a shared
location or otherwise used some kind of shared resource: anything loaded
through RMI should probably come through the WebappClassLoader.

You might want to check to see if the RMI client always uses Thread's
context class loader to load/define new classes. Otherwise, you might
see some weirdness like this.

 Is this a bug of the tomcat? I mean shouldn't the WebApp get the
 ValidationException from the same ClassLoader that belongs to the
WebApp
 that invoked the RMI call?

One would hope, but this has absolutely nothing to do with Tomcat: RMI
is entirely outside Tomcat's scope.

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

iEYEARECAAYFAkurvggACgkQ9CaO5/Lv0PC2awCgsEOJoamv1fh5zVQy0Avhdpmo
4fQAnjF93rzRyCAObMDoW/C/9KyUcfGu
=mvkF
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: UndeclaredThrowableException as a result of false ClassLoading

2010-03-26 Thread Mikasch, Fares (EXT-IBM - DE/Berlin)
Hi Chris, 

Apparently I mixed up some lines regarding the traces during copy and
paste.
So here comes the correct trace:

INFO  [...] -   Thread ClassLoader:
[...@org.apache.catalina.loader.webappclassloader@785...@cid:1d38...@]
INFO  [...] - BusinessDelegate ClassLoader:
[...@org.apache.catalina.loader.webappclassloader@785...@cid:1d38...@]
INFO  [...] - expected Exception class classloader:
[...@org.apache.catalina.loader.webappclassloader@785...@cid:1d38...@]
INFO  [...] -   thrown Exception class classloader:
[...@org.apache.catalina.loader.webappclassloader@12b3...@cid:1d38...@]
INFO  [...] -  Wrapped exception Class:
[...@[...].validation.validationexception@ada...@cid:1176...@]
INFO  [...] -  Wrapped exception ClassLoader..:
[...@org.apache.catalina.loader.webappclassloader@12b3...@cid:1d38...@] -
parent:
[...@org.apache.catalina.loader.standardclassloader@10f0...@cid:1c86...@]
INFO  [...] - Not a ValidationException:
[...].validation.ValidationException
INFO  [...] -   thrown Exception class: class
[...].validation.ValidationException:
[...@[...].validation.validationexception@ada...@cid:1176...@]
INFO  [...] - expected Exception class: class
[...].validation.ValidationException:
[...@[...].validation.validationexception@11f2...@cid:12ca...@]

Sorry for the inconvenience.

So now you can see here that both ValidationExceptions although of the
same fully qualified name have a different class id because they are
loaded by different class loaders. The expected ValidationException has
the same ClassLoader as the current thread's context class loader and
the business delegate which was called to do the RMI call.

Regards
Fares

-Original Message-
From: ext Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, March 25, 2010 8:48 PM
To: Tomcat Users List
Subject: Re: UndeclaredThrowableException as a result of false
ClassLoading

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fares,

On 3/25/2010 6:56 AM, Mikasch, Fares (EXT-IBM - DE/Berlin) wrote:
 In the case where the ValidationException is wrapped by the
 UndeclaredThrowableException, the WebappClassLoader instance of the
 current thread and the instance of the WebappClassLoader of the caught
 (and wrapped) ValidationException are different.

Can you supply the full source of ValidationException? Are you storing
ClassLoader objects in the ValidationException or anything like that,
which might have a problem being de-serialized? Is it possible that you
are throwing a ValidationException from one container whose
serialVersionID doesn't match that of the receiving container?

 getUniqueID also prints the ClassLoader information. In this case both
 ValidationExceptions are loaded by different WebappClassLoader
 instances.

Care to show us the output of the above code?

 It seems that during unmarshalling of the ValidationException it is
not
 predictable which ValidationException (identified by its ClassLoader)
is
 constructed. It seems that the WebApp may get a ValidationException
that
 doesn't fit to its own ClassLoader but to a ClassLoader of another
 WebApp.

Are you calling a lookback RMI server (meaning the JVM is contacting
itself)? It would be strange for one webapp to get an object that was
loaded by another webapp unless you had put your library in a shared
location or otherwise used some kind of shared resource: anything loaded
through RMI should probably come through the WebappClassLoader.

You might want to check to see if the RMI client always uses Thread's
context class loader to load/define new classes. Otherwise, you might
see some weirdness like this.

 Is this a bug of the tomcat? I mean shouldn't the WebApp get the
 ValidationException from the same ClassLoader that belongs to the
WebApp
 that invoked the RMI call?

One would hope, but this has absolutely nothing to do with Tomcat: RMI
is entirely outside Tomcat's scope.

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

iEYEARECAAYFAkurvggACgkQ9CaO5/Lv0PC2awCgsEOJoamv1fh5zVQy0Avhdpmo
4fQAnjF93rzRyCAObMDoW/C/9KyUcfGu
=mvkF
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Shutdown hook for correctly unloading drivers

2010-03-26 Thread Timo Meinen
Hi,

I would like to know, if there is a shutdown-hook for Tomcat
available. Or what the prefered way is, to correctly unload drivers
like JDBC drivers.

Unloading the drivers seems to be important for us, because after
redeploying the web appliction to often during continuous integration
leads to a OutOfMemory-Errors. And although Tomcat tells me, that it
forces the driver to unload, I can see a significant amount of memory
allocated additionally each time the webapp is redeployed.


My webapp causes Tomcat at shutdown to throw these warning messages:

26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SCHWERWIEGEND: A web application registered the JBDC driver
[com.mysql.jdbc.Driver] but failed to unregister it when the web
application was stopped. To prevent a memory leak, the JDBC Driver has
been forcibly unregistered.
26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader
clearReferencesStopTimerThread
SCHWERWIEGEND: A web application appears to have started a TimerThread
named [Timer-0] via the java.util.Timer API but has failed to stop it.
To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.
26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader
clearReferencesStopTimerThread
SCHWERWIEGEND: A web application appears to have started a TimerThread
named [MySQL Statement Cancellation Timer] via the java.util.Timer API
but has failed to stop it. To prevent a memory leak, the timer (and
hence the associated thread) has been forcibly cancelled.
26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SCHWERWIEGEND: A web application appears to have started a thread
named [MultiThreadedHttpConnectionManager cleanup] but has failed to
stop it. This is very likely to create a memory leak.
26.03.2010 12:49:38 org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SCHWERWIEGEND: A web application created a ThreadLocal with key of
type 
[org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl]
(value 
[org.aspectj.runtime.internal.cflowstack.threadstackfactoryimpl$threadcounteri...@4ebfa97b])
and a value of type
[org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl.Counter]
(value 
[org.aspectj.runtime.internal.cflowstack.threadstackfactoryimpl$threadcounterimpl$coun...@90ff2a1])
but failed to remove it when the web application was stopped. To
prevent a memory leak, the ThreadLocal has been forcibly removed.


Thank you very much
Timo Meinen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Project : SPDY connector for Tomcat

2010-03-26 Thread Mark Thomas
On 26/03/2010 01:12, Nouhoun KANE wrote:
 Thank you Mark, now i understood the idea, but i think it's would be better
 if you give us more details and explanations about this idea to let us know
 more about this idea and to let us show you our proposal.
 I didn't uderstand the idea from the start, that's why i proposed a JAVA
 API. So if you give us more details, it's will be very helpful for us.
 Thanks.

For GSoC the intention is that the projects come up with the ideas and
the students do the reasearch and provide the detailed proposals.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Mark Thomas
On 26/03/2010 11:52, Timo Meinen wrote:
 Hi,
 
 I would like to know, if there is a shutdown-hook for Tomcat
 available. Or what the prefered way is, to correctly unload drivers
 like JDBC drivers.
 
 Unloading the drivers seems to be important for us, because after
 redeploying the web appliction to often during continuous integration
 leads to a OutOfMemory-Errors. And although Tomcat tells me, that it
 forces the driver to unload, I can see a significant amount of memory
 allocated additionally each time the webapp is redeployed.

Tomcat has unloaded the driver. That won't be causing your memory leak.

The memory leak prevention doesn't detect every possible cause of a
leak. Get yourself a profiler (I use YourKit because they give open
source committers free licenses) and follow these steps:

http://markmail.org/message/fcbvwapt6afyndxn

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Timo Meinen
Hi Mark,

thank you for the answer. I do have a YourKit license for our open
source framework, so I will profile my webapp.

 Tomcat has unloaded the driver. That won't be causing your memory leak.
Does this mean, that the additional memory which is allocated after a
redeploy cannot be the mysql-driver?

Timo

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Mark Thomas
On 26/03/2010 12:35, Timo Meinen wrote:
 Hi Mark,
 
 thank you for the answer. I do have a YourKit license for our open
 source framework, so I will profile my webapp.
 
 Tomcat has unloaded the driver. That won't be causing your memory leak.
 Does this mean, that the additional memory which is allocated after a
 redeploy cannot be the mysql-driver?

Very unlikely. A profiler will show what is really going on.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat maven plugin datasource

2010-03-26 Thread Pid

On 26/03/2010 02:01, fachhoch wrote:


I am having trouble  setting datasource

here is my configration  for datasource

Context

   Resource name=jdbc/artmsDataSource auth=Container
type=javax.sql.DataSource
username=username password=password
driverClassName=oracle.jdbc.driver.OracleDriver
url=myurl/


/Context


and here my pom  configration


Perhaps you meant to include the server.xml?  Rather than a POM, which 
doesn't tell me anything about what Tomcat is actually using.



p


 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdtomcat-maven-plugin/artifactId
 version1.0-beta-1/version
 configuration

 path/artms/path


contextFile${basedir}/context.xml/contextFile
 reloadautomatic/reload
 /configuration
dependencies
   dependency
   groupIdcommons-dbcp/groupId
   artifactIdcommons-dbcp/artifactId
   version1.2.2/version
   scopecompile/scope
   /dependency
   dependency
   groupIdcom.oracle/groupId
   artifactIdojdbc/artifactId
   version14/version
   scopecompile/scope
   /dependency
 /dependencies
 /plugin


am I missing anything ? my application fails starting, complaining cannot
find datasource ,please tell me what am I doing wrong ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat maven plugin datasource

2010-03-26 Thread Timo Meinen
Is the 'initialize' phase of maven executed?

Timo

2010/3/26 Pid p...@pidster.com:
 On 26/03/2010 02:01, fachhoch wrote:

 I am having trouble  setting datasource

 here is my configration  for datasource

 Context

   Resource name=jdbc/artmsDataSource auth=Container
 type=javax.sql.DataSource
                username=username password=password
 driverClassName=oracle.jdbc.driver.OracleDriver
                url=myurl/


 /Context


 and here my pom  configration

 Perhaps you meant to include the server.xml?  Rather than a POM, which
 doesn't tell me anything about what Tomcat is actually using.


 p

     plugin
     groupIdorg.codehaus.mojo/groupId
     artifactIdtomcat-maven-plugin/artifactId
     version1.0-beta-1/version
     configuration

                                 path/artms/path


 contextFile${basedir}/context.xml/contextFile
                                 reloadautomatic/reload
     /configuration
                dependencies
                   dependency
                   groupIdcommons-dbcp/groupId
                   artifactIdcommons-dbcp/artifactId
                   version1.2.2/version
                   scopecompile/scope
                   /dependency
                   dependency
                   groupIdcom.oracle/groupId
                   artifactIdojdbc/artifactId
                   version14/version
                   scopecompile/scope
                   /dependency
                         /dependencies
     /plugin


 am I missing anything ? my application fails starting, complaining cannot
 find datasource ,please tell me what am I doing wrong ?


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





-- 
Glück Auf
Timo

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Configuring a database connection pool by source

2010-03-26 Thread Pid

On 24/03/2010 18:39, David Calavera wrote:

Hi,

I'm working in an application that uses an embedded tomcat and I'd like to
add a feature to add a connection pool by source but when I run the server
I'm getting this error:

  javax.naming.NoInitialContextException: Need to specify class name in

environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial


That sounds like you haven't configued the InitialContext via a suitable 
Factory.  I don't think Tomcat embedded does that automatically*, so you 
would need to provide it yourself.



p


* someone will correct me if I'm wrong.




I'm using the tomcat jars for the version 6.0.18, and this is how I'm trying
to do it:

tomcat = new org.apache.catalina.startup.Tomcat() //creates the new server

... // configures the server

StandardContext application = tomcat.addWebapp(); //creates the web

application


... // configures the web application

resource = org.apache.catalina.deploy.ContextResource() // creates the new

JNDI resource


... // configures the JNDI resource with the name, type and properties

application.getNamingResources().addResource(resource) // adds the resource

to the application context




tomcat.start() //start tomcat



This is more or less the code, seems I'm not configuring anything because
without the resource it works fine.

Can anyone help me?

Thank you




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



AW: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Steffen Heil
Hi

  I would like to know, if there is a shutdown-hook for Tomcat
  available. Or what the prefered way is, to correctly unload drivers
  like JDBC drivers.

 Tomcat has unloaded the driver. That won't be causing your memory leak.

How does tomcat unload classes?
Some (especially some pool implementations) have own threads.
Is there even a way in java to do this?

It would be great, if tomcat could guarantee that a webapp is completely
unloaded.
(Currently we restart the whole tomcat process.)

I just thought so far, that this would not be possible... ?

Regards,
  Steffen



smime.p7s
Description: S/MIME cryptographic signature


AW: Why is tomcat taking so long to start?

2010-03-26 Thread Steffen Heil
 While this may be an unsupported version of Tomcat, version support is not
an issue for us here.

Support is not an issue for you, still you are asking for support?



smime.p7s
Description: S/MIME cryptographic signature


AW: Is it possible to set the port for tomcat manager to 8080 and root port 80???

2010-03-26 Thread Steffen Heil
  That's another discussion, but it could really make sense, if you use a
  connector bound to a non-public interface (or even localhost) just for
  administration.
 Which is what the RemoteAddrValve is for.

Yes, I know.
Still some people might prefer complete separation (instead of hiding) and
even might see an advantage to have something else mounted on the same path
from the outside.

But let's stop this thread. It is as simple as:

The manager app cannot work with other hosts except the own.
(Which is usually fine, BTW)

Regards,
  Steffen



smime.p7s
Description: S/MIME cryptographic signature


RE: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Caldarale, Charles R
 From: Steffen Heil [mailto:li...@steffen-heil.de]
 Subject: AW: Shutdown hook for correctly unloading drivers
 
 How does tomcat unload classes?

It doesn't, at least not directly.  Tomcat simply eliminates all references to 
the classes; the actual unloading is done by GC at some point in the future.

 Is there even a way in java to do this?

Just the above.  But making the classes unreachable should be adequate for 
whatever purpose you have in mind.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Why is tomcat taking so long to start?

2010-03-26 Thread Caldarale, Charles R
 From: Steffen Heil [mailto:li...@steffen-heil.de]
 Subject: AW: Why is tomcat taking so long to start?
 
  While this may be an unsupported version of Tomcat, version support
  is not an issue for us here.
 
 Support is not an issue for you, still you are asking for support?

Good that someone else noticed that disconnect...

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat maven plugin datasource

2010-03-26 Thread fachhoch

 the pom is sent is maven plugin for embedded tomcat. I  run my application
for testing using embedded tomcat.I am not able to configure datasource for
this embedded maven tomcat plugin.



Pid Ster wrote:
 
 On 26/03/2010 02:01, fachhoch wrote:

 I am having trouble  setting datasource

 here is my configration  for datasource

 Context

Resource name=jdbc/artmsDataSource auth=Container
 type=javax.sql.DataSource
 username=username password=password
 driverClassName=oracle.jdbc.driver.OracleDriver
 url=myurl/


 /Context


 and here my pom  configration
 
 Perhaps you meant to include the server.xml?  Rather than a POM, which 
 doesn't tell me anything about what Tomcat is actually using.
 
 
 p
 
  plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdtomcat-maven-plugin/artifactId
  version1.0-beta-1/version
  configuration

  path/artms/path


 contextFile${basedir}/context.xml/contextFile
  reloadautomatic/reload
  /configuration
 dependencies
dependency
groupIdcommons-dbcp/groupId
artifactIdcommons-dbcp/artifactId
version1.2.2/version
scopecompile/scope
/dependency
dependency
groupIdcom.oracle/groupId
artifactIdojdbc/artifactId
version14/version
scopecompile/scope
/dependency
  /dependencies
  /plugin


 am I missing anything ? my application fails starting, complaining cannot
 find datasource ,please tell me what am I doing wrong ?
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/tomcat-maven--plugin-datasource-tp28037478p28042749.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 6.0.26 pulled from mirrors?

2010-03-26 Thread Martin Gerdes
Why don't many mirrors carry 6.0.26 anymore?
Instead they say that 6.0.24 is the current release!?

This site doesn't carry 6.0.26 anymore:
http://apache.mirror.digionline.de/tomcat/tomcat-6/

This site does carry 6.0.26:
http://www.apache.org/dist/tomcat/tomcat-6/


Is 6.0.26 just getting redeployed? If so, what is the reason?

A curious tomcat user


Re: tomcat maven plugin datasource

2010-03-26 Thread Pid

On 26/03/2010 13:52, fachhoch wrote:


  the pom is sent is maven plugin for embedded tomcat. I  run my application
for testing using embedded tomcat.I am not able to configure datasource for
this embedded maven tomcat plugin.


If the plugin can't configure a datasource, then that's your problem, 
no?  Somewhere, something has to create a datasource called 
jdbc/artmsDataSource.



p




Pid Ster wrote:


On 26/03/2010 02:01, fachhoch wrote:


I am having trouble  setting datasource

here is my configration  for datasource

Context

Resource name=jdbc/artmsDataSource auth=Container
type=javax.sql.DataSource
 username=username password=password
driverClassName=oracle.jdbc.driver.OracleDriver
 url=myurl/


/Context


and here my pom  configration


Perhaps you meant to include the server.xml?  Rather than a POM, which
doesn't tell me anything about what Tomcat is actually using.


p


  plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdtomcat-maven-plugin/artifactId
  version1.0-beta-1/version
  configuration

  path/artms/path


contextFile${basedir}/context.xml/contextFile
  reloadautomatic/reload
  /configuration
 dependencies
dependency
groupIdcommons-dbcp/groupId
artifactIdcommons-dbcp/artifactId
version1.2.2/version
scopecompile/scope
/dependency
dependency
groupIdcom.oracle/groupId
artifactIdojdbc/artifactId
version14/version
scopecompile/scope
/dependency
  /dependencies
  /plugin


am I missing anything ? my application fails starting, complaining cannot
find datasource ,please tell me what am I doing wrong ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0.26 pulled from mirrors?

2010-03-26 Thread Mark Thomas
On 26/03/2010 14:09, Martin Gerdes wrote:
 Why don't many mirrors carry 6.0.26 anymore?
 Instead they say that 6.0.24 is the current release!?
 
 This site doesn't carry 6.0.26 anymore:
 http://apache.mirror.digionline.de/tomcat/tomcat-6/
 
 This site does carry 6.0.26:
 http://www.apache.org/dist/tomcat/tomcat-6/
 
 
 Is 6.0.26 just getting redeployed? If so, what is the reason?
 
 A curious tomcat user

Looks like some of the mirrors are out of date.

6.0.26 is still the latest and greatest

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0.26 pulled from mirrors?

2010-03-26 Thread Konstantin Kolinko
2010/3/26 Martin Gerdes marting...@googlemail.com:
 Why don't many mirrors carry 6.0.26 anymore?
 Instead they say that 6.0.24 is the current release!?

 This site doesn't carry 6.0.26 anymore:
 http://apache.mirror.digionline.de/tomcat/tomcat-6/

 This site does carry 6.0.26:
 http://www.apache.org/dist/tomcat/tomcat-6/


 Is 6.0.26 just getting redeployed? If so, what is the reason?


Thank you for noting.

The EU apache mirror was offline since 7th of March.

Now it is back to life, but apparently it is out of sync with the main US site.

 A curious tomcat user


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6.0.26 pulled from mirrors?

2010-03-26 Thread Caldarale, Charles R
 From: Martin Gerdes [mailto:marting...@googlemail.com]
 Subject: Tomcat 6.0.26 pulled from mirrors?
 
 Why don't many mirrors carry 6.0.26 anymore?

Many, or one?

All the mirrors I've spot-checked on this side of the pond have 6.0.26.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why is tomcat taking so long to start?

2010-03-26 Thread Juha Laiho

On 26.3.2010 2:30, Mon Cab wrote:

Tomcat is taking 3 mins to start up, while it used to start up in a matter of 
seconds.
We have 2 containers set up with 7-9 hosts configured, each with its own 
docbase directory.

Looking at the working directory, it seems that there is a directory for each 
host and for some
unknown reason within that directory there are directories for each of the 
other hosts docbases

ie.

work
|
|-catalina
-- domain1.com
|
|- docbase for domain1
|- docbase for domain 2
...
-- docbase for domain7

-- domain2.com
|
|- docbase for domain1
|- docbase for domain 2
...
-- docbase for domain7


Is this supposed to happen?


That's actually quite curious. Your configuration looks like you have
just one application running on each domain, but the log looks like
it is starting up all applications for all domains. That alone makes
it take quite some time. You might wish to check your deployment
practices.

A somewhat related thing is that the time seems to be consumed primarily
in the application startup phase. Once after you find and correct the
reason for this all apps on all domains issue, you might wish to
increase per-application logging to such a level that you can see
what is going on - unless just solving this primary problem is enough.

Of course, one way to find the solution would be to find what changed
at the time the response time increased from the old seconds to the
current.

--
..Juha

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Any way to pre-compile JSPs in Tomcat

2010-03-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 3/25/2010 4:33 PM, Mark Thomas wrote:
 On 25/03/2010 19:41, Christopher Schultz wrote:
 Do you mean that you'll need to use a matching version in order to enjoy
 all the benefits and features of that version, or is there something
 more sinister?

 I would expect that you can pre-compile JSPs into servlets that will run
 on any servlet container using the same servlet API version and tag
 library versions (including JSTL, which might vary from Tomcat-to-Tomcat).
 
 Nope. pre-compilation ties in Tomcat internals which can, and have,
 varied between point releases.

Good to know. Is there any checking done before running a JSP that has
been precompiled? That would seem to be a good thing to do. If such
checking isn't being done, I'd be happy to propose a solution and maybe
submit a patch.

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

iEYEARECAAYFAkus4QAACgkQ9CaO5/Lv0PD6CACgtIKKY8JFIZylb94F3TaX2hoB
taAAn0CTUufY7+lBzb06q3Kc/6+jtWRa
=JflY
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat PUT not working

2010-03-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kumar,

On 3/25/2010 4:34 PM, Kumar Kadiyala wrote:
 I have REST based web services some of which use the PUT method. The 
 PUT method can contain a request body. The web service works fine 
 with Websphere and is out in the field.
 
 We are in the process of migrating to tomcat and I noticed that my 
 web service which uses PUT is not able to get the request body 
 anymore. I use HttpServletRequest's getInputStream and it always 
 returns null.

No exception, but you get NULL instead? Strange.

 What is the Content-Type of the request?
 KK  The Content-Type is text/xml.

If the Content-Type is text/xml, you should probably be using
HttpServletRequest.getReader, but maybe not if you want the raw bytes to
provide to an XML parser.

 Changing the method to POST will affect customers in the field and
 also breaks RESTful principles.

I am not suggesting that you switch to POST.

 Yes, It does seem like the request body is empty.

Empty request body != null. Which is it? Can you verify with a packet
sniffer that the request body is actually non-null? What's the
Content-Length?

 I misspoke earlier. The InputStream is not null but the method
 available() on the InputStream is returning 0. If I change the method
 to POST, InputStream's avialable() is returning a value  0.

InputStream.available returns the number of bytes readable without
blocking, not how many bytes can eventually be read by the caller.

Try actually reading from the InputStream and see what happens.

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

iEYEARECAAYFAkus4e0ACgkQ9CaO5/Lv0PDDAACffWKdhyFzbDmY3KNi4+8s+Wjy
WGIAoIuW5Lo6MK0qEkqHeYVOUhM7oWNo
=TpUQ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why is tomcat taking so long to start?

2010-03-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mon,

On 3/25/2010 8:30 PM, Mon Cab wrote:
 Engine name=Catalina defaultHost=localhost debug=0

Note that you never define the host localhost which is why you are
getting those warning messages in your log file.

   Host name=www.domain.com debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
   Aliasdomain.com/Alias
 [...]
   /Host

 Host name=www.domain2.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
   Aliasdomain2.com/Alias
 [...]
 /Host
 
 Host name=www.domain4.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
   Aliasdomain4.com/Alias
   Aliasxx.xx.xx.xx/Alias
 [...]
 /Host
 
 Host name=www.domain5.com debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
   Aliasdomain5.com/Alias
 [...]

Why are you defining so many hosts and re-deploying the same webapps
over and over again? Why not simply make all domains aliases of each
other? You'll save startup time and memory, plus have fewer management
headaches.

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

iEYEARECAAYFAkus48cACgkQ9CaO5/Lv0PCiyACfapvTMMCiNkC0wrkYOYnuc6qz
/88Aniouo3xV6PJzG+bl5HmGGtPQ0pPI
=xzS1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat maven plugin datasource

2010-03-26 Thread fachhoch

I am asking why plugin  is not creating datasource ?, I did as per the plugin
instructions , what am i missing ?

Pid Ster wrote:
 
 On 26/03/2010 13:52, fachhoch wrote:

   the pom is sent is maven plugin for embedded tomcat. I  run my
 application
 for testing using embedded tomcat.I am not able to configure datasource
 for
 this embedded maven tomcat plugin.
 
 If the plugin can't configure a datasource, then that's your problem, 
 no?  Somewhere, something has to create a datasource called 
 jdbc/artmsDataSource.
 
 
 p
 
 
 
 Pid Ster wrote:

 On 26/03/2010 02:01, fachhoch wrote:

 I am having trouble  setting datasource

 here is my configration  for datasource

 Context

 Resource name=jdbc/artmsDataSource auth=Container
 type=javax.sql.DataSource
  username=username password=password
 driverClassName=oracle.jdbc.driver.OracleDriver
  url=myurl/


 /Context


 and here my pom  configration

 Perhaps you meant to include the server.xml?  Rather than a POM, which
 doesn't tell me anything about what Tomcat is actually using.


 p

   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdtomcat-maven-plugin/artifactId
   version1.0-beta-1/version
   configuration

   path/artms/path


 contextFile${basedir}/context.xml/contextFile
   reloadautomatic/reload
   /configuration
  dependencies
 dependency
 groupIdcommons-dbcp/groupId
 artifactIdcommons-dbcp/artifactId
 version1.2.2/version
 scopecompile/scope
 /dependency
 dependency
 groupIdcom.oracle/groupId
 artifactIdojdbc/artifactId
 version14/version
 scopecompile/scope
 /dependency
   /dependencies
   /plugin


 am I missing anything ? my application fails starting, complaining
 cannot
 find datasource ,please tell me what am I doing wrong ?


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/tomcat-maven--plugin-datasource-tp28037478p28045557.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Re: jvm exits without trace

2010-03-26 Thread David kerber
It looks like we may have had one of these this AM, but under somewhat 
different conditions:  Windows server 2008, JVM 1.6.0_17 64-bit Server 
VM, TC 5.5.28.  No tracks in any of the TC logs, and the Windows event 
viewer had the singularly un-useful The Tomcat5 service terminated 
unexpectedly.  It has done this 1 time(s).



I did find this jvm error log, though, which appears to point to my jdbc 
driver:


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x775c8926, 
pid=4860, tid=4272

#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode 
windows-amd64 )

# Problematic frame:
# C  [ntdll.dll+0x48926]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---  T H R E A D  ---

Current thread (0x1a5a8000):  JavaThread http-81-Processor22 
daemon [_thread_in_native, id=4272, 
stack(0x1bdc,0x1be0)]


siginfo: ExceptionCode=0xc005, writing address 0x0010

Registers:
EAX=0x, EBX=0x, ECX=0x0008, 
EDX=0x
ESP=0x1bdfc660, EBP=0x0003, ESI=0x1a2572f0, 
EDI=0x1a2572f0

EIP=0x775c8926, EFLAGS=0x00010206

Top of Stack: (sp=0x1bdfc660)
0x1bdfc660:    1bdfc7f8
0x1bdfc670:   1bdfd080 1c317568
0x1bdfc680:    07fef97b191c
0x1bdfc690:   0003 1a2572f0
0x1bdfc6a0:   1a2572f0 0001
0x1bdfc6b0:   1a2572f0 07fef97d63e8
0x1bdfc6c0:   0001 1a2572f0
0x1bdfc6d0:   1c6038f0 1c371ce7
0x1bdfc6e0:   0400 07fef97d7af7
0x1bdfc6f0:   0001 0001
0x1bdfc700:   0001 1cd98a50
0x1bdfc710:   19d454a0 1c37200c
0x1bdfc720:   1c6038f0 0001
0x1bdfc730:   02a4 0001
0x1bdfc740:   1c60 1c37207d
0x1bdfc750:   1c6038f0 

Instructions: (pc=0x775c8926)
0x775c8916:   ff ff 90 90 90 90 90 90 90 90 ff f3 48 83 ec 20
0x775c8926:   f0 0f ba 71 08 00 48 8b d1 0f 83 65 cb fd ff 65


Stack: [0x1bdc,0x1be0],  sp=0x1bdfc660, 
 free space=241k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, 
C=native code)

C  [ntdll.dll+0x48926]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j 
ianywhere.ml.jdbcodbc.IIStatement.executeQuery(Ljava/lang/String;)Ljava/sql/ResultSet;+0
j 
ianywhere.ml.jdbcodbc.IStatement.executeQuery(Ljava/lang/String;)Ljava/sql/ResultSet;+7
j 
com.wra.websira.WraJdbc.query(Ljava/sql/Statement;Ljava/lang/String;)Ljava/sql/ResultSet;+2
j 
com.wra.websira.WraTable.rawQuery(Lcom/wra/websira/WraDatabase;Ljava/sql/Statement;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/ResultSet;+82

j  com.wra.reports.GenericReportByFuel.loadTankHeights()I+165
j 
com.wra.reports.GenericReconByFuel.runReport(Lcom/wra/reports/AdminReport;Lcom/wra/reports/ReconciliationDetail;)Ljava/lang/String;+1137
j 
com.wra.reports.ReconWRA_html.runReport(Lcom/wra/reports/AdminReport;Lcom/wra/reports/ReconciliationDetail;)Ljava/lang/String;+3

v  ~StubRoutines::call_stub
j 
sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j 
sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j 
java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j 
SiteData.ReconReports.reportOneSite(Ljavax/servlet/http/HttpSession;)Ljava/lang/String;+547
j 
org.apache.jsp.ListInventory_jsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+215
j 
org.apache.jasper.runtime.HttpJspBase.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j 
javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j 
org.apache.jasper.servlet.JspServletWrapper.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V+203
j 
org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/Throwable;Z)V+186
j 

Re: tomcat PUT not working

2010-03-26 Thread Kumar Kadiyala
Chris,

I see the content when I read the InputStream. Thanks for your help. 

Kumar

--- On Fri, 3/26/10, Christopher Schultz ch...@christopherschultz.net wrote:

 From: Christopher Schultz ch...@christopherschultz.net
 Subject: Re: tomcat PUT not working
 To: Tomcat Users List users@tomcat.apache.org
 Date: Friday, March 26, 2010, 10:33 AM
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Kumar,
 
 On 3/25/2010 4:34 PM, Kumar Kadiyala wrote:
  I have REST based web services some of which use the
 PUT method. The 
  PUT method can contain a request body. The web service
 works fine 
  with Websphere and is out in the field.
  
  We are in the process of migrating to tomcat and I
 noticed that my 
  web service which uses PUT is not able to get the
 request body 
  anymore. I use HttpServletRequest's getInputStream and
 it always 
  returns null.
 
 No exception, but you get NULL instead? Strange.
 
  What is the Content-Type of the request?
  KK  The Content-Type is text/xml.
 
 If the Content-Type is text/xml, you should probably be
 using
 HttpServletRequest.getReader, but maybe not if you want the
 raw bytes to
 provide to an XML parser.
 
  Changing the method to POST will affect customers in
 the field and
  also breaks RESTful principles.
 
 I am not suggesting that you switch to POST.
 
  Yes, It does seem like the request body is empty.
 
 Empty request body != null. Which is it? Can you verify
 with a packet
 sniffer that the request body is actually non-null? What's
 the
 Content-Length?
 
  I misspoke earlier. The InputStream is not null but
 the method
  available() on the InputStream is returning 0. If I
 change the method
  to POST, InputStream's avialable() is returning a
 value  0.
 
 InputStream.available returns the number of bytes readable
 without
 blocking, not how many bytes can eventually be read by the
 caller.
 
 Try actually reading from the InputStream and see what
 happens.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkus4e0ACgkQ9CaO5/Lv0PDDAACffWKdhyFzbDmY3KNi4+8s+Wjy
 WGIAoIuW5Lo6MK0qEkqHeYVOUhM7oWNo
 =TpUQ
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat maven plugin datasource

2010-03-26 Thread Caldarale, Charles R
 From: fachhoch [mailto:fachh...@gmail.com]
 Subject: Re: tomcat maven plugin datasource
 
 I did as per the plugin instructions , what am i missing ?

Telling us what plugin you're referring to.  Where did you get it?  I don't 
recall seeing any such plugin as part of any Tomcat distribution, but maybe I 
missed it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error org.apache.axis2.transport.http.AxisAdminServlet java.lang.ClassNotFoundException

2010-03-26 Thread Muralidhar Yaragalla
Where are u placing the axis jar files?

-Original Message-
From: SM [mailto:moni_spar...@yahoo.com] 
Sent: Friday, March 26, 2010 11:10 PM
To: users@tomcat.apache.org
Subject: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException


I used eclipse Gamypede to generate webservices in the past with tomcat
6. Was using the service archive and the code generator wizard.  However
the loading of axis2 fails with the following error on a new version of
eclipse Galileo 3.5SR2.  Tomcat version 6.0 is being used.  The same
instance of the Tomcat 6.0 server starts without a problem when started
independent of
eclipse.  If the server is started from within the eclipse environment I
get the following error.  Is there a fix for this?  


repositories:
    /WEB-INF/classes/
-- Parent Classloader:
org.apache.catalina.loader.standardclassloa...@6e70c7
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException:
org.apache.axis2.transport.http.AxisAdminServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1484)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1329)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
95)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at
 org.apache.catalina.startup.Catalina.start(Catalina.java:593)
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:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Boots

Any tips or pointers in getting this corrected will be very beneficial.  

Thanks,
Monisha


  


  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error org.apache.axis2.transport.http.AxisAdminServlet java.lang.ClassNotFoundException

2010-03-26 Thread SM
Deployed axis2 war on Apache TOmcat 6.0.  Have gone into Windows -- 
Preferences -- Axis2 Preference and have specified the Axis2 runtime location 
to the place where I have my axis2 distribution unbundled at.  Do I need to do 
anything else in terms of setup.  Please let me know.
Thanks,Monisha

--- On Fri, 3/26/10, Muralidhar Yaragalla yaragallamur...@gmail.com wrote:

From: Muralidhar Yaragalla yaragallamur...@gmail.com
Subject: RE: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error 
org.apache.axis2.transport.http.AxisAdminServlet 
java.lang.ClassNotFoundException
To: 'Tomcat Users List' users@tomcat.apache.org, moni_spar...@yahoo.com
Date: Friday, March 26, 2010, 11:11 AM

Where are u placing the axis jar files?

-Original Message-
From: SM [mailto:moni_spar...@yahoo.com] 
Sent: Friday, March 26, 2010 11:10 PM
To: users@tomcat.apache.org
Subject: When starting tomcat 6 from eclipse Galelio 2.5SR2-- error
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException


I used eclipse Gamypede to generate webservices in the past with tomcat
6. Was using the service archive and the code generator wizard.  However
the loading of axis2 fails with the following error on a new version of
eclipse Galileo 3.5SR2.  Tomcat version 6.0 is being used.  The same
instance of the Tomcat 6.0 server starts without a problem when started
independent of
eclipse.  If the server is started from within the eclipse environment I
get the following error.  Is there a fix for this?  


repositories:
    /WEB-INF/classes/
-- Parent Classloader:
org.apache.catalina.loader.standardclassloa...@6e70c7
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException:
org.apache.axis2.transport.http.AxisAdminServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1484)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1329)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
95)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at
 org.apache.catalina.startup.Catalina.start(Catalina.java:593)
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:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Boots

Any tips or pointers in getting this corrected will be very beneficial.  

Thanks,
Monisha


      


      




  

RE: Configuring a database connection pool by source

2010-03-26 Thread Muralidhar Yaragalla
Hi basically this happens when you don't provide InitialContexFactory to the
Initialcontext when creating an InitialContext object. If your code resides
inside tomcat you don't need to do this because it knows where its directory
service is located. But if you want to connect to directory service from
outside tomcat I am not sure whether you can do it or not? If you want to do
it there is only one way? Find where the implementation of the factory
interface is. It is responsibility of the service provider to provide its
implementation. Once you find it create env properties accordingly and pass
it to InitialContext constructor while creating object for that.

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Friday, March 26, 2010 6:42 PM
To: Tomcat Users List
Cc: David Calavera
Subject: Re: Configuring a database connection pool by source

On 24/03/2010 18:39, David Calavera wrote:
 Hi,

 I'm working in an application that uses an embedded tomcat and I'd like to
 add a feature to add a connection pool by source but when I run the server
 I'm getting this error:

   javax.naming.NoInitialContextException: Need to specify class name in
 environment or system property, or as an applet parameter, or in an
 application resource file:  java.naming.factory.initial

That sounds like you haven't configued the InitialContext via a suitable 
Factory.  I don't think Tomcat embedded does that automatically*, so you 
would need to provide it yourself.


p


* someone will correct me if I'm wrong.



 I'm using the tomcat jars for the version 6.0.18, and this is how I'm
trying
 to do it:

 tomcat = new org.apache.catalina.startup.Tomcat() //creates the new server

 ... // configures the server

 StandardContext application = tomcat.addWebapp(); //creates the web
 application

 ... // configures the web application

 resource = org.apache.catalina.deploy.ContextResource() // creates the new
 JNDI resource

 ... // configures the JNDI resource with the name, type and properties

 application.getNamingResources().addResource(resource) // adds the
resource
 to the application context


 tomcat.start() //start tomcat


 This is more or less the code, seems I'm not configuring anything because
 without the resource it works fine.

 Can anyone help me?

 Thank you



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: jvm exits without trace

2010-03-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/26/2010 1:40 PM, David kerber wrote:
 It looks like we may have had one of these this AM, but under somewhat
 different conditions:  Windows server 2008, JVM 1.6.0_17 64-bit Server
 VM, TC 5.5.28.  No tracks in any of the TC logs, and the Windows event
 viewer had the singularly un-useful The Tomcat5 service terminated
 unexpectedly.  It has done this 1 time(s).
 
 I did find this jvm error log, though, which appears to point to my jdbc
 driver:

Yikes: whenever I see jdbcodbc I cringe!

 #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x775c8926,
 pid=4860, tid=4272

[snip]

 #
 # JRE version: 6.0_17-b04
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode
 windows-amd64 )
 # Problematic frame:
 # C  [ntdll.dll+0x48926]

Looks like whatever ntdll.dll is. That doesn't sound like a JDBC driver
cause to me.

The stack trace shows all Java code except the call into ntdll.dll.
Without knowing what function was being called, you can't really even
speculate what the problem might be.

Looks like you've broken a kernel call, though :)

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

iEYEARECAAYFAkutCL0ACgkQ9CaO5/Lv0PCUIQCfeHc5KbIL7YH45mSF0x6IsUSk
vhQAnjNa9cYKr2q0bc9MgBFBkuExNN4Y
=hlui
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: DB connection error -Tomcat 6 config

2010-03-26 Thread Propes, Barry L
Mark -- looked for that and got this message:

Your search query TimerThread didn't return any results. Please change some 
terms and refer to HelpOnSearching for more information.

I'll see about downloading and implementing the profiler. 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Tuesday, March 23, 2010 5:54 PM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

On 23/03/2010 22:39, Propes, Barry L wrote:
 I got this again today, and it seems to happen when/if I go into the Tomcat 
 Manager app and  either Stop and Start or Reload the app.
 
 Should that have a significant bearing on something like a DBCP connection so 
 adversely?
 
 I was thinking it was tantamount to shutting down the Tomcat console and 
 restarting itthat not the case?
No. It just re-loads the app.

Sounds like you have hit a bug in commons-pool / Tomcat's memory leak clean-up 
code.

http://wiki.apache.org/tomcat/MemoryLeakProtection
search for TimerThread

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: DB connection error -Tomcat 6 config

2010-03-26 Thread Mark Thomas
On 26/03/2010 19:22, Propes, Barry L wrote:
 Mark -- looked for that and got this message:
 
 Your search query TimerThread didn't return any results. Please change some 
 terms and refer to HelpOnSearching for more information.

Sorry - should have been clearer - just look for that text on the page.
 
 I'll see about downloading and implementing the profiler. 
 
 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org] 
 Sent: Tuesday, March 23, 2010 5:54 PM
 To: Tomcat Users List
 Subject: Re: DB connection error -Tomcat 6 config
 
 On 23/03/2010 22:39, Propes, Barry L wrote:
 I got this again today, and it seems to happen when/if I go into the Tomcat 
 Manager app and  either Stop and Start or Reload the app.

 Should that have a significant bearing on something like a DBCP connection 
 so adversely?

 I was thinking it was tantamount to shutting down the Tomcat console and 
 restarting itthat not the case?
 No. It just re-loads the app.
 
 Sounds like you have hit a bug in commons-pool / Tomcat's memory leak 
 clean-up code.
 
 http://wiki.apache.org/tomcat/MemoryLeakProtection
 search for TimerThread
 
 Mark
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: jvm exits without trace

2010-03-26 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: jvm exits without trace
 
 Yikes: whenever I see jdbcodbc I cringe!

As everyone should.

 Looks like whatever ntdll.dll is. That doesn't sound like a 
 JDBC driver cause to me.

It's not the JDBC driver per se, but the JDBC driver called it.  You pretty 
much have to go through ntldll.dll on all calls into the Windows kernel.

 The stack trace shows all Java code except the call into ntdll.dll.

Java code can't call ntldll.dll directly - that has to be done from some other 
native code.

 Looks like you've broken a kernel call, though :)

Just gave it a VA that's not valid for the process to access, so the Windows 
kernel blew up the thread with an access violation - as it should.

This appears to be completely unrelated to the previously discussed JVM 
terminations.

 - 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.



Re: jvm exits without trace

2010-03-26 Thread David kerber

On 3/26/2010 3:19 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/26/2010 1:40 PM, David kerber wrote:

It looks like we may have had one of these this AM, but under somewhat
different conditions:  Windows server 2008, JVM 1.6.0_17 64-bit Server
VM, TC 5.5.28.  No tracks in any of the TC logs, and the Windows event
viewer had the singularly un-useful The Tomcat5 service terminated
unexpectedly.  It has done this 1 time(s).

I did find this jvm error log, though, which appears to point to my jdbc
driver:


Yikes: whenever I see jdbcodbc I cringe!


What alternative is there, without going to a java database?  This is 
making calls to a database server elsewhere on the network, not 
something embedded in the app.






#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x775c8926,
pid=4860, tid=4272


[snip]


#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode
windows-amd64 )
# Problematic frame:
# C  [ntdll.dll+0x48926]


Looks like whatever ntdll.dll is. That doesn't sound like a JDBC driver
cause to me.


Other than the fact that it's part of the windows kernel/core, I don't 
know either.  My guess was that the jodbc driver was making a bad call 
to the kernel.




The stack trace shows all Java code except the call into ntdll.dll.
Without knowing what function was being called, you can't really even
speculate what the problem might be.

Looks like you've broken a kernel call, though :)


Yep


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: jvm exits without trace

2010-03-26 Thread Caldarale, Charles R
 From: David kerber [mailto:dcker...@verizon.net]
 Subject: Re: jvm exits without trace
 
 What alternative is there, without going to a java database?

*Every* real database that I'm aware of supplies type 4 JDBC drivers; none use 
the mind-bogglingly bad JDBC-ODBC bridge.  Choose your poison: Oracle, SQL 
Server, MySQL, PostgreSQL, ...

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: jvm exits without trace

2010-03-26 Thread David kerber

On 3/26/2010 3:27 PM, Caldarale, Charles R wrote:

From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: jvm exits without trace

Yikes: whenever I see jdbcodbc I cringe!


As everyone should.


Looks like whatever ntdll.dll is. That doesn't sound like a
JDBC driver cause to me.


It's not the JDBC driver per se, but the JDBC driver called it.  You pretty 
much have to go through ntldll.dll on all calls into the Windows kernel.


The stack trace shows all Java code except the call into ntdll.dll.


Java code can't call ntldll.dll directly - that has to be done from some other 
native code.


Looks like you've broken a kernel call, though :)


Just gave it a VA that's not valid for the process to access, so the Windows 
kernel blew up the thread with an access violation - as it should.

This appears to be completely unrelated to the previously discussed JVM 
terminations.


Ok, I'll accept that.  I really didn't know, but wanted a second pair of 
eyes to look at it.  I thought there was a chance it might be related 
because the failure was nearly (though not completely) silent.


Thanks for the comments!
D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: jvm exits without trace

2010-03-26 Thread David kerber

On 3/26/2010 3:39 PM, Caldarale, Charles R wrote:

From: David kerber [mailto:dcker...@verizon.net]
Subject: Re: jvm exits without trace

What alternative is there, without going to a java database?


*Every* real database that I'm aware of supplies type 4 JDBC drivers; none use 
the mind-bogglingly bad JDBC-ODBC bridge.  Choose your poison: Oracle, SQL 
Server, MySQL, PostgreSQL, ...


Oh, yeah.  Brain fart on my part...

D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: how to add subdomains dynamically, virtual hosts config

2010-03-26 Thread Caldarale, Charles R
 From: Logan Scott [mailto:lo...@sqlist.com]
 Subject: how to add subdomains dynamically, virtual hosts config
 
 tomcat 6.0

Tomcat 6.0.?

 apache 2.0.55

That's getting a bit long in the tooth...

 jk connector

Version?

 Now I would like to add the ability to issue subdomains in large
 numbers, for any of the domains on my server.

Can't answer it for httpd, but for Tomcat, use the host-manager webapp included 
in the Tomcat distribution (not the manager webapp).  This will let you create 
and remove virtual hosts on the fly; look at the servlet-mapping in its 
WEB-INF/web.xml for usage.  Note that this does not persist the changes, so 
you'll have to take care of that by some other means.

You will, of course, also need to create DNS entries as needed (not a Tomcat 
issue).

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: DB connection error -Tomcat 6 config

2010-03-26 Thread Propes, Barry L
Ok -- FWIW, I'm also going to attach a small snippet from the logs to see if 
that sheds any light on the situation..

I'm also having an issue with a child directory and contents being seen. 
Getting 404 errors from this, even though the contents are unequivocally there.
Not certain that the two problems are related or not.




Mar 26, 2010 12:37:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3697 ms
Mar 26, 2010 12:40:19 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Mar 26, 2010 12:40:19 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesStopTimerThread
SEVERE: A web application appears to have started a TimerThread named [Timer-0] 
via the java.util.Timer API but has failed to stop it. 

To prevent a memory leak, the timer (and hence the associated thread) has been 
forcibly cancelled. 

Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig 
validateSecurityRoles
INFO: WARNING: Security role name service used in an auth-constraint without 
being defined in a security-role
Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig 
validateSecurityRoles
INFO: WARNING: Security role name admin used in an auth-constraint without 
being defined in a security-role
Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig 
validateSecurityRoles
INFO: WARNING: Security role name comply used in an auth-constraint without 
being defined in a security-role
Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig 
validateSecurityRoles 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Friday, March 26, 2010 2:25 PM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

On 26/03/2010 19:22, Propes, Barry L wrote:
 Mark -- looked for that and got this message:
 
 Your search query TimerThread didn't return any results. Please change some 
 terms and refer to HelpOnSearching for more information.

Sorry - should have been clearer - just look for that text on the page.
 
 I'll see about downloading and implementing the profiler. 
 
 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: Tuesday, March 23, 2010 5:54 PM
 To: Tomcat Users List
 Subject: Re: DB connection error -Tomcat 6 config
 
 On 23/03/2010 22:39, Propes, Barry L wrote:
 I got this again today, and it seems to happen when/if I go into the Tomcat 
 Manager app and  either Stop and Start or Reload the app.

 Should that have a significant bearing on something like a DBCP connection 
 so adversely?

 I was thinking it was tantamount to shutting down the Tomcat console and 
 restarting itthat not the case?
 No. It just re-loads the app.
 
 Sounds like you have hit a bug in commons-pool / Tomcat's memory leak 
 clean-up code.
 
 http://wiki.apache.org/tomcat/MemoryLeakProtection
 search for TimerThread
 
 Mark
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: configuration to serve 500 users

2010-03-26 Thread Muralidhar Yaragalla
Thank you.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, March 25, 2010 9:07 PM
To: Tomcat Users List
Subject: Re: configuration to serve 500 users

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Muralidhar,

Welcome to the list. In the future, please use a more descriptive
subject line: most list members are writing because they need help, so
need help is completely useless.

On 3/24/2010 1:38 PM, Muralidhar Yaragalla wrote:
 Hi, I have to run tomcat against 500 concurrent users.

When you say 500 concurrent users, do you mean that you need to support
500 users logged-on at once, or you need to be able to handle 500
simultaneous requests?

 Do I have to specify any maximum threads allowed or kind of things?

You might want to do that. The default maximum number of worker threads
for all connectors is 250.

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

iEYEARECAAYFAkurgx4ACgkQ9CaO5/Lv0PC19QCggrxD0Meootl81p+o8LY6aJ2F
PDMAnRQ3t0foY/TNxRtAFM2zODH2iZ6B
=cpjJ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: DB connection error -Tomcat 6 config

2010-03-26 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 I'm also having an issue with a child directory and contents being
 seen. Getting 404 errors from this, even though the contents are
 unequivocally there.

Note that client requests are for URLs, not directories; what the URL maps to 
may or may not have anything to do with how things are laid out in the server's 
file system.  You'll need to post specifics: the URL, the webapp's 
WEB-INF/web.xml, and the actual deployed file structure.  Also, check that the 
Tomcat userid has access to the directories of interest.

 Mar 26, 2010 12:40:19 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesStopTimerThread
 SEVERE: A web application appears to have started a TimerThread named
 [Timer-0] via the java.util.Timer API but has failed to stop it.

That doesn't necessarily point to the JDBC driver, just that your webapp is 
ill-behaved.

 Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig
 validateSecurityRoles
 INFO: WARNING: Security role name service used in an auth-constraint
 without being defined in a security-role
 Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig
 validateSecurityRoles
 INFO: WARNING: Security role name admin used in an auth-constraint
 without being defined in a security-role
 Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig
 validateSecurityRoles
 INFO: WARNING: Security role name comply used in an auth-constraint
 without being defined in a security-role
 Mar 26, 2010 12:40:19 PM org.apache.catalina.startup.ContextConfig
 validateSecurityRoles

The above indicates that the WEB-INF/web.xml for the webapp is incomplete; read 
the servlet spec.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Free Memory Dropping At Idle

2010-03-26 Thread Randall Smith
I suspect a memory leak in an application I'm running on Tomcat 6.0.26 
and Sun Java 1.6.0_12.  After a file is posted, the application responds 
('your file is uploaded blah blah'), then processes the file in a 
thread.  After the processing is complete, the free memory as reported 
by Tomcat cycles down, each time having a lower peak and valley until it 
almost reaches 0.  Then when it's about to hit 0 M, it's all freed up. 
Please note that there is no load on Tomcat while this is happening 
except for the stats request from the Tomcat manager.


Max is 512 M

-- Free Memory After Job Completion --

256 M
254 M
...
130 M
250 M
248 M
...
120 M
240 M

Until Total Memory == Max Memory and Free gets close to 0 M.  At that 
point, nearly all the memory is freed.


12 M
10 M
...
2 M
471 M

Any idea what might cause this behavior?

Randall





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Free Memory Dropping At Idle

2010-03-26 Thread Caldarale, Charles R
 From: Randall Smith [mailto:rand...@tnr.cc]
 Subject: Free Memory Dropping At Idle
 
 After the processing is complete, the free memory as reported
 by Tomcat cycles down, each time having a lower peak and valley
 until it almost reaches 0.  Then when it's about to hit 0 M,
 it's all freed up.

What you're describing is perfectly normal behavior - that's the way garbage 
collection works.  You only have a leak if the heap space in use immediately 
after a full GC appears to be increasing over time.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



sticky session failover

2010-03-26 Thread Len Takeuchi
Hello,
 
I have apache load balancing a number of tomcat instances using mod_jk
using sticky session.  This is all working with the session id having
the jvmRoute appended.  I am storing the session using persistent
manager using jdbc.  I want to have failover for session as supported by
JvmRouteBinderValve.  Is this possible to set up in an environment where
multicast is not supported?  Do I need to set up a Cluster though I
don't need session replication since I'm using persistent manager for
session storage so all tomcat instances have access to session data?
What I want is just the JvmRouteBinderValve behavior of changing the
session id to the new jvmRoute and setting cookie when a tomcat instance
receives a session request from a different jvmRoute.
 
Regards,
Len


Tomcat 6.0.24 from eclipse causes addressing-1.5.1.mar module, which is not valid, caused null java.lang.ExceptionInInitializerError

2010-03-26 Thread SM
 When I start up tomcat 6.0.24 I get the following exception.  Any tips on 
resolving this will be helpful:[INFO] Clustering has been disabled[ERROR] The 
addressing-1.5.1.mar module, which is not valid, caused 
nulljava.lang.ExceptionInInitializerError  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:501)  at 
java.lang.Class.newInstance0(Class.java:350) at 
java.lang.Class.newInstance(Class.java:303)  at 
org.apache.axis2.deployment.util.Utils$1.run(Utils.java:97)  at 
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
  at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:93)  
  at
 
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:531)
   at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:74) 
   at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
 at 
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
 at 
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
 at 
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:63)
at 
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
   at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
 at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
 at
 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)   
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)  
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) 
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) 
 at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)   at 
org.apache.catalina.core.StandardService.start(StandardService.java:516) at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at 
org.apache.catalina.startup.Catalina.start(Catalina.java:593)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:592) at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)  at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: 
org.apache.commons.logging.LogConfigurationException: User-specified log class 
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not 
useable. at 
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
  at
 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
  at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)at 
org.apache.axis2.handlers.addressing.AddressingInHandler.clinit(AddressingInHandler.java:55)
   ... 39 more[ERROR] The mex-1.5.1.mar module, which is not valid, caused 
nulljava.lang.ExceptionInInitializerError   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:501)  at 
java.lang.Class.newInstance0(Class.java:350) at 
java.lang.Class.newInstance(Class.java:303)  at 
org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilder.java:73)   at
 

RE: Tomcat 6.0.24 from eclipse causes addressing-1.5.1.mar module, which is not valid, caused null java.lang.ExceptionInInitializerError

2010-03-26 Thread Caldarale, Charles R
 From: SM [mailto:moni_spar...@yahoo.com]
 Subject: Tomcat 6.0.24 from eclipse causes addressing-1.5.1.mar module,
 which is not valid, caused null java.lang.ExceptionInInitializerError
 
 When I start up tomcat 6.0.24 I get the following exception.

You need a new e-mail program - whatever you're using really garbled the text 
layout.

 [ERROR] The addressing-1.5.1.mar module, which is not valid,

That's an Axis problem; nothing to do with Tomcat.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Connecting to a Database

2010-03-26 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: Connecting to a Database
 
 Thanks, Leo! I've not seen instructions in the How-To (maybe I
 overlooked it) on the   localDataSource=true attrib to the Realm in
 the context.xml file

Unfortunately, it's not in the How-To, just in the configuration doc for 
Realm (which is linked to from the How-To):
http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html

The How-To is oriented towards server-wide authentication, so the examples all 
show use of a Realm in server.xml and a corresponding global resource 
declaration.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Debug on Server tomcat for a simple webservice gives http 404 error

2010-03-26 Thread SM
Hi all:  I have created a simple web service using eclipse and tomcat 6.0.24, 
however when I try to test this webservice using Debug on Server I get the 
following error:HTTP Status 404 - /Axis2WSTest/type Status 
reportmessage /Axis2WSTest/description The requested resource (/Axis2WSTest/) 
is not available.Apache Tomcat/6.0.24
How do I debug this further, any tips will be much appreciated.
Best regards,
Monisha


  

RE: Connecting to a Database

2010-03-26 Thread Propes, Barry L
Thanks, Chuck. I'll take a look again at this to see what else I might have 
overlooked! 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 26, 2010 4:56 PM
To: Tomcat Users List
Subject: RE: Connecting to a Database

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: Connecting to a Database
 
 Thanks, Leo! I've not seen instructions in the How-To (maybe I
 overlooked it) on the   localDataSource=true attrib to the Realm in
 the context.xml file

Unfortunately, it's not in the How-To, just in the configuration doc for 
Realm (which is linked to from the How-To):
http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html

The How-To is oriented towards server-wide authentication, so the examples all 
show use of a Realm in server.xml and a corresponding global resource 
declaration.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Deploying a simple webservice for testing on tomcat gives HTTP 404

2010-03-26 Thread SM
Hi all, I developed a simple web service and deployed it on Tomcat 6.0.24 and 
when I debug on server it gives me http 404.  There are no errors in the tomcat 
log.  
HTTP Status 404 - /Axis2WSTest/


type Status report
message /Axis2WSTest/
description The requested resource (/Axis2WSTest/) is not 
available.


Apache Tomcat/6.0.24
Please let me know how to debug this further.
Thanks,Monisha


  

RE: Connecting to a Database

2010-03-26 Thread Leo Donahue - PLANDEVX
You are correct.  I stumbled across that info while reading the Realm config 
in the DataSource Database Realm section but I wasn't looking for that when I 
saw it the first n times.  I was looking for info about the userRoleTable.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 26, 2010 2:56 PM
To: Tomcat Users List
Subject: RE: Connecting to a Database

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: Connecting to a Database
 
 Thanks, Leo! I've not seen instructions in the How-To (maybe I
 overlooked it) on the   localDataSource=true attrib to the Realm in
 the context.xml file

Unfortunately, it's not in the How-To, just in the configuration doc for 
Realm (which is linked to from the How-To):
http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html

The How-To is oriented towards server-wide authentication, so the examples all 
show use of a Realm in server.xml and a corresponding global resource 
declaration.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org