import files question under Tomcat6.0.13

2007-07-12 Thread red phoenix

I tried with  to import a struts action,it raises a question,I use
Tomcat6.0.13,my directory is follows:
C:\tomcat\webapps\struts2-blank-2.0.8

when I use visit
http://localhost:8080/struts2-blank-2.0.8/a.jsp
it raise following error:
The requested resource (/struts2-blank-2.0.8/example/HelloWorld.action) is
not available

But when I use
http://localhost:8080/struts2-blank-2.0.8/example/HelloWorld.action, it can
runs well.
My a.jsp file is follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>




If I use absolute path,it can runs well,like follows:
http://localhost:8080/struts2-blank-2.0.8/example/HelloWorld.action"/>


Someone say before Tomcat5,it will run well,but after Tomcat5 or higher,it
will raise above error.I only want to use relative path,not absolute path,I
don't know why raise above error,and how to correct it?

Thanks


Tomcat 5.5.20 terminated unexpectedly

2007-07-12 Thread Darren Kukulka
Hi Tomcaters,

 

We are running an instance of Tomcat 5.5.20 on Windows Server 2003 R2
x64 Standard.

 

The JVM is SUN JDK 1.5.0_10 and the Tomcat.exe has been compiled under
64-bit Windows and is running as a service.

 

On a few occasions the service has stopped abruptly.  The only evidence
of this is an entry in the Event Log stating that "The Apache Tomcat
service terminated unexpectedly." with an error code of 7034.

 

There is nothing in the Tomcat logs to suggest a cause.

 

This may be a moot point for us in the medium term as we are about to
move to Java 6/Tomcat 6...but in the meantime it would be nice to find
out if there's a known problem.   I've noticed similar issues with
earlier versions of Tomcat that have come down to bug fixes but has
anybody come across this behaviour in 5.5.20?  

 

Cheers,

Darren.



Connaught wins RoSPA Gold Award for fifth year running 

Considerate Contractor Gold Award in 2006 

Partnering Contractor of the Year Award in 2005 

Please visit our website to see a full list of Connaught's Registered Companies 
www.connaught.plc.uk/Investors/Registered-Companies 
  
Disclaimer: 
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 
Connaught plc, Head Office 01392 444546 


Re: problem with Tomcat 5.5.17, Axis 2, MySQL 3.1.12, JNDI

2007-07-12 Thread David Smith
I'd recommend dropping the context definition in your server.xml.  Under 
normal conditions you should never have to modify that file except to 
alter server-wide settings like which ports it listens on.


Also looking at your axis2/META-INF/context.xml file, I see the port 
number is incorrect.


Lastly, I would recommend you drop the autoReconnect parameter of your 
database url and add validationQuery="select 1" to your Resource 
element.  Autoreconnect is of minimal usefullness and validationQuery 
can test the db connection before your app attemps to use it.


--David

albert quinn wrote:

Hi ! :

 First of all : excuse my poor english. Second : I'm trying to set up
a MySQL connection pool on Tomcat 5.5.17 (running over Windows XP) to
connect to a remote DB from a web service running on the Axis 2
deployed in Tomcat. I've read the Tomcat docs and the Tomcat mailing
lists but i've not founded any answers that help me to fix the
problem. I've this in my "conf\server.xml" :


.
  

   

  
 




I've this "C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\axis2\META-INF\context.xml " file :




   WEB-INF/web.xml

 



I've these lines in "C:\Archivos de programa\Apache Software
Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\web.xml"

   
   
   a description
   
   
   jdbc/DB
   
   
   javax.sql.DataSource
   
   
   Container
   
   

 When i call the web service running on Axis 2, after a long time i
get the next Exception message :

Cannot create PoolableConnectionFactory (Server connection failure
during transaction. Due to underlying exception:
'java.net.SocketException: java.net.NoRouteToHostException: No route
to host: connect'.

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.NoRouteToHostException: No route to host: connect

STACKTRACE:

java.net.SocketException: java.net.NoRouteToHostException: No route to
host: connect

   at 
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) 



   at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)

   at com.mysql.jdbc.Connection.createNewIO(Connection.java :2680)

   at com.mysql.jdbc.Connection.(Connection.java:1485)

   at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) 



   at 
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection

(DriverConnectionFactory.java:37)

   at 
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290) 



   at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory

(BasicDataSource.java:877)

   at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851) 



   at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) 



   at code.prueba.PruebaBD.getUserLogin(PruebaBD.java:20)

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

   at java.lang.reflect.Method.invoke(Unknown Source)

   at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java 


:91)

   at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) 



   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)

   at 
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:122) 



   at 
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:116) 



   at 
org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processURLRequest 


(AxisServlet.java:776)

   at 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)


   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

   at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 



   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java 


:173)

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 



   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 



   at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 



   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 



   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 



   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 



   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection 


(Http11BaseProtocol.java:664)

 

Re: import files question under Tomcat6.0.13

2007-07-12 Thread ��Ⱥ�
I tried to use the same environment to get the error that you said recur. With
Tomcat 6.0.13 and jakarta-taglibs-standard-1.1.2, browsing 
http://localhost:8080/struts2-blank-2.0.8/a.jsp when using your code produces
the same output with you.

--- red phoenix <[EMAIL PROTECTED]> wrote:
> The requested resource (/struts2-blank-2.0.8/example/HelloWorld.action) is
> not available
> 

Since I'm new to struts, I'm not aquainted with *.action in the url. After
looking
around I find there is a HelloWorld.jsp in the example directory, and it would
possibly be that WEB-INF\src\java\example.xml which defines the HelloWorld
action, and the definition seems to be struts-only, which probably unknown by
taglibs. 
So I replace your code

> 

with  and things goes what I expected.
Using
the c:import tag, I can successfully import *.html *.jsp files.
There remains one question, why does struts use the *.action form to construct
a url,
maybe this question would be better posted on the struts user list, hehe.

