Re: mod_jk 1.2.30 error problem after upgrade

2010-03-19 Thread Mladen Turk

On 03/18/2010 09:27 PM, Anthony J. Biacco wrote:


Is there something in the new code that is just making things more
sensitive on the mod_jk side, which is why this never showed up in .28?



Yes it is. Although your particular uses case should be
shown in earlier versions as well. At least there should
be long client read delay.
However pre .30 versions would just go on, which could lead
that next request is treated as previous client POST data,
ending up in showing the requested data from the previous
client to the new request (pretty bad).

I'd suggest that you solve the reason why
ajp_read_fully_from_server (which calls httpd's ap_get_client_block)
takes 5 minutes to complete.


Regards
--
^TM

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



Re: SSL Client Auth through tomcat

2010-03-19 Thread Albert Tumanov
If your SSL terminates on Apache then you are obviously in the wrong
mailing list :)

You have nothing to configure in Tomcat.



On Thu, Mar 18, 2010 at 7:20 PM, rangeli nepal rangeli.ne...@gmail.com wrote:
 Good Morning Everybody,

 Currently I am trying set up a tomcat instance so that it can access web
 service by accepting server side certificate and pass the client side cert
 to server.

 I am not sure how to do it,

 I thought one way would be to set

 CATALINA_OPTS=-Djavax.net.ssl.trustStore=java key store
 -Djavax.net.ssl.trustStorePassword=password

 But no avail, when I am try to access the service I see following line it
 apache log ( Apache is working as gateway for web services, SSL terminates
 here) :

  Re-negotiation handshake failed: Not accepted by client!?,
 referer:

 I think java key store file that tomcat refers to, has ca certificate of the
 server and it has private key and certificate of the client certificate
 provision on apache.

 Personally, I do not think I need to do any thing to connectors in
 server.xml

 Any clue will be highly appreciated.

 Thank you.
 rn


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



Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location

2010-03-19 Thread Manoj Kumar

Hi,
 I installed apache-tomcat-6.0.26 and axis-1_4 on fedora11. I copied all 
jar files from webapps/lib directory of axis-1_4 to webapps/axis/WEB-INF/lib 
directory of apache tomcat.

After this I started apache tomcat and tested using the URL 
'http://localhost:8080/axis/happyaxis.jsp'. This shows following result :

Needed Components

Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location
Found JAX-RPC API ( javax.xml.rpc.Service ) at 
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/jaxrpc.jar
Found
Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/axis.jar
Found
Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/commons-discovery-0.2.jar
Found
Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/commons-logging-1.0.4.jar
Found Log4j ( org.apache.log4j.Layout ) at 
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/log4j-1.2.8.jar
Found
IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at
/var/lib/apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/wsdl4j-1.5.1.jar
Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location
Found Activation API ( javax.activation.DataHandler ) at an unknown location

I could not understand why following three lines are showing 'unknown location' 
from above and how can I solve it ?

Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location
Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location
Found Activation API ( javax.activation.DataHandler ) at an unknown location


Thanks
Manoj



  
_
Fight for the top Test spot
http://sports.in.msn.com/cricket/ 

Re: Tomcat at the next ApacheCon

2010-03-19 Thread Mark Thomas

On 18/03/2010 17:00, jean-frederic clere wrote:

Hi,

We all want to see a Tomcat track at the ApacheConNA2010, don't we?

I have created a wiki page to collect the presentation proposals.
Fell free to add the stuff you would like to present at the ApacheCon.
The tomcat PMC will review it and then propose it to the planners of
conference.

Note we have until the Sunday, March 21st to collect that information.


The wiki page is here:
http://wiki.apache.org/tomcat/TomcatTrackNA10_PMC_Sessions

Feel free to add your own ideas or to provide feedback on existing ones. 
You don't have to be willing to present a topic to suggest it. If there 
is a burning issue that you'd love to hear more about, let us know.


Mark



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



which version (5.5.28 vs. 6.0.26)

2010-03-19 Thread Daniel Plappert
Hi,

I am not sure which version to use. As a developer I want to use the new
version 6.0.26, but unfortunately it's not part of the debian packaging
management system. They only support the 5.5.28 version with the remark,
that this version is more secure and tested than 6.0. Is that true?
Because Tomcat 6.0 has a better memory usage and supports the new JSP
and Servlet spec. I want to upgrade. But, as I mentioned before, this
version is not part of the debian system (not now) and I've to install
the new version 6.0.26 outside the packaging management system and I
also have to update this tomcat version myself. Are there any reasonable
reasons not to use the new version of tomcat? Has anyone experienced a
performance difference between 5.5 and 6.0? And for production usage,
which version is better?

Greetings,
Daniel




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



Re: which version (5.5.28 vs. 6.0.26)

2010-03-19 Thread Philip Wigg
On 19 March 2010 09:12, Daniel Plappert plapp...@denkformat.de wrote:

 I am not sure which version to use. As a developer I want to use the new
 version 6.0.26, but unfortunately it's not part of the debian packaging
 management system. They only support the 5.5.28 version with the remark,
 that this version is more secure and tested than 6.0. Is that true?
 Because Tomcat 6.0 has a better memory usage and supports the new JSP
 and Servlet spec. I want to upgrade. But, as I mentioned before, this
 version is not part of the debian system (not now) and I've to install
 the new version 6.0.26 outside the packaging management system and I
 also have to update this tomcat version myself. Are there any reasonable
 reasons not to use the new version of tomcat?

Tomcat is very easy to install and upgrade outside of your
distribution's package management system and the general
recommendation on this list is that this is the way it should be
installed. Certainly doing it that way will make life easier if you
ask for help on this list and avoid you being told to install a
'proper Tomcat'.

 Has anyone experienced a
 performance difference between 5.5 and 6.0? And for production usage,
 which version is better?

This depends on your definition but most people would probably
consider version 6 to be 'better' as it contains the improvements
described at:-

http://tomcat.apache.org/whichversion.html

-- Phil.

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



Re: Disabling http connector

2010-03-19 Thread André Warnier

Cummins College wrote:

Hi,

We found this MBeanfactory method. It has a remove connector method. This
takes argument String as the Mbean-name of component to be removed.

We have tried passing 'HTTPConnector',
'CoyoteConnector','Catalina','http-8080' and 'http11connector'.

Could you tell us how to find the mbean names of the connectors?

You still have not managed to convince us of why you would need to ever 
do such a thing, as opposed to not configuring the respective Connectors 
in the first place.
As for me personally, even if I knew, I would not help you, as I would 
consider it unethical to help someone here shoot himself in the foot, 
which is what your explanations so far - or the lack of them - lead me 
to believe you are doing.





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



Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread Andrey Ilyin



2smart4u wrote:
 
 More or less, it drops the context from the Cookie-path, meaning the
 cookie is valid for all contexts.
 

Hi Gregor,

Does this mean that session/servletContext is shared between contexts? E.g.
if I have some attribute in session/application contexts in webapp1 would it
be accesible in webapp2?

So my understanding how it works:

1) There is no cookie in browser - it will loadbalance to any engine
2) There is cookie in browser - it will loadbalance to engine which already
has session - since cookie has no context path

Thank you,
Andrey.

-- 
View this message in context: 
http://old.nabble.com/Always-load-balance-to-same-box-with-different-tomcat-contexts-tp27946266p27950926.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: Always load balance to same box with different tomcat contexts

2010-03-19 Thread 2smart4u
On Fri, Mar 19, 2010 at 11:05 AM, Andrey Ilyin andrey.il...@db.com wrote:


 Does this mean that session/servletContext is shared between contexts? E.g.
 if I have some attribute in session/application contexts in webapp1 would it
 be accesible in webapp2?


when the context is dropped from a Cookie-path, the cookie is valid
for any context on that host

 So my understanding how it works:

 1) There is no cookie in browser - it will loadbalance to any engine

you'll loose the session without a cookie, unless you're using
url-rewriting to store the session-information.
best practise is to use a cookie, though

 2) There is cookie in browser - it will loadbalance to engine which already
 has session - since cookie has no context path

nope. actually the cookie can now be shared between various contexts
on the same engine (machine).
when having multiple instances of tomcat running where you want to
share the session-information, IMHO you'll need to setup a
tomcat-cluster.

hth

gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

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



Re: which version (5.5.28 vs. 6.0.26)

2010-03-19 Thread Mark Thomas

On 19/03/2010 10:12, Daniel Plappert wrote:

Hi,

I am not sure which version to use. As a developer I want to use the new
version 6.0.26, but unfortunately it's not part of the debian packaging
management system. They only support the 5.5.28 version with the remark,
that this version is more secure and tested than 6.0. Is that true?


Frankly, no. That remark is complete rubbish.

The typical order for vulnerability fixes, announcements and releases is:
- fix trunk, 6.0.x, 5.5.x
- release 6.0.x
- announce
- release 5.5.x

Therefore, you are better off on 6.0.x from a security point of view.

In terms of testing and reliability 6.0.x started as 5.5.x so the code 
bases are very similar. In addition, every bug fixed in 5.5.x is also 
fixed in 6.0.x but it is not always the case that a bug fixed in 6.0.x 
is also fixed in 5.5.x



Because Tomcat 6.0 has a better memory usage and supports the new JSP
and Servlet spec. I want to upgrade. But, as I mentioned before, this
version is not part of the debian system (not now) and I've to install
the new version 6.0.26 outside the packaging management system and I
also have to update this tomcat version myself. Are there any reasonable
reasons not to use the new version of tomcat?

None.


Has anyone experienced a
performance difference between 5.5 and 6.0?
I wouldn't expect to see one. However, you'll normally see a performance 
improvement when you upgrade your JVM.



And for production usage,
which version is better?

6.0.x every time.

Mark



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



Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread Mark Thomas

On 19/03/2010 11:05, Andrey Ilyin wrote:

Does this mean that session/servletContext is shared between contexts?

No.


E.g.
if I have some attribute in session/application contexts in webapp1 would it
be accesible in webapp2?
No. Each webapp will have its own session object although they will all 
have the same session ID.



So my understanding how it works:

1) There is no cookie in browser - it will loadbalance to any engine

Correct.


