Adjust max memory usage in Tomcat

2008-04-18 Thread Alexander Diedler
Hello,

How Can I adjust the maximum memory usage for Tomcat process?

 

Greetings

Alexander Diedler

 



RE: Tomcat JSP issues

2008-04-18 Thread Antonio Vidal Ferrer
Hi Landon,


Check if you have jasper.jar in you’re the application you recently added. If 
so, remove it  and restart tomcat. Then try again.

Best,

Toni

-Original Message-
From: Landon Fabbricino [mailto:[EMAIL PROTECTED] 
Sent: jueves, 17 de abril de 2008 21:30
To: users@tomcat.apache.org
Subject: Tomcat JSP issues

Hello,

We are using Apache Tomcat/6.0.16 and when we go to the sample JSP
pages or our own jsp application, it breaks with a servlet exception.
(BTW servlets are still working).  When I first installed tomcat all of
the example jsp loaded correctly, just recently (after added a new
application war file) they stopped loading - not sure if it was from the
application war file addition or not..

http://localhost:8080/examples/jsp/jsp2/simpletag/hello.jsp 
When we go to this page, here is the following error we see.
—
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.AbstractMethodError:
javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.AbstractMethodError:
javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;

org.apache.jsp.jsp.jsp2.el.basic_002darithmetic_jsp._jspInit(basic_002darithmetic_jsp.java:22)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.
—


Any suggestions would be very much appreciated.

Thanks in advanced.

Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
[EMAIL PROTECTED]

IMPORTANT NOTICE ! 
This E-Mail transmission and any accompanying attachments may contain
confidential information intended only for the use of the individual or
entity named above. Any dissemination, distribution, copying or action
taken in reliance on the contents of this E-Mail by anyone other than
the intended recipient is strictly prohibited and is not intended to, in
anyway, waive privilege or confidentiality. If you have received this
E-Mail in error please immediately delete it and notify sender at the
above E-Mail address.  
Agrium uses state of the art anti-virus technology on all incoming and
outgoing E-Mail. We encourage and promote the use of safe E-Mail
management practices and recommend you check this, and all other E-Mail
and attachments you receive for the presence of viruses. The sender and
Agrium accept no liability for any damage caused by a virus or otherwise
by the transmittal of this E-Mail. 


-
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: mod_jk load balancing intelligence

2008-04-18 Thread Mladen Turk

Eddie Yee wrote:

Hi,
 
We use a combination of Tomcat 5.5.25, mod_jk (v1.25) and sun one web server (v6.1).The Sun Java web server points to 5 instances of tomcat as specified in our obj.conf and worker.properties.   
 
I know that currently if the application is not in a started state and Tomcat is up and running, mod_jk will still send traffic to that instance.  Is there any way to prevent sending traffic to an application in a stopped state, or is this behavior by design, or just bad configuration?
 


Mod_jk doesn't have per-application configuration.
However you can create multiple load balancers each pointing
to the same set of nodes and then mount each balancer
to each particular application.
When the application is down, you disable the entire
load balancer.
Of course this is feasible only for a small set of applications.

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]



Re: How to detect database for Tomcat JDBC Realm is down

2008-04-18 Thread Ivan Cheung
Hi,

>
> I am building a web app and was able to setup digest authentication
>
> I am testing the app when I take the database that contains the username
> password down
>
> The tomcat log file show this
>
> java.sql.SQLException: No operations allowed after connection closed.
> at com.mysql.jdbc.Connection.checkClosed(Connection.java:2647)
> at com.mysql.jdbc.Connection.commit(Connection.java:1039)
> at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:563)
> at org.apache.catalina.realm.RealmBase.getDigest(RealmBase.java:1091)
>
> I have setup the WEB-INF/web.xml to trap this error to show a custom error
> page
>
>   
> java.sql.SQLException
> /server_rdbms_error.html
>   
>
> however tomcat is not showing the custom error page and it keep popping
> the login page over and over again.
>
> I was wondering if someone can tell me what is the proper way to setup the
> custom error page when the database is down and authentication fail.
>
> Please reply to me direct since I am not on the alias.
>
> Thanks,
> Ivan
>


Activating jmx under linux

2008-04-18 Thread JLucas ZB
Hello,

I still have probs in configuring jmx under my Tomcat hosted by Linux
Here is an excerpt of $TOMCAT_HOME/bin/catalina.sh

# - Execute The Requested Command -

export CATALINA_OPTS="-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port= 
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"

echo "Using CATALINA_BASE:   $CATALINA_BASE"
echo "Using CATALINA_HOME:   $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "Using CATALINA_OPTS: $CATALINA_OPTS"
echo "Using JAVA_HOME:   $JAVA_HOME"

The processes list:

 T O M C A T -
root   380 1  3 11:31 pts/5    00:00:04 
/home/jlzb/apps/j2sdk1.4.2_08/bin/java 
-Dcom.sun.management.jmxremote-Dcom.sun.management.
jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/home/
jlzb/apps/jakarta-tomcat-5.0.28/common/endorsed -classpath 
/home/jlzb/apps/j2sdk1.4.2_08/lib/tools.jar:/home/jlzb/apps/jakarta-tomcat-5.0.
28/bin/bootstrap.jar:/home/jlzb/apps/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar
 -Dcatalina.base=/home/jlzb/apps/jakarta-tomcat-5.0.
28 -Dcatalina.home=/home/jlzb/apps/jakarta-tomcat-5.0.28 
-Djava.io.tmpdir=/home/jlzb/apps/jakarta-tomcat-5.0.28/temp 
org.apache.catalina.s
tartup.Bootstrap start
 A P A C H E -
root 32753 1  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32755 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32756 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32758 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32760 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
[EMAIL PROTECTED]::/home/jlzb/apps/jakarta-tomcat-5.0.28/conf]#

The -Dcom.sun.management.jmxremote.port jvm argument seems to be well set but I 
can't access Tomcat through jmx console; netstat -an don't show the  port:

Proto Recv-Q Send-Q Adresse locale  Adresse distante    Etat
tcp    0  0 0.0.0.0:32769   0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:2049    0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:741 0.0.0.0:*   LISTEN
tcp    0  0 10.0.0.20:5000            0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:631 0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:25    0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:37435 0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:8005  :::*    LISTEN
tcp    0  0 :::8009 :::*    LISTEN
tcp    0  0 :::8080 :::*    LISTEN
tcp    0  0 :::80   :::*    LISTEN
tcp    0  0 :::22   :::*    LISTEN
tcp    0  0 ::1:25  :::*    LISTEN
tcp    0  0 10.0.0.20:22  10.0.0.59:4642    ESTABLISHED
tcp    0  0 10.0.0.20:22  10.0.0.59:4736    ESTABLISHED
tcp    0 53 10.0.0.20:22  10.0.0.23:1954    FIN_WAIT1
tcp    0  0 10.0.0.20:22  10.0.0.23:1961    ESTABLISHED
tcp    0  0 10.0.0.20:22  10.0.0.23:1944    TIME_WAIT
udp    0  0 0.0.0.0:32768   0.0.0.0:*
udp    0  0 0.0.0.0:2049    0.0.0.0:*
udp    0  0 0.0.0.0:32770   0.0.0.0:*
udp    0  0 0.0.0.0:740 0.0.0.0:*
udp    0  0 0.0.0.0:5353    0.0.0.0:*
udp    0  0 0.0.0.0:111 0.0.0.0:*
udp    0  0 0.0.0.0:631 0.0.0.0:*