> Someone say before Tomcat5,it will run well,but after Tomcat5 or higher,it
> will raise above error.I only want to use relative path,not absolute path,I
> don't know why raise above error,and how to correct it?

I also tried running the application in Tomcat 5.0.28, the error didn't
occured,
since the application can't even be successfully deployed, don't know what is
the
cause.


  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

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



Large file transfer through tomcat?

2007-07-12 Thread Mark Jessop
Hi,

I am putting together a site that allows files stored in an external system
to be uploaded/downloaded via http.  This works absolutely fine, but I am
concerned as to what might happen if a user attempts to up/down load
gigabyte files.


My question is, what happens inside tomcat in these cases, does it buffer
all data in memory or is it cached on disk?

For upload, I have a servlet that reads off the file data, and then connects
to the storage system and sends the file.  In an ideal world I would like
the servlet to be able to stream data directly off the http socket into the
storage system socket.

For download, a servlet connects to the storage system and extracts file
data, returning it to the client browser, which then saves it as a file.
Again I would like to forward data directly from the storage system socket
to the http socket.

In both of these cases, I don't want to have to hold the entire file in a
memory buffer before it can be managed.

Thanks for your help.

Mark.

Mark Jessop
Carmen Project
The University of York, Dept. of Computer
Science, Heslington, York, Y010 5DD
Tel   : +44 (0)1904 567712 (727712 internal)
Web   : http://www.carmen.org.uk
E-mail: [EMAIL PROTECTED]


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



Re: Tomcat 5.5.x: Null component

2007-07-12 Thread Mark Thomas
hezjing wrote:
> Any idea of what could be the problem?

An invalid log4j configuration?

Mark

-
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 file transfer through tomcat?

2007-07-12 Thread Mark Thomas
Mark Jessop wrote:
> In both of these cases, I don't want to have to hold the entire file in a
> memory buffer before it can be managed.

Tomcat will stream the data to/from your Servlet. There will be some
small (few K) in memory buffers in the path for efficiency but nothing
approaching the entire file.

The only exception to this case I can think of is when POSTing to a
page that requires FORM authentication. In this case the entire
original request will be saved during the auth process but there is a
fairly low (4K?) default limit on the size of that request.

Mark


-
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 with Tomcat 5.5.17, Axis 2, MySQL 3.1.12, JNDI

2007-07-12 Thread albert quinn

Hi David !! :

 Many thanks for your advices. I've tried it. I've dropped the
context definition in my server.xml (i'd put it there after reading
this tutorial 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
in the Tomcat docs), i've fixed the port number in my
"axis2/META-INF/context.xml file" and dropped the "autoReconnect"
paramater, adding validationQuery="select 1" to my Resource element.

 After that changes, i've removed the Tomcat logs and reboot Tomcat.
Then I've  tried the web service, getting this new Exception message :

 Cannot create JDBC driver of class '' for connect URL 'null'


 Then I've read the Tomcat logs looking for ideas about what [EMAIL PROTECTED]&
is going wrong with this, but I've not found any information that help
to discover what's happening. Any new ideas about what's going on or
about how to find the problem?

 Many thanks again by spending your (sure precious) time with this.






2007/7/12, David Smith <[EMAIL PROTECTED]>:

I'd recommend dropping the context definition in your server.xml.  Under
normal conditions you should never have to modify that file except to
alter server-wide settings like which ports it listens on.

Also looking at your axis2/META-INF/context.xml file, I see the port
number is incorrect.

Lastly, I would recommend you drop the autoReconnect parameter of your
database url and add validationQuery="select 1" to your Resource
element.  Autoreconnect is of minimal usefullness and validationQuery
can test the db connection before your app attemps to use it.

--David

albert quinn wrote:
> Hi ! :
>
>  First of all : excuse my poor english. Second : I'm trying to set up
> a MySQL connection pool on Tomcat 5.5.17 (running over Windows XP) to
> connect to a remote DB from a web service running on the Axis 2
> deployed in Tomcat. I've read the Tomcat docs and the Tomcat mailing
> lists but i've not founded any answers that help me to fix the
> problem. I've this in my "conf\server.xml" :
>
>
> .
>reloadable="true">
>
> name="java:comp/env/jdbc/DB" password="mypassword"
> type="javax.sql.DataSource"
> url="jdbc:mysql://remoteaddress.com:3306/db?autoReconnect=true"
> username="myname"/>
>
>   
>  
>
> 
>
>
> I've this "C:\Archivos de programa\Apache Software Foundation\Tomcat
> 5.5\webapps\axis2\META-INF\context.xml " file :
>
> 
> 
>
>WEB-INF/web.xml
>
>   name="jdbc/DB" password="mypassword" type="javax.sql.DataSource"
> url="jdbc:mysql://remoteaddress.com:3036/db?autoReconnect=true"
> username="myname"/>
>
> 
>
> I've these lines in "C:\Archivos de programa\Apache Software
> Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\web.xml"
>
>
>
>a description
>
>
>jdbc/DB
>
>
>javax.sql.DataSource
>
>
>Container
>
>
>
>  When i call the web service running on Axis 2, after a long time i
> get the next Exception message :
>
> Cannot create PoolableConnectionFactory (Server connection failure
> during transaction. Due to underlying exception:
> 'java.net.SocketException: java.net.NoRouteToHostException: No route
> to host: connect'.
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.SocketException
> MESSAGE: java.net.NoRouteToHostException: No route to host: connect
>
> STACKTRACE:
>
> java.net.SocketException: java.net.NoRouteToHostException: No route to
> host: connect
>
>at
> com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
>
>
>at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
>
>at com.mysql.jdbc.Connection.createNewIO(Connection.java :2680)
>
>at com.mysql.jdbc.Connection.(Connection.java:1485)
>
>at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
>
>
>at
> org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection
> (DriverConnectionFactory.java:37)
>
>at
> 
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>
>
>at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory
> (BasicDataSource.java:877)
>
>at
> 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>
>
>at
> 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>
>
>at code.prueba.PruebaBD.getUserLogin(PruebaBD.java:20)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
>at java.lang.reflect.Method.invoke(Unknown Source)
>
>at
> 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java
>
> :91)
>
>at
> 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>
>
>at org.apache.axis2.engine.AxisEngine.rece

