java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Stefan Sigfried

I get this error when trying to start Tomcat using catalina.bat.

Using JRE_HOME:C:\Program Files\Java\jdk1.6.0_07

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/catalina/s

tartup/Bootstrap
Caused by: java.lang.ClassNotFoundException: 
org.apache.catalina.startup.Bootstr

ap
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin

It looks as some .jar file is wrong or missing. Why is the main class 
missing?



The actual call made by catalina.bat looks like this (adding a line to 
do echo in the catalina.bat file).



C:\Program Files\Java\jdk1.6.0_07\bin\java  
-Djava.util.logging.manager=org.ap
ache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=C:\downloads\ap

ache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\conf\logging.properties

-Djava.endorsed.dirs=C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomc
at-6.0.18-src\endorsed -classpath C:\Program 
Files\Java\jdk1.6.0_07\lib\tools.

jar;C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin\bo
otstrap.jar 
-Dcatalina.base=C:\downloads\apache\apache-tomcat-6.0.18-src\apach
e-tomcat-6.0.18-src 
-Dcatalina.home=C:\downloads\apache\apache-tomcat-6.0.18-s
rc\apache-tomcat-6.0.18-src 
-Djava.io.tmpdir=C:\downloads\apache\apache-tomcat
-6.0.18-src\apache-tomcat-6.0.18-src\temp 
org.apache.catalina.startup.Bootstrap

start



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



Re: migrating from Tomcat 5.5.x to Tomcat 6.0.x

2008-11-10 Thread rajesh202023

In Tomcat 6, the common, shared and server directories have been merged to
produce the /lib directory. But in the /lib directory all the *.jar files
present in the 3 directories are not present. Some are there. Does the /lib
directory take care of all the *.jar files, so that we can modify just the
catalina.properties file to point to this directory?

Please let me know ASAP.
--Raj



David Smith-2 wrote:
 
 As long as your webapp conforms to the servlet spec, it should just
 plain work in tomcat 6.  Setup a test install and try it out.
 
 --David
 
 rajesh202023 wrote:
 Hi,

 I want to replace Tomcat 5.5.x running in my system with Tomcat 6.0.x. I
 want to do this in a manner such that the applications that are running
 on
 Tomcat 5 do not need to be modified in any manner to run on Tomcat 6.
 I have gone through the Tomcat homepage and noticed that there are some
 difference in the directory structure and some other stuff, between the
 6.0.x and 5.5.x release.

 I want to know what all and where should I change after I install Tomcat
 6,
 so that I am able to run the existant applications without any issues.

 Please help, as I am new to Tomcat in general.

 Thanks in advance...

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

-- 
View this message in context: 
http://www.nabble.com/migrating-from-Tomcat-5.5.x-to-Tomcat-6.0.x-tp20374253p20416883.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier

I believe that this only a problem of documentation.
If you followed the on-line instructions (tomcat.apache.org, 6.0, 
documentation, download etc..), you probably downloaded and installed 
the Windows Service version.  That version works a bit differently 
from the usual version under Unix/Linux.
You set the JVM parameters for startup with the tomcat6w.exe program, 
and run the Tomcat Service using the tomcat6.exe program.
That version of Tomcat does not have the correct setup or files to run 
it from the .bat files.
If you want to run it from the .bat files, then download the zip 
version and install it.
Unfortunately, all this is not very clear at first from the on-line 
download page nor the documentation pages.  It takes a while for the 
non-initiated to get a clear idea of what is going on there.



Stefan Sigfried wrote:

I get this error when trying to start Tomcat using catalina.bat.

Using JRE_HOME:C:\Program Files\Java\jdk1.6.0_07

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/catalina/s

tartup/Bootstrap
Caused by: java.lang.ClassNotFoundException: 
org.apache.catalina.startup.Bootstr

ap
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin

It looks as some .jar file is wrong or missing. Why is the main class 
missing?



The actual call made by catalina.bat looks like this (adding a line to 
do echo in the catalina.bat file).



C:\Program Files\Java\jdk1.6.0_07\bin\java  
-Djava.util.logging.manager=org.ap
ache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=C:\downloads\ap
ache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\conf\logging.properties 



-Djava.endorsed.dirs=C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomc 

at-6.0.18-src\endorsed -classpath C:\Program 
Files\Java\jdk1.6.0_07\lib\tools.
jar;C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin\bo 

otstrap.jar 
-Dcatalina.base=C:\downloads\apache\apache-tomcat-6.0.18-src\apach
e-tomcat-6.0.18-src 
-Dcatalina.home=C:\downloads\apache\apache-tomcat-6.0.18-s
rc\apache-tomcat-6.0.18-src 
-Djava.io.tmpdir=C:\downloads\apache\apache-tomcat
-6.0.18-src\apache-tomcat-6.0.18-src\temp 
org.apache.catalina.startup.Bootstrap

start



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




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



RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap

 I believe that this only a problem of documentation.

Nope.

 If you followed the on-line instructions (tomcat.apache.org, 6.0,
 documentation, download etc..), you probably downloaded and installed
 the Windows Service version.

Also nope.  The OP downloaded and is trying to run the *source*:

 C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin

Works better if you try to run object code.

I would recommend getting the .zip version rather than the .exe; as André 
points out, it's more flexible.

 - Chuck


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

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



RE: migrating from Tomcat 5.5.x to Tomcat 6.0.x