There's no error within log file
What's wrong

Thanks

JLucas

Re: Activating jmx under linux

2008-04-18 Thread Upul Godage
Check whether /etc/hosts has the host name resolved to machine ip address.
Something like this. I remember we had a JMX issue and this resolved it.

10.100.1.123 myhost

Upul




On Fri, Apr 18, 2008 at 3:26 PM, JLucas ZB <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I still have probs in configuring jmx under my Tomcat hosted by Linux
> Here is an excerpt of $TOMCAT_HOME/bin/catalina.sh
>
> # - Execute The Requested Command
> -
>
> export CATALINA_OPTS="-Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=
> -Dcom.sun.management.jmxremote.ssl=false \
> -Dcom.sun.management.jmxremote.authenticate=false"
>
> echo "Using CATALINA_BASE:   $CATALINA_BASE"
> echo "Using CATALINA_HOME:   $CATALINA_HOME"
> echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
> echo "Using CATALINA_OPTS: $CATALINA_OPTS"
> echo "Using JAVA_HOME:   $JAVA_HOME"
>
> The processes list:
>
>  T O M C A T -
> root   380 1  3 11:31 pts/500:00:04
> /home/jlzb/apps/j2sdk1.4.2_08/bin/java
> -Dcom.sun.management.jmxremote-Dcom.sun.management.
> jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
> -Djava.endorsed.dirs=/home/
> jlzb/apps/jakarta-tomcat-5.0.28/common/endorsed -classpath
> /home/jlzb/apps/j2sdk1.4.2_08/lib/tools.jar:/home/jlzb/apps/jakarta-tomcat-5.0.
> 28/bin/bootstrap.jar:/home/jlzb/apps/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar
> -Dcatalina.base=/home/jlzb/apps/jakarta-tomcat-5.0.
> 28 -Dcatalina.home=/home/jlzb/apps/jakarta-tomcat-5.0.28
> -Djava.io.tmpdir=/home/jlzb/apps/jakarta-tomcat-5.0.28/temp
> org.apache.catalina.s
> tartup.Bootstrap start
>  A P A C H E -
> root 32753 1  0 11:31 ?00:00:00
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
> daemon   32755 32753  0 11:31 ?00:00:00
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
> daemon   32756 32753  0 11:31 ?00:00:00
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
> daemon   32758 32753  0 11:31 ?00:00:00
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
> daemon   32760 32753  0 11:31 ?00:00:00
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
> [EMAIL PROTECTED]::/home/jlzb/apps/jakarta-tomcat-5.0.28/conf]#
>
> The -Dcom.sun.management.jmxremote.port jvm argument seems to be well set
> but I can't access Tomcat through jmx console; netstat -an don't show the
>  port:
>
> Proto Recv-Q Send-Q Adresse locale  Adresse distanteEtat
> tcp0  0 0.0.0.0:32769   0.0.0.0:*   LISTEN
> tcp0  0 0.0.0.0:20490.0.0.0:*   LISTEN
> tcp0  0 0.0.0.0:741 0.0.0.0:*   LISTEN
> tcp0  0 10.0.0.20:50000.0.0.0:*
> LISTEN
> tcp0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
> tcp0  0 0.0.0.0:631 0.0.0.0:*   LISTEN
> tcp0  0 127.0.0.1:250.0.0.0:*   LISTEN
> tcp0  0 127.0.0.1:37435 0.0.0.0:*   LISTEN
> tcp0  0 127.0.0.1:8005  :::*LISTEN
> tcp0  0 :::8009 :::*LISTEN
> tcp0  0 :::8080 :::*LISTEN
> tcp0  0 :::80   :::*LISTEN
> tcp0  0 :::22   :::*LISTEN
> tcp0  0 ::1:25  :::*LISTEN
> tcp0  0 10.0.0.20:22  10.0.0.59:4642ESTABLISHED
> tcp0  0 10.0.0.20:22  10.0.0.59:4736ESTABLISHED
> tcp0 53 10.0.0.20:22  10.0.0.23:1954FIN_WAIT1
> tcp0  0 10.0.0.20:22  10.0.0.23:1961ESTABLISHED
> tcp0  0 10.0.0.20:22  10.0.0.23:1944TIME_WAIT
> udp0  0 0.0.0.0:32768   0.0.0.0:*
> udp0  0 0.0.0.0:20490.0.0.0:*
> udp0  0 0.0.0.0:32770   0.0.0.0:*
> udp0  0 0.0.0.0:740 0.0.0.0:*
> udp0  0 0.0.0.0:53530.0.0.0:*
> udp0  0 0.0.0.0:111 0.0.0.0:*
> udp0  0 0.0.0.0:631 0.0.0.0:*
>
> There's no error within log file
> What's wrong
>
> Thanks
>
> JLucas


Are there issues with running multiple instances of tomcat?

2008-04-18 Thread David Brown
We are currently running two instances of tomcat on our systems. One is for
a vendor specific application and the other is for in-house written
applications. We are careful to make sure the ports do not conflict and
there are plenty of resources to support both; memory and CPU.

Recently the statement has been made that the two instances can conflict
with each other and cause issues and instability with the applications.

 Is this true? I was under the impression that since they are in their own
JVM's neither tomcat would have any affect on the other. If there are issues
in what form may they take place?


Re: mod_jk load balancing intelligence

2008-04-18 Thread Rainer Jung

Mladen Turk schrieb:

Eddie Yee wrote:

Hi,
 
We use a combination of Tomcat 5.5.25, mod_jk (v1.25) and sun one web 
server (v6.1).The Sun Java web server points to 5 instances of 
tomcat as specified in our obj.conf and worker.properties.
I know that currently if the application is not in a started state and 
Tomcat is up and running, mod_jk will still send traffic to that 
instance.  Is there any way to prevent sending traffic to an 
application in a stopped state, or is this behavior by design, or just 
bad configuration?
 


Mod_jk doesn't have per-application configuration.
However you can create multiple load balancers each pointing
to the same set of nodes and then mount each balancer
to each particular application.
When the application is down, you disable the entire
load balancer.
Of course this is feasible only for a small set of applications.

Regards


Adding to Mladen's answer: if you have only one app per Tomcat, you can 
use the activation attribute of an LB member (active, disabled, stopped) 
to tell the LB, if it should send requests to the member. Look at 
"activation" in


http://tomcat.apache.org/connectors-doc/reference/workers.html

Another possibility is to use the attribute fail_on_status with a value 
of 503, because an existing but stopped Tomcat context will answer 
requests with http 503. You could check, whether 503 or -503 suites you 
better. See the same docs page.