Re: problem with Tomcat 5.5.17, Axis 2, MySQL 3.1.12, JNDI

2007-07-12 Thread David Smith
No problem.  One of the typical causes of this error is the ... /> element is missing or doesn't match what you've declared in 
axis2/WEB-INF/web.xml.  In your case it could be there's a completing 
... definition at 
conf/Catalina/localhost/axis2.xml?  If so, delete the axis2.xml (or use 
it and fix it's declaration) and restart tomcat.


Also be sure your mysql driver jar file is in tomcat's common/lib 
directory.  I would think the error would be different if this weren't 
in the right place, but it's a good thing to check anyway especially 
since the direct connect method worked in your original post.


--David

albert quinn wrote:


Hi David !! :

 Many thanks for your advices. I've tried it. I've dropped the
context definition in my server.xml (i'd put it there after reading
this tutorial 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html 


in the Tomcat docs), i've fixed the port number in my
"axis2/META-INF/context.xml file" and dropped the "autoReconnect"
paramater, adding validationQuery="select 1" to my Resource element.

 After that changes, i've removed the Tomcat logs and reboot Tomcat.
Then I've  tried the web service, getting this new Exception message :

 Cannot create JDBC driver of class '' for connect URL 'null'


 Then I've read the Tomcat logs looking for ideas about what [EMAIL PROTECTED]&
is going wrong with this, but I've not found any information that help
to discover what's happening. Any new ideas about what's going on or
about how to find the problem?

 Many thanks again by spending your (sure precious) time with this.






2007/7/12, David Smith <[EMAIL PROTECTED]>:


I'd recommend dropping the context definition in your server.xml.  Under
normal conditions you should never have to modify that file except to
alter server-wide settings like which ports it listens on.

Also looking at your axis2/META-INF/context.xml file, I see the port
number is incorrect.

Lastly, I would recommend you drop the autoReconnect parameter of your
database url and add validationQuery="select 1" to your Resource
element.  Autoreconnect is of minimal usefullness and validationQuery
can test the db connection before your app attemps to use it.

--David

albert quinn wrote:
> Hi ! :
>
>  First of all : excuse my poor english. Second : I'm trying to set up
> a MySQL connection pool on Tomcat 5.5.17 (running over Windows XP) to
> connect to a remote DB from a web service running on the Axis 2
> deployed in Tomcat. I've read the Tomcat docs and the Tomcat mailing
> lists but i've not founded any answers that help me to fix the
> problem. I've this in my "conf\server.xml" :
>
>
> .
>reloadable="true">
>
> name="java:comp/env/jdbc/DB" password="mypassword"
> type="javax.sql.DataSource"
> url="jdbc:mysql://remoteaddress.com:3306/db?autoReconnect=true"
> username="myname"/>
>
>   
>  
>
> 
>
>
> I've this "C:\Archivos de programa\Apache Software Foundation\Tomcat
> 5.5\webapps\axis2\META-INF\context.xml " file :
>
> 
> 
>
>WEB-INF/web.xml
>
>   name="jdbc/DB" password="mypassword" type="javax.sql.DataSource"
> url="jdbc:mysql://remoteaddress.com:3036/db?autoReconnect=true"
> username="myname"/>
>
> 
>
> I've these lines in "C:\Archivos de programa\Apache Software
> Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\web.xml"
>
>
>
>a description
>
>
>jdbc/DB
>
>
>javax.sql.DataSource
>
>
>Container
>
>
>
>  When i call the web service running on Axis 2, after a long time i
> get the next Exception message :
>
> Cannot create PoolableConnectionFactory (Server connection failure
> during transaction. Due to underlying exception:
> 'java.net.SocketException: java.net.NoRouteToHostException: No route
> to host: connect'.
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.SocketException
> MESSAGE: java.net.NoRouteToHostException: No route to host: connect
>
> STACKTRACE:
>
> java.net.SocketException: java.net.NoRouteToHostException: No route to
> host: connect
>
>at
> 
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) 


>
>
>at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
>
>at com.mysql.jdbc.Connection.createNewIO(Connection.java :2680)
>
>at com.mysql.jdbc.Connection.(Connection.java:1485)
>
>at
> 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) 


>
>
>at
> org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection
> (DriverConnectionFactory.java:37)
>
>at
> 
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290) 


>
>
>at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory
> (BasicDataSource.java:877)
>
>at
> 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851) 


>
>
>at
> 
org.apache.tomcat.dbcp.dbcp.BasicDataSource

Re: Tomcat - All threads (200) are currently busy

2007-07-12 Thread André Vila Cova

Hi!

I've this two processes:

tomcat6404  0.0  2.6 484396 105456 ? Sl   01:05   0:14
/usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Djava.util.logging.conf
tomcat6555  0.1  3.8 516420 154452 ? Sl   01:09   0:39
/usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Djava.util.logging.conf

Output is null when I execute the following command:
[EMAIL PROTECTED] ~]# kill -QUIT 6404
[EMAIL PROTECTED] ~]#

How can I see what thread is doing?

Thank You



On 7/11/07, Titi Wangsa <[EMAIL PROTECTED]> wrote:


probably some threads are performing database operation
and it takes too long so new threads are being spawned,
the new threads are also taking too long, so newer threads are being
spawned.
too much spawning,  that is what is causing the limit break.