2) There is cookie in browser - it will loadbalance to engine which already
has session - since cookie has no context path

Correct.

Mark



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



Tomcat stops suddenly without any errors

2010-03-19 Thread siranjeevi krishnan
Hi All

I am using Tomcat 6.0.18. It's running fine for past two months.
Suddenly it stops and i couldn't find any errors.

The messages i got in catalina .log are

Mar 16, 2010 5:48:00 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 16, 2010 5:48:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 16, 2010 5:48:02 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Mar 16, 2010 5:48:03 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Mar 16, 2010 5:48:04 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

This is the second time i am facing this issue. There is no out of
memory errors.

Nobody can access my box and there is no way for explicit shutdown.

In what scenarios , tomcat will stop gracefully without any errors.

Thanks for your help

Thanks
Siranjeevi

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



Re: Tomcat stops suddenly without any errors

2010-03-19 Thread André Warnier

siranjeevi krishnan wrote:

Hi All

I am using Tomcat 6.0.18. It's running fine for past two months.
Suddenly it stops and i couldn't find any errors.


It would probably help if you mentioned on which platform this happens, 
and if it is a Windows system, if Tomcat is running as a Service or 
otherwise.




The messages i got in catalina .log are

Mar 16, 2010 5:48:00 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 16, 2010 5:48:00 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 16, 2010 5:48:02 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Mar 16, 2010 5:48:03 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Mar 16, 2010 5:48:04 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext



That looks like a nice orderly shutdown.


This is the second time i am facing this issue. There is no out of
memory errors.

Nobody can access my box and there is no way for explicit shutdown.

In what scenarios , tomcat will stop gracefully without any errors.


As far as I know, only when it is told, gracefully, to stop.
With an OOM or any other error, you would either not have any messages, 
or a lot of ugly ones.


But if it was running under Windows as a Service for instance, a net 
stop Tomcat6 would be one way.

In that same case, a network sysadmin could also do this remotely.
Any local process connecting to port 8005 and writing the string 
SHUTDOWN to it would also do that.
A web application running within Tomcat and doing a system.exit() 
/may/ also do that, though I don't know if then you would have a nice 
orderly shutdown as per above.



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



RE: [OT] Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location

2010-03-19 Thread Manoj Kumar

Can you mention the URL for this please ? 

 Date: Fri, 19 Mar 2010 12:26:39 +0100
 From: a...@ice-sa.com
 To: users@tomcat.apache.org
 Subject: Re: [OT] Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown 
 location
 
 Manoj Kumar wrote:
  
  following is the output of 'http://localhost:8080/axis/happyaxis.jsp' 
  
  
  
  Axis Happiness PageExamining webapp configuration
  
 Why does this all remind me of the elevators in the Hitchiker's Guide 
 series ?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
What does Budget 2010 mean for you? Catch all the latest news, updates and 
analysis on MSN Budget Special
http://news.in.msn.com/moneyspecial/budget2010

Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread 2smart4u
On Fri, Mar 19, 2010 at 11:54 AM, Mark Thomas ma...@apache.org wrote:

 2) There is cookie in browser - it will loadbalance to engine which
 already
 has session - since cookie has no context path

 Correct.


Mark, I think you might be missing something here.

If I got the OP correct, it's not only about loadbalancing but also
about maintaing the session between different Tomcat instances.

Given that, when you want to loadbalance between two or more Tomcat
instances where those instances don't know from each other, each
instance will create it's very own session-cookie (at least this is
how it shows up in our setup).

So to my understanding the only solution to maintain
session-information between multiple loadbalanced Tomcat instances is
to run them within a cluster.

Please correct me if I'm wrong.

Cheers

Gregor


 Mark



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





-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

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



Re: Tomcat stops suddenly without any errors

2010-03-19 Thread siranjeevi krishnan
Hi Warnier

Thanks for your help.

I am running tomcat in Windows platform.
I am starting tomcat under a thread inside another JVM by calling
Bootstrap.main(start);

Thanks
Siranjeevi

On Fri, Mar 19, 2010 at 4:53 PM, André Warnier a...@ice-sa.com wrote:
 siranjeevi krishnan wrote:

 Hi All

 I am using Tomcat 6.0.18. It's running fine for past two months.
 Suddenly it stops and i couldn't find any errors.

 It would probably help if you mentioned on which platform this happens, and
 if it is a Windows system, if Tomcat is running as a Service or otherwise.


 The messages i got in catalina .log are

 Mar 16, 2010 5:48:00 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Mar 16, 2010 5:48:00 PM org.apache.catalina.core.ApplicationContext log
 INFO: Closing Spring root WebApplicationContext
 Mar 16, 2010 5:48:02 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 1 instance(s) to be deallocated
 Mar 16, 2010 5:48:03 PM org.apache.catalina.core.StandardWrapper unload
 INFO: Waiting for 1 instance(s) to be deallocated
 Mar 16, 2010 5:48:04 PM org.apache.catalina.core.ApplicationContext log
 INFO: Closing Spring root WebApplicationContext


 That looks like a nice orderly shutdown.

 This is the second time i am facing this issue. There is no out of
 memory errors.

 Nobody can access my box and there is no way for explicit shutdown.

 In what scenarios , tomcat will stop gracefully without any errors.

 As far as I know, only when it is told, gracefully, to stop.
 With an OOM or any other error, you would either not have any messages, or a
 lot of ugly ones.

 But if it was running under Windows as a Service for instance, a net stop
 Tomcat6 would be one way.
 In that same case, a network sysadmin could also do this remotely.
 Any local process connecting to port 8005 and writing the string SHUTDOWN
 to it would also do that.
 A web application running within Tomcat and doing a system.exit() /may/
 also do that, though I don't know if then you would have a nice orderly
 shutdown as per above.


 -
 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: Always load balance to same box with different tomcat contexts

2010-03-19 Thread Mark Thomas

On 19/03/2010 12:38, 2smart4u wrote:

I think you might be missing something here.

If I got the OP correct, it's not only about loadbalancing but also
about maintaing the session between different Tomcat instances.
The question was how to make session stickiness apply to all 
applications on a host. Clustering was mentioned but isn't relevant to 
this question (and the OP's original post seemed to suggest they were 
having issues with session replication).



When you want to loadbalance between two or more Tomcat
instances where those instances don't know from each other, each
instance will create it's very own session-cookie (at least this is
how it shows up in our setup).

So to my understanding the only solution to maintain
session-information between multiple loadbalanced Tomcat instances is
to run them within a cluster.

Please correct me if I'm wrong.

Correct but not relevant to the OP's question.


Gregor

As an aside, have you considered using a less arrogant e-mail address?

Mark



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



Re: [OT] Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location

2010-03-19 Thread André Warnier

Manoj Kumar wrote:
Can you mention the URL for this please ? 


Sure. Here are a couple : 
http://www.bbc.co.uk/cult/hitchhikers/guide/siriuscybernetics.shtml

http://en.wikipedia.org/wiki/Technology_in_The_Hitchhiker%27s_Guide_to_the_Galaxy#Happy_Vertical_People_Transporter





Date: Fri, 19 Mar 2010 12:26:39 +0100
From: a...@ice-sa.com
To: users@tomcat.apache.org
Subject: Re: [OT] Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown 
location

Manoj Kumar wrote:

following is the output of 'http://localhost:8080/axis/happyaxis.jsp' 



Axis Happiness PageExamining webapp configuration

Why does this all remind me of the elevators in the Hitchiker's Guide 
series ?


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

 		 	   		  
_

What does Budget 2010 mean for you? Catch all the latest news, updates and 
analysis on MSN Budget Special
http://news.in.msn.com/moneyspecial/budget2010



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



Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread 2smart4u
Mark,

had a bad day?

On Fri, Mar 19, 2010 at 12:46 PM, Mark Thomas ma...@apache.org wrote:

 The question was how to make session stickiness apply to all applications on
 a host. Clustering was mentioned but isn't relevant to this question (and
 the OP's original post seemed to suggest they were having issues with
 session replication).

Hm, either my English is too bad to understand the OP's question, or
you might have missed something. The OP wrote:

 Also it's setup as cluster with Clustered SSO Valve:

So to my understanding it *is* about clustering and different hosts -
or am I wrong here?

 As an aside, have you considered using a less arrogant e-mail address?

First off, I don't see the email-adress as arrogent (since it's
rc46fi). However, I'm owning a domain 2smart4u, and since I stopped
using my real name in public emails (thanks to seach-engines and
spam), I'm using it as a name, but I'm using it with a wink in my
eyes.

Sorry if this might have insulted you or others.

Cheers

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

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



Re: SSL Client Auth through tomcat

2010-03-19 Thread rangeli nepal
Thank you for your response. I would have definitely not written to this
group, if my question would just related to SSL terminating on Apache. Here
is my scenario:
___ 
|   |   |
  |
|A ||B   |
|___|   ||


A is a tomcat server and B is an Apache server bastion of all the web
service inside. Apache needs client side Authentication.
My question is what I need to do on A( tomcat) so that it can accepts
certificate from B and B will accept certificate from A (tomcat).
Thank you.
Santos


On Fri, Mar 19, 2010 at 2:50 AM, Albert Tumanov altum...@gmail.com wrote:

 If your SSL terminates on Apache then you are obviously in the wrong
 mailing list :)

 You have nothing to configure in Tomcat.



 On Thu, Mar 18, 2010 at 7:20 PM, rangeli nepal rangeli.ne...@gmail.com
 wrote:
  Good Morning Everybody,
 
  Currently I am trying set up a tomcat instance so that it can access web
  service by accepting server side certificate and pass the client side
 cert
  to server.
 
  I am not sure how to do it,
 
  I thought one way would be to set
 
  CATALINA_OPTS=-Djavax.net.ssl.trustStore=java key store
  -Djavax.net.ssl.trustStorePassword=password
 
  But no avail, when I am try to access the service I see following line it
  apache log ( Apache is working as gateway for web services, SSL
 terminates
  here) :
 
   Re-negotiation handshake failed: Not accepted by client!?,
  referer:
 
  I think java key store file that tomcat refers to, has ca certificate of
 the
  server and it has private key and certificate of the client certificate
  provision on apache.
 
  Personally, I do not think I need to do any thing to connectors in
  server.xml
 
  Any clue will be highly appreciated.
 
  Thank you.
  rn
 

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