Starting from 1.2.27 there will also be a possibility to express an 
activation state in the mapping table uriworkermap.properties, which 
would allow to disable or stop a forwarding per URL and per node.


Unfortunately the nsapi plugin doesn't actually support the forwarding 
via uriworkermap.properties. It only allows setting the uri to worker 
map via NameTrans in obj.conf. Something we could improve, but at the 
moment there seems to be no huge interest in the nsapi plugin.


Regards,

Rainer

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



RE: Are there issues with running multiple instances of tomcat?

2008-04-18 Thread Peter Crowther
> From: David Brown [mailto:[EMAIL PROTECTED]
> Sent: 18 April 2008 12:00
> To: users@tomcat.apache.org
> Subject: Are there issues with running multiple instances of tomcat?
>
> We are currently running two instances of tomcat on our
> systems. One is for
> a vendor specific application and the other is for in-house written
> applications. We are careful to make sure the ports do not
> conflict and
> there are plenty of resources to support both; memory and CPU.
>
> Recently the statement has been made that the two instances
> can conflict
> with each other and cause issues and instability with the
> applications.

That sounds like classic FUD unless the person concerned can back it up.  Who's 
trying to pass the buck for a problem?  The vendor or the in-house dev team? :-)

>  Is this true? I was under the impression that since they are
> in their own
> JVM's neither tomcat would have any affect on the other. If
> there are issues in what form may they take place?

They'll compete for resources (notably disk i/o and the overall system cache), 
but I'm not aware of any other issues.  I've seen one big production site run 
with three load-balanced Tomcats on one (big!) box, simply so that the 
organisation could restart one Tomcat instance at a time for upgrades.  I've 
not heard of any resulting instability or issues, but the standard disclaimer 
applies - it ain't my site, so I may not have heard everything!

- Peter

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



Lost contacts

2008-04-18 Thread Patrick Unthank
All,

Apologies for this contact. I contacting you due to a machine failure on
this end which has taken all my mail stored on my local machine, so I am
contacting all those I have contacted in the last 120 days to make sure
that if you are chasing me for a particular issue that you send your
mail again so that it does not drop off the radar. Apologies once again.


-- 
Yours Sincerely,

Patrick Unthank

Netbanx Technical Support

#==#
NetBanx Limited Disclaimer

Confidentiality:  This e-mail and its attachments are intended for the
above named only and may be confidential.  If they have come to you in
error you must take no action based on them, nor must you copy or show
them to anyone; please reply to this e-mail and highlight the error.

Security Warning:  Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a 100% secure communications
medium.  We advise that you understand and observe this lack of
security when e-mailing us.

Viruses:  Although we have taken steps to ensure that this e-mail and
attachments are free from any virus, we advise that in keeping with
good computing practice the recipient should ensure they are actually
virus free.
#==#


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

Re: NotSerializableException: StandardSessionFacade