On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:
> I don't think so... I will see..but, why i get the error?
> SEVERE: All threads (200) are currently *busy*, waiting. *Increase
>
>
> On 7/11/07, Mladen Turk <[EMAIL PROTECTED]> wrote:
> >
> > André Vila Cova wrote:
> > > Hello!
> > >
> > > I get lot of times the following error:
> > >
> > > SEVERE: All threads (200) are currently *busy*, waiting. *Increase
> > > maxThreads*
> > > **
> > > *Strange is that i've configured in server.xml the following
> > > (maxThreads=400):*
> > > *
> > >
> >
> > You have probably done that for a wrong connector.
> >
> > Regards,
> > Mladen.
> >
> > -
> > 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 - All threads (200) are currently busy

2007-07-12 Thread Bill Au

Take a thread dump of the JVM:

http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/

Bill

On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:


Hi!

I've this two processes:

tomcat6404  0.0  2.6 484396 105456 ? Sl   01:05   0:14
/usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Djava.util.logging.conf
tomcat6555  0.1  3.8 516420 154452 ? Sl   01:09   0:39
/usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Djava.util.logging.conf

Output is null when I execute the following command:
[EMAIL PROTECTED] ~]# kill -QUIT 6404
[EMAIL PROTECTED] ~]#

How can I see what thread is doing?

Thank You



On 7/11/07, Titi Wangsa <[EMAIL PROTECTED]> wrote:
>
> probably some threads are performing database operation
> and it takes too long so new threads are being spawned,
> the new threads are also taking too long, so newer threads are being
> spawned.
> too much spawning,  that is what is causing the limit break.
>
> On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:
> > I don't think so... I will see..but, why i get the error?
> > SEVERE: All threads (200) are currently *busy*, waiting. *Increase
> >
> >
> > On 7/11/07, Mladen Turk <[EMAIL PROTECTED]> wrote:
> > >
> > > André Vila Cova wrote:
> > > > Hello!
> > > >
> > > > I get lot of times the following error:
> > > >
> > > > SEVERE: All threads (200) are currently *busy*, waiting. *Increase
> > > > maxThreads*
> > > > **
> > > > *Strange is that i've configured in server.xml the following
> > > > (maxThreads=400):*
> > > > *
> > > >
> > >
> > > You have probably done that for a wrong connector.
> > >
> > > Regards,
> > > Mladen.
> > >
> > >
-
> > > 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 - All threads (200) are currently busy

2007-07-12 Thread Ingo Krabbe

We happend to have similar problems when starting with tomcat.  Our main error 
was a failing connection to the database, while the connector had it's retry 
flag on.  So the answer to each request was, trying to connect to a 
unconnectable database until the timeout has been reached, which is too long 
for any busy site of course.

Before you examine all your threads you should test your application for such 
errors that delay the answer to requests.

Maybe you should also try to build a test setup, answering very simple to your 
requests (hello, world) and push in one application module each time to see 
at which state your application breaks.

When you get this error very fast the error should occure at one quite central 
point in your code.

Also consult access and error logs of the tomcat process (catalina.out and 
similar).

Writing your own log files by your jsp pages is also quite helpfull sometimes.

Am Donnerstag, 12. Juli 2007 15:02 schrieb André Vila Cova:
> Hi!
>
> I've this two processes:
>
> tomcat6404  0.0  2.6 484396 105456 ? Sl   01:05   0:14
> /usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
> Djava.util.logging.conf
> tomcat6555  0.1  3.8 516420 154452 ? Sl   01:09   0:39
> /usr/local/java1.5/bin/java -Xms64m -Xmx200m -Xss512k -
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
> Djava.util.logging.conf
>
> Output is null when I execute the following command:
> [EMAIL PROTECTED] ~]# kill -QUIT 6404
> [EMAIL PROTECTED] ~]#
>
> How can I see what thread is doing?
>
> Thank You
>
> On 7/11/07, Titi Wangsa <[EMAIL PROTECTED]> wrote:
> > probably some threads are performing database operation
> > and it takes too long so new threads are being spawned,
> > the new threads are also taking too long, so newer threads are being
> > spawned.
> > too much spawning,  that is what is causing the limit break.
> >
> > On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:
> > > I don't think so... I will see..but, why i get the error?
> > > SEVERE: All threads (200) are currently *busy*, waiting. *Increase
> > >
> > > On 7/11/07, Mladen Turk <[EMAIL PROTECTED]> wrote:
> > > > André Vila Cova wrote:
> > > > > Hello!
> > > > >
> > > > > I get lot of times the following error:
> > > > >
> > > > > SEVERE: All threads (200) are currently *busy*, waiting. *Increase
> > > > > maxThreads*
> > > > > **
> > > > > *Strange is that i've configured in server.xml the following
> > > > > (maxThreads=400):*
> > > > > *
> > > >
> > > > You have probably done that for a wrong connector.
> > > >
> > > > Regards,
> > > > Mladen.
> > > >
> > > > -
> > > > To start a new topic, e-mail: users@tomcat.apache.org
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]

-- 
==
Ingo Krabbe ASK UNIX Systems
Burggrafenstraße 3
44139 Dortmund

Telefon 0231 4770185
FAX 0231 4770186
E-Mail  [EMAIL PROTECTED]
Fingerprint EE5A 6533 EE5E 8F66 EC20 C56A 35FC
B736 18FD EB5A
==

-
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 - All threads (200) are currently busy

2007-07-12 Thread André Vila Cova

More information on catalina.out:

"TP-Processor80" daemon prio=1 tid=0xe0370988 nid=0x1c19 runnable
[0xda178000..0xda178fa0]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
   - locked <0xf0caa5d0> (a java.io.BufferedInputStream)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java
:558)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

"TP-Processor79" daemon prio=1 tid=0xe036ffd8 nid=0x1c18 runnable
[0xda1f9000..0xda1f9f20]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
   - locked <0xf0ca5d20> (a java.io.BufferedInputStream)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java
:558)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