Re: SSL Client Auth through tomcat

2010-03-19 Thread André Warnier

rangeli nepal wrote:

Thank you for your response. I would have definitely not written to this
group, if my question would just related to SSL terminating on Apache. Here
is my scenario:
___ 
|   |   |
  |
|A ||B   |
|___|   ||


Unfortunately, as you have probably noticed, that drawing does not come 
out very well in this media.  But thanks for trying.



A is a tomcat server and B is an Apache server bastion of all the web
service inside. Apache needs client side Authentication.
My question is what I need to do on A( tomcat) so that it can accepts
certificate from B and B will accept certificate from A (tomcat).


Which makes me think that this has nothing to do with Tomcat per se.
It looks like what you want is that some /application/ running inside 
Tomcat would be able to connect to Apache via SSL, and exchange 
certificates with it.
That would be a pure Java programming matter, and the fact that the 
application itself happens to be running inside Tomcat is purely 
circumstancial and changes nothing to the matter.

Or am I misunderstanding your schema ?


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



need help for apache-tomcat-6.0.26

2010-03-19 Thread Manoj Kumar

I installed apache-tomcat version 6.0.26. 

need help to resolve following, it displayed after hitting the url 
'http://localhost:8080/axis/happyaxis.jsp'

Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown 
location

Found Activation API ( javax.activation.DataHandler ) at an unknown location


saaj.jar, xercesImpl.jar and xml-apis.jar are available in 
'apache-tomcat-6.0.26/webapps/axis/WEB-INF/lib/'
  
_
Fight for the top Test spot
http://sports.in.msn.com/cricket/ 

Mike Wilde is out of the office.

2010-03-19 Thread Michael Wilde

I will be out of the office starting  19/03/2010 and will not return until
24/03/2010.

If you have any urgent production Healthcare issues please contact Iain B
Miller.

For development Healthcare issues contact Graeme J Wilson or Neil Gracie.


RE: need help for apache-tomcat-6.0.26

2010-03-19 Thread Caldarale, Charles R
 From: Manoj Kumar [mailto:utiba_ma...@hotmail.com]
 Subject: need help for apache-tomcat-6.0.26
 
 
 need help to resolve following
 
 Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location
 Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an
 unknown location
 Found Activation API ( javax.activation.DataHandler ) at an unknown
 location

There's nothing to resolve.  These are not errors of any sort; the classes 
listed are part of the standard JRE.

 - 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: SSL Client Auth through tomcat

2010-03-19 Thread rangeli nepal
Thank you. That is something I am not clear about.

Suppose there is link( https://B)   provided on an web application
hosted at A (tomcat server) that access service on B which through a
response.redirect(https://B...)
Once user clicks that link  a encrypted channel is established between A and
B. If B asks client certificate A will furnish it. I am not sure if this
responsibility falls to  web application or container ?

If it is container I do not see what configuration I need to do.



Thank you.
rn

On Fri, Mar 19, 2010 at 9:33 AM, André Warnier a...@ice-sa.com wrote:

 rangeli nepal wrote:

 Thank you for your response. I would have definitely not written to this
 group, if my question would just related to SSL terminating on Apache.
 Here
 is my scenario:
 ___ 
 |   |   |
  |
 |A ||B   |
 |___|   ||


  Unfortunately, as you have probably noticed, that drawing does not come
 out very well in this media.  But thanks for trying.


  A is a tomcat server and B is an Apache server bastion of all the web
 service inside. Apache needs client side Authentication.
 My question is what I need to do on A( tomcat) so that it can accepts
 certificate from B and B will accept certificate from A (tomcat).


 Which makes me think that this has nothing to do with Tomcat per se.
 It looks like what you want is that some /application/ running inside
 Tomcat would be able to connect to Apache via SSL, and exchange certificates
 with it.
 That would be a pure Java programming matter, and the fact that the
 application itself happens to be running inside Tomcat is purely
 circumstancial and changes nothing to the matter.
 Or am I misunderstanding your schema ?



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




Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread Mark Thomas
On 19/03/2010 12:16, 2smart4u wrote:
 On Fri, Mar 19, 2010 at 12:46 PM, Mark Thomas ma...@apache.org wrote:
 
 The question was how to make session stickiness apply to all applications on
 a host. Clustering was mentioned but isn't relevant to this question (and
 the OP's original post seemed to suggest they were having issues with
 session replication).
 
 Hm, either my English is too bad to understand the OP's question, or
 you might have missed something. The OP wrote:
 
 Also it's setup as cluster with Clustered SSO Valve:
 
 So to my understanding it *is* about clustering and different hosts -
 or am I wrong here?

As per the thread title the OP wanted to:
Always load balance to same box with different tomcat contexts

Clustering appears to be giving them some difficulties as they said:

Using session serialization is not an option because sessions used in
webapp1/webapp2 are very heavy and it results in awfull performance.

That suggests to me that there is something else not quite right with
either their app or their setup but given that fixing clustering wasn't
what they were asking about, I left it alone and dealt with the OP's
session stickiness question which, now they have that working, means
they can do load-balancing without session replication.

The OP's follow up question was about sharing sessions between contexts
on the same host, not about the consequences of session replciation. The
OP was deliberately trying to avoid using session replication due to the
issues they noted in their first post. I suspect that this question was
triggered by the fact that with a cookie path of /, the session looks
like it might be shared between contexts on the same host since the same
session ID is used in all contexts. However, that is not the case and
the session objects for each context remain completely independent.

 As an aside, have you considered using a less arrogant e-mail address?
 
 First off, I don't see the email-adress as arrogent (since it's
 rc46fi). However, I'm owning a domain 2smart4u, and since I stopped
 using my real name in public emails (thanks to seach-engines and
 spam), I'm using it as a name, but I'm using it with a wink in my
 eyes.

That's the thing with e-mail, no-one can tell what tone of voice you are
using or see the smile on your face as you type it. Particularly on
mailing lists where people don't know each other, recipients have to
reply soley on the text they see in front of them. What seems humerous
to one person can appear completely differently to someone else. To me,
2smart4u comes across as arrogant rather than funny.

Mark



-
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-19 Thread Propes, Barry L
Well, that's interesting... 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, March 18, 2010 6:13 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config


And if you remove the factory attribute?

when I remove the I get the following error:
org.apache.jasper.JasperException: An exception occurred processing JSP page 
/chgctrl_details.jsp at line 80

77: DataSource ds = (DataSource) envCtx.lookup(jdbc/myoracle);
78:   
79: // Allocate and use a connection from the pool
80:  connection = ds.getConnection();
81: 



Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause 

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)

org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:949)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause 

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 
'oracle.jdbc.driver.OracleDriver'

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:151)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause 

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:151)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)


Double-check that tomcat-dbcp.jar is in Tomcat's lib directory and nowhere 
else, and that the Tomcat userid has at least read access to that jar.  
Might want to do jar -tf tomcat-dbcp.jar to verify that the class 
really is in there (hard to believe it wouldn't be).

 - Chuck

And in doing this, I get this error!!

C:\Program Files\Apache Software Foundation\Tomcat 6.0jar -tf tomcat.dbcp.jar

java.io.FileNotFoundException: tomcat.dbcp.jar (The system cannot find the file
specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:114)
at java.util.zip.ZipFile.init(ZipFile.java:75)
at sun.tools.jar.Main.list(Main.java:979)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1149)


And it is in the lib folder!



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: DB connection error -Tomcat 6 config

2010-03-19 Thread André Warnier

Propes, Barry L wrote:
...

I may be missing something, but



And in doing this, I get this error!!

C:\Program Files\Apache Software Foundation\Tomcat 6.0jar -tf tomcat.dbcp.jar

java.io.FileNotFoundException: tomcat.dbcp.jar (The system cannot find the file
specified)

...


And it is in the lib folder!

.. precisely. It looks like you are in the folder /above/ lib when you 
issue that command.

Should you not do
cd lib
jar -tf tomcat.dbcp.jar

?

And by the way, a suggestion : re-install your Tomcat in a directory 
without spaces in the path, or you'll be getting yourself in more 
trouble sooner or later.



-
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-19 Thread Mark Thomas
On 19/03/2010 16:31, André Warnier wrote:
 Propes, Barry L wrote:
 ...
 
 I may be missing something, but
 

 And in doing this, I get this error!!

 C:\Program Files\Apache Software Foundation\Tomcat 6.0jar -tf
 tomcat.dbcp.jar

 java.io.FileNotFoundException: tomcat.dbcp.jar (The system cannot find
 the file
 specified)
 ...

 And it is in the lib folder!

 .. precisely. It looks like you are in the folder /above/ lib when you
 issue that command.
 Should you not do
 cd lib
 jar -tf tomcat.dbcp.jar
 
 ?
 
 And by the way, a suggestion : re-install your Tomcat in a directory
 without spaces in the path, or you'll be getting yourself in more
 trouble sooner or later.

That, and look in the right file. It is tomcat-dbcp.jar, not
tomcat.dbcp.jar

Mark



-
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-19 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config

(Looks like our corporate e-mail filter is removing some of your messages - I 
had to retrieve this from the archive.)

So now we're down to this problem:

 java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

(This really is an improvement.)

Now it looks like the Oracle JDBC jar is in the wrong location - it should be 
in Tomcat's lib directory, nowhere else.

 - 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 stops suddenly without any errors

2010-03-19 Thread Caldarale, Charles R
 From: siranjeevi krishnan [mailto:siranjee...@gmail.com]
 Subject: Re: Tomcat stops suddenly without any errors
 
 I am starting tomcat under a thread inside another JVM by calling
 Bootstrap.main(start);

You're not running Tomcat in another JVM - it's running in the same one your 
thread is running in.  If you don't keep that thread alive, the JVM will 
shutdown, taking Tomcat with 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: DB connection error -Tomcat 6 config

2010-03-19 Thread Propes, Barry L
You're correct in that I initially did the command from the folder 
abovealso tried it from the lib folder after changing directories and got 
the same FileNotFound exception error message.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Friday, March 19, 2010 11:32 AM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