2008-04-18 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
|> From: MassimoH [mailto:[EMAIL PROTECTED]
|> Subject: NotSerializableException: StandardSessionFacade
|>
|> I've inherited an legacy Java application and I'm getting
|> this error on startup.
|>
|> - IOException while loading persisted sessions:
|> java.io.WriteAbortedException: writing aborted;
|> java.io.NotSerializableException:
|
| It seems odd to get a WriteAbortedException during startup, since the
| session is being read back in.  Regardless, something stored in the
| session is not serializable, so it cannot be restored - which is also
| odd, since it must have been serializable in order to have been written
| out.

Actually, this is possible. You can have an object implement
Serializable and get it to properly serialize. But, if you don't have a
no-arg constructor for that class, you're out of luck when you try to
read it back in. I used to have a similar problem (slightly different
exception maybe) with an old webspp. So,it /is/ possible to have a
serializable yet non-deserializable object.

| Clearing out Tomcat's work directory to get rid of the persisted
| sessions should let you get through startup.

This shouldn't be a fatal error. All Tomcat versions I have used will
simply give-up restoring sessions and continue starting up.

The OP didn't post the entire stack trace, so it's tough to tell what's
really going on. Massimo, can you re-post the stack trace in its entirety?

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

iEYEARECAAYFAkgIig4ACgkQ9CaO5/Lv0PAS7ACgjd689XbjvcG7bUwN1CK1NPko
0OgAoLFUhfkeY0bvE74YvAZbbZYAs9Qk
=GWJW
-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: Can we slow down the speed of servlet response ?

2008-04-18 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Han,

Wang Han wrote:
| I have tried Thread.sleep() in my servlet and it fails.
| My NM app throws exception and can't handle such response..

What exception is thrown? I can't see a reason why Thread.sleep wouldn't
work.

- -chris

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

iEYEARECAAYFAkgIijwACgkQ9CaO5/Lv0PBFHACfaRiSezHeWHpnaPI/2NRyqGR2
nZsAn32xEYEJ3VzREBoDaFC3iLZyC7Q3
=Jnab
-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: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop

Yes, I know how to work around the problem. But I don't like workarounds. All 
implementations I can think of are very fragile. What if somebody stops my 
Tomcat with kill one day?

My session isn't destroyed, so I don't understand why the event is thrown.

Ronald.

On Thu Apr 17 15:49:49 CEST 2008 Tomcat Users List  
wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronald,

Ronald Klop wrote:
| In sessionDestroyed I register the user as logged out.
|
| How can I know if sessionDestroyed is called from session.invalidate()
| from the real expiration of the session or shutdown of one cluster node?

Are your shutdowns typically planned? If so, you could stick something
in the session like "shuttingDown192.168.1.123" and then check for that
key when you are processing a "session destroyed" event. Just ignore
such events from the current machine's IP address.

Or, you could even do something like this:

1. Before shutdown, place a "shutting down" key in the application scope.

2. Modify your sessionDestroyed code to do this:

public void sessionDestroyed(HttpSessionEvent se)
{
~ ServletContext application = se.getSession().getServletContext();

~ if(null != application.getAttribute("SHUTTING_DOWN"))
~ return;

~ // Otherwise, process the shutdown normally.
}

This should work given that the application scope is not distributed
across nodes in the cluster. You just put your node in a "shutdown"
state and then ignore all events (or any you care to ignore).

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

iEYEARECAAYFAkgHVX0ACgkQ9CaO5/Lv0PC27ACfdh2El6QLeI4LpHaoowJcfJ/Q
cOgAn1ocNzI8qXhax4cs/LLUJYSqWytT
=7EAa
-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: Are there issues with running multiple instances of tomcat?

2008-04-18 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Brown wrote:
| Recently the statement has been made that the two instances can conflict
| with each other and cause issues and instability with the applications.

By whom?

In production, we run 3 simultaneous and separate Tomcat 5.5 instances
with no problems whatsoever. They even share a modest machine (Intel P4
with 1GB RAM). No complaints whatsoever.

| Is this true? I was under the impression that since they are in their own
| JVM's neither tomcat would have any affect on the other. If there are
issues
| in what form may they take place?

As long as you trust both the hardware and the OS (and your apps not to
hog the CPU), the two should not interfere.

- -chris

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

iEYEARECAAYFAkgIkHMACgkQ9CaO5/Lv0PDppwCdEpxe9pBXI4XEypmsUdnw4bqK
u+AAoMK/Vwj/Jip/jY2QBFh+57qVfLy0
=rcwq
-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: Performace - long time to release connection

2008-04-18 Thread Jim Cox
Do you see the same behavior if you make a static .html page containing a
hard-coded JSON response and point your browser client at that URL?

On Wed, Apr 16, 2008 at 12:25 PM, Danilo Luiz Rheinheimer <
[EMAIL PROTECTED]> wrote:

> Jim,
>
>  Thanks for your help.
>
> I am not setting the content-length on my servlet
> code.
> But if I see the response headers (using firebug) I
> have this result :
>
> Content-Length: 4332
> Content-Type: text/html
>
> But another tool I have show me the page size as 4276.
>
> If I print the size of my response with :
>
> s.getBytes().length
>
> (where s is my response, see code on previous message)
>
> I get the value 4276.
> So I think you can be right on the cause of the
> problem.
>
> But how is the right way of set the content lenght ?
>
> I try this :
>
> // other data headers
> response.setDateHeader ("Expires", 0);
> response.setContentType("text/html");
> String s = ... // creates JSON String
> response.setContentLength(s.getBytes().length);
> PrintWriter w = response.getWriter();
> w.write(s);
> response.setStatus(HttpServletResponse.SC_OK);
>
> The problem still happens.
>
> Then I try this :
>
> byte[] data = s.getBytes();
>
> response.setContentLength(data.length);
>
> ServletOutputStream ouputStream =
> response.getOutputStream();
> ouputStream.write(data, 0, data.length);
> ouputStream.flush();
> ouputStream.close();
> response.setStatus(HttpServletResponse.SC_OK);
>
> But still no solution.
> The response header keep showing Content-Length=4332.
>
> How I can set the Content-Length in a reliable way ?
> From where this 4332 value comes from ?
>
> Danilo.
>
> --- Jim Cox <[EMAIL PROTECTED]> wrote:
>
> > Does the client get a "Content-length" header, and
> > if so does the actual
> > length of the response body match? If not it has to
> > either timeout or wait
> > for the server to close the connection.
> >
> > On Wed, Apr 16, 2008 at 11:33 AM, Danilo Luiz
> > Rheinheimer <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > >  I have a Java application running on a Tomcat
> > server
> > > (last version of the 5.5 serie). Java version is
> > 6.
> > >  I have a servlet inside this application who
> > returns
> > > json to the browser (if you do not know json it is
> > > just a text).
> > >  This process it taking a very long time,
> > something
> > > like  10 seconds.
> > >  I put some simple debug code inside my servlet to
> > > show how much time the servlet takes to process
> > it.
> > > The time is short like 0.5 seconds.
> > >  Still to the browser it takes 10 seconds !
> > >  If I type the servlet url on the browser I can
> > see
> > > it returns the result fast (the json shows on the
> > > browser screen after 0.5 seconds).
> > >  But it do not release the http connection to the
> > > server. It keeps the message 'receiving data from
> > ...'
> > > on the botton of the browser for almost 10
> > seconds.
> > >  There are not a big load on the server at the
> > moment
> > > of this tests. In fact it is only me.
> > >
> > >  The resumed servlet code is something like this :
> > >
> > >
> > response.setHeader("Cache-Control","no-cache");
> > >response.setHeader("Pragma","no-cache");
> > >response.setDateHeader ("Expires", -1);
> > >
> > response.setHeader("Cache-Control","no-store");
> > >response.setDateHeader ("Expires", 0);
> > >
> > >response.setContentType("text/html");
> > >
> > >String s = ... // creates JSON String
> > >PrintWriter w = response.getWriter();
> > >w.write(s);
> > >
> > >  As you can see very standard I think.
> > >  I have the no cache headers because the json is
> > > generated at every time and can not be cahed.
> > >
> > >  Someone has any idea of what the problem is ?
> > >
> > > Danilo.
> > >
> > >
> > >
> > >
> >
>
> 
> > > Be a better friend, newshound, and
> > > know-it-all with Yahoo! Mobile.  Try it now.
> > >
> >
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > >
> > >
> >
> -
> > > To start a new topic, e-mail:
> > users@tomcat.apache.org
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
>
>  
> 
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> -
> 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: Activating jmx under linux

2008-04-18 Thread JLucas ZB

 Hello,

the hostname is both defined at name server and /etc/hosts et it still don't 
work
On windows platform with the same jmx jvm options, it's OK

> Message du 18/04/08 12:49
> De : "Upul Godage" 
> A : "Tomcat Users List" , "JLucas ZB" 
> Copie à : 
> Objet : Re: Activating jmx under linux
> 
> Check whether /etc/hosts has the host name resolved to machine ip address. 
> Something like this. I remember we had a JMX issue and this resolved it. 
> 
> 10.100.1.123 myhost
> 
> Upul
>  
> 
> 
> 
> On Fri, Apr 18, 2008 at 3:26 PM, JLucas ZB <[EMAIL PROTECTED]> wrote:
>  Hello,
>  
>  I still have probs in configuring jmx under my Tomcat hosted by Linux
>  Here is an excerpt of $TOMCAT_HOME/bin/catalina.sh
>  
>  # - Execute The Requested Command 
> -
>  
>  export CATALINA_OPTS="-Dcom.sun.management.jmxremote 
> -Dcom.sun.management.jmxremote.port= 
> -Dcom.sun.management.jmxremote.ssl=false \
>  -Dcom.sun.management.jmxremote.authenticate=false"
>  
>  echo "Using CATALINA_BASE:   $CATALINA_BASE"
>  echo "Using CATALINA_HOME:   $CATALINA_HOME"
>  echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
>  echo "Using CATALINA_OPTS: $CATALINA_OPTS"
>  echo "Using JAVA_HOME:   $JAVA_HOME"
>  
>  The processes list:
>  
>   T O M C A T -
>  root   380 1  3 11:31 pts/5    00:00:04 
> /home/jlzb/apps/j2sdk1.4.2_08/bin/java 
> -Dcom.sun.management.jmxremote-Dcom.sun.management.
>  jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
> -Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/home/
>  jlzb/apps/jakarta-tomcat-5.0.28/common/endorsed -classpath 
> /home/jlzb/apps/j2sdk1.4.2_08/lib/tools.jar:/home/jlzb/apps/jakarta-tomcat-5.0.
>  
> 28/bin/bootstrap.jar:/home/jlzb/apps/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar
>  -Dcatalina.base=/home/jlzb/apps/jakarta-tomcat-5.0.
>  28 -Dcatalina.home=/home/jlzb/apps/jakarta-tomcat-5.0.28 
> -Djava.io.tmpdir=/home/jlzb/apps/jakarta-tomcat-5.0.28/temp 
> org.apache.catalina.s
>  tartup.Bootstrap start
>   A P A C H E -
>  root 32753 1  0 11:31 ?    00:00:00 
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
>  daemon   32755 32753  0 11:31 ?    00:00:00 
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
>  daemon   32756 32753  0 11:31 ?    00:00:00 
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
>  daemon   32758 32753  0 11:31 ?    00:00:00 
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
>  daemon   32760 32753  0 11:31 ?    00:00:00 
> /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
>  [EMAIL PROTECTED]::/home/jlzb/apps/jakarta-tomcat-5.0.28/conf]#
>  
>  The -Dcom.sun.management.jmxremote.port jvm argument seems to be well set 
> but I can't access Tomcat through jmx console; netstat -an don't show the 
>  port:
>  
>  Proto Recv-Q Send-Q Adresse locale  Adresse distante    Etat
>  tcp    0  0 0.0.0.0:32769   0.0.0.0:*   LISTEN
>  tcp    0  0 0.0.0.0:2049    0.0.0.0:*   LISTEN
>  tcp    0  0 0.0.0.0:741 0.0.0.0:*   LISTEN
>  tcp    0  0 10.0.0.20:5000            0.0.0.0:*   LISTEN
>  tcp    0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
>  tcp    0  0 0.0.0.0:631 0.0.0.0:*   LISTEN
>  tcp    0  0 127.0.0.1:25    0.0.0.0:*   LISTEN
>  tcp    0  0 127.0.0.1:37435 0.0.0.0:*   LISTEN
>  tcp    0  0 127.0.0.1:8005  :::*    LISTEN
>  tcp    0  0 :::8009 :::*    LISTEN
>  tcp    0  0 :::8080 :::*    LISTEN
>  tcp    0  0 :::80   :::*    LISTEN
>  tcp    0  0 :::22   :::*    LISTEN
>  tcp    0  0 ::1:25  :::*    LISTEN
>  tcp    0  0 10.0.0.20:22  10.0.0.59:4642    ESTABLISHED
>  tcp    0  0 10.0.0.20:22  10.0.0.59:4736    ESTABLISHED
>  tcp    0 53 10.0.0.20:22  10.0.0.23:1954    FIN_WAIT1
>  tcp    0  0 10.0.0.20:22  10.0.0.23:1961    ESTABLISHED
>  tcp    0  0 10.0.0.20:22  10.0.0.23:1944    TIME_WAIT
>  udp    0  0 0.0.0.0:32768   0.0.0.0:*
>  udp    0  0 0.0.0.0:2049    0.0.0.0:*
>  udp    0  0 0.0.0.0:32770   0.0.0.0:*
>  udp    0  0 0.0.0.0:740 0.0.0.0:*
>  udp    0  0 0.0.0.0:5353    0.0.0.0:*
>  udp    0  0 0.0.0.0:111 0.0.0.0:*
>  udp    0  0 0.0.0.0:631 0.0.0.0:*
>  
>  There's no error within log file
>  What's wrong
>  
>  Thanks
>  
>  JLucas
>  


Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop

On Fri Apr 18 14:16:33 CEST 2008 Christopher Schultz <[EMAIL PROTECTED]> wrote:

Ronald,

Ronald Klop wrote:
> Yes, I know how to work around the problem. But I don't like 
> workarounds. All implementations I can think of are very fragile. What 
> if somebody stops my Tomcat with kill one day?


Then I don't think that you will have to worry about processing 
sessionDestroyed messages ;)


Also, that is a somewhat remote possibility. Finally, marking a user as 
logged-out isn't the end of the world. You should only have to handle 
common cases, here, right?


> My session isn't destroyed, so I don't understand why the event is thrown.

Yes, the session is destroyed. The problem is that, semantically, you 
are thinking that session == app login, which is not true.


-chris





Mmm. But why does the client still have the same session after one node shuts 
down. The session doesn't live on one node. It lives as long as the cluster 
lives.
I understand the Session object in the JVM is destroyed, but one part of 
clustering (for me) is to replicate the Session object, so the 
'browser-session' lives on.
There is no way for me to detect if the browser-session expires or if the 
Session object expires except by hacking around with ugly if statements and 
making the deployement more difficult and fragile.

I think session.destroyed should only be called if the last node of the cluster 
shuts down. Or if the session expires by timeout.

But maybe our ideas just don't match. That's fine by me.

Ronald.


RE: Activating jmx under linux

2008-04-18 Thread Caldarale, Charles R
> From: JLucas ZB [mailto:[EMAIL PROTECTED] 
> Subject: Activating jmx under linux
> 
> root   380 1  3 11:31 pts/5    00:00:04 
> /home/jlzb/apps/j2sdk1.4.2_08/bin/java 
> -Dcom.sun.management.jmxremote-Dcom.sun.management.
> jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
> -Dcom.sun.management.jmxremote.authenticate=false 

Is there a typo in the above, or is there really a space missing between
  "-Dcom.sun.management.jmxremote"
and
  "-Dcom.sun.management.jmxremote.port="?

By the way, I don't think you need the first parameter if you have any other 
jmxremote settings.

 - 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: Activating jmx under linux

2008-04-18 Thread JLucas ZB
The space is not missing.
Now I've done your way:

  export CATALINA_OPTS="-Dcom.sun.management.jmxremote.port= 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false"

and the  port still does not appear !

 

> Message du 18/04/08 15:26
> De : "Caldarale, Charles R" 
> A : "Tomcat Users List" 
> Copie à : 
> Objet : RE: Activating jmx under linux
> 
> > From: JLucas ZB [mailto:[EMAIL PROTECTED] 
> > Subject: Activating jmx under linux
> > 
> > root   380 1  3 11:31 pts/5    00:00:04 
> > /home/jlzb/apps/j2sdk1.4.2_08/bin/java 
> > -Dcom.sun.management.jmxremote-Dcom.sun.management.
> > jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
> > -Dcom.sun.management.jmxremote.authenticate=false 
> 
> Is there a typo in the above, or is there really a space missing between
>   "-Dcom.sun.management.jmxremote"
> and
>   "-Dcom.sun.management.jmxremote.port="?
> 
> By the way, I don't think you need the first parameter if you have any other 
> jmxremote settings.
> 
>  - 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: Adjust max memory usage in Tomcat

2008-04-18 Thread Caldarale, Charles R
> From: Alexander Diedler [mailto:[EMAIL PROTECTED] 
> Subject: Adjust max memory usage in Tomcat
> 
> How Can I adjust the maximum memory usage for Tomcat process?

1) Learn how to use Java.

2) Read the Tomcat FAQ.
http://wiki.apache.org/tomcat/FAQ/Memory

3) Search the archives.
http://marc.info/?l=tomcat-user

4) Tell us what Tomcat version.

5) Tell us what JVM version.

6) Tell us the platform you're running on.

7) Tell us how you're running Tomcat (as a service or via scripts).

 - 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: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop

On Fri Apr 18 15:29:16 CEST 2008 Christopher Schultz <[EMAIL PROTECTED]> wrote:

Ronald,

Ronald Klop wrote:
> But why does the client still have the same session after one node 
> shuts down. The session doesn't live on one node. It lives as long as 
> the cluster lives.


That's a good point.

> I understand the Session object in the JVM is destroyed, but one part of 
> clustering (for me) is to replicate the Session object, so the 
> 'browser-session' lives on.