2008-11-10 Thread Caldarale, Charles R
 From: rajesh202023 [mailto:[EMAIL PROTECTED]
 Subject: Re: migrating from Tomcat 5.5.x to Tomcat 6.0.x

 But in the /lib directory all the *.jar files present in
 the 3 directories are not present. Some are there.

What do you think is missing?  Have you tried running 6.0 with your webapps 
yet?  It would take less time than this speculation has.

 - Chuck


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

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



Re: Context level logging

2008-11-10 Thread blacksheep

I wonder you came up with a solution ?
 

Jonathan Mast-2 wrote:
 
 OK, i have a webapp which has it's own context element.  I want all the
 System.out and System.err stuff from this webapp to go to it's own special
 log file as opposed to catalina.out.  My reading of the Tomcat docs
 (version
 5.5) seems to indicate that I can do this by following these steps:
 
 1. set the swallowOutput attribute to true in the Context entry in
 server.xml
 2. add the following to the logging.properties file:
 
 6FOOAPP.org.apache.juli.FileHandler
 
 6FOOAPP.org.apache.juli.FileHandler.level = FINE
 6FOOAPP.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
 6FOOAPP.org.apache.juli.FileHandler.prefix = FOOAPP.
 
 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].level
 = FINE
 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].handlers
 = 6FOOAPP.org.apache.juli.FileHandler
 
 3. restart Tomcat
 
 Is this correct?
 
 The last 2 lines of the edit I really don't understand.
 
 thanks
 
 

-- 
View this message in context: 
http://www.nabble.com/Context-level-logging-tp17630343p20422122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: java.lang.ClassNotFoundException:
org.apache.catalina.startup.Bootstr,ap

I believe that this only a problem of documentation.


Nope.


I think maybe yep still.
I believe it is really not clear what you get when on the download page, 
and the README does not help that much, unless you pretty much already 
know the difference between the zip version and the Service installer.
As to the Documentation page 
(http://tomcat.apache.org/tomcat-6.0-doc/index.html)

2. Setup
it leads to a page where you find
a) the installation as a Windows service
and
b) the installation as a Unix daemon
but it is missing the in-between : that you can also run Tomcat under 
Windows from the .zip distribution (maybe as a service, maybe not, I'm 
still not quite clear myself on that one).

And the Windows Service HowTo starts with the bold phrase
*This section of the documentation applies to procrun 1.0, and is now 
obsolete.*

So it's not particularly inviting or reassuring.
Even that phrase also assumes that someone already knows what procrun 
is, in the first place.


Understand, I'm not complaining, just explaining that someone without 
previous knowledge may have some doubts as to what to use.




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



Re: Tomcat Performance

2008-11-10 Thread Ronald Klop

2 Instances don't compete for locking between threads. So possibly your 
application depends a lot on locking?

Ronald.


Op maandag, 10 november 2008 om 7:26 uur schreef Tomcat Users List 
users@tomcat.apache.org:


Subject: Tomcat Performance
Date: Mon Nov 10 07:26:21 CET 2008
From: Nishi Kant [EMAIL PROTECTED]
Hi All,

 


I'm trying to optimize the performance of my server, which is deployed
in a cluster environment using Apache Load balancer and Tomcat
container. mod_jk is used to communicate between load balancer and
tomcat container.  Apache is configured to use worker MPM mode.  I have
done various tests to find optimized tomcat, apache and Linux
configuration for my application. Following are the machines I'm using
for this load test.

 


Machines configurations



Apache Load balancer::  2.8 GHz Dual Core , 4GB RAM

Tomcat ::  2.66 GHz 2 CUP, Dual Core, 6 GB RAM 

 

 


There is an interesting observation when I alter my configuration to run
multiple tomcat instances on same machine. My throughput increases to 2
times the original throughput if I run 2 instance of tomcat instead of
single tomcat instance. I'm trying to understand this behavior as I'm
not very keen in running multiple tomcat instances on same machines. 

 


Thanks,

Nishi

 

 

 








Re: absolute url only working - urget hel p needed

2008-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Srinivas,

Srinivas Jonnalagadda wrote:
 For Example:
 http://serverhostname.ebiz.com:8080/kanaCallBack/ssoCallback.jsp
 then i am able to access. If i give
 http://stg.ebiz.com/kanaCallBack/ssoCallback.jsp. I get a page not
 found error in my IE.

These URLs are not the same. They have different host names and port
numbers. Did you expect them to go to the same place? Why?

If you do not include the port number in all your URLs (say, links in
your web pages), then it's simply not going to work. If you use relative
URLs, it /should/ work because most clients are smart enough to figure
out what the base URL is.

How are you generating your URLs in your web pages? Please provide a
(short) code sample.

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

iEYEARECAAYFAkkYZD8ACgkQ9CaO5/Lv0PAT6wCffkRmoWBlYyLDY/woi5QzpffP
l+QAnRpotK7UBrN21QVU936BiLdCpjKz
=pWvo
-END PGP SIGNATURE-

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



RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap

 I think maybe yep still.

I'm not saying the doc is perfect (far from it), but the OP downloaded the 
source, not the binary.

 I believe it is really not clear what you get when on the
 download page,

Binary vs source isn't clear?

 - Chuck


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

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



RE: Tomcat Performance

2008-11-10 Thread Nishi Kant
Hi Ronald,
 
Thanks for the response. 
With in the server, there is not much of a locking issues. Just to give
you more insight, server is like a proxy for some of the request. All
such request are delegated to an external server which may or may HTTP
protocol to handle the request. 
 
Thanks,
Nishi