Propes, Barry L wrote:
...

I may be missing something, but

 
 And in doing this, I get this error!!
 
 C:\Program Files\Apache Software Foundation\Tomcat 6.0jar -tf 
 tomcat.dbcp.jar
 
 java.io.FileNotFoundException: tomcat.dbcp.jar (The system cannot find 
 the file
 specified)
...
 
 And it is in the lib folder!
 
.. precisely. It looks like you are in the folder /above/ lib when you issue 
that command.
Should you not do
cd lib
jar -tf tomcat.dbcp.jar

?

And by the way, a suggestion : re-install your Tomcat in a directory without 
spaces in the path, or you'll be getting yourself in more trouble sooner or 
later.


-
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-19 Thread Propes, Barry L
Thanks.
Yeah, I'd let it default from the installerbig mistake there I'm sure.

I'll kill it off and reinstall elsewhere...

Thanks, guys! 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Friday, March 19, 2010 11:41 AM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

On 19/03/2010 16:31, André Warnier wrote:
 Propes, Barry L wrote:
 ...
 
 I may be missing something, but
 

 And in doing this, I get this error!!

 C:\Program Files\Apache Software Foundation\Tomcat 6.0jar -tf 
 tomcat.dbcp.jar

 java.io.FileNotFoundException: tomcat.dbcp.jar (The system cannot 
 find the file
 specified)
 ...

 And it is in the lib folder!

 .. precisely. It looks like you are in the folder /above/ lib when you 
 issue that command.
 Should you not do
 cd lib
 jar -tf tomcat.dbcp.jar
 
 ?
 
 And by the way, a suggestion : re-install your Tomcat in a directory 
 without spaces in the path, or you'll be getting yourself in more 
 trouble sooner or later.

That, and look in the right file. It is tomcat-dbcp.jar, not tomcat.dbcp.jar

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-19 Thread Propes, Barry L
 Much better, Mark...my fault there.
When I run that command I do get the following. 
So I assume all is ok, there, though it will be better to reinstall to a folder 
without the spaces and lengthy names.


C:\Program Files\Apache Software Foundation\Tomcat 6.0\libjar -tf tomcat-dbcp.j
ar
META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/apache/tomcat/
org/apache/tomcat/dbcp/
org/apache/tomcat/dbcp/collections/
org/apache/tomcat/dbcp/collections/CursorableLinkedList$Cursor.class
org/apache/tomcat/dbcp/collections/CursorableLinkedList$ListIter.class
org/apache/tomcat/dbcp/collections/CursorableLinkedList$Listable.class
org/apache/tomcat/dbcp/collections/CursorableLinkedList.class
org/apache/tomcat/dbcp/collections/CursorableSubList.class
org/apache/tomcat/dbcp/collections/KeyValue.class
org/apache/tomcat/dbcp/collections/LRUMap.class
org/apache/tomcat/dbcp/collections/SequencedHashMap$1.class
org/apache/tomcat/dbcp/collections/SequencedHashMap$2.class
org/apache/tomcat/dbcp/collections/SequencedHashMap$3.class
org/apache/tomcat/dbcp/collections/SequencedHashMap$Entry.class
org/apache/tomcat/dbcp/collections/SequencedHashMap$OrderedIterator.class
org/apache/tomcat/dbcp/collections/SequencedHashMap.class
org/apache/tomcat/dbcp/dbcp/
org/apache/tomcat/dbcp/dbcp/AbandonedConfig.class
org/apache/tomcat/dbcp/dbcp/AbandonedObjectPool.class
org/apache/tomcat/dbcp/dbcp/AbandonedTrace.class
org/apache/tomcat/dbcp/dbcp/BasicDataSource.class
org/apache/tomcat/dbcp/dbcp/BasicDataSourceFactory.class
org/apache/tomcat/dbcp/dbcp/ConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/DataSourceConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/DbcpException.class
org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement.class
org/apache/tomcat/dbcp/dbcp/DelegatingConnection.class
org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement.class
org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.class
org/apache/tomcat/dbcp/dbcp/DelegatingStatement.class
org/apache/tomcat/dbcp/dbcp/DriverConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/DriverManagerConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/PoolableConnection.class
org/apache/tomcat/dbcp/dbcp/PoolableConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.class
org/apache/tomcat/dbcp/dbcp/PoolingConnection$PStmtKey.class
org/apache/tomcat/dbcp/dbcp/PoolingConnection.class
org/apache/tomcat/dbcp/dbcp/PoolingDataSource$PoolGuardConnectionWrapper.class
org/apache/tomcat/dbcp/dbcp/PoolingDataSource.class
org/apache/tomcat/dbcp/dbcp/PoolingDriver$PoolGuardConnectionWrapper.class
org/apache/tomcat/dbcp/dbcp/PoolingDriver.class
org/apache/tomcat/dbcp/dbcp/SQLNestedException.class
org/apache/tomcat/dbcp/dbcp/cpdsadapter/
org/apache/tomcat/dbcp/dbcp/cpdsadapter/ConnectionImpl.class
org/apache/tomcat/dbcp/dbcp/cpdsadapter/DriverAdapterCPDS.class
org/apache/tomcat/dbcp/dbcp/cpdsadapter/PoolablePreparedStatementStub.class
org/apache/tomcat/dbcp/dbcp/cpdsadapter/PooledConnectionImpl$PStmtKey.class
org/apache/tomcat/dbcp/dbcp/cpdsadapter/PooledConnectionImpl.class
org/apache/tomcat/dbcp/dbcp/datasources/
org/apache/tomcat/dbcp/dbcp/datasources/CPDSConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/datasources/InstanceKeyDataSource.class
org/apache/tomcat/dbcp/dbcp/datasources/InstanceKeyObjectFactory.class
org/apache/tomcat/dbcp/dbcp/datasources/KeyedCPDSConnectionFactory.class
org/apache/tomcat/dbcp/dbcp/datasources/LRUMap.class
org/apache/tomcat/dbcp/dbcp/datasources/PerUserPoolDataSource.class
org/apache/tomcat/dbcp/dbcp/datasources/PerUserPoolDataSourceFactory.class
org/apache/tomcat/dbcp/dbcp/datasources/PoolKey.class
org/apache/tomcat/dbcp/dbcp/datasources/PooledConnectionAndInfo.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$1.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$2.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$3.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$Entry.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap$OrderedIterator.class
org/apache/tomcat/dbcp/dbcp/datasources/SequencedHashMap.class
org/apache/tomcat/dbcp/dbcp/datasources/SharedPoolDataSource.class
org/apache/tomcat/dbcp/dbcp/datasources/SharedPoolDataSourceFactory.class
org/apache/tomcat/dbcp/dbcp/datasources/UserPassKey.class
org/apache/tomcat/dbcp/jocl/
org/apache/tomcat/dbcp/jocl/ConstructorUtil.class
org/apache/tomcat/dbcp/jocl/JOCLContentHandler$ConstructorDetails.class
org/apache/tomcat/dbcp/jocl/JOCLContentHandler.class
org/apache/tomcat/dbcp/pool/
org/apache/tomcat/dbcp/pool/BaseKeyedObjectPool.class
org/apache/tomcat/dbcp/pool/BaseKeyedPoolableObjectFactory.class
org/apache/tomcat/dbcp/pool/BaseObjectPool.class
org/apache/tomcat/dbcp/pool/BasePoolableObjectFactory.class
org/apache/tomcat/dbcp/pool/KeyedObjectPool.class
org/apache/tomcat/dbcp/pool/KeyedObjectPoolFactory.class
org/apache/tomcat/dbcp/pool/KeyedPoolableObjectFactory.class
org/apache/tomcat/dbcp/pool/ObjectPool.class

Re: Always load balance to same box with different tomcat contexts

2010-03-19 Thread 2smart4u
Guys,

On Fri, Mar 19, 2010 at 5:12 PM, Mark Thomas ma...@apache.org wrote:
 On 19/03/2010 12:16, 2smart4u wrote:

 As per the thread title the OP wanted to:
 Always load balance to same box with different tomcat contexts


I understood it that way that he always wanted to loadbalance the same
sessions to the same box: Maybe I misunderstood that, but I don't see
any sense in loadbalancing every request independent of any session-
data to the same box: Why then use a loadbalancer anyways? But I guess
I'm missing something here

I guess this is a communication-(language?)-problem: A lot of ppl here
are not native speakers, so things got  will get mixed up.

Anyways, I guess the OP now has a whole bunch of information where he
can pick the most suitiable from


 That's the thing with e-mail, no-one can tell what tone of voice you are
 using or see the smile on your face as you type it. Particularly on
 mailing lists where people don't know each other, recipients have to
 reply soley on the text they see in front of them. What seems humerous
 to one person can appear completely differently to someone else. To me,
 2smart4u comes across as arrogant rather than funny.

Well, I really do hope that I don't appear  - apart from 2smart4u,
what's more or less a joke - arrogant, especially not within my posts.
If so, let me know since that's really, really not my intention.

And maybe you remember Amsterdam 2009, where we had a few beer and, if
I get it right, some mongolean food together ;)

I just didn't like my real name to show up in the lists any more since
I got mails from too many ppl asking nonsense (esp. headhunters
looking for cheap Tomcat-Admins).

Ok, I'll call it a weekend now and I'll be off for a
premier-league-football-match here in Cologne: I'm afraid we'll loose
that one anyways, but I rather watch my favourite team loose a match
than bumping around in the office ;)

Cheers!

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-
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-19 Thread 2smart4u
just a quick thought:

have you tried installing Tomcat into a directory where it's name is
*not* containing any spaces?

cheers

gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-
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-19 Thread Caldarale, Charles R
 From: 2smart4u [mailto:rc4...@googlemail.com]
 Subject: Re: DB connection error -Tomcat 6 config
 
 just a quick thought:
 
 have you tried installing Tomcat into a directory where it's name is
 *not* containing any spaces?

I would have thought a smart person would be keeping up - André suggested that 
a couple of hours ago, and the OP already noted it would be a good idea.

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



jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob S.
Hi everyone,