Fair enough.

> There is no way for me to detect if the browser-session expires or if 
> the Session object expires except by hacking around with ugly if 
> statements and making the deployement more difficult and fragile.
> 
> I think session.destroyed should only be called if the last node of the 
> cluster shuts down. Or if the session expires by timeout.


Unfortunately, I was unable to find any detail in the servlet 
specification, which means that implementors are free to do what they'd 
like in these situations. On the other hand, it means that you might 
have an opportunity to lobby the Tomcat folks to add a configuration 
parameter (similar to expireSessionsOnShutdown) to achieve the behavior 
you desire.


The problem is that sessionDestroyed can be used to support both 
resource release (kind of like a "finally" for sessions) as well as 
"logout" (in your case). For the former, it is very important for that 
event to fire, even on a single node being taken out of service. For 
others (such as yourself), it is inconvenient. It's hard to satisfy both 
requirements.


The Tomcat folks seem to have erred on the side of inclusivity (always 
send the event) because there are possibilities to work around it. If 
the event were never sent, there's no way to handle resource release at all.


Optional configuration sounds like a good choice.

-chris




Thanks for the explanation. I would implement the resource release stuff in a 
ContextListener or by ValueUnboundListeners, but that is another discussion.
My problem isn't that big in practice. Just the accounting of logouts is not 
100% correct. I'll think about something genius to work around it. If I can't 
think of anything I will try to lobby more.

Ronald.



RE: Activating jmx under linux

2008-04-18 Thread Caldarale, Charles R
> From: JLucas ZB [mailto:[EMAIL PROTECTED] 
> Subject: RE: Activating jmx under linux
> 
> /home/jlzb/apps/j2sdk1.4.2_08/bin/java 

Should have seen this before - you need a 1.5 or new JRE/JDK to do this.

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



Problem to deploy my webbapps

2008-04-18 Thread Fabien D.

Hi,

I'm developing a web application with wicket framework, under tomcat 6.0.16
and jdk 6 update 4. 

I'm trying to deploy my web application into a server debian :
My first try is with tomcat 5.5 and jdk5, and i have a problem to write in
the log file.

Now I'm trying to use tomcat 6.0.16 and jdk update 6.
I have updated the JAVA_HOME et PATH variables environnement. And when i
deploy and start the sever, i have this exception :
In catalina log :
GRAVE: Error filterStart
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/appWicket-1.0] suite aux erreurs
précédentes
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext
addApplicationListener



In localhost log :
GRAVE: Exception au démarrage du filtre appWicket
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:68)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:508)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

My research on internet, shows that this problem may due to :
"Base on your error log, your exception
"java.lang.UnsupportedClassVersionError: Bad version number in .class
file" indicates that you are trying to run a class compiled with newer
version of JDK.For example, you have compiled the class with JDK 5.0
and try to run on JDK 1.4.2."

But my i'm trying to run with jdk 6 update 6 classes compiled with jdk 6
update 4.

I don't understand! Thank you for your help.
-- 
View this message in context: 
http://www.nabble.com/Problem-to-deploy-my-webbapps-tp16763460p16763460.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: Problem to deploy my webbapps