From: Ronald Klop [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 2:54 PM
To: Tomcat Users List
Cc: Nishi Kant
Subject: Re: Tomcat Performance


2 Instances don't compete for locking between threads. So possibly your
application depends a lot on locking?

Ronald.



Op maandag, 10 november 2008 om 7:26 uur schreef Tomcat Users List
users@tomcat.apache.org:

Subject: Tomcat Performance  Date: Mon Nov 10 07:26:21 CET 2008 
From: Nishi Kant [EMAIL PROTECTED]
Hi All,

 

I'm trying to optimize the performance of my server, which is
deployed
in a cluster environment using Apache Load balancer and Tomcat
container. mod_jk is used to communicate between load balancer
and
tomcat container.  Apache is configured to use worker MPM mode.
I have
done various tests to find optimized tomcat, apache and Linux
configuration for my application. Following are the machines I'm
using
for this load test.

 

Machines configurations



Apache Load balancer::  2.8 GHz Dual Core , 4GB RAM

Tomcat ::  2.66 GHz 2 CUP, Dual Core, 6 GB
RAM 

 

 

There is an interesting observation when I alter my
configuration to run
multiple tomcat instances on same machine. My throughput
increases to 2
times the original throughput if I run 2 instance of tomcat
instead of
single tomcat instance. I'm trying to understand this behavior
as I'm
not very keen in running multiple tomcat instances on same
machines. 

 

Thanks,

Nishi

 

 

 






Re: a cookie question of one Server with two tomcat server

2008-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bon,

Bon wrote:
 I've monitored the value of cookies with debug mode at server
 running, and the cookie values were be set to the new values.

 I'm not sure what effect of setting the session as invalidate and 
 setting new cookie values, I think set session as invalidate was
 telling the server this session should be invalidated, and set
 cookies as new values was telling the client browser to set the new
 value to cookies, what I think as that, and I'm not sure do I right
 or wrong?!

Calling session.invalidate() invalidates the session. The servlet
specification makes no demands about deleting any cookies on the client
side, so my guess is that Tomcat does not go through the trouble of
sending a dead cookie back to the client. If you want to kill the
cookies on the client side, you are welcome to do so. I'm just
suggesting that it is not necessary to remove those cookies unless you
/really/ want to.

In terms of invalidating the session and getting new values afterward,
consider this scenario:

1. User logs into your application and is assigned a session,
   which sends a JSESSIONID cookie to their browser.

2. The user logs out of your application. The session is invalidated,
   and your code deletes the JSESSIONID cookie by sending a
   JSESSIONID cookie with maxage=0 and issues a redirect to the client.

3. The client deletes the cookie due to #2 and then redirects to the
   new URL.

4. The new URL requires a session and so a new JSESSIONID cookie is
   created and sent to the client.

#4 can happen a number of ways, but in my experience the most common way
is to send the user to a JSP that has not yet session=false in the
@page directive. In this case, the session is created whether you need
it or not.

 Why I attempt to delete the cookie from client's machine, that is a 
 requirement from my desinger, and I don't know why and I don't need
 to know(I've asked why do that before)

Hah. Probably some security requirement.

 the redirection is a complicated linking flow, and I'm sure it was 
 properly, because it was working well after I changed the logout URL
 path. Why we do that from a main site redirecte to second site and 
 finally redirecte back to the main site, that is becausr we want the 
 both sites to clean-up their own cookies when logout was be
 requested.

This is reasonable.

 now, I still don't know why I must change the logout URL path (the
 URL path of cookies modifier) same as the login URL path (the URL
 path of cookie creator) when I was through the main site to second
 site, and they are at same host by different server port number. But
 if I just open a new browser and to request the second site logout
 URL(with different URL path), then the cookies of second site could
 be expired by this request!

I'm not sure I fully understand what you're saying, here. Just to clear
a few things up, cookies contain:

1. A URL path that is used to identify which URLs should get the cookie
2. A name and value
3. Expiration information

Let's say you have two JSESSIONID cookies for your two applications,
hosted at the same site on the same port. Here's what they might look
like (values removed because they are irrelevant):

Cookie 1:
url=http://www.mydomain.com/first; expiration=-1; name=JSESSIONID
Cookie 2:
url=http://www.mydomain.com/second; expiration=-1; name=JSESSIONID

Note that the cookies are identical except for the url: one says first
while the other says second. If you are visiting /second, the cookie
from /first will not be sent by the client. The opposite is also true
for visiting /first: the cookie for /second will not be sent.

If you need to remove the cookies from both sites, you'll need to either

1. Send two cookies on logout and hope that your client allows one site
   to expire another site's cookies (which probably won't work).

or