After using the jsvc init script provided with Tomcat 6, Tomcat no longer
writes any log files to /logs.  The only log file I'm getting is
catalina.out, which is coming from JSVC capturing System.out and System.err.

My Google-fu must be on vacation because this seems like it would be a
common question :)

Thanks in advance!

Rob


Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

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

Rob,

On 3/19/2010 1:25 PM, Rob S. wrote:
 After using the jsvc init script provided with Tomcat 6, Tomcat no longer
 writes any log files to /logs.  The only log file I'm getting is
 catalina.out, which is coming from JSVC capturing System.out and System.err.

Are you talking about bin/Tomcat.sh that comes bundled with Tomcat 6
under bin/jsvc.tar.gz? I'm looking at 6.0.20's version of that file, and
it's got some disturbing stuff in it, like this:

JAVA_HOME=/usr/java/jdk1.3.1

and this:

CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/dist/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

(note the tools.jar)

The script Tomcat5.sh has similar craziness in it, but I suppose those
scripts /do/ say:

# Adapt the following lines to your configuration

Given that the script basically has to be configured, can you please
post any customizations that you have made to the script?

I haven't looked at the source to jsvc, but I see that the -errfile
parameter to jsvc is set to '1' which, in many shells, means standard
output. You can see from the (rather simple) script that the -outfile
and -errfile options are set to reasonable values
($CATALINA_HOME/logs/catalina.out).

Actually, if you're using multiple Tomcat instances and setting
CATALINA_BASE, then the script is wrong: it should say:

-outfile $CATALINA_BASE/logs/catalina.out \
-errfile '1' \

Better yet:

-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \

Oh, those pesky spaces in path names! (Cue Andre's rant)

 My Google-fu must be on vacation because this seems like it would be a
 common question :)

:)

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

iEYEARECAAYFAkujtbIACgkQ9CaO5/Lv0PCcVgCfQxE6QpBJu80x+RLO5RBLZy1V
1NEAniXVtMqyiUsDioaDT0BL9v/yh4Xc
=4n6+
-END PGP SIGNATURE-

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



Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob S.
Yep, the update really just changed the name of Bootstrap :)

In the process of debugging this now and I will definitely post the results
here / submit a patch, hopefully later today.

Rob

On Fri, Mar 19, 2010 at 10:34 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rob,

 On 3/19/2010 1:25 PM, Rob S. wrote:
  After using the jsvc init script provided with Tomcat 6, Tomcat no longer
  writes any log files to /logs.  The only log file I'm getting is
  catalina.out, which is coming from JSVC capturing System.out and
 System.err.

 Are you talking about bin/Tomcat.sh that comes bundled with Tomcat 6
 under bin/jsvc.tar.gz? I'm looking at 6.0.20's version of that file, and
 it's got some disturbing stuff in it, like this:

 JAVA_HOME=/usr/java/jdk1.3.1

 and this:

 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $DAEMON_HOME/dist/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar

 (note the tools.jar)

 The script Tomcat5.sh has similar craziness in it, but I suppose those
 scripts /do/ say:

 # Adapt the following lines to your configuration

 Given that the script basically has to be configured, can you please
 post any customizations that you have made to the script?

 I haven't looked at the source to jsvc, but I see that the -errfile
 parameter to jsvc is set to '1' which, in many shells, means standard
 output. You can see from the (rather simple) script that the -outfile
 and -errfile options are set to reasonable values
 ($CATALINA_HOME/logs/catalina.out).

 Actually, if you're using multiple Tomcat instances and setting
 CATALINA_BASE, then the script is wrong: it should say:

-outfile $CATALINA_BASE/logs/catalina.out \
-errfile '1' \

 Better yet:

-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \

 Oh, those pesky spaces in path names! (Cue Andre's rant)

  My Google-fu must be on vacation because this seems like it would be a
  common question :)

 :)

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

 iEYEARECAAYFAkujtbIACgkQ9CaO5/Lv0PCcVgCfQxE6QpBJu80x+RLO5RBLZy1V
 1NEAniXVtMqyiUsDioaDT0BL9v/yh4Xc
 =4n6+
 -END PGP SIGNATURE-

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




APR Question

2010-03-19 Thread blargy

I was able to build and install APR (from the Tomcat bin dir) into
/usr/local/apr/lib and I added the following JVM argument when starting
Tomcat: -Djava.library.path=/usr/local/apr/lib/

However I am still seeing this warning message even though the apr lib
directory exists: 

[java] INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/local/apr/lib

[root]# ls -al /usr/local/apr/lib
total 4288
drwxr-xr-x 3 root root4096 Mar 19 10:36 .
drwxr-xr-x 6 root root4096 Mar 18 22:48 ..
-rw-r--r-- 1 root root8130 Mar 18 22:55 apr.exp
-rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
-rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so - libapr-1.so.0.3.9
lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so.0 -
libapr-1.so.0.3.9
-rwxr-xr-x 1 root root  665670 Mar 18 22:55 libapr-1.so.0.3.9
-rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
-rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so -
libtcnative-1.so.0.1.16
lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so.0 -
libtcnative-1.so.0.1.16
-rwxr-xr-x 1 root root  874847 Mar 19 10:36 libtcnative-1.so.0.1.16
drwxr-xr-x 2 root root4096 Mar 19 10:36 pkgconfig

Am I missing some files or something? Is there any other configuration I
need to do in Tomcat?


-- 
View this message in context: 
http://old.nabble.com/APR-Question-tp27951002p27951002.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: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob S.
The core of the issue seems to be that jsvc is starting Java directly which
means you have to duplicate the hard work catalina.sh does.  So while I'm
really talking about just getting the log files to show back up, that's only
a symptom of the larger problem.

Is this an accurate analysis?

Is there a better approach that can rely on all the hard work catalina.sh
does?

Rob



On Fri, Mar 19, 2010 at 10:40 AM, Rob S. r...@tintri.com wrote:

 Yep, the update really just changed the name of Bootstrap :)

 In the process of debugging this now and I will definitely post the results
 here / submit a patch, hopefully later today.

 Rob


 On Fri, Mar 19, 2010 at 10:34 AM, Christopher Schultz 
 ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rob,

 On 3/19/2010 1:25 PM, Rob S. wrote:
  After using the jsvc init script provided with Tomcat 6, Tomcat no
 longer
  writes any log files to /logs.  The only log file I'm getting is
  catalina.out, which is coming from JSVC capturing System.out and
 System.err.

 Are you talking about bin/Tomcat.sh that comes bundled with Tomcat 6
 under bin/jsvc.tar.gz? I'm looking at 6.0.20's version of that file, and
 it's got some disturbing stuff in it, like this:

 JAVA_HOME=/usr/java/jdk1.3.1

 and this:

 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $DAEMON_HOME/dist/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar

 (note the tools.jar)

 The script Tomcat5.sh has similar craziness in it, but I suppose those
 scripts /do/ say:

 # Adapt the following lines to your configuration

 Given that the script basically has to be configured, can you please
 post any customizations that you have made to the script?

 I haven't looked at the source to jsvc, but I see that the -errfile
 parameter to jsvc is set to '1' which, in many shells, means standard
 output. You can see from the (rather simple) script that the -outfile
 and -errfile options are set to reasonable values
 ($CATALINA_HOME/logs/catalina.out).

 Actually, if you're using multiple Tomcat instances and setting
 CATALINA_BASE, then the script is wrong: it should say:

-outfile $CATALINA_BASE/logs/catalina.out \
-errfile '1' \

 Better yet:

-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \

 Oh, those pesky spaces in path names! (Cue Andre's rant)

  My Google-fu must be on vacation because this seems like it would be a
  common question :)

 :)

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

 iEYEARECAAYFAkujtbIACgkQ9CaO5/Lv0PCcVgCfQxE6QpBJu80x+RLO5RBLZy1V
 1NEAniXVtMqyiUsDioaDT0BL9v/yh4Xc
 =4n6+
 -END PGP SIGNATURE-

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





RE: APR Question

2010-03-19 Thread Anthony J. Biacco
How did you configure apr, i.e. what's your configure line?
 
Are you mixing 32-bit with 64-bit between your libraries and JVM?

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com

 -Original Message-
 From: blargy [mailto:zman...@hotmail.com]
 Sent: Friday, March 19, 2010 11:43 AM
 To: users@tomcat.apache.org
 Subject: APR Question
 
 
 I was able to build and install APR (from the Tomcat bin dir) into
 /usr/local/apr/lib and I added the following JVM argument when
starting
 Tomcat: -Djava.library.path=/usr/local/apr/lib/
 
 However I am still seeing this warning message even though the apr lib
 directory exists:
 
 [java] INFO: The Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path: /usr/local/apr/lib
 
 [root]# ls -al /usr/local/apr/lib
 total 4288
 drwxr-xr-x 3 root root4096 Mar 19 10:36 .
 drwxr-xr-x 6 root root4096 Mar 18 22:48 ..
 -rw-r--r-- 1 root root8130 Mar 18 22:55 apr.exp
 -rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
 -rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
 lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so - libapr-
 1.so.0.3.9
 lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so.0 -
 libapr-1.so.0.3.9
 -rwxr-xr-x 1 root root  665670 Mar 18 22:55 libapr-1.so.0.3.9
 -rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
 -rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
 lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so -
 libtcnative-1.so.0.1.16
 lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so.0 -
 libtcnative-1.so.0.1.16
 -rwxr-xr-x 1 root root  874847 Mar 19 10:36 libtcnative-1.so.0.1.16
 drwxr-xr-x 2 root root4096 Mar 19 10:36 pkgconfig
 
 Am I missing some files or something? Is there any other configuration
 I
 need to do in Tomcat?
 
 
 --
 View this message in context: http://old.nabble.com/APR-Question-
 tp27951002p27951002.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


-
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-19 Thread Propes, Barry L
Did so, and still getting errors.

If I reference the factory ( 
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory) - I get -

org.apache.jasper.JasperException: javax.servlet.ServletException: 
javax.naming.NamingException: Could not create resource factory instance [Root 
exception is java.lang.InstantiationException: 
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)

javax.servlet.ServletException: javax.naming.NamingException: Could not create 
resource factory instance [Root exception is java.lang.InstantiationException: 
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)

org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:949)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