2008-04-18 Thread Peter Crowther
> From: Fabien D. [mailto:[EMAIL PROTECTED]
[...]
> java.lang.UnsupportedClassVersionError: Bad version number in
> .class file
[...]
> But my i'm trying to run with jdk 6 update 6 classes compiled
> with jdk 6 update 4.

Are you *absolutely certain* you're not running Tomcat with an older JDK, such 
as a 1.5 JDK?  If you search your machine for Java installations, is the JDK6 
installation the *only* one?  And I do mean search, using find (on UNIX) or 
Find Files (on Windows) - don't just look in the obvious places!

What's your JAVA_HOME, if any?  Is it still the same inside Tomcat?

- Peter

-
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: NotSerializableException: StandardSessionFacade

2008-04-18 Thread MassimoH

The exception says that the class that can't be serialized is
StandardSessionFacade, which is an internal Tomcat class. That's what's
confusing me. If it was a class in my code, I would know what to hunt for.

Deleting work folder causes problem to go away. However, it will come back.

Thanks for the response.


Caldarale, Charles R wrote:
> 
>> From: MassimoH [mailto:[EMAIL PROTECTED] 
>> Subject: NotSerializableException: StandardSessionFacade
>> 
>> I've inherited an legacy Java application and I'm getting 
>> this error on startup.
>> 
>> - IOException while loading persisted sessions:
>> java.io.WriteAbortedException: writing aborted;
>> java.io.NotSerializableException:
> 
> It seems odd to get a WriteAbortedException during startup, since the
> session is being read back in.  Regardless, something stored in the
> session is not serializable, so it cannot be restored - which is also
> odd, since it must have been serializable in order to have been written
> out.  Clearing out Tomcat's work directory to get rid of the persisted
> sessions should let you get through startup.
> 
> If the webapp does actually store something non-serializable into the
> session, you can either fix the webapp, or turn off session persistence
> for that webapp.  Nest a  element inside the webapp's 
> element, and set the pathname attribute for the manager to an empty
> string.  The doc is here:
> http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
> 
>  - 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NotSerializableException%3A-StandardSessionFacade-tp16758759p16763480.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: NotSerializableException: StandardSessionFacade

2008-04-18 Thread Caldarale, Charles R
> From: MassimoH [mailto:[EMAIL PROTECTED] 
> Subject: RE: NotSerializableException: StandardSessionFacade
> 
> The exception says that the class that can't be serialized is
> StandardSessionFacade, which is an internal Tomcat class. 

That class was never intended to be serializable.  Looks like you have
some code in your webapp that's storing the session in the session...

 - 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: Problem to deploy my webbapps

2008-04-18 Thread Fabien D.

I have removed the older jdk, and it's worked.

I have another question, where i can find the script for the init.d???

Thank you
-- 
View this message in context: 
http://www.nabble.com/Problem-to-deploy-my-webbapps-tp16763460p16763502.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]



How to detect the database for JDBC Realm is down

2008-04-18 Thread Ivan Cheung
Hi,

I am building a web app and have setup digest authentication

I am testing the app when I take the database that contains the username
password down

The tomcat log file show this

(http-8443-Processor25) org.apache.catalina.core.ContainerBase.[Catalina]:
Exception performing authentication {
java.sql.SQLException: No operations allowed after connection closed.
at com.mysql.jdbc.Connection.checkClosed(Connection.java:2647)
at com.mysql.jdbc.Connection.commit(Connection.java:1039)
at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:563)
at org.apache.catalina.realm.RealmBase.getDigest(RealmBase.java:1091)

I have setup the WEB-INF/web.xml to trap this exception to show a custom
error page

  
java.sql.SQLException
/server_rdbms_error.html
  

however tomcat is not showing the custom error page and it keep popping up
the login page over and over again.

I was wondering if someone can tell me what is the proper way to setup the
custom error page when the database is down and authentication fail.

Thanks,
Ivan


Re: How to detect the database for JDBC Realm is down

2008-04-18 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ivan,

Please give someone a change to answer the question before you re-post.
24 hours is an absolute minimum.

- -chris

Ivan Cheung wrote:
| Hi,
|
| I am building a web app and have setup digest authentication
|
| I am testing the app when I take the database that contains the username
| password down
|
| The tomcat log file show this
|
| (http-8443-Processor25) org.apache.catalina.core.ContainerBase.[Catalina]:
| Exception performing authentication {
| java.sql.SQLException: No operations allowed after connection closed.
| at com.mysql.jdbc.Connection.checkClosed(Connection.java:2647)
| at com.mysql.jdbc.Connection.commit(Connection.java:1039)
| at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:563)
| at org.apache.catalina.realm.RealmBase.getDigest(RealmBase.java:1091)
|
| I have setup the WEB-INF/web.xml to trap this exception to show a custom
| error page
|
|   
| java.sql.SQLException
| /server_rdbms_error.html
|   
|
| however tomcat is not showing the custom error page and it keep popping up
| the login page over and over again.
|
| I was wondering if someone can tell me what is the proper way to setup the
| custom error page when the database is down and authentication fail.
|
| Thanks,
| Ivan
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgIyQQACgkQ9CaO5/Lv0PB1gQCfeW4Kpl/TYgLJhtBTLFkxCQ5c
jMwAni8wNXo7g3XIgybNU1VXm3InpKhz
=8HJ4
-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: Are there issues with running multiple instances of tomcat?

2008-04-18 Thread Gabe Wong

David Brown wrote:

We are currently running two instances of tomcat on our systems. One is for
a vendor specific application and the other is for in-house written
applications. We are careful to make sure the ports do not conflict and
there are plenty of resources to support both; memory and CPU.

Recently the statement has been made that the two instances can conflict
with each other and cause issues and instability with the applications.

 Is this true? I was under the impression that since they are in their own
JVM's neither tomcat would have any affect on the other. If there are issues
in what form may they take place?

  

David,
That is an unfounded superstition.
You can run multiple Tomcat (and different versions) on the same box.
Your only constraint is the available disk/RAM/CPU resources.

When you hear about private java hosting, it is essentially
a single box running 30 to 100 installations.


--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.0 - Centrally manage multiple physical servers


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

2008-04-18 Thread Steffen Heil
Hi

Sorry to ask again, but this is a common feature that I cannot find any
documentation for...

Is there really no documentation for tomcat embedded nor anyone who uses it?

Regards,
  Steffen
 

> -Original Message-
> From: Steffen Heil [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 15, 2008 10:36 PM
> To: 'Tomcat Users List'
> Subject: tomcat embedded
> 
> Hi
> 
> I am searching for some documentation about tomcat embedded.
> I am trying to convert a very simple setup (configuration 
> below) to java code, not using any xml file.
> 
> Any link, hint, etc. would be helpful.
> Could someone give me a hint?
> 
> Regards,
>   Steffen
> 
> 
> === server.xml 
> ==
> 
> 
>   
>  namePrefix="application-exec-"
> maxThreads="150" minSpareThreads="4" />
>  protocol="HTTP/1.1"
> connectionTimeout="2" />
>  protocol="HTTP/1.1"
>SSLEnabled="true" scheme="https" secure="true"
> clientAuth="false" sslProtocol="TLS"
>keystoreFile="file.p12" keystorePass="password"
> keystoreType="PKCS12" URIEncoding="UTF-8" />
> 
>unpackWARs="false"
> autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
>  docBase="/opt/application" />
>  directory="logs"
>prefix="access-" suffix=".txt" pattern="combined"
> resolveHosts="false" fileDateFormat="-MM-dd"/>
>   
> 
>   
> 
> 
> 
> === context.xml 
> =
> 
> 
> 
> 
> 
> === web.xml 
> =
> 
>   xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> version="2.5">
> 
> default
>  
> org.apache.catalina.servlets.DefaultServlet rvlet-class>
> 
> debug
> 0
> 
> 
> listings
> false
> 
> 1
> 
> 
> default
> /
> 
> 
> ext
> x-application/ext
> 
> 
> 


smime.p7s
Description: S/MIME cryptographic signature


RE: tomcat embedded

2008-04-18 Thread Caldarale, Charles R
> From: Steffen Heil [mailto:[EMAIL PROTECTED] 
> Subject: RE: tomcat embedded
> 
> Is there really no documentation for tomcat embedded nor 
> anyone who uses it?

If you're using Tomcat embedded, it's up to you to read and parse any
configuration information you might have, and call the appropriate APIs
to create the necessary Tomcat objects:
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/startup/
Embedded.html

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



Custom Valve

2008-04-18 Thread Zach Cox

I'm using Tomcat 6.0.14 and need to write a custom Valve to control the
Domain property of the JSESSIONID cookie (so it will be reused on any
subdomain) but I can't find any documentation on how to go about creating a
custom Valve.

Could someone please let me know if this is accurate?
 - extend the org.apache.catalina.valves.ValveBase class
 - implement the invoke method
 - package that up into a .jar file
 - put that .jar file into Tomcat's lib directory (alongside catalina.jar,
etc)
 - edit server.xml to look like this:

 - restart Tomcat

I've done all of the above, yet I don't see the desired effects of my Valve
nor do I see any of its System.out.println statements in catalina.out but
I'm not sure what I'm doing wrong.
-- 
View this message in context: 
http://www.nabble.com/Custom-Valve-tp16764609p16764609.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: Large HTML file not getting compressed despite compression enabled

2008-04-18 Thread Alex Epshteyn

Okay, here's the bug:

org.apache.coyote.http11.Http11AprProcessor:1504:
response.getContentLengthLong() returns 4, instead of the true file
size, making it appear lower than the minimum compression threshold.


Alex Epshteyn wrote:
> 
> Turned out it was the file size.  If I arbitrarily trim the file to be
> just under 50 KB the compression will work.  
> 
> Looks like the Connector's compression facility is checking for an upper
> limit on stream length or something like that.
> 
> Does anyone know of a way to disable this upper bound?
> 
> Thanks,
> Alex
> 
> 
> 
> Alex Epshteyn wrote:
>> 
>> I finally had some time to try to track down this problem further.  I set
>> the log levels to ALL, but still nothing useful showing up.  However, I
>> found a curious thing in my access log.  Consider this snippet:
>> 
>> 76.19.64.19 - - [18/Apr/2008:04:29:37 +] "GET /theme.css HTTP/1.1"
>> 200 6360
>> 76.19.64.19 - - [18/Apr/2008:04:29:37 +] "GET
>> /B2200E18EF2035F53CA3D7E241122BB6.cache.html HTTP/1.1" 200 -
>> 
>> The theme.css file is served up gzipped but
>> B2200E18EF2035F53CA3D7E241122BB6.cache.html is not! Notice the "-"
>> printed at the very end.  The doc for the access log valve describes this
>> field as "Bytes sent, excluding HTTP headers, or '-' if zero".  So the
>> access log thinks that zero bytes are being sent for this file.
>> 
>> This is not true, as the file does get properly served, just not gzipped. 
>> Seems like an indication of some other problem, though.
>> 
>> Does anyone have any ideas?
>> 
>> Here is the file itself if any of the contributors reading this would
>> like to try to debug.  I'd try it myself, but I can't repro the problem
>> in my Windows dev environment - it only happens in my CentOS production
>> environment.  (Hope the attachment worked - I'm writing this from
>> Nabble).
>> 
>> 
>> http://www.nabble.com/file/p16760347/B2200E18EF2035F53CA3D7E241122BB6.cache.html
>> B2200E18EF2035F53CA3D7E241122BB6.cache.html 
>> 
>> Here are the possible causes I can think of right now: 1) the file is too
>> big, almost 200 KB 2) the dual-extension, .cache.html 3) filename too
>> long.  That's pretty much it.  I don't think it's the contents inside the
>> file - I've gone through several incarnations of these (they are
>> generated by my compiler), and not a single one has successfully gotten
>> gzipped.
>> 
>> Thanks again for your time,
>> Alex
>> 
>> 
>> Alex Epshteyn wrote:
>>> 
>>> I have Tomcat's compression enabled:
>>> 
>>> >>maxThreads="200" minSpareThreads="25"
>>> maxSpareThreads="75"
>>>enableLookups="false" redirectPort="8443"
>>> acceptCount="100"
>>>connectionTimeout="2" disableUploadTimeout="true"
>>>compression="on"
>>>compressionMinSize="2048"
>>>noCompressionUserAgents="gozilla, traviata"
>>>   
>>> compressableMimeType="text/html,text/xml,text/javascript,text/css"/>
>>> 
>>> It works as expected for all my resources (stylesheets, scripts, etc)
>>> except for one static file, which has the extension .cache.html (in
>>> case you're wondering, it contains scripts generated by GWT).  This
>>> file is pretty large - about 150K, but Tomcat doesn't compress it for
>>> some reason.
>>> 
>>> Here are the response headers for this file (I have a custom filter
>>> that sets the cache headers prior to forwarding the request up the
>>> chain):
>>> 
>>> Server  Apache-Coyote/1.1
>>> Cache-Control   public, max-age=31536
>>> Expires Wed, 28 Mar 2018 18:58:38 GMT
>>> EtagW/"136900-1206809984000"
>>> Last-Modified   Sat, 29 Mar 2008 16:59:44 GMT
>>> Content-Typetext/html
>>> Content-Length  136900
>>> DateSun, 30 Mar 2008 20:44:14 GMT
>>> 
>>> Here are the response headers for a file that gets properly compressed
>>> (which also passes through the same filter):
>>> 
>>> Server  Apache-Coyote/1.1
>>> Pragma  no-cache
>>> Cache-Control   max-age=0, no-store, no-cache, must-revalidate
>>> Expires Thu, 01 Jan 1970 00:00:00 GMT
>>> EtagW/"4869-1206809984000"
>>> Last-Modified   Sat, 29 Mar 2008 16:59:44 GMT
>>> Content-Typetext/javascript
>>> Transfer-Encoding   chunked
>>> Content-Encodinggzip
>>> VaryAccept-Encoding
>>> DateSun, 30 Mar 2008 20:44:14 GMT
>>> 
>>> I don't see any relevant errors in my log files.  I'm using Tomcat
>>> 5.5.26 on Linux.   As a strange twist, the file does get compressed
>>> properly with Tomcat 5.5.26 on Windows.
>>> 
>>> Any ideas?
>>> 
>>> Thanks in advance for your help!
>>> 
>>> Alex
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Large-HTML-file-not-getting-compressed-despite-compression-enabled-tp16387385p16764917.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat

RE: Large HTML file not getting compressed despite compressionenabled

2008-04-18 Thread Caldarale, Charles R
> From: Alex Epshteyn [mailto:[EMAIL PROTECTED] 
> Subject: Re: Large HTML file not getting compressed despite 
> compressionenabled
> 
> org.apache.coyote.http11.Http11AprProcessor:1504:
> response.getContentLengthLong() returns 4,
> instead of the true file size, making it appear
> lower than the minimum compression threshold.

Just for grins, have you tried it without APR in the mix?

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



Bending Jasper to My Will

2008-04-18 Thread Andy Clark

I have been going through the Jasper source code
to figure out how to make it do what I want but
have been unsuccessful. So I thought I would ask
the experts. (Please let me know if there is a
better forum for this particular question.)

I want Jasper to look for JSP and Tag files in a
specific location (e.g. based on a request param);
and then fall back to a default location if the
file is not found. This would be extremely useful
for skinning a webapp.

Any ideas?

-AndyC

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



Custom Request Subclass

2008-04-18 Thread Zach Cox
I'm using Tomcat 6.0.14 and I need to override the
Request.configureSessionCookie method to call setDomain on the Cookie
(so the session cookie can be shared across subdomains).  Is there any
way to tell Tomcat to instantiate & use my Request subclass instead of
Request itself?

Thanks,
Zach

-
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: Problem to deploy my webbapps

2008-04-18 Thread Dorababu

Hi Fabien,

I think you developed your web application with jdk5 and now you are tried 
to run that application with jdk6.

So that you got below error.

java.lang.UnsupportedClassVersionError: Bad version number in .class file

Beter to develope your web application again with jdk6 and tried to deploy 
in tomcat 6.0.16 .



Thanks
Dorababu

-
Hi,

I'm developing a web application with wicket framework, under tomcat 6.0.16
and jdk 6 update 4.

I'm trying to deploy my web application into a server debian :
My first try is with tomcat 5.5 and jdk5, and i have a problem to write in
the log file.

Now I'm trying to use tomcat 6.0.16 and jdk update 6.
I have updated the JAVA_HOME et PATH variables environnement. And when i
deploy and start the sever, i have this exception :
In catalina log :
GRAVE: Error filterStart
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/appWicket-1.0] suite aux erreurs
précédentes
18 avr. 2008 14:46:38 org.apache.catalina.core.StandardContext
addApplicationListener



In localhost log :
GRAVE: Exception au démarrage du filtre appWicket
java.lang.UnsupportedClassVersionError: Bad version number in .class file
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
   at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
   at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:68)
   at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
   at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:508)
   at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
   at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
   at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
   at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
   at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

My research on internet, shows that this problem may due to :
"Base on your error log, your exception
"java.lang.UnsupportedClassVersionError: Bad version number in .class
file" indicates that you are trying to run a class compiled with newer
version of JDK.For example, you have compiled the class with JDK 5.0
and try to run on JDK 1.4.2."

But my i'm trying to run with jdk 6 update 6 classes compiled w

RE: Problem to deploy my webbapps

2008-04-18 Thread Caldarale, Charles R
> From: Dorababu [mailto:[EMAIL PROTECTED] 
> Subject: Re: Problem to deploy my webbapps
> 
> I think you developed your web application with jdk5 and now 
> you are tried to run that application with jdk6.

You have it backwards.  Also, Fabien posted that the problem was
resolved over 14 hours ago.

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