2. Expire one cookie, then redirect to the other app and repeat the
process (which is what you're doing in your application).

I don't understand the logout URL and login URL need to be the same
thing you're talking about above, though.

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

iEYEARECAAYFAkkYY3MACgkQ9CaO5/Lv0PBh3wCgk2RDEO9STFF+Za4zOjWWgFgF
lQ8An1KeTHVp0b3egLe7Aj9BirrBZQf4
=jVhA
-END PGP SIGNATURE-

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



Configuring tomcat to log authentication events

2008-11-10 Thread Brian Gillan
We're using Rational Team Concert with Tomcat and authenticating with 
LDAP. 
I want to log authentication events for users accessing RTC so we can see 
who's authenticating, and if unsuccessfully, who they're trying to 
authenticate as. Is this just a matter of configuration? I did some poking 

around the Tomcat documentation but nothing jumped out. 

Thanks, Brian 

Phone: (919) 224-1445 Tie-line: 8-687-1445
GILLAN AT RALVM13 / [EMAIL PROTECTED]
Tivoli Distributed Build Services 
(http://oob.tivlab.raleigh.ibm.com/index.shtml)
Dept. E45A Bld. 510
RTP, NC

Re: Clustering in tomcat

2008-11-10 Thread kashif_tomcat

Thanks filip... sessions are replicating now but still there are some issues.

can u please tell me 

sometimes it doesn't replicate session and i get session not found error in
logs and screen crashes.

2008-11-10 13:45:50,703 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
192.168.0.82   /vopium/getproductlist.htm
2008-11-10 13:45:50,711 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - Session Not Found So Redirecting to Login and requested uri is
/vopium/getproductlist.htm (and after this screen crashes)



also i am unable to understand following point that i got in clustering
basics information

The IP broadcasted is java.net.InetAddress.getLocalHost().getHostAddress()
(make sure you don't broadcast 127.0.0.1, this is a common error)


also there is another issue that when one tomcat gets down then apache takes
some time to move to other server and meanwhile i get screen saying service
temporarily unavailable after some time (15-25 seconds) when i refresh
...screen starts from same point with no session failure and apache sends
hit to 2nd tomcat. 


Actually i am not the developer of this application i am just a
configuration engineer... therefor it takes me time to understand that issue
is either related to configuration or application end.  

waiting for helpful reply



Filip Hanik - Dev Lists wrote:
 
 http://tomcat.apache.org/tomcat-6.0-doc/
 
 look for Cluster Basics
 
 Filip
 
 kashif_tomcat wrote:
 Thanks Filip...

 i have got out of that problem... after adding clustering port in
 iptable. 

 now i am getting another exception and following is detail.


 when i add distributable/ tag in web.xml of my applicatoin and start
 tomcat. then after login my application crashs and i get following
 exception
 in logs.


 2008-10-30 21:19:43,812 INFO [com.vopium.controller.LoginController -
 handleControllerRequest] - Exception during LoginProcess setAttribute:
 Non-serializable attribute
 com.framework.exceptions.BaseRunTimeException
 at
 org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1295)
 at
 org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:567)
 at
 org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:551)
 at
 org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
 at
 com.vopium.controller.LoginController.handleControllerRequest(Unknown
 Source)
 at
 com.framework.controllers.BaseController.handleRequestInternal(Unknown
 Source)
 at
 org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at
 org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
 at
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.vopium.portal.utilities.URLFilter.doFilter(Unknown Source)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:209)
 at
 org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
 at
 

RE: Custom Error Messages (5xx and 4xx)

2008-11-10 Thread Kirchhoff, Florian
Rob,

I feel for you, I experienced the frustrations of the zero size
response/blank page several times, each times with a different root
cause.

I have used several approaches in the past:
1) first make sure the 500 page itself isn't causing the problem. Use a
plain JSP instead to see if you still get a blank response.
2) do you have any servlet filter? Make sure to exclude your error pages
from being processed by the filters.
4) Increase logging levels for TOMCAT to DEBUG, but be prepared, it
generate a LOT of output.
3) As last attach a debugger to the tomcat process and break on any
Exception thrown. This can be time consuming since a lot of Exception
can be thrown even during normal execution... 

Sorry if this is so generic... I hope you find a solution to your
problem.