javax.naming.NamingException: Could not create resource factory instance [Root 
exception is java.lang.InstantiationException: 
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]

org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:102)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)

java.lang.InstantiationException: 
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)


Without the factory reference in the context.xml file, I get the reference to 
the Oracle driver error and class not found, which is impossible, because the 
intial page I click to before that references it and pulls back the data from 
using it.

org.apache.jasper.JasperException: javax.servlet.ServletException: 
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 
'oracle.jdbc.driver.OracleDriver'

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 
'oracle.jdbc.driver.OracleDriver'

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:1


There is another copy of the tomcat-dbcp.jar in my JRE lib directory. I don't 
even recall putting it, or the others in there.
Tomcat doesn't copy files there, too does it? 

That would seem odd.

I'll remove those.

Other than than, I'm still quite baffled at this.

-Original Message-
From: 2smart4u [mailto:rc4...@googlemail.com] 
Sent: Friday, March 19, 2010 12:12 PM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

just a quick thought:

have you tried installing Tomcat into a directory where it's name is
*not* containing any spaces?

cheers

gregor
--
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-
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



Tomcat 7

2010-03-19 Thread Steffen Heil
Hi

I know (from this list) that there is work going on for tomcat7.
However it is not even listed on the homepage as alpha/beta.

Can someone comment on the status of development for tomcat 7 and some 
propable timeframe (in years or months) for a beta or stable version?

Note: I don't expect precise answers as I know this is hard to tell.
I am just searching for something like 'propably end of this year' or 'not 
before 2012' or such...

And: How usable are the current snapshots?

It's all about what to use to start new development: tomcat 6 or tomcat 7?
For an application that won't make into production until mid 2011 and will 
need something like comet connections - which I understand will follow a 
common standard under tomcat 7?

Regards,
  Steffen



smime.p7s
Description: S/MIME cryptographic signature


Re: DB connection error -Tomcat 6 config

2010-03-19 Thread Gregor Schneider
ah. come on, chuck, why's that everyone is picking on my nick? *sic*

i'm reading and posting from my mobile, which is why i may have not
seen andre's post

cheers

gregor
---
just because you're paranoid doesn't mean they're not after you...

Am 19.03.2010 um 18:16 schrieb Caldarale, Charles R
chuck.caldar...@unisys.com
 :

 From: 2smart4u [mailto:rc4...@googlemail.com]
 Subject: Re: DB connection error -Tomcat 6 config

 just a quick thought:

 have you tried installing Tomcat into a directory where it's name is
 *not* containing any spaces?

 I would have thought a smart person would be keeping up - André sugg
 ested that a couple of hours ago, and the OP already noted it would
 be a good idea.

 - 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: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

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

Rob,

On 3/19/2010 1:51 PM, Rob S. wrote:
 The core of the issue seems to be that jsvc is starting Java directly which
 means you have to duplicate the hard work catalina.sh does.  So while I'm
 really talking about just getting the log files to show back up, that's only
 a symptom of the larger problem.
 
 Is this an accurate analysis?
 
 Is there a better approach that can rely on all the hard work catalina.sh
 does?

Hmm... not really: IIRC jsvc requires that it calls Java directly, so
you cant just do something like ./jsvc catalina.sh start. :(

It appears that the scripts that come with jsvc are not really up to
snuff. Actually, reading catalina.sh isn't too bad if you know which
mode you want to be in.

For instance, if you just want to start, then search for start
(/with/ quotes) and look at the 'case' that handles starting Tomcat. You
also have the stuff before the switch statement, too, like determining
CATALINA_HOME, executing any existing setenv.sh file, etc.

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

iEYEARECAAYFAkujwfYACgkQ9CaO5/Lv0PAxlQCgqoOjwlvgVKWWuStAHkJuAWS1
TcUAn17nSWMfFp7X5tRpA00XWqqyAIMe
=5EYt
-END PGP SIGNATURE-

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



Re: Tomcat 7

2010-03-19 Thread Mark Thomas
On 19/03/2010 18:19, Steffen Heil wrote:
 Hi
 
 I know (from this list) that there is work going on for tomcat7.
 However it is not even listed on the homepage as alpha/beta.

That is because there hasn't been a release yet.

 Can someone comment on the status of development for tomcat 7 and some 
 propable timeframe (in years or months) for a beta or stable version?

Hopefully weeks. Filip has the async timeouts left to finish and then
we'll need to make sure the Servlet 3.0 TCK passes. With those hurdles
out of the way there will be a release.

 Note: I don't expect precise answers as I know this is hard to tell.
 I am just searching for something like 'propably end of this year' or 'not 
 before 2012' or such...
 
 And: How usable are the current snapshots?

It should be very usable. The JSP 2.2 and EL 2.2 TCKs both pass. As long
as you don't want to use the new Servlet 3.0 async features, you should
be fine.

 It's all about what to use to start new development: tomcat 6 or tomcat 7?
 For an application that won't make into production until mid 2011 and will 
 need something like comet connections - which I understand will follow a 
 common standard under tomcat 7?

I'd go with 7. Note the Comet does more than Servlet 3.0 async does. You
may decide to stick with Comet.

HTH,

Mark



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



Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rob,

On 3/19/2010 1:51 PM, Rob S. wrote:

The core of the issue seems to be that jsvc is starting Java directly which
means you have to duplicate the hard work catalina.sh does.  So while I'm
really talking about just getting the log files to show back up, that's only
a symptom of the larger problem.

Is this an accurate analysis?

Is there a better approach that can rely on all the hard work catalina.sh
does?


You should probably install a *real* tomcat pre-packaged distribution, 
like the ones you get with Debian or RedHat.  Their startup scripts work 
fine with jsvc, right out of the box.



Ok, now I suggest that you step back from your screen, because in about 
2 minutes it might get hot and bloody here.


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



Re: APR Question

2010-03-19 Thread blargy

I also followed these instructions with no such luck:
http://tomcat.apache.org/native-doc/ even though the files are indeed
located in /opt/tomcat/lib

  [java] INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /opt/tomcat/lib

What files is this looking for?


blargy wrote:
 
 I was able to build and install APR (from the Tomcat bin dir) into
 /usr/local/apr/lib and I added the following JVM argument when starting
 Tomcat: -Djava.library.path=/usr/local/apr/lib/
 
 However I am still seeing this warning message even though the apr lib
 directory exists: 
 
 [java] INFO: The Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path: /usr/local/apr/lib
 
 [root]# ls -al /usr/local/apr/lib
 total 4288
 drwxr-xr-x 3 root root4096 Mar 19 10:36 .
 drwxr-xr-x 6 root root4096 Mar 18 22:48 ..
 -rw-r--r-- 1 root root8130 Mar 18 22:55 apr.exp
 -rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
 -rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
 lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so -
 libapr-1.so.0.3.9
 lrwxrwxrwx 1 root root  17 Mar 18 22:55 libapr-1.so.0 -
 libapr-1.so.0.3.9
 -rwxr-xr-x 1 root root  665670 Mar 18 22:55 libapr-1.so.0.3.9
 -rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
 -rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
 lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so -
 libtcnative-1.so.0.1.16
 lrwxrwxrwx 1 root root  23 Mar 19 10:36 libtcnative-1.so.0 -
 libtcnative-1.so.0.1.16
 -rwxr-xr-x 1 root root  874847 Mar 19 10:36 libtcnative-1.so.0.1.16
 drwxr-xr-x 2 root root4096 Mar 19 10:36 pkgconfig
 
 Am I missing some files or something? Is there any other configuration I
 need to do in Tomcat?
 
 
 

-- 
View this message in context: 
http://old.nabble.com/APR-Question-tp27951002p27951009.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: APR Question

2010-03-19 Thread Caldarale, Charles R
 From: Gregor Schneider [mailto:rc4...@googlemail.com]
 Subject: Re: APR Question
 
 did you set the environment-variable LD_LIBRARY_PATH?

It's not needed - the explicit setting of the system property java.library.path 
overrides anything in the environment variable.  Note that the message displays 
the expected directory.

 Am 19.03.2010 um 18:43 schrieb blargy zman...@hotmail.com:
 
  Am I missing some files or something?

I thought the library name was supposed to be just tcnative-1.so, but I don't 
have a Linux system available at the moment to check.

 - 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: APR Question

2010-03-19 Thread Caldarale, Charles R
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Subject: RE: APR Question
 
 I thought the library name was supposed to be just tcnative-1.so, but I
 don't have a Linux system available at the moment to check.

Sorry, just looked at the code; libtcnative-1.so is also acceptable.

The most likely cause is the 32- vs 64-bit mismatch suggested by Tony B.

 - 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: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob S.
On Fri, Mar 19, 2010 at 11:33 AM, André Warnier a...@ice-sa.com wrote:


 You should probably install a *real* tomcat pre-packaged distribution, like
 the ones you get with Debian or RedHat.  Their startup scripts work fine
 with jsvc, right out of the box.


Hi Andre,

Pragmatically speaking, that would allow me to exit this conversation
quickly and get back to the task at hand :)

Since I've already done the work, I'd like future Tomcat 6 users to not have
to go down this road and I'm content to spend about 30-60 minutes
contributing although at this point I'm not sure how to continue.

Rob


Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Mark Thomas
On 19/03/2010 18:45, Rob S. wrote:
 Hi Chris,
 
 I have a script that works and I'm ready to submit a patch.  Tomcat pulls
 jsvc.tar.gz from the commons-daemon project, circa 2004/2005.
 
 http://archive.apache.org/dist/commons/daemon/binaries/
 
 The structure of the 1.0.1 commons-daemon is different than the structure of
 1.0.2.  There is no /bin directory in the 1.0.2 release.
 
 Part of the trick is that in order to get this patch into Tomcat:
 
 - There needs to be another release of commons-daemon (unlikely for some
 time).
There is one due fairly soon. Mladen has been working on daemon recently.

 - Once that happens, Tomcat needs to be updated to pull that new release
 from the archive.
That is easy.

 Since the current version that Tomcat links to isn't very useful, does
 anyone have a suggestion on how to get it replaced?
There is already a proposal to update Tomcat to the new daemon 1.0.2
release.

Mark