"TP-Processor78" daemon prio=1 tid=0xe036f678 nid=0x1c17 runnable
[0xda27a000..0xda27aea0]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
   - locked <0xeff48930> (a java.io.BufferedInputStream)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java
:558)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

"TP-Processor77" daemon prio=1 tid=0xe036f0a0 nid=0x1c16 runnable
[0xda2fb000..0xda2fbe20]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
   - locked <0xeff48ff8> (a java.io.BufferedInputStream)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java
:558)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
...

Thank you


On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:


I get following output after executing Kill -quit 6555... I don't know
what information I need to analyze. Could you help me?

[EMAIL PROTECTED] hsperfdata_tomcat]# strings 6555
sun.rt.createVmBeginTime
sun.rt.createVmEndTime
sun.rt.vmInitDoneTime
java.threads.started
java.threads.live
java.threads.livePeak
java.threads.daemon
sun.rt.safepointSyncTime
sun.rt.safepoints
sun.rt.safepointTime
sun.rt.applicationTime
java.cls.loadedClasses
java.cls.unloadedClasses
java.cls.sharedLoadedClasses
java.cls.sharedUnloadedClasses
sun.cls.loadedBytes
sun.cls.unloadedBytes
sun.cls.sharedLoadedBytes
sun.cls.sharedUnloadedBytes
sun.cls.methodBytes
sun.cls.time
sun.cls.initializedClasses
sun.cls.classInitTime
sun.cls.classVerifyTime
sun.gc.cause
No GC
sun.gc.lastCause
unknown GCCause
sun.gc.generation.0.name
sun.gc.generation.0.spaces
sun.gc.generation.0.minCapacity
sun.gc.generation.0.maxCapacity
sun.gc.generation.0.capacity
sun.gc.generation.0.space.0.name
eden
s

Re: tomcat 5.5 and jsp 1

2007-07-12 Thread alvaro tovar

i am sorry,  i am solved my problem, i delete the work/proyect and run ok.
problem with jar.

On 7/11/07, Mark Thomas <[EMAIL PROTECTED]> wrote:


alvaro tovar wrote:
> is posible to configure tomcat 5.5 for use jsp 1 i have application.
>
> thanks
>

What happens if you just deploy it?

Mark

-
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 - All threads (200) are currently busy

2007-07-12 Thread André Vila Cova

Lot of waits... Could you help me?

"http-8085-Processor24" daemon prio=1 tid=0x082f1378 nid=0x19c6 in
Object.wait() [0xde118000..0xde118e20]
   at java.lang.Object.wait(Native Method)
   - waiting on <0xe619f748> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:474)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:656)
   - locked <0xe619f748> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:595)

"http-8085-Processor23" daemon prio=1 tid=0x082f0470 nid=0x19c5 in
Object.wait() [0xde199000..0xde199da0]
   at java.lang.Object.wait(Native Method)
   - waiting on <0xe61c2360> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:474)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:656)
   - locked <0xe61c2360> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:595)

"http-8085-Processor22" daemon prio=1 tid=0x084561c8 nid=0x19c4 in
Object.wait() [0xde21a000..0xde21b120]
   at java.lang.Object.wait(Native Method)
   - waiting on <0xe61c21e8> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:474)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:656)
   - locked <0xe61c21e8> (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:595)


On 7/12/07, André Vila Cova <[EMAIL PROTECTED]> wrote:


More information on catalina.out:

"TP-Processor80" daemon prio=1 tid=0xe0370988 nid=0x1c19 runnable
[0xda178000..0xda178fa0]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java :129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java :313)
- locked <0xf0caa5d0> (a java.io.BufferedInputStream)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:558)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

"TP-Processor79" daemon prio=1 tid=0xe036ffd8 nid=0x1c18 runnable
[0xda1f9000..0xda1f9f20]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java :129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java :313)
- locked <0xf0ca5d20> (a java.io.BufferedInputStream)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:558)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

"TP-Processor78" daemon prio=1 tid=0xe036f678 nid=0x1c17 runnable
[0xda27a000..0xda27aea0]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java :129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java :313)
- locked <0xeff48930> (a java.io.BufferedInputStream)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:558)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