Florian
 -Original Message-
 From: Rob Mercer [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2008 2:13 PM
 To: Tomcat Users List
 Subject: RE: Custom Error Messages (5xx and 4xx)
 
 Correction, the 404 error pages now seem to work, but the
 500 error page
 is not being produced on an error
 
 -Rob
 
 -Original Message-
 From: Rob Mercer [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2008 2:09 PM
 To: Tomcat Users List
 Subject: RE: Custom Error Messages (5xx and 4xx)
 
 First off, thank you for your responses, I've worked on
 this a little
 more and am still have problems getting the error message
 pages to even
 appear when the server side error is generated. Below is my
 web.xml
 
 
   !-- Use Documents saved as *.xhtml for Facelets--
   context-param
   param-namejavax.faces.DEFAULT_SUFFIX/param-
 name
   param-value.xhtml/param-value
   /context-param
 
   context-param
   param-namefacelets.VIEW_MAPPINGS/param-name
   param-value*.xhtml/param-value
   /context-param
 
 
 !-- Error configuration  --
   error-page
   error-code404/error-code
   location/error_pages/404.xhtml/location
   /error-page
 
   error-page
   error-code500/error-code
   location/error_pages/500.xhtml/location
   /error-page
 
 Please let me know if I missed anything relevant.
 
 Currently when an error (500) is generated all I get is a
 blank white
 screen :(. I can go directly to the error pages both logged
 into the
 system and not and I get the nice little Something has
 gone wrong ..
 custom error page that I've setup for this test...
 
 Any ideas?
 
 -Rob
 
 -Original Message-
 From: Kirchhoff, Florian
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2008 10:20 AM
 To: Tomcat Users List
 Subject: RE: Custom Error Messages (5xx and 4xx)
 
 Rob,
 
 First you need to gather the information about the
 exception, then send
 it to who needs to know. You might want to be proactive and
 send it to
 the support team regardless of what the users want...
 
 One thing to lookout for is that depending on where you
 exception is
 thrown the implicit exception variable may not be the one
 you're
 looking for and you have to unwind the calling stack to
 find the root
 cause. That's what Tomcat's default error page does. I
 found it
 instructive to study the source of the ErrorReportValve in
 subversion:
 http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/
 org/apache/ca
 talina/valves/ErrorReportValve.java
 
 Look into the report method to see how to use
 exception.getCause()
 to get to the root cause.
 
 I hope you find this useful.
 
 Florian
 
 
  -Original Message-
  From: Serge Fonville [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 03, 2008 4:44 PM
  To: Tomcat Users List
  Subject: Re: Custom Error Messages (5xx and 4xx)
 
  Hi,
 
  Look at
 
 http://java.sun.com/developer/EJTechTips/2003/tt0114.html,
  especially the text
  The string isErrorPage=true causes the Web container to
  define a new
  implicit variable, exception, that the JSP page can use
  in scriptlets or
  in custom tags. For example, the error page for the
 current
  example uses the
  exception object to report the name of the class that
  caused the
  exception:
  Basically when at the top of the jsp you specify
  isErrorPage=true, you have
  a variable exception that contains the thrown exception
 
  Hope this helps
 
  Regards,
 
  Serge Fonville
  On Mon, Nov 3, 2008 at 10:31 PM, Rob Mercer
  [EMAIL PROTECTED]wrote:
 
   Hey all,
  
  I'm trying to setup custom error
 messages
  in Tomcat
   6.0.14. I've got the following entry in web.xml:
  
  
  
   !-- Error configuration  --
  
error-page
  
  error-code404/error-code
  
  location/error_pages/404.jsf/location
  
/error-page
  
  
  
error-page
  
  error-code500/error-code
  
  location/error_pages/500.jsf/location
  
/error-page
  
   
  
  
  
   And I've got a much less scary set of pages setup but I
  was wondering if
   there was a 

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: java.lang.ClassNotFoundException:
org.apache.catalina.startup.Bootstr,ap

I think maybe yep still.


I'm not saying the doc is perfect (far from it), but the OP downloaded the 
source, not the binary.


I believe it is really not clear what you get when on the
download page,


Binary vs source isn't clear?


Yes, Chuck, that part is clear.
Maybe I'm just starting like someone else, answering questions that 
aren't asked (yet). ;-)
What I meant was simply that, *had* the OP not downloaded a version 
already, but *had* he been wondering which version to download, and 
*had* he been considering the information in the on-line documentation 
wondering which version he *should* download, then it *would* not 
necessarily have been clear to him.
Which is, maybe, why he downloaded the source version rather than either 
the zip or service version in the first place.


So maybe we should ask to OP himself to indicate what was his ultimate 
aim in downloading a Tomcat for Windows : simply to run it as a service 
(in which case the service installer may be the better choice), or to 
run it also on the command-line, play around with the .bat settings etc..


By the way, as long as you're there and in a chatty mood, why are there 
two versions for Windows, and what would be the best usage of the one or 
the other version ?


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



Re: Deployment Web App on Debian

2008-11-10 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zaki Akhmad wrote:
 java.security.AccessControlException: access denied
 (java.util.PropertyPermission org.apache.tapestry.enable-reset-service
 read)

As already noted you have the security manager enabled (which is the default on 
Debian). Edit /etc/default/tomcat5.5 to disable it, or add the necessary 
permissions in a file in /etc/tomcat5.5/policy.d.

Cheers,

Marcus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkX+2MACgkQXjXn6TzcAQmOhwCgtwAbRR+JEHTYv0+PxHb+6ZYN
9FQAoLp/oG+Z2N509ziJUMgAGYXuY3za
=TPqU
-END PGP SIGNATURE-



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



RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap

 why are there two versions for Windows, and what would
 be the best usage of the one or the other version ?

Now that's a good question.  Since I'm not privy to the designers' thought 
processes, I can only speculate that the .exe version is for novices who don't 
know how to actually use a computer.  Although the .exe slightly simplifies the 
service installation, its failure to include the scripts makes it a non-starter 
for me; if I had a vote, I'd get rid of it.

By the way, there aren't two versions for Windows, but three: the tarball works 
fine (just as the .zip does on Linux), as long as you have something on Windows 
with which to extract the files.

 - Chuck


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

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



Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: java.lang.ClassNotFoundException:
org.apache.catalina.startup.Bootstr,ap

why are there two versions for Windows, and what would
be the best usage of the one or the other version ?


Now that's a good question.  Since I'm not privy to the designers' thought 
processes, I can only speculate that the .exe version is for novices who don't 
know how to actually use a computer.
Not everyone who drives a car is, or wants to be, a mechanic. It only 
very seldom helps.


  Although the .exe slightly simplifies the service installation, its 
failure to include the scripts makes it a non-starter for me; if I had a 
vote, I'd get rid of it.


By the way, there aren't two versions for Windows, but three: the tarball works 
fine (just as the .zip does on Linux), as long as you have something on Windows 
with which to extract the files.

So one could then say that the zip and tarball versions are totally 
identical, just packed with a different utility ?


An additional pointed question, about the .zip and tarball versions 
(assuming one can unpack it on the platform of choice) :
There was a time when a pure java program did not work very well as a 
Windows Service. Such as, if started from a command window, it would be 
killed whenever the user who originally started it, logged out of his 
Windows session.
It was my understanding that this was at least one reason why the 
Commons Daemon wrapper (procrun) was developed, to wrap the JVM in 
such a way that it did not do that.


Now, is this still the case, and/or (mixture of questions here) :
a) the zip/tarball version also include whatever is needed to wrap the 
JVM and Tomcat into the Windows Service wrapper ?
b) the JVM nowadays handles this fine on its own, and does not need the 
wrapper anymore ?
c) you really need the wrapped version if you want to run Tomcat as a 
service, and only the Service installer provides that wrapper ?



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



RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap

 Not everyone who drives a car is, or wants to be, a mechanic. It only
 very seldom helps.

True; but if you're at the point where you're installing Tomcat, I think some 
prerequisite knowledge is expected.  It's not just cranking up Word to create 
the family newsletter.

 So one could then say that the zip and tarball versions are totally
 identical, just packed with a different utility ?

As far as I can tell, yes.

 There was a time when a pure java program did not work very
 well as a Windows Service. Such as, if started from a command
 window, it would be killed whenever the user who originally
 started it, logged out of his Windows session.

??? If it's running from a command window, it's not a service.

 It was my understanding that this was at least one reason why the
 Commons Daemon wrapper (procrun) was developed, to wrap the JVM in
 such a way that it did not do that.

Yes, procrun greatly simplifies turning the JVM into a service, but I doubt 
that it's the only way.

 a) the zip/tarball version also include whatever is needed to wrap the
 JVM and Tomcat into the Windows Service wrapper ?