-
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-19 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 There is another copy of the tomcat-dbcp.jar in my JRE lib directory.

That must be removed - it could be the source of all the problems.

 Tomcat doesn't copy files there, too does it?

No; Tomcat does not modify the JRE in any way.

 - 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: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob Slifka
Hi Mark,

 time).
 There is one due fairly soon. Mladen has been working on daemon recently.


Excellent!  I'm in the processing of submitting the patch to daemon's
Tomcat5.sh at the moment.


   - Once that happens, Tomcat needs to be updated to pull that new release
  from the archive.

That is easy.


Yep, I was just referring to the fact that there is disjoint work required.


   Since the current version that Tomcat links to isn't very useful, does
  anyone have a suggestion on how to get it replaced?
 There is already a proposal to update Tomcat to the new daemon 1.0.2
 release.


Perfect timing :)

Rob


Trouble with SecurityManager: can't load org.apache.commons.logging.impl.Log4JLogger

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

All,

I'm trying to run Tomcat with a SecurityManager and I'm having a few
problems.

Debian Linux
Tomcat 6.0.26
Sun Java 1.6.0_12 Server VM

I'm using CATALINA_BASE to run Tomcat from a different place than
CATALINA_HOME. I've been doing this for years, so I think I have a
handle on that part. ;)

I'm using ant scripts to start Tomcat, but ultimately they call
catalina.sh with the following environment:

 [echo] JAVA_HOME is /usr
 [echo] JAVA_OPTS is -Xmx64M
 [echo] CATALINA_HOME is /usr/local/apache-tomcat-6.0.26
 [echo] CATALINA_BASE is /home/cschultz/.webapps/diagnosis/8215
 [echo] CATALINA_OPTS is
- -Djava.library.path=/usr/local/apache-tomcat-6.0.26/server/lib
 [echo] security-option is -security

That last message means that we're calling catalina.sh like this:

CATALINA_HOME/bin/catalina.sh start -security

With no CATALINA_BASE/conf/catalina.policy file, I get this error:

Exception in thread main java.lang.ExceptionInInitializerError
at
org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
at
org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:55)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission java.util.logging.config.class read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:652)
at
org.apache.juli.logging.DirectJDKLog.clinit(DirectJDKLog.java:43)
... 4 more
Could not find the main class: org.apache.catalina.startup.Bootstrap.
Program will exit.

If I copy the stock catalina.policy file from CATALINA_HOME/conf to
CATALINA_BASE/conf, I get further (see below). Would it be possible to
have catalina.sh detect the location of catalina.policy from
CATALINA_BASE (preferred) or CATALINA_HOME (fallback)? Perhaps it's
silly to use a system-wide catalina.policy file, but it's a bit
confusing to see that the Bootstrap class isn't found when you try to
start up Tomcat with a security manager and don't know that copying
catalina.policy is a prerequisite.

The Security Manager HOWTO does specifically say that
CATALINA_BASE/conf/catalina.policy contains the policy, but it might be
nice to check in catalina.sh to see if such a policy exists when invoked
with -security. I'd be happy to write a patch that provides this check.

Anyhow, when the Security Manager is enabled, I get this exception
during startup (apologies for the lengthy stack trace):

SEVERE: Error configuring application listener of class
org.childhealthcare.diagnosis.servlet.CommonsLoggingListener
java.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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3916)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at

Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

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

Rob,

On 3/19/2010 2:48 PM, Rob S. wrote:
 On Fri, Mar 19, 2010 at 11:33 AM, André Warnier a...@ice-sa.com wrote:
 

 You should probably install a *real* tomcat pre-packaged distribution, like
 the ones you get with Debian or RedHat.  Their startup scripts work fine
 with jsvc, right out of the box.

 
 Hi Andre,
 
 Pragmatically speaking, that would allow me to exit this conversation
 quickly and get back to the task at hand :)
 
 Since I've already done the work, I'd like future Tomcat 6 users to not have
 to go down this road and I'm content to spend about 30-60 minutes
 contributing although at this point I'm not sure how to continue.

Well, you could post the fruits of your labor to the list as a start.
You could also log a bug in bugzilla and attach a patch (or entirely new
file) to the bug for inclusion into the Tomcat distro.

Another option would be to file a bug against jsvc itself and attach
your script(s) there. Tomcat really just re-packages jscv, so I'm not
sure what they'll say if you log the bug against Tomcat.

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

iEYEARECAAYFAkujzpcACgkQ9CaO5/Lv0PClUgCfVZegm4pDetL0jSJj6dk931vC
e7MAn2CNrSlYiIDeto9A/9efv2KeeSVm
=kBNZ
-END PGP SIGNATURE-

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



Re: jsvc w/Tomcat 6.0.26 - Tomcat logs disappeared

2010-03-19 Thread Rob Slifka
Done and done!

https://issues.apache.org/jira/browse/DAEMON-153

Thanks everyone,

Rob

On Fri, Mar 19, 2010 at 12:20 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rob,

 On 3/19/2010 2:48 PM, Rob S. wrote:
  On Fri, Mar 19, 2010 at 11:33 AM, André Warnier a...@ice-sa.com wrote:
 
 
  You should probably install a *real* tomcat pre-packaged distribution,
 like
  the ones you get with Debian or RedHat.  Their startup scripts work fine
  with jsvc, right out of the box.
 
 
  Hi Andre,
 
  Pragmatically speaking, that would allow me to exit this conversation
  quickly and get back to the task at hand :)
 
  Since I've already done the work, I'd like future Tomcat 6 users to not
 have
  to go down this road and I'm content to spend about 30-60 minutes
  contributing although at this point I'm not sure how to continue.

 Well, you could post the fruits of your labor to the list as a start.
 You could also log a bug in bugzilla and attach a patch (or entirely new
 file) to the bug for inclusion into the Tomcat distro.

 Another option would be to file a bug against jsvc itself and attach
 your script(s) there. Tomcat really just re-packages jscv, so I'm not
 sure what they'll say if you log the bug against Tomcat.

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

 iEYEARECAAYFAkujzpcACgkQ9CaO5/Lv0PClUgCfVZegm4pDetL0jSJj6dk931vC
 e7MAn2CNrSlYiIDeto9A/9efv2KeeSVm
 =kBNZ
 -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-19 Thread Propes, Barry L
Ok, I think I see some of the issue with the multiple or duplicate copies of 
those jars, which I'll assume for now is a big problem until I rebuild it.

My company requires me to go through some Pointsec authentication, and by 
default directs me (unfortunately) to some other dumb domain that's only for 
remote access, so I probably upon getting the laptop and logging in remotely 
didn't realize at first that I installed a TC version on this domain!!
So I'll log on to that domain, or go in the profile, kill it all off and then 
rebuild.

I'll let you know if that allows it to work.

Thanks. 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 19, 2010 1:58 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 There is another copy of the tomcat-dbcp.jar in my JRE lib directory.

That must be removed - it could be the source of all the problems.

 Tomcat doesn't copy files there, too does it?

No; Tomcat does not modify the JRE in any way.

 - 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: DB connection error -Tomcat 6 config

2010-03-19 Thread Propes, Barry L
Alright, doneremoved every instance of tomcat-dbcp.jar I could find (save 
for the instance that SHOULD be there) and I do finally get a different error, 
this one seeming more SQL, and specifically ORACLE-related, in nature.

Now the Oracle driver is initially called (and found) to pull back a tabled 
page of data, no problem.

Clicking thru subsequently to a simple JSP with the Context in it produces the 
following errors:

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/chgctrl_details.jsp at line 83

80: DataSource ds = (DataSource) envCtx.lookup(jdbc/myoracle);
81:   */
82: // Allocate and use a connection from the pool
83:  connection = ds.getConnection();   
-   here, but then

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (ORA-00923: FROM keyword not found 
where expected
)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (ORA-00923: FROM keyword not found where expected
)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

java.sql.SQLException: ORA-00923: FROM keyword not found where expected

oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)


Just provided snippets from each of these errors, not the entire set of 
references on down.

The logs - basically the same.

Java.sql.SQLException:  ORA-00923: FROM keyword not found where expected


Any ideas from this? I'm not yet inclined to think it's fully an Oracle error 
yet. But I could be wrong about that. : )



-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 19, 2010 1:58 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 There is another copy of the tomcat-dbcp.jar in my JRE lib directory.

That must be removed - it could be the source of all the problems.

 Tomcat doesn't copy files there, too does it?

No; Tomcat does not modify the JRE in any way.

 - 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: DB connection error -Tomcat 6 config

2010-03-19 Thread Propes, Barry L
GOOD GOSH!!! 

I don't believe it! It's now friggin' working!

Thank you all: Chuck, Chris, Andre, Mark, Gregor, et al.

I had one little bad validation attribute in the context.xml file, and that was 
throwing it off.

That, of course, after all that other junk, and the other junk being the 
tomcat-dbcp.jar file located myriad places!


Thanks so much for your patience and help!!

Regards,

Barry 

-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Friday, March 19, 2010 4:03 PM
To: 'Tomcat Users List'
Subject: RE: DB connection error -Tomcat 6 config

Alright, doneremoved every instance of tomcat-dbcp.jar I could find (save 
for the instance that SHOULD be there) and I do finally get a different error, 
this one seeming more SQL, and specifically ORACLE-related, in nature.

Now the Oracle driver is initially called (and found) to pull back a tabled 
page of data, no problem.

Clicking thru subsequently to a simple JSP with the Context in it produces the 
following errors:

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/chgctrl_details.jsp at line 83

80: DataSource ds = (DataSource) envCtx.lookup(jdbc/myoracle);
81:   */
82: // Allocate and use a connection from the pool
83:  connection = ds.getConnection();   
-   here, but then

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (ORA-00923: FROM keyword not found 
where expected
)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (ORA-00923: FROM keyword not found where expected
)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

java.sql.SQLException: ORA-00923: FROM keyword not found where expected

oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)


Just provided snippets from each of these errors, not the entire set of 
references on down.

The logs - basically the same.

Java.sql.SQLException:  ORA-00923: FROM keyword not found where expected


Any ideas from this? I'm not yet inclined to think it's fully an Oracle error 
yet. But I could be wrong about that. : )