"TP-Processor77" daemon prio=1 tid=0xe036f0a0 nid=0x1c16 runnable
[0xda2fb000..0xda2fbe20]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java :129)
at java.io.BufferedInputStream.fill(BufferedInputStr

Re: Large file transfer through tomcat?

2007-07-12 Thread Jake Alley
I've run into a problem with this.  If a session times out, and someone comes 
back to post say a wiki page that they've been working on, it causes a problem. 
 Is there any way of dealing with this?  Logging people off automatically 
obviously won't work, because that's what's effectively happening.  Longer 
session timeouts?  


Mark Thomas <[EMAIL PROTECTED]> wrote:
The only exception to this case I can think of is when POSTing to a
page that requires FORM authentication. In this case the entire
original request will be saved during the auth process but there is a
fairly low (4K?) default limit on the size of that request.

Mark


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



   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

Re: Tomcat 5.5.20 terminated unexpectedly

2007-07-12 Thread Jake Alley
Tomcat does this to me periodically, but it almost always involves some 
problematic code I'm running.  

The only way I know of debugging it is to search your access logs for the last 
pages that have been accessed and work backwards with log entries in your code 
to see where the server is crashing.


Darren Kukulka <[EMAIL PROTECTED]> wrote: Hi Tomcaters,

 

We are running an instance of Tomcat 5.5.20 on Windows Server 2003 R2
x64 Standard.

 

The JVM is SUN JDK 1.5.0_10 and the Tomcat.exe has been compiled under
64-bit Windows and is running as a service.

 

On a few occasions the service has stopped abruptly.  The only evidence
of this is an entry in the Event Log stating that "The Apache Tomcat
service terminated unexpectedly." with an error code of 7034.

 

There is nothing in the Tomcat logs to suggest a cause.

 

This may be a moot point for us in the medium term as we are about to
move to Java 6/Tomcat 6...but in the meantime it would be nice to find
out if there's a known problem.   I've noticed similar issues with
earlier versions of Tomcat that have come down to bug fixes but has
anybody come across this behaviour in 5.5.20?  

 

Cheers,

Darren.



Connaught wins RoSPA Gold Award for fifth year running 

Considerate Contractor Gold Award in 2006 

Partnering Contractor of the Year Award in 2005 

Please visit our website to see a full list of Connaught's Registered Companies 
www.connaught.plc.uk/Investors/Registered-Companies 
  
Disclaimer: 
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 
Connaught plc, Head Office 01392 444546 


   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

Re: Tomcat - All threads (200) are currently busy

2007-07-12 Thread Ingo Krabbe
Am Donnerstag, 12. Juli 2007 19:12 schrieb André Vila Cova:
> Lot of waits... Could you help me?
>
> "http-8085-Processor24" daemon prio=1 tid=0x082f1378 nid=0x19c6 in
> Object.wait() [0xde118000..0xde118e20]
> at java.lang.Object.wait(Native Method)
> - waiting on <0xe619f748> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
> at java.lang.Object.wait(Object.java:474)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:656)
> - locked <0xe619f748> (a
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
> at java.lang.Thread.run(Thread.java:595)
>

somehow this looks like a deadlock.


-
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 do I unsubscribe ?

2007-07-12 Thread Siraj Haider
Hi, can you unsubscribe me too.

-Siraj

Sunitha Kumar (sunithak) wrote:
>  Hi Mark.,
> could you also unsubscribe me?
> thnx
> -sunitha
>
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 11, 2007 5:25 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: How do I unsubscribe ?
>
> [EMAIL PROTECTED] wrote:
>   
>> Hi,
>>  
>> Is there an alternative way to unsubscribe from this user group ? I 
>> have sent numerous blank emails to 
>> [EMAIL PROTECTED], but it seems to have no effect,
>> 
>
> An e-mail to [EMAIL PROTECTED] will do the trick and one of us will
> manually unsubscribe you.
>
> I have just done this for your address.
>
> Mark
>
> -
> 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]
>
>   



This electronic mail message and any attachments may contain information which 
is privileged, sensitive and/or otherwise exempt from disclosure under 
applicable law. The information is intended only for the use of the individual 
or entity named as the addressee above. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution (electronic 
or otherwise) or forwarding of, or the taking of any action in reliance on, the 
contents of this transmission is strictly prohibited. If you have received this 
electronic transmission in error, please notify us by telephone, facsimile, or 
e-mail as noted above to arrange for the return of any electronic mail or 
attachments. Thank You.



-
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 - All threads (200) are currently busy