Yup, even the tarball includes the Windows scripts and .exe programs.  Use the 
service.bat script to install or remove the service.

 b) the JVM nowadays handles this fine on its own, and does
 not need the wrapper anymore ?

It's not a problem with the JVM, but with how Windows likes to kick off 
services.  It might be possible to set up a Java-based service without procrun, 
but I haven't played with it, since procrun makes it so easy.

 c) you really need the wrapped version if you want to run Tomcat as a
 service, and only the Service installer provides that wrapper ?

Yes to the first part (for practical purposes), no to the second.

 - Chuck


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



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



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



Re: Apache / Tomcat Cluster Worker Fails and Entire Cluster becomes Unavailable

2008-11-10 Thread DHM
Hi -

Based on your suggestion which I do appreciate we added timeouts for
connect, pre_post and connection_pool so now the workers looks like:

worker.list=loadbalancer
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=cbap1,cbap2
worker.loadbalancer.sticky_session=1
worker.cbap1.port=8690
worker.cbap1.host= edited for privacy
worker.cbap1.type=ajp13
worker.cbap1.lbfactor=10
worker.cbap1.socket_keepalive=1
# worker.cbap1.cachesize=5
worker.cbap1.connect_timeout=1
worker.cbap1.prepost_timeout=5000
worker.cbap1.connection_pool_timeout=7000

This has helped me with another issue very well that we didn't pay attention
to before which was connections.  Our connections were going way too high
and not recovering after a Sun Cluster Patch we did.  Now we see a nice
steady set of connections which seems much better.

BUT... we had another issue again today where 1 of my cluster members went
into an error state but the whole cluster seemed hung.  Summary of log
findings show:  After running 10 days with decent activity 1 of my workers
has an issue.  Events happened as follows:

1 - Ap 1 becomes unstable with a OutOfMemoryError: PermGen space error -
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space.  We are reviewing Max sizes for
that to avoid

2 - Ap 1 limps along but due to new connection settings take effect I can
see Ap 1 is declared in an error state - Mon Nov 10 15:47:43 2008]
[4673:0001] [info]  service::jk_lb_worker.c (906): service failed, worker
cbap1 is in error state

3 - In my 1 Web and 2 App server cluster the application speed is severely
impacted to point of being unusable.

4 - Cannot shutdown the App1 gracefully.  It has to be killed from command
prompt.

5 - Cluster performance returns as now App 1 is dead.

6 - Restart App 1

7 - App2 sees that the member has joined but cannot establish a Cluster with
it.  So now with OSCACHE we are trying to re-establish cache of objects in
memory management.

Nov 10, 2008 4:05:52 PM
com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener
memberJoined
INFO: A new member at address 'EDITED' has joined the cluster
bufferedreader ready: false

Nov 10, 2008 4:05:58 PM org.jgroups.protocols.FD_SOCK run
SEVERE: socket address for EDITED could not be fetched, retrying
fetchEstimateSpec = 413
Nov 10, 2008 4:06:06 PM org.jgroups.protocols.FD_SOCK run
SEVERE: socket address for EDITED could not be fetched, retrying
Nov 10, 2008 4:06:15 PM org.jgroups.protocols.FD_SOCK run

8 - Now the cluster cannot manage memory properly .  Causing the cluster to
Synch on it's objects.  Which is the alternative to the clustering of memory
objects.  THis is not desirable.

9 - Decide to stop Tomcat on Ap2.  Cannot.  It also has to be killed.

10 - Bring Ap2 up and then cluster rejoins normally.  Running OK again.

So from the event which occurred on App1 I have to go through and eventually
kill both App Servers  which is not ideal.

Questions -

What else to look for on handling of the member when it goes into Error
State and Cluster is still being taken down with it?

Thanks!

On Wed, Oct 15, 2008 at 12:48 AM, Mladen Turk [EMAIL PROTECTED] wrote:

 DHM wrote:

 Hi -

 worker.list=loadbalancer
 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=cbap1,cbap2
 worker.loadbalancer.sticky_session=1
 worker.cbap1.port=8690
 worker.cbap1.host= edited for privacy
 worker.cbap1.type=ajp13
 worker.cbap1.lbfactor=10
 worker.cbap1.socket_keepalive=1
 # worker.cbap1.cachesize=5


 worker.cbap2.port=8690
 worker.cbap2.host=edited for privacy
 worker.cbap2.type=ajp13
 worker.cbap2.lbfactor=10
 worker.cbap2.socket_keepalive=1
 # worker.cbap2.cachesize=5



 I am looking for suggestion as to other configuration properties which
 should be added to help with error handling of the worker in error
 state.  Or other points to review welcome.
 THANK YOU for any help here.


 You should add connect_timeout and prepost_timeout to
 each of the ajp workers. Those are exactly meant to
 be used with hanged Tomcats.

 Regards
 --
 ^(TM)

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




URL Mapping behind a router

2008-11-10 Thread David.Meldrum
I am deploying my tomcat server behind a router.  I have the router port 
forwarding working and I can hit the top index.html page fine.  My 
problem is that when I try to redirect to a JSP's or html page.  Tomcat 
changes the url address from the original which was really the routers 
name to the localhost's name, which will not work from outside the LAN.


Example:
router name: MyName.org
Tomcat host name:  Server

So from the outside a URL like  http://MyName.org:8080/  goes thru the 
router and lands on Server:8080  as it should and things work fine.  Now 
within the application there is a redirect to:  /project/MyJSP.  Tomcat 
rewrite this as:
http://Server:8080/project/MyJSP, but it needs to be:  
http://MyName.org:8080/project/MyJsp.  In other words Tomcat is changing 
the URL to be the name of the server (as defined by the OS), not the 
original URL.