-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, March 19, 2010 1:58 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 There is another copy of the tomcat-dbcp.jar in my JRE lib directory.

That must be removed - it could be the source of all the problems.

 Tomcat doesn't copy files there, too does it?

No; Tomcat does not modify the JRE in any way.

 - 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


-
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-19 Thread Propes, Barry L
Ok, will do...thanks for the suggestion.

I'll remove that.

Thanks.
 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 19, 2010 4:31 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 javax.servlet.ServletException:
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-00923: FROM keyword not found where
 expected)

I would suggest removing this from your Resource element:

testWhileIdle=true

One normally uses testOnBorrow, and specifies a validationQuery appropriate for 
the DB in use.  Without the validationQuery, I have no idea what the DBCP makes 
up to send.

 - 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: Disabling http connector

2010-03-19 Thread Martin Gainty

i would first check the configuration for the connector 
you *might* have a  builtin dependency on Executor ThreadPool e.g.

Executor name=tomcatThreadPool namePrefix=catalina-exec-  
maxThreads=150 minSpareThreads=4/
Connector executor=tomcatThreadPool port=8007 protocol=HTTP/1.1  
connectionTimeout=2 /  

anyone ?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Fri, 19 Mar 2010 15:07:39 +0530
 Subject: Re: Disabling http connector
 From: cummins.grou...@gmail.com
 To: users@tomcat.apache.org
 
 Hi,
 
 We found this MBeanfactory method. It has a remove connector method. This
 takes argument String as the Mbean-name of component to be removed.
 
 We have tried passing 'HTTPConnector',
 'CoyoteConnector','Catalina','http-8080' and 'http11connector'.
 
 Could you tell us how to find the mbean names of the connectors?
 
 Thanks.
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2

RE: DB connection error -Tomcat 6 config

2010-03-19 Thread Propes, Barry L
Weird, thoughnow I'm getting an IllegalStateException: Timer already 
cancelled.

Wonder what this is? Or what's causing it?

Well, Chuck, I took out the testWhileIdle=true  attribute and that seemed 
to fix this.

Thanks.

I guess you thought that might be an issue? : )

-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Friday, March 19, 2010 4:31 PM
To: 'Tomcat Users List'
Subject: RE: DB connection error -Tomcat 6 config

GOOD GOSH!!! 

I don't believe it! It's now friggin' working!

Thank you all: Chuck, Chris, Andre, Mark, Gregor, et al.

I had one little bad validation attribute in the context.xml file, and that was 
throwing it off.

That, of course, after all that other junk, and the other junk being the 
tomcat-dbcp.jar file located myriad places!


Thanks so much for your patience and help!!

Regards,

Barry 

-Original Message-
From: Propes, Barry L [GCG-NAOT]
Sent: Friday, March 19, 2010 4:03 PM
To: 'Tomcat Users List'
Subject: RE: DB connection error -Tomcat 6 config

Alright, doneremoved every instance of tomcat-dbcp.jar I could find (save 
for the instance that SHOULD be there) and I do finally get a different error, 
this one seeming more SQL, and specifically ORACLE-related, in nature.

Now the Oracle driver is initially called (and found) to pull back a tabled 
page of data, no problem.

Clicking thru subsequently to a simple JSP with the Context in it produces the 
following errors:

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/chgctrl_details.jsp at line 83

80: DataSource ds = (DataSource) envCtx.lookup(jdbc/myoracle);
81:   */
82: // Allocate and use a connection from the pool
83:  connection = ds.getConnection();   
-   here, but then

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (ORA-00923: FROM keyword not found 
where expected
)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (ORA-00923: FROM keyword not found where expected
)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

java.sql.SQLException: ORA-00923: FROM keyword not found where expected

oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)


Just provided snippets from each of these errors, not the entire set of 
references on down.

The logs - basically the same.

Java.sql.SQLException:  ORA-00923: FROM keyword not found where expected


Any ideas from this? I'm not yet inclined to think it's fully an Oracle error 
yet. But I could be wrong about that. : )



-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, March 19, 2010 1:58 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 There is another copy of the tomcat-dbcp.jar in my JRE lib directory.

That must be removed - it could be the source of all the problems.

 Tomcat doesn't copy files there, too does it?

No; Tomcat does not modify the JRE in any way.

 - 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


-
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-19 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 Weird, thoughnow I'm getting an IllegalStateException: Timer
 already cancelled.
 
 Wonder what this is? Or what's causing it?

Can't say - I have very little experience with Oracle.  You might want to turn 
on traces in the DB (if you're allowed), or use Wireshark to see what's being 
sent to the DB.

 - 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-19 Thread Propes, Barry L
Ok, thanks. 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, March 19, 2010 4:47 PM
To: Tomcat Users List
Subject: RE: DB connection error -Tomcat 6 config

 From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
 Subject: RE: DB connection error -Tomcat 6 config
 
 Weird, thoughnow I'm getting an IllegalStateException: Timer 
 already cancelled.
 
 Wonder what this is? Or what's causing it?

Can't say - I have very little experience with Oracle.  You might want to turn 
on traces in the DB (if you're allowed), or use Wireshark to see what's being 
sent to the DB.

 - 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: Trouble with SecurityManager: can't load org.apache.commons.logging.impl.Log4JLogger

2010-03-19 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Trouble with SecurityManager: can't load
 org.apache.commons.logging.impl.Log4JLogger
 
 With no CATALINA_BASE/conf/catalina.policy file, I get this error:
 
 Caused by: java.security.AccessControlException: access denied

Expected.

 If I copy the stock catalina.policy file from CATALINA_HOME/conf to
 CATALINA_BASE/conf, I get further (see below). Would it be possible to
 have catalina.sh detect the location of catalina.policy from
 CATALINA_BASE (preferred) or CATALINA_HOME (fallback)?

Well, the way it's working is what's documented in RUNNING.txt:

When you use $CATALINA_BASE, Tomcat will calculate all relative references for 
files in the following directories based on the value of $CATALINA_BASE instead 
of $CATALINA_HOME:
* conf - Server configuration files (including server.xml)

I'd be somewhat reluctant to see that behavior changed at this stage of the 
game.  I'd prefer to have an additional environment variable that allows 
specifying where the policy file is rather than requiring it to be in 
$CATALINA_BASE/conf/catalina.policy.

You could set -Djava.security.manager and -Djava.security.policy=myFile in 
CATALINA_OPTS and *not* use the -security option.

 In the InitListener.java class, I basically just try to create a log4j
 logger like this:
 
 Logger.getLogger(className)
 
 In both of these situations, Tomcat ought to be able to load the
 classes required.

It may be that the real exception is getting eaten somewhere (possibly inside 
the JRE), and all you're left with is something a bit too generic to describe 
the actual problem.  Perhaps either the static initializer or a constructor is 
failing due to read access being inhibited.

Might want to try adding something like this to the catalina.policy file:

grant codeBase file:${catalina.base}/webapps/[appName]/WEB-INF/lib/- {
permission java.io.FilePermission 
${catalina.base}/webapps/[appName]/WEB-INF/classes/logging.properties, read;
};

(Grasping at straws, again.)

 - 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: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-19 Thread Martin Gainty

Michael-

stop webserver
cd /WEB-INF/classes
jar -xvf $SPRING_HOME/dist/modules/spring-*.jar .

clear any temp or work folders..(tomcat work folder is usually in 
$CATALINA_HOME/work/Catalina/localhost/WebAppFolder)
start webserver

flex is a different issue ..for mine i had to grant both read and execute 
permissions for the flex jars in catalina.policy

anyone?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: michael1.goldb...@citi.com
 To: users@tomcat.apache.org
 Date: Thu, 18 Mar 2010 11:04:34 -0400
 Subject: RE: Tomcat-Spring-Eclipse/Flex Classpath Issue
 
 Yes that jar is there.  I also decreased log level to FINEST and received 
 classloader ouput in the following order,
 
 FINE:   Returning class interface 
 org.springframework.beans.factory.InitializingBean
 Mar 18, 2010 9:50:27 AM org.apache.catalina.loader.WebappClassLoader findClass
 FINE:   Loaded by WebappClassLoader
   delegate: false
   repositories:
 /WEB-INF/classes/
 
 Then sometime later
 
 FINE: loadClass(com.citi.cpm.util.SystemPropertyInitializingBean, false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE: loadClass(com.citi.cpm.util.SecureDriverManagerDataSource, false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE: loadClass(org.springframework.orm.hibernate3.LocalSessionFactoryBean, 
 false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE:   Returning class from cache
 
 In the first log block it seems to indicate the spring class has been 
 located. In the second block the  Returning class from cache output does 
 not specify which class was returned.  The Exception block shows  
 com.citi.cpm.util.SystemPropertyInitializingBean  which is indicated in the 
 second block.
 
 Any Advice?
 
 -Original Message-
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Sent: Thursday, March 18, 2010 2:15 AM
 To: Tomcat Users List
 Subject: Re: Tomcat-Spring-Eclipse/Flex Classpath Issue
 
 2010/3/17 Goldberg, Michael1 michael1.goldb...@citi.com:
  I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to 
  configure a tomcat webserver which hosts the backend for a flex web app.
 
  Now on startup tomcat is having an issue resolving some spring dependancies 
  which appears to be a classpath issue.
 
 Did you put your Spring *.jar files into WEB-INF/lib folder of your
 web application?
 
 -
 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
 
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2

Re: Tomcat stops suddenly without any errors

2010-03-19 Thread siranjeevi krishnan
Hi Charles

Thanks for your reply.

I understood that if the thread is killed, tomcat will stop.
In my case, there is no explicit killing of thread. Only after
graceful stop of tomcat, this thread got killed.

Thanks
Siranjeevi


On Fri, Mar 19, 2010 at 10:23 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: siranjeevi krishnan [mailto:siranjee...@gmail.com]
 Subject: Re: Tomcat stops suddenly without any errors

 I am starting tomcat under a thread inside another JVM by calling
 Bootstrap.main(start);

 You're not running Tomcat in another JVM - it's running in the same one 
 your thread is running in.  If you don't keep that thread alive, the JVM will 
 shutdown, taking Tomcat with 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



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