2007-07-12 Thread Caldarale, Charles R
> From: Ingo Krabbe [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat - All threads (200) are currently busy
> 
> > "http-8085-Processor24" daemon prio=1 tid=0x082f1378 nid=0x19c6 in
> > Object.wait() [0xde118000..0xde118e20]
> > at java.lang.Object.wait(Native Method)
> > - waiting on <0xe619f748> (a
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
> > at java.lang.Object.wait(Object.java:474)
> > at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:656)
> > - locked <0xe619f748> (a
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
> > at java.lang.Thread.run(Thread.java:595)
> >
> 
> somehow this looks like a deadlock.

Why do you say that?  Looks like a normal wait() for an idle connector thread 
to me.

 - 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: How do I unsubscribe ?

2007-07-12 Thread tomcat
My old account was unsubscribed and deleted in a few minutes. Then I 
created a new account and resubscribed the new account. It took all 
of 1 hour from start to finish. The old account was getting spammed 
to DETH! Now I use it to harvest my block list!


Get yourself an email client that will let you read your mail 
headers! You have no idea what you are missing!


At 02:30 PM 7/12/2007, you wrote:


Hi, can you unsubscribe me too.

-Siraj

Sunitha Kumar (sunithak) wrote:
>  Hi Mark.,
> could you also unsubscribe me?
> thnx
> -sunitha
>
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 11, 2007 5:25 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: How do I unsubscribe ?
>
> [EMAIL PROTECTED] wrote:
>
>> Hi,
>>
>> Is there an alternative way to unsubscribe from this user group ? I
>> have sent numerous blank emails to
>> [EMAIL PROTECTED], but it seems to have no effect,
>>
>
> An e-mail to [EMAIL PROTECTED] will do the trick and one of us will
> manually unsubscribe you.
>
> I have just done this for your address.
>
> Mark
>
> -
> 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]
>
>



This electronic mail message and any attachments may contain 
information which is privileged, sensitive and/or otherwise exempt 
from disclosure under applicable law. The information is intended 
only for the use of the individual or entity named as the addressee 
above. If you are not the intended recipient, you are hereby 
notified that any disclosure, copying, distribution (electronic or 
otherwise) or forwarding of, or the taking of any action in reliance 
on, the contents of this transmission is strictly prohibited. If you 
have received this electronic transmission in error, please notify 
us by telephone, facsimile, or e-mail as noted above to arrange for 
the return of any electronic mail or attachments. Thank You.




-
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: problem I don't know how to summarize for this subject line

2007-07-12 Thread Nelson, Tracy M.
| From: Steve Sweet [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 11 July, 2007 15:02
| 
| The original developer does
| not experience this on his system which limits his ability to help me
| figure it out.
| 
| I am not a complete newbie with Tomcat but my experience to date has
| been pretty straightforward.  Does anything about this ring any bells
to
| anyone?  Even any suggestions about where to look would be
appreciated.

Ask the other developer for a copy of his /etc/hosts file.  He may have
an entry for 'mydomain.org' or something that causes his references to
succeed.  Maybe it's misspelled in both his hosts file and his code, so
it works OK on his box.
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to 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]



memory tomcat

2007-07-12 Thread alvaro tovar

hi all, i am trying of configurate mi tomcat, but i have 2 question, is
posible to configurate tomcat for use 3 gb i actually have the memory
in 1.5but i don't know if are a limit, and the other tomcat reserve
the memory
when starts or when his need this. i have this in catalina.bat

...   -Xms1584m -Xmx1584m ...

thanks


Re: memory tomcat

2007-07-12 Thread alvaro tovar

the server has 8gb of ram.

On 7/12/07, alvaro tovar <[EMAIL PROTECTED]> wrote:


hi all, i am trying of configurate mi tomcat, but i have 2 question, is
posible to configurate tomcat for use 3 gb i actually have the memory in
1.5 but i don't know if are a limit, and the other tomcat reserve the
memory when starts or when his need this. i have this in catalina.bat

...   -Xms1584m -Xmx1584m ...

thanks



Re: Tomcat - All threads (200) are currently busy

2007-07-12 Thread Christopher Schultz
Ingo,

Ingo Krabbe wrote:
> Am Donnerstag, 12. Juli 2007 19:12 schrieb André Vila Cova:
>> "http-8085-Processor24" daemon prio=1 tid=0x082f1378 nid=0x19c6 in
>> Object.wait() [0xde118000..0xde118e20]
>> at java.lang.Object.wait(Native Method)
>> - waiting on <0xe619f748> (a
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
> 
> somehow this looks like a deadlock.

I agree with Chuck: this is just an Object.wait() being called on the
ControlRunnable object (which is probably the monitor for the thread
pool). Most threads will be in this state. If you have threads in this
state, then they are /not/ busy... they're waiting around for something
to do!

-chris




signature.asc
Description: OpenPGP digital signature


Re: memory tomcat

2007-07-12 Thread Christopher Schultz
Alvaro,

alvaro tovar wrote:
> i am trying of configure my tomcat, but i have 2 questions. [1)] is
> [it] possible to configure tomcat for use 3 gb?

Maybe. Most 32-bit JVMs can't actually give you 3GB of heap space.
You'll probably be limited to somewhere between 1.5 - 2.0GB. If you have
a 64-bit processor and OS, go with a 64-bit JVM and then you can get
/lots/ of memory.

> i actually have the memory [set to] 1.5 [GB], but i don't know if
> [there is] a limit, and the other tomcat reserve the memory

I'm not entirely sure what you mean, here. Could you try to ask this
question in a different way?

> when starts or when his need this. i have this in catalina.bat:
> 
> ...   -Xms1584m -Xmx1584m ...

That ought to give you a 1.5GB fixed (no more, no less) heap.

-chris



signature.asc
Description: OpenPGP digital signature


Re: Tomcat - All threads (200) are currently busy

2007-07-12 Thread Leon Rosenberg

Stupid question:
1. are you using keep alive?
2. how many users are actually on?
regards
Leon

On 7/13/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:

Ingo,

Ingo Krabbe wrote:
> Am Donnerstag, 12. Juli 2007 19:12 schrieb André Vila Cova:
>> "http-8085-Processor24" daemon prio=1 tid=0x082f1378 nid=0x19c6 in
>> Object.wait() [0xde118000..0xde118e20]
>> at java.lang.Object.wait(Native Method)
>> - waiting on <0xe619f748> (a
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
>
> somehow this looks like a deadlock.

I agree with Chuck: this is just an Object.wait() being called on the
ControlRunnable object (which is probably the monitor for the thread
pool). Most threads will be in this state. If you have threads in this
state, then they are /not/ busy... they're waiting around for something
to do!

-chris






-
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 do I unsubscribe ?

2007-07-12 Thread Adriana Suarez

Can u unsuscribe my email too? I've been trying and I have no have success.
Thanks

On 7/12/07, tomcat <[EMAIL PROTECTED]> wrote:


My old account was unsubscribed and deleted in a few minutes. Then I
created a new account and resubscribed the new account. It took all
of 1 hour from start to finish. The old account was getting spammed
to DETH! Now I use it to harvest my block list!

Get yourself an email client that will let you read your mail
headers! You have no idea what you are missing!

At 02:30 PM 7/12/2007, you wrote:

>Hi, can you unsubscribe me too.
>
>-Siraj
>
>Sunitha Kumar (sunithak) wrote:
> >  Hi Mark.,
> > could you also unsubscribe me?
> > thnx
> > -sunitha
> >
> > -Original Message-
> > From: Mark Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 11, 2007 5:25 AM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: How do I unsubscribe ?
> >
> > [EMAIL PROTECTED] wrote:
> >
> >> Hi,
> >>
> >> Is there an alternative way to unsubscribe from this user group ? I
> >> have sent numerous blank emails to
> >> [EMAIL PROTECTED], but it seems to have no effect,
> >>
> >
> > An e-mail to [EMAIL PROTECTED] will do the trick and one of us
will
> > manually unsubscribe you.
> >
> > I have just done this for your address.
> >
> > Mark
> >
> > -
> > 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]
> >
> >
>
>
>
>This electronic mail message and any attachments may contain
>information which is privileged, sensitive and/or otherwise exempt
>from disclosure under applicable law. The information is intended
>only for the use of the individual or entity named as the addressee
>above. If you are not the intended recipient, you are hereby
>notified that any disclosure, copying, distribution (electronic or
>otherwise) or forwarding of, or the taking of any action in reliance
>on, the contents of this transmission is strictly prohibited. If you
>have received this electronic transmission in error, please notify
>us by telephone, facsimile, or e-mail as noted above to arrange for
>the return of any electronic mail or attachments. Thank You.
>
>
>
>-
>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]




Unsubscribe not working

2007-07-12 Thread john.lonergan
Please do me too.
Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses.  The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

-
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: memory tomcat

2007-07-12 Thread alvaro tovar