My server.xml contains:
 Engine name=Catalina defaultHost=MyName.org
and
 host name=MyName.org  appbase=webapps
  ...
 ...
/host

Any ideas where I am going wrong?
-d


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



Re: URL Mapping behind a router

2008-11-10 Thread David.Meldrum
As Gilda Radner would say NEVER MIND!  I had some absolute paths in my 
hrefs instead of relative paths.  Shame on me!

-d

David.Meldrum wrote:
I am deploying my tomcat server behind a router.  I have the router 
port forwarding working and I can hit the top index.html page fine.  
My problem is that when I try to redirect to a JSP's or html page.  
Tomcat changes the url address from the original which was really the 
routers name to the localhost's name, which will not work from outside 
the LAN.


Example:
router name: MyName.org
Tomcat host name:  Server

So from the outside a URL like  http://MyName.org:8080/  goes thru the 
router and lands on Server:8080  as it should and things work fine.  
Now within the application there is a redirect to:  /project/MyJSP.  
Tomcat rewrite this as:
http://Server:8080/project/MyJSP, but it needs to be:  
http://MyName.org:8080/project/MyJsp.  In other words Tomcat is 
changing the URL to be the name of the server (as defined by the OS), 
not the original URL.


My server.xml contains:
 Engine name=Catalina defaultHost=MyName.org
and
 host name=MyName.org  appbase=webapps
  ...
 ...
/host

Any ideas where I am going wrong?
-d


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





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



Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: java.lang.ClassNotFoundException:
org.apache.catalina.startup.Bootstr,ap

Not everyone who drives a car is, or wants to be, a mechanic. It only
very seldom helps.


True; but if you're at the point where you're installing Tomcat, I think some 
prerequisite knowledge is expected.  It's not just cranking up Word to create 
the family newsletter.
True too.  But there are a lot of people who just want to do very smart 
things *under* Tomcat, without necessarily wanting to spend a lot of 
time dealing with installing it, or configuring its log files (could not 
stop myself adding that one).





So one could then say that the zip and tarball versions are totally
identical, just packed with a different utility ?


As far as I can tell, yes.





There was a time when a pure java program did not work very
well as a Windows Service. Such as, if started from a command
window, it would be killed whenever the user who originally
started it, logged out of his Windows session.


??? If it's running from a command window, it's not a service.

No, I really meant that even if you would start it *as a service* from a 
command window (like net start servicename), it would still kill that 
service when you logged off.  Really.  Do not ask me what the exact 
reason was, but it did that.



It was my understanding that this was at least one reason why the
Commons Daemon wrapper (procrun) was developed, to wrap the JVM in
such a way that it did not do that.


Yes, procrun greatly simplifies turning the JVM into a service, but I doubt 
that it's

 the only way.


The basic reason is that Windows expects to be able to send messages 
to Windows services, such as please suspend, or stop now, and that 
these messages are supposed to be looked at by the program in question, 
and it is supposed to react to them and tell Windows ok, seen it, done 
that, within a given period of time.  That's the kind of thing that 
procrun does (I think), and that maybe the JVM by itself doesn't.

Or maybe now it does, I don't know, and that's why I asked.

Maybe someone else can confirm/deny that ?


a) the zip/tarball version also include whatever is needed to wrap the
JVM and Tomcat into the Windows Service wrapper ?


Yup, even the tarball includes the Windows scripts and .exe programs.

  Use the service.bat script to install or remove the service.



b) the JVM nowadays handles this fine on its own, and does
not need the wrapper anymore ?


It's not a problem with the JVM, but with how Windows likes to kick off 
services.
Well, that is one slightly biased point of view. Unix/Linux do things 
one way to run daemons, Windows does it another way and calls them 
services.  If the JVM, which pretends to be multi-platform (including 
Windows) cannot handle that, then it loses an argument on being really 
multi-platform, doesn't it ?

Not that I'm a fan of Windows myself, but fair is fair.

Anyway, to wrap this up, how do we get the official Tomcat download 
and setup pages to say all this more clearly than they do at present ? 
Just for the sake of avoiding those recurring questions.

Like :
Tomcat is a Java application, so it is multi-platform by definition, 
and you can run the exact same version under Unix/Linux or Windows.  The 
default (or main or official) version is the one you get in the zip 
or the tar.gz distribution, and they both contain the same files. Any 
one of them can be used to install and run Tomcat under Unix/Linux or 
under Windows.  Only, the contained .bat scripts are the ones to use 
under Windows, and the .sh scripts are to be used under Unix/Linux.


There is also a special Windows-only pre-packaged version, named 
Windows service installer, which contains slightly less files, but 
makes it easier for you if all you want is run Tomcat as a Windows 
service and be done with it.  It has a GUI installer like Windows users 
are used to, and automatically installs Tomcat as a service for you, 
with all the required parameters already pre-defined so as to make it 
really easy.  It also has a GUI program to change the service startup 
parameters should you need to.
But if you want to run Tomcat also in a command window, or want to play 
around with the startup scripts etc.., then download and use the zip 
version instead.  It will also allow you to run Tomcat as a Windows 
service, but the setup for that requires a little more work.






P.S.
We need a third OS contender one of these days, or it is going to get 
really boring. In Europe we know all about that, none of this R. vs D. 
-only kind of stuff. It's a lot more fun with some far-left, far-right, 
greens, liberals and nationalists to keep things interesting.
Just imagine R/D hung 45/45, and Ms Hilton with 10 in the middle holding 
the balance..


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, 

Setting up context.xml for an application

2008-11-10 Thread Tim Dean
I have an application that requires some settings in a Context  
configuration element. For a variety of reasons, I do not want to  
include the context.xml in my app's META-INF path within the WAR file.  
Based on the Tomcat 6 documentation, it seems like I should be able to  
define a $TOMCAT_HOME/Catalina/localhost/MyApp.xml file for the  
application with a context root of /MyApp. That's what I've been  
trying to do.


The problem is that the file gets deleted every time a redeploy a new  
MyApp.war file to the webapps folder. Perhaps this would stop  
happening if I disable auto-deployment, but I really want to keep auto- 
deployment on while I'm deploying frequently.


Is there something I'm missing? Is there a way to define app-specific  
context that does not get deleted every time I redeploy the app?


Thanks

- Tim

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



RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap

 Anyway, to wrap this up, how do we get the official Tomcat
 download and setup pages to say all this more clearly
 than they do at present ?

Submit a bugzilla entry with the patch for the suggested text; the Tomcat doc 
is part of its source code.

 It's a lot more fun with some far-left, far-right, greens,
 liberals and nationalists to keep things interesting.

In this state (Minnesota), we actually do have a semi-viable 3rd party; their 
US Senate candidate managed to garner about 15% of the vote last week.  
Unfortunately, they run few candidates in the state elections, so they usually 
don't have too much of an impact other than as spoilers.  There are certainly 
some things to be said for a multi-party parliamentary system.

 Just imagine R/D hung 45/45, and Ms Hilton with 10 in the
 middle holding the balance..

Could be worse, could be Italian politics...  (and yes, Caldarale is Italian; 
I'm in occasional contact with relatives there).

 - Chuck


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

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



RE: Setting up context.xml for an application

2008-11-10 Thread Caldarale, Charles R
 From: Tim Dean [mailto:[EMAIL PROTECTED]
 Subject: Setting up context.xml for an application

 Is there something I'm missing? Is there a way to define app-specific
 context that does not get deleted every time I redeploy the app?

Don't think so.

Why don't you modify your deployment script to copy the .xml file over along 
with the .war?

 - Chuck


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

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



Re: Context level logging

2008-11-10 Thread Jonathan Mast
Well I did everything I said I would above and Catalina.out kept on
receiving the System errors and the specified file didn't receive anything.
So I guess it was a failure.

I do believe you can specify in the web app deployment descriptor more
detailed logging, but I haven't had time to test it out.

Sorry I couldn't help ya out more.

Good luck

On Mon, Nov 10, 2008 at 10:30 AM, blacksheep [EMAIL PROTECTED] wrote:


 I wonder you came up with a solution ?


 Jonathan Mast-2 wrote:
 
  OK, i have a webapp which has it's own context element.  I want all the
  System.out and System.err stuff from this webapp to go to it's own
 special
  log file as opposed to catalina.out.  My reading of the Tomcat docs
  (version
  5.5) seems to indicate that I can do this by following these steps:
 
  1. set the swallowOutput attribute to true in the Context entry in
  server.xml
  2. add the following to the logging.properties file:
 
  6FOOAPP.org.apache.juli.FileHandler
 
  6FOOAPP.org.apache.juli.FileHandler.level = FINE
  6FOOAPP.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  6FOOAPP.org.apache.juli.FileHandler.prefix = FOOAPP.
 
 
 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].level
  = FINE
 
 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].handlers
  = 6FOOAPP.org.apache.juli.FileHandler
 
  3. restart Tomcat
 
  Is this correct?
 
  The last 2 lines of the edit I really don't understand.
 
  thanks
 
 

 --
 View this message in context:
 http://www.nabble.com/Context-level-logging-tp17630343p20422122.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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




RE: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread Martin Gainty

i always thought garrison keiler should run for political office..at least to 
represent the norwegian bachelors
Takk/
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Date: Mon, 10 Nov 2008 15:56:38 -0600
 Subject: RE: java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Bootstr,ap
 
  From: André Warnier [mailto:[EMAIL PROTECTED]
  Subject: Re: java.lang.ClassNotFoundException:
  org.apache.catalina.startup.Bootstr,ap
 
  Anyway, to wrap this up, how do we get the official Tomcat
  download and setup pages to say all this more clearly
  than they do at present ?
 
 Submit a bugzilla entry with the patch for the suggested text; the Tomcat doc 
 is part of its source code.
 
  It's a lot more fun with some far-left, far-right, greens,
  liberals and nationalists to keep things interesting.
 
 In this state (Minnesota), we actually do have a semi-viable 3rd party; their 
 US Senate candidate managed to garner about 15% of the vote last week.  
 Unfortunately, they run few candidates in the state elections, so they 
 usually don't have too much of an impact other than as spoilers.  There are 
 certainly some things to be said for a multi-party parliamentary system.
 
  Just imagine R/D hung 45/45, and Ms Hilton with 10 in the
  middle holding the balance..
 
 Could be worse, could be Italian politics...  (and yes, Caldarale is 
 Italian; I'm in occasional contact with relatives there).
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See how Windows® connects the people, information, and fun that are part of 
your life
http://clk.atdmt.com/MRT/go/119463819/direct/01/

Tomcat Error V 5.5

2008-11-10 Thread deepak a.l
Hi All,

I'm facing the below error while starting the Tomcat Server V5.5, It gives me 
the below pop up message.

Please help me to resolve the error.



quote: 




Server Tomcat v5.5 Server at localhost was unable to start within 45 seconds. 
If the server requires more time, try increasing the timeout in the server 
editor.


Please help me to resolve this error.
Can you please tell me why the Tomcat Server is not starting within 45 seconds 
?? 







Help provided will be highly appreciated.

Please need help ranchers,I'm stuck with this issue


Thanks and Regards,
Deepak A L