hi, thanks for your answer,  i think that i have to questions in solaris, is
a solaris sparc,  but, if the manager application show

Free memory: 3000 MB Total memory: 3000 MB Max memory: 3000 MB

then tomcat have 3000?,  if true then i can put 3 gb in my tomcat.

thanks and sorry for my english

On 7/12/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


Alvaro,

alvaro tovar wrote:
> i am trying of configure my tomcat, but i have 2 questions. [1)] is
> [it] possible to configure tomcat for use 3 gb?

Maybe. Most 32-bit JVMs can't actually give you 3GB of heap space.
You'll probably be limited to somewhere between 1.5 - 2.0GB. If you have
a 64-bit processor and OS, go with a 64-bit JVM and then you can get
/lots/ of memory.

> i actually have the memory [set to] 1.5 [GB], but i don't know if
> [there is] a limit, and the other tomcat reserve the memory

I'm not entirely sure what you mean, here. Could you try to ask this
question in a different way?

> when starts or when his need this. i have this in catalina.bat:
>
> ...   -Xms1584m -Xmx1584m ...

That ought to give you a 1.5GB fixed (no more, no less) heap.

-chris





Re: Unsubscribe not working

2007-07-12 Thread alvaro tovar

send a email to

[EMAIL PROTECTED]

On 7/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Please do me too.
Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses.  The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

-
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 do I unsubscribe ?

2007-07-12 Thread David Smith
Please follow the advice in the thread and send these requests to 
user-owner (at) tomcat.apache.org.


Thanks.

--David

Adriana Suarez wrote:
Can u unsuscribe my email too? I've been trying and I have no have 
success.

Thanks

On 7/12/07, tomcat <[EMAIL PROTECTED]> wrote:


My old account was unsubscribed and deleted in a few minutes. Then I
created a new account and resubscribed the new account. It took all
of 1 hour from start to finish. The old account was getting spammed
to DETH! Now I use it to harvest my block list!

Get yourself an email client that will let you read your mail
headers! You have no idea what you are missing!

At 02:30 PM 7/12/2007, you wrote:

>Hi, can you unsubscribe me too.
>
>-Siraj
>
>Sunitha Kumar (sunithak) wrote:
> >  Hi Mark.,
> > could you also unsubscribe me?
> > thnx
> > -sunitha
> >
> > -Original Message-
> > From: Mark Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 11, 2007 5:25 AM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: How do I unsubscribe ?
> >
> > [EMAIL PROTECTED] wrote:
> >
> >> Hi,
> >>
> >> Is there an alternative way to unsubscribe from this user group ? I
> >> have sent numerous blank emails to
> >> [EMAIL PROTECTED], but it seems to have no 
effect,

> >>
> >
> > An e-mail to [EMAIL PROTECTED] will do the trick and one of us
will
> > manually unsubscribe you.
> >
> > I have just done this for your address.
> >
> > Mark
> >
> > 
-
> > 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]
> >
> >
>
>
>
>This electronic mail message and any attachments may contain
>information which is privileged, sensitive and/or otherwise exempt
>from disclosure under applicable law. The information is intended
>only for the use of the individual or entity named as the addressee
>above. If you are not the intended recipient, you are hereby
>notified that any disclosure, copying, distribution (electronic or
>otherwise) or forwarding of, or the taking of any action in reliance
>on, the contents of this transmission is strictly prohibited. If you
>have received this electronic transmission in error, please notify
>us by telephone, facsimile, or e-mail as noted above to arrange for
>the return of any electronic mail or attachments. Thank You.
>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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







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



Re: Unsubscribe not working

2007-07-12 Thread David Smith
Please follow the advice from Mark Thomas and send an email to 
user-owner (at) tomcat.apache.org if the standard unsubscribe isn't working.


--David

[EMAIL PROTECTED] wrote:

Please do me too.
Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.


E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.


UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

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

  



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



Re: Tomcat 5.5.x: Null component

2007-07-12 Thread hezjing

The dummy\WEB-INF\classes\log4j.properties contains the following,

log4j.rootLogger=ALL, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{/MM/dd HH:mm:ss}
%5p [%t] %C{1} - %m%n


I don't see any problem, did I miss anything here?



On 7/12/07, Mark Thomas <[EMAIL PROTECTED]> wrote:

hezjing wrote:
> Any idea of what could be the problem?

An invalid log4j configuration?

Mark

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





--

Hez

-
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 replace jar which was already loaded?

2007-07-12 Thread santa T

Thanks

2007/7/10, David Delbecq <[EMAIL PROTECTED]>:


http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

--
reloadable

Set to true if you want Catalina to monitor classes in /WEB-INF/classes/
and /WEB-INF/lib for changes, and automatically reload the web
application if a change is detected. This feature is very useful during
application development, but it requires significant runtime overhead
and is not recommended for use on deployed production applications.
That's why the default setting for this attribute is false. You can use
the Manager web application, however, to trigger reloads of deployed
applications on demand.
--
So all you have to do is ensure timestamps are updated in
WEB-INF/lib/worker.jar


En l'instant précis du 10/07/07 02:18, santa T s'exprimait en ces termes:
> Hi
>  I have a "worker.jar" in my webapp. User could upload a new "worker.jar
"
> replacing it. And I don't want to restart the tomcat.
>  How can I implement this?
>
> Thanks.
>


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




Tomcat monitoring MBean help

2007-07-12 Thread Madhav Sathe

Hi,

Im using tomcat mbean for monitoring.
I have a questions regarding 'processingTime' attribute of Servlet and 
Manager Mbeans.


1. What value does it show - is it the last collected avg/total request 
processing time.
My observation is, this value keeps on going up. So not able to figure 
out what does it actually indicate for these Mbeans (Servlet and Manager)


2. what is the unit of 'processingTime' - my educated guess is 'ms'

3. JspMonitor mbean has attribute called jspCount. What does it indicate.

Regards,
Madhav

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