Tomcat consumes much memory when web.xml size grows
I have one war file having size 140MB and has been deployed in tomcat 5 and runs smothly. This war contains files from 20 different modules. So i planned to split war in to multiple jar file in the following manner. one main.war file contains common classes,images,stylesheets,common jsp files and web.xml . seperate module jar files with following . java classes of the particular module pre-compiled Jsp files of the module jsp.( Since jsp's are pre compiled these entries will go to web.xml) main.war will be having servlets entries of all the pre-compiled jsp's. The count comes around 6000. All these module jar files are put in to shared/lib. while starting tomcat , it is found that it is taking 200MB more memory than the previous one.It seems that when the number of servlet entries in web.xml is more, it consumes much memory. Is there any way to invoke the pre-compiled Jsp files with out having entry in web.xml file. Any help is appreciated. thanks & regards unni -- View this message in context: http://www.nabble.com/Tomcat-consumes-much-memory-when-web.xml-size-grows-tp14683988p14683988.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: How Do I do (Can I do) Apache like redirects in Tomcat
Implement a filter/Servlet and do a redirect there response.sendRedirect(..); Rob Tanner wrote: Hi, I would like to setup an HTTPS connector in Tomcat (v 5.5.23) that listens on port 28080. That part's easy enough and there is already a certificate installed. Here's the part I'm having trouble with. Whenever a browser send a GET request to that port, I need to return a redirect to an entirely different server (different IP, etc) listening on port 28443. I cannot figure out anyway to do that. Any ideas? Thanks, Rob -- Vinu Varghese [EMAIL PROTECTED] www.x-minds.org Success always occurs in private, and failure in full view. \/ ._ _ o .__| _ /\ ~~ | | | | | | (_| _\
How Do I do (Can I do) Apache like redirects in Tomcat
Hi, I would like to setup an HTTPS connector in Tomcat (v 5.5.23) that listens on port 28080. That part's easy enough and there is already a certificate installed. Here's the part I'm having trouble with. Whenever a browser send a GET request to that port, I need to return a redirect to an entirely different server (different IP, etc) listening on port 28443. I cannot figure out anyway to do that. Any ideas? Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR
Re: TomCat -Catalina.out : Application failing with java.net.SocketException
These are the configurations that I have , Does this help in any way ..thank you. Below is the Files that Have something related to j2k ,tomcat and Apache Server.xml Server.jk2.xml ** workers.properties * worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=9009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.recycle_timeout=120 workers2.properties [logger.apache2] level=ERROR [shm] file=/usr/local/apache-2.0.55/logs/jk2.shm size=1048576 [channel.socket:localhost:9009] info=Ajp13 forwarding over socket tomcatId=localhost:9009 httpd.conf.jk [uri:/fmsuite/*] info=Map the whole webapp### # # jk specific stuff # JkWorkersFile /usr/local/apache-2.0.55/conf/workers.properties JkLogFile /usr/local/apache-2.0.55/logs/mod_jk.log JkLogLevel error JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkRequestLogFormat "%w %V %T" Any Ideas? -- View this message in context: http://www.nabble.com/TomCat--Catalina.out--%3A-Application-failing-with-java.net.SocketException-tp14658933p14681924.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]
having trouble with client authentication
Hi, I am trying to get client authentication to work with my server. I have basically followed the Tomcat 6.0-SSL-How-TO, except I changed clientAuth="false" to client="true". When I have clientAuth="true", I can't access my webapp at all. The server doesn't even request the client for a certificate. IE says that it cannot display the page. I checked the log, and there doesn't seem to be any errors. But when I have clientAuth="false" , I CAN access my webapp as usual. I am using a self-signed cert. I used the following command to create it: keytool -genkey -alias tomcat -keyalg RSA My server.xml looks like this: Any help would be great. Thanks, Anna
DataSource question
I have defined my jndi DataSource for connecting to the database under the conf/context.xml file. I would like to understand what it means in terms of availability of the datasource to each of the web apps and the thing I am confused about is what is the maximum number of connections available? Is it the maxActive times number of web apps or just maxActive? Thanks. 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: comet questions
The time when it is called without a subtype, is if the application(servlet) has an unhandled exception in terms of timeout, that should work just dandy, unless the client disconnects, at which point at which point you might get a subtype of IOEXCEPTION, or CLIENT_DISCONNECT depending on the OS Filip Peter Warren wrote: Using the NIO connector: protocol="org.apache.coyote.http11.Http11NioProtocol". I'll add response.flushBuffer() and see if that helps. The tomcat version I was testing against was current with svn as of last Friday. I just updated and the only files that are new are: catalina.policy STATUS.txt changelog.xml Any ideas about the timeout setting or the comet error event without a subtype? Thanks for your response! Peter On Jan 7, 2008 12:44 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: what connector are you using? I would try to use response.flushBuffer when you wanna flush it out (ie after you've written to and flushed your stream). also, there have been some bug fixes, that you can get from SVN, or wait for 6.0.16 to come out Filip Peter Warren wrote: I have some comet questions. I'm using the tomcat 6.0.x trunk as of last Friday. 1) My comet event timeout setting being honored. How come? I set the timeout for 3 hours but a timeout event gets generated every 2 minutes. If I inspect the comet event for which the timeout is triggered, I see a setting for the request attribute of: org.apache.tomcat.comet.timeout=1080. I set it as follows: public void event(CometEvent cometEvent) throws IOException, ServletException { ... if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) { // COMET_TIMEOUT = 3 * 60 * 60 * 1000 cometEvent.setTimeout(TimingConstants.COMET_TIMEOUT); Do I need to set something else as well? 2) Occasionally I'm getting a comet event of type ERROR without any subtype (i.e. not TIMEOUT, CLIENT_DISCONNECT, etc.). What does that indicate? I don't see any errors in my catalina log. 3) Reading the response from a comet servlet fails for one of my client machines. I wrote a simple test to check the problem. This test succeeds for many other users. For the failing client, the client request is received by the comet servlet, and the servlet's response is written and flushed to the stream. The client then simply waits indefinitely trying to read the response. The failing client is a Windows XP machine. Could anyone shed some light on why this might be happening, or give me some clues as to how to debug? Could it be a firewall issue on the client end, a router issue on my end? The test is currently up at: http://www.seekspeak.com/test.html. It tests: a http connection to a normal servlet, then a comet connection to a comet servlet using httpurlconnection, then a comet connection to a comet servlet using a socket. For the failing client, both comet tests fail. Below is some of the test code for the raw socket test. Thanks for any help! Peter CLIENT -- private void testCometConnection() throws IOException { ... URL url = new URL("http://www.seekspeak.com/CometTest";); channel = new CometChannel(url); Thread testThread = new Thread() { public void run() { try { channel.send("test"); String received = channel.receive(); ... } } catch (IOException ioe) { ioe.printStackTrace(); } } }; testThread.start(); ... } private class CometChannel { private static final int INPUT_BUFFER_SIZE = 512; private static final int OUTPUT_BUFFER_SIZE = 512; private static final String DELIMITER = "\r\n"; private URL url; private BufferedReader inputReader; private PrintWriter outputWriter; private Socket socket; public CometChannel(URL url) throws IOException { this.url = url; initConnection(); } private void initSocket() throws IOException { int port = url.getPort(); port = (port < 0) ? url.getDefaultPort() : port; try { socket = new Socket(url.getHost(), port); socket.setKeepAlive(true); inputReader = new BufferedReader(new InputStreamReader(socket.getInputStream()), INPUT_BUFFER_SIZE); outputWriter = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()), OUTPUT_BUFFER_SIZE)); } catch (NoRouteToHostException nrthe) { System.out.println("host: " + url.getHost()); nrthe.printStackTrace(); } } private void initConnection() throws IOException { initSocket(); sendHeaders(); } private void sendH
Re: tomcat5.5, balancer
Julio Cesar Leiva schrieb: Hi all We have this setup 1 web server apache 2.2.0 I hope it's not 2.2.0 but something more recent (e.g. 2.2.4 or 2.2.6) 2 tomcat servers tomcat 5.5.20 mod_jk 1.2.25 This is our workers.properties Remove the next line, it's useless. workers.java_home=/usr/lib64/jvm/java worker.list=cbnbalancer,jkstatus Maybe add connect_timeout and prepost_timeout to the next two, and if it makes sense for the app also reply_timeout. See http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=172.20.23.12 worker.worker1.port=8009 worker.worker1.lbfactor=1 #worker.worker1.connection_pool_timeout=600 #worker.worker1.socket_keepalive=1 #worker.worker1.socket_timeout=60 worker.worker1.socket_timeout=0 # Define prefered failover node for worker1 worker.worker1.redirect=worker2 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=172.20.21.211 worker.worker2.port=8009 worker.worker2.lbfactor=1 #worker.worker2.connection_pool_timeout=600 #worker.worker2.socket_keepalive=1 #worker.worker2.socket_timeout=60 worker.worker2.socket_timeout=0 # Define prefered failover node for worker2 worker.worker2.redirect=worker1 method T (Traffic) does only make sense, if you are bandwidth limited in the network and thus want to balance w.r.t bytes transferred. # Set properties for balancer which use worker1 and worker2 worker.cbnbalancer.type=lb worker.cbnbalancer.method=T worker.cbnbalancer.balance_workers=worker2,worker1 # Enable sticky-sessions (aka session affinity) worker.cbnbalancer.sticky_session=1 # Define a 'jkstatus' worker using status worker.jkstatus.type=status # Add the jkstatus mount point Maybe a little simpler, if you omit the trailing '*', thus mapping the exact URL /jkmanager/. JkMount /jkmanager/* jkstatus # Enable the JK manager access from localhost only This is part of one server.xml connectionTimeout=60 would be a good fit to the 600 in your jk configuration. 2000 Threads is a lot, are you sure, that your OS can create that many Threads for a JVM (Memory issues possible)? If you only allow 700 parallel requests in Apache, you don't need more than 700 (+1?) threads in the AJP connector. minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is the second tomcat minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is part of the apache conf Which mpm, prefork? # number of server processes to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers StartServers 5 # minimum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers MinSpareServers 5 # maximum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers MaxSpareServers 10 # highest possible MaxClients setting for the lifetime of the Apache process. # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit ServerLimit700 # maximum number of server processes allowed to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients MaxClients 700 # maximum number of requests a server process serves # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild MaxRequestsPerChild 1 We are trying to test this with 600 clients , when we reach 200 , everything gets stuck any ideas? Thanks in advance four your help JulioC. How do clients relate to parallel requests? What's the throughput before it gets stuck? What does a Java Thread Dump of Tomcat tell you? What is the status in the jk status worker? Which kind of errors in the jk log do you get? 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: tomcat5.5, balancer
Julio Cesar Leiva wrote: Hi all We have this setup 1 web server apache 2.2.0 2 tomcat servers tomcat 5.5.20 mod_jk 1.2.25 This is our workers.properties workers.java_home=/usr/lib64/jvm/java worker.list=cbnbalancer,jkstatus # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=172.20.23.12 worker.worker1.port=8009 worker.worker1.lbfactor=1 #worker.worker1.connection_pool_timeout=600 #worker.worker1.socket_keepalive=1 #worker.worker1.socket_timeout=60 worker.worker1.socket_timeout=0 # Define prefered failover node for worker1 worker.worker1.redirect=worker2 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=172.20.21.211 worker.worker2.port=8009 worker.worker2.lbfactor=1 #worker.worker2.connection_pool_timeout=600 #worker.worker2.socket_keepalive=1 #worker.worker2.socket_timeout=60 worker.worker2.socket_timeout=0 # Define prefered failover node for worker2 worker.worker2.redirect=worker1 # Set properties for balancer which use worker1 and worker2 worker.cbnbalancer.type=lb worker.cbnbalancer.method=T worker.cbnbalancer.balance_workers=worker2,worker1 # Enable sticky-sessions (aka session affinity) worker.cbnbalancer.sticky_session=1 # Define a 'jkstatus' worker using status worker.jkstatus.type=status # Add the jkstatus mount point JkMount /jkmanager/* jkstatus # Enable the JK manager access from localhost only This is part of one server.xml minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is the second tomcat minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is part of the apache conf # number of server processes to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers StartServers 5 # minimum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers MinSpareServers 5 # maximum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers MaxSpareServers 10 # highest possible MaxClients setting for the lifetime of the Apache process. # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit ServerLimit700 # maximum number of server processes allowed to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients MaxClients 700 # maximum number of requests a server process serves # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild MaxRequestsPerChild 1 We are trying to test this with 600 clients , when we reach 200 , everything gets stuck any ideas? Thanks in advance four your help JulioC. Hi Julio, What is the MaxClients setting in httpd.conf? Also is there a central Database - that could also be a possible bottleneck with regards to connections. -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement http://www.ngasi.com>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]
tomcat5.5, balancer
Hi all We have this setup 1 web server apache 2.2.0 2 tomcat servers tomcat 5.5.20 mod_jk 1.2.25 This is our workers.properties workers.java_home=/usr/lib64/jvm/java worker.list=cbnbalancer,jkstatus # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=172.20.23.12 worker.worker1.port=8009 worker.worker1.lbfactor=1 #worker.worker1.connection_pool_timeout=600 #worker.worker1.socket_keepalive=1 #worker.worker1.socket_timeout=60 worker.worker1.socket_timeout=0 # Define prefered failover node for worker1 worker.worker1.redirect=worker2 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=172.20.21.211 worker.worker2.port=8009 worker.worker2.lbfactor=1 #worker.worker2.connection_pool_timeout=600 #worker.worker2.socket_keepalive=1 #worker.worker2.socket_timeout=60 worker.worker2.socket_timeout=0 # Define prefered failover node for worker2 worker.worker2.redirect=worker1 # Set properties for balancer which use worker1 and worker2 worker.cbnbalancer.type=lb worker.cbnbalancer.method=T worker.cbnbalancer.balance_workers=worker2,worker1 # Enable sticky-sessions (aka session affinity) worker.cbnbalancer.sticky_session=1 # Define a 'jkstatus' worker using status worker.jkstatus.type=status # Add the jkstatus mount point JkMount /jkmanager/* jkstatus # Enable the JK manager access from localhost only This is part of one server.xml minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is the second tomcat minSpareThreads="100" maxSpareThreads="150" maxProcessors="0" protocol="AJP/1.3" connectionTimeout="0"/> This is part of the apache conf # number of server processes to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers StartServers 5 # minimum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers MinSpareServers 5 # maximum number of server processes which are kept spare # http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers MaxSpareServers 10 # highest possible MaxClients setting for the lifetime of the Apache process. # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit ServerLimit700 # maximum number of server processes allowed to start # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients MaxClients 700 # maximum number of requests a server process serves # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild MaxRequestsPerChild 1 We are trying to test this with 600 clients , when we reach 200 , everything gets stuck any ideas? Thanks in advance four your help JulioC. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded tomcat 5.5.17 and WAR file
Hi All, I am trying to embedded tomcat5.5.17 in my java application. I want Tomcat to unpack *.WAR file Tomcat starts fine but http://localhost:8080/ keeps saying HTTP status 404. I am not sure if it could unpack given WAR file. Could anyone guide me here. Also how to see the log file. 5.5.17 version seems to be different than 4.XX Here is the code I am using >>.>> package test.embed; import java.io.File; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import java.net.URL; import org.apache.catalina.*; import org.apache.catalina.core.*; import org.apache.catalina.connector.*; import org.apache.catalina.Context.*; import org.apache.catalina.Engine.*; import org.apache.catalina.Host.*; import org.apache.catalina.core.StandardContext; import org.apache.catalina.core.StandardEngine; import org.apache.catalina.core.StandardHost; import org.apache.catalina.startup.*; public class WebAppServer { private String baseDir; private String workDir; private String tempDir; private String warFile; private Embedded tomcat; private StandardHost host; public WebAppServer(String baseDir) { this.baseDir = baseDir; System.setProperty("catalina.home", baseDir); tempDir = System.getProperty("java.io.tmpdir"); if (tempDir != null) workDir = tempDir + "/tomcat"; else workDir = System.getProperty("user.dir") + "/tomcat"; } public void setWarFile(String warFile) { this.warFile = warFile; } public void start() throws Exception { tomcat = new Embedded(); Engine engine = tomcat.createEngine(); engine.setDefaultHost("localhost"); host = (StandardHost)tomcat.createHost("localhost", baseDir + "/apps"); host.setDeployOnStartup(true); host.setWorkDir(workDir); host.setUnpackWARs(true); host.setAutoDeploy(true); StandardContext context =(StandardContext)tomcat.createContext("",baseDir + "/apps" ); context.setReloadable(false); ((StandardContext)context).setWorkDir(workDir + "/localhost"); ((StandardContext)context).setDefaultWebXml("web.xml"); System.out.println("Inside START2, warFile= "+ warFile); ((StandardContext)context).setUnpackWAR(true); host.addChild(context); System.out.println("Inside START11, warFile= "+ warFile); engine.addChild(host); tomcat.addEngine(engine); Connector connector = tomcat.createConnector((String)null, 8080, false); tomcat.addConnector(connector); tomcat.start(); System.out.println("host logger "+host.getLogger()); System.out.println("Inside autodeploy="+host.getAutoDeploy()); System.out.println("Inside contextclass="+host.getContextClass()); System.out.println("Inside START, workDir= "+ workDir); System.out.println("Inside START, appl base="+host.getAppBase()); } public void stop() throws Exception { tomcat.stop(); } /** * Registers a WAR with the container. * * @param contextPath - *the context path under which the application will be *registered * @param warFile - *the URL of the WAR to be registered. */ public void registerWAR(String contextPath, String absolutePath) throws Exception { StandardContext context = (StandardContext)this.tomcat.createContext(contextPath, absolutePath); context.setReloadable(false); System.out.println("Inside START, warFile= "+ warFile); this.host.addChild(context); } /** * Unregisters a WAR from the web server. * * @param contextPath - *the context path to be removed */ public void unregisterWAR(String contextPath) throws Exception { Context context = this.host.map(contextPath); if (context != null) { this.tomcat.removeContext(context); } else { throw new Exception("Context does not exist for named path : " + contextPath); } } public static void main(String[] args) { String baseDir = System.getProperty("base"); if (baseDir == null) { System.out.println("You must specify the -Dbase=[dir] option"); System.exit(-1); } if (args.length == 0) { System.out.println("Usage: WebAppServer [warfilename]"); System.exit(-1); } String warFile = "file:" + baseDir + "/" + args[0]; System.out.println("baseDir" +baseDir ); System.out.println("warfile" +warFile ); WebAppServer was = new WebAppServer(baseDir); try { was.setWarFile(warFile); System.out.println("warfile in" +warFil
Re: comet questions
Using the NIO connector: protocol="org.apache.coyote.http11.Http11NioProtocol". I'll add response.flushBuffer() and see if that helps. The tomcat version I was testing against was current with svn as of last Friday. I just updated and the only files that are new are: catalina.policy STATUS.txt changelog.xml Any ideas about the timeout setting or the comet error event without a subtype? Thanks for your response! Peter On Jan 7, 2008 12:44 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > what connector are you using? > I would try to use response.flushBuffer when you wanna flush it out (ie > after you've written to and flushed your stream). > > also, there have been some bug fixes, that you can get from SVN, or wait > for 6.0.16 to come out > > Filip > > > Peter Warren wrote: > > I have some comet questions. I'm using the tomcat 6.0.x trunk as of > > last Friday. > > > > 1) My comet event timeout setting being honored. How come? I set the > > timeout for 3 hours but a timeout event gets generated every 2 > > minutes. If I inspect the comet event for which the timeout is > > triggered, I see a setting for the request attribute of: > > org.apache.tomcat.comet.timeout=1080. > > > > I set it as follows: > > > > public void event(CometEvent cometEvent) throws IOException, > > ServletException { > > ... > > if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) { > > // COMET_TIMEOUT = 3 * 60 * 60 * 1000 > > cometEvent.setTimeout(TimingConstants.COMET_TIMEOUT); > > > > Do I need to set something else as well? > > > > 2) Occasionally I'm getting a comet event of type ERROR without any > > subtype (i.e. not TIMEOUT, CLIENT_DISCONNECT, etc.). What does that > > indicate? I don't see any errors in my catalina log. > > > > 3) Reading the response from a comet servlet fails for one of my > > client machines. I wrote a simple test to check the problem. This > > test succeeds for many other users. For the failing client, the > > client request is received by the comet servlet, and the servlet's > > response is written and flushed to the stream. The client then simply > > waits indefinitely trying to read the response. The failing client is > > a Windows XP machine. Could anyone shed some light on why this might > > be happening, or give me some clues as to how to debug? Could it be a > > firewall issue on the client end, a router issue on my end? > > > > The test is currently up at: http://www.seekspeak.com/test.html. It > > tests: a http connection to a normal servlet, then a comet connection > > to a comet servlet using httpurlconnection, then a comet connection to > > a comet servlet using a socket. For the failing client, both comet > > tests fail. > > > > Below is some of the test code for the raw socket test. > > > > Thanks for any help! > > > > Peter > > > > CLIENT > > -- > > private void testCometConnection() throws IOException { > > ... > > URL url = new URL("http://www.seekspeak.com/CometTest";); > > channel = new CometChannel(url); > > Thread testThread = new Thread() { > > public void run() { > > try { > > channel.send("test"); > > String received = channel.receive(); > > ... > > } > > } catch (IOException ioe) { > > ioe.printStackTrace(); > > } > > } > > }; > > testThread.start(); > > ... > > } > > > > private class CometChannel { > > > > private static final int INPUT_BUFFER_SIZE = 512; > > > > private static final int OUTPUT_BUFFER_SIZE = 512; > > > > private static final String DELIMITER = "\r\n"; > > > > private URL url; > > > > private BufferedReader inputReader; > > > > private PrintWriter outputWriter; > > > > private Socket socket; > > > > public CometChannel(URL url) throws IOException { > > this.url = url; > > initConnection(); > > } > > > > private void initSocket() throws IOException { > > int port = url.getPort(); > > port = (port < 0) ? url.getDefaultPort() : port; > > try { > > socket = new Socket(url.getHost(), port); > > socket.setKeepAlive(true); > > inputReader = new BufferedReader(new > > InputStreamReader(socket.getInputStream()), INPUT_BUFFER_SIZE); > > outputWriter = new PrintWriter(new BufferedWriter(new > > OutputStreamWriter(socket.getOutputStream()), > > OUTPUT_BUFFER_SIZE)); > > } catch (NoRouteToHostException nrthe) { > > System.out.println("host: " + url.getHost()); > > nrthe.printStackTrace(); > > } > > } > > > > private void initConnection() throws IOException { > >
Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?
Delian Krustev wrote: On Thu, 27 Dec 2007 16:04:29 +0200 Delian Krustev wrote: I'll monitor the container for the next several restarts. The problem appeared once again on the next tomcat restart. Any other ideas ? Not right now. Could you provide the full debug stack trace again please. We should at least see a different problem now the code has been changed. Cheers, 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: One of my boxes, the cluster is not working anymore
easiest way to see your packets fly by, is to use wireshark and just sniff UDP packets Filip Randy Paries wrote: On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. this indicates that the box not working, is not receiving multicast messages from the other nodes. you'd need to look into the multicasting configuration in server.xml and also on your box/network Filip Randy Paries wrote: Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. ///Stuff Deleted --- Filip, thanks for responding. All three boxes have this in the server.xml Any ideas on how to test to see if this one box is recieving multicast messages? - 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: comet questions
what connector are you using? I would try to use response.flushBuffer when you wanna flush it out (ie after you've written to and flushed your stream). also, there have been some bug fixes, that you can get from SVN, or wait for 6.0.16 to come out Filip Peter Warren wrote: I have some comet questions. I'm using the tomcat 6.0.x trunk as of last Friday. 1) My comet event timeout setting being honored. How come? I set the timeout for 3 hours but a timeout event gets generated every 2 minutes. If I inspect the comet event for which the timeout is triggered, I see a setting for the request attribute of: org.apache.tomcat.comet.timeout=1080. I set it as follows: public void event(CometEvent cometEvent) throws IOException, ServletException { ... if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) { // COMET_TIMEOUT = 3 * 60 * 60 * 1000 cometEvent.setTimeout(TimingConstants.COMET_TIMEOUT); Do I need to set something else as well? 2) Occasionally I'm getting a comet event of type ERROR without any subtype (i.e. not TIMEOUT, CLIENT_DISCONNECT, etc.). What does that indicate? I don't see any errors in my catalina log. 3) Reading the response from a comet servlet fails for one of my client machines. I wrote a simple test to check the problem. This test succeeds for many other users. For the failing client, the client request is received by the comet servlet, and the servlet's response is written and flushed to the stream. The client then simply waits indefinitely trying to read the response. The failing client is a Windows XP machine. Could anyone shed some light on why this might be happening, or give me some clues as to how to debug? Could it be a firewall issue on the client end, a router issue on my end? The test is currently up at: http://www.seekspeak.com/test.html. It tests: a http connection to a normal servlet, then a comet connection to a comet servlet using httpurlconnection, then a comet connection to a comet servlet using a socket. For the failing client, both comet tests fail. Below is some of the test code for the raw socket test. Thanks for any help! Peter CLIENT -- private void testCometConnection() throws IOException { ... URL url = new URL("http://www.seekspeak.com/CometTest";); channel = new CometChannel(url); Thread testThread = new Thread() { public void run() { try { channel.send("test"); String received = channel.receive(); ... } } catch (IOException ioe) { ioe.printStackTrace(); } } }; testThread.start(); ... } private class CometChannel { private static final int INPUT_BUFFER_SIZE = 512; private static final int OUTPUT_BUFFER_SIZE = 512; private static final String DELIMITER = "\r\n"; private URL url; private BufferedReader inputReader; private PrintWriter outputWriter; private Socket socket; public CometChannel(URL url) throws IOException { this.url = url; initConnection(); } private void initSocket() throws IOException { int port = url.getPort(); port = (port < 0) ? url.getDefaultPort() : port; try { socket = new Socket(url.getHost(), port); socket.setKeepAlive(true); inputReader = new BufferedReader(new InputStreamReader(socket.getInputStream()), INPUT_BUFFER_SIZE); outputWriter = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()), OUTPUT_BUFFER_SIZE)); } catch (NoRouteToHostException nrthe) { System.out.println("host: " + url.getHost()); nrthe.printStackTrace(); } } private void initConnection() throws IOException { initSocket(); sendHeaders(); } private void sendHeaders() { String path = url.getPath(); StringBuffer outputBuffer = new StringBuffer(); outputBuffer.append("POST " + path + " HTTP/1.1" + DELIMITER); outputBuffer.append("Host: " + url.getHost() + DELIMITER); outputBuffer.append("User-Agent: CometTestApplet" + DELIMITER); outputBuffer.append("Connection: keep-alive" + DELIMITER); outputBuffer.append("Content-Type: text/plain" + DELIMITER); outputBuffer.append("Transfer-Encoding: chunked" + DELIMITER); outputBuffer.append(DELIMITER); synchronized (outputWriter) { outputWriter.print(outputBuffer.toString()); } } public void send(String chunkData) throws IOException { // chunk length field in hex
Database connectivity problem
Please help figure out a connection pool error. My application ( tomcat, spring, ibatis ) works well in the configuration SQL 2000 + ms server 2000. When I transfer the application ( war ) to a win 2003 server I get an error ( error creating connection pool e.t.c. ) (I think ms server 2003 needs to be adjusted). Please help.
Re: One of my boxes, the cluster is not working anymore
On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions > INFO: Manager []: skipping state transfer. No members active in cluster group. > > this indicates that the box not working, is not receiving multicast > messages from the other nodes. > you'd need to look into the multicasting configuration in server.xml and > also on your box/network > > Filip > > > Randy Paries wrote: > > Hello, > > I need some help. > > I rolled out a new version of my web app last night > > Stopped and started tomcat and now one of my boxes (they all have the > > same webapp) will not attach(if that is the correct term) to the > > cluster. I am doing session sharing between three tomcat servers. I > > did not change any of the server.xml stuff > > I am running tomcat 5.5.15 > > > > Please help ASAP, this is a production box and not sure what to do. > > > > this is from the catalina.out on a working Box. ///Stuff Deleted --- Filip, thanks for responding. All three boxes have this in the server.xml Any ideas on how to test to see if this one box is recieving multicast messages? - 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: One of my boxes, the cluster is not working anymore
org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. this indicates that the box not working, is not receiving multicast messages from the other nodes. you'd need to look into the multicasting configuration in server.xml and also on your box/network Filip Randy Paries wrote: Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. == Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 4:01:01 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://xxx.xxx.190.3:4001,catalina,xxx.xxx.190.3,4001, alive=432223] Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. this is from the catalina.out on the broken Box. == Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager to cluster element Host with name localhost Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. Jan 7, 2008 12:24:33 PM org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.(CustomObjectInputStream.java:57) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361) at org.apache.catalina.session.StandardManager.load(StandardManager.java:320) at org.apache.catalina.session.StandardManager.start(StandardManager.java:636) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:403) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4111) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910) at org.apache.ca
comet questions
I have some comet questions. I'm using the tomcat 6.0.x trunk as of last Friday. 1) My comet event timeout setting being honored. How come? I set the timeout for 3 hours but a timeout event gets generated every 2 minutes. If I inspect the comet event for which the timeout is triggered, I see a setting for the request attribute of: org.apache.tomcat.comet.timeout=1080. I set it as follows: public void event(CometEvent cometEvent) throws IOException, ServletException { ... if (cometEvent.getEventType() == CometEvent.EventType.BEGIN) { // COMET_TIMEOUT = 3 * 60 * 60 * 1000 cometEvent.setTimeout(TimingConstants.COMET_TIMEOUT); Do I need to set something else as well? 2) Occasionally I'm getting a comet event of type ERROR without any subtype (i.e. not TIMEOUT, CLIENT_DISCONNECT, etc.). What does that indicate? I don't see any errors in my catalina log. 3) Reading the response from a comet servlet fails for one of my client machines. I wrote a simple test to check the problem. This test succeeds for many other users. For the failing client, the client request is received by the comet servlet, and the servlet's response is written and flushed to the stream. The client then simply waits indefinitely trying to read the response. The failing client is a Windows XP machine. Could anyone shed some light on why this might be happening, or give me some clues as to how to debug? Could it be a firewall issue on the client end, a router issue on my end? The test is currently up at: http://www.seekspeak.com/test.html. It tests: a http connection to a normal servlet, then a comet connection to a comet servlet using httpurlconnection, then a comet connection to a comet servlet using a socket. For the failing client, both comet tests fail. Below is some of the test code for the raw socket test. Thanks for any help! Peter CLIENT -- private void testCometConnection() throws IOException { ... URL url = new URL("http://www.seekspeak.com/CometTest";); channel = new CometChannel(url); Thread testThread = new Thread() { public void run() { try { channel.send("test"); String received = channel.receive(); ... } } catch (IOException ioe) { ioe.printStackTrace(); } } }; testThread.start(); ... } private class CometChannel { private static final int INPUT_BUFFER_SIZE = 512; private static final int OUTPUT_BUFFER_SIZE = 512; private static final String DELIMITER = "\r\n"; private URL url; private BufferedReader inputReader; private PrintWriter outputWriter; private Socket socket; public CometChannel(URL url) throws IOException { this.url = url; initConnection(); } private void initSocket() throws IOException { int port = url.getPort(); port = (port < 0) ? url.getDefaultPort() : port; try { socket = new Socket(url.getHost(), port); socket.setKeepAlive(true); inputReader = new BufferedReader(new InputStreamReader(socket.getInputStream()), INPUT_BUFFER_SIZE); outputWriter = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()), OUTPUT_BUFFER_SIZE)); } catch (NoRouteToHostException nrthe) { System.out.println("host: " + url.getHost()); nrthe.printStackTrace(); } } private void initConnection() throws IOException { initSocket(); sendHeaders(); } private void sendHeaders() { String path = url.getPath(); StringBuffer outputBuffer = new StringBuffer(); outputBuffer.append("POST " + path + " HTTP/1.1" + DELIMITER); outputBuffer.append("Host: " + url.getHost() + DELIMITER); outputBuffer.append("User-Agent: CometTestApplet" + DELIMITER); outputBuffer.append("Connection: keep-alive" + DELIMITER); outputBuffer.append("Content-Type: text/plain" + DELIMITER); outputBuffer.append("Transfer-Encoding: chunked" + DELIMITER); outputBuffer.append(DELIMITER); synchronized (outputWriter) { outputWriter.print(outputBuffer.toString()); } } public void send(String chunkData) throws IOException { // chunk length field in hex String hexChunkLength = Integer.toHexString(chunkData.length()); StringBuffer outputBuffer = new StringBuffer(); outputBuffer.append(hexChunkLength); outputBuffer.append(DELIMITER); outputBuffer.append(chunkData);
One of my boxes, the cluster is not working anymore
Hello, I need some help. I rolled out a new version of my web app last night Stopped and started tomcat and now one of my boxes (they all have the same webapp) will not attach(if that is the correct term) to the cluster. I am doing session sharing between three tomcat servers. I did not change any of the server.xml stuff I am running tomcat 5.5.15 Please help ASAP, this is a production box and not sure what to do. this is from the catalina.out on a working Box. == Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 4:01:00 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 4:01:01 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://xxx.xxx.190.3:4001,catalina,xxx.xxx.190.3,4001, alive=432223] Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 4:01:02 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. this is from the catalina.out on the broken Box. == Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSender,host=localhost Jan 7, 2008 12:24:27 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jan 7, 2008 12:24:29 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Register manager to cluster element Host with name localhost Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager at Jan 7, 2008 12:24:31 PM org.apache.catalina.cluster.session.DeltaManager getAllClusterSessions INFO: Manager []: skipping state transfer. No members active in cluster group. Jan 7, 2008 12:24:33 PM org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2228) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at org.apache.catalina.util.CustomObjectInputStream.(CustomObjectInputStream.java:57) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361) at org.apache.catalina.session.StandardManager.load(StandardManager.java:320) at org.apache.catalina.session.StandardManager.start(StandardManager.java:636) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:403) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4111) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleE
Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?
On Thu, 27 Dec 2007 16:04:29 +0200 Delian Krustev wrote: > I'll monitor the container for the next several restarts. The problem appeared once again on the next tomcat restart. Any other ideas ? - 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 stop WSDL modification
Use true in your service.xml (web service descriptor). Otherwise axis2 generates wsdl out of runtime java classes. Gennady. -Original Message- From: Gardiner, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 17:06 To: users@tomcat.apache.org Subject: How to stop WSDL modification Hi, I tried looking for a solution to this but couldn't find anyone actually complaining about this behaviour. I'm using Tomcat 6 with Axis2. My WSDL defines messages like this: But when I visit the site through a browser to view the WSDL it shows up like: Why is it that the name seems to get changed? Is there a way to stop tomcat from making any changes, or to make sure that it uses something better than 'part1'? Thanks, Mike Gardiner The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it. - 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 + HttpClient + SSL + tcnative-1.dll issues?
Good find Mark! It definitely does sound like the issue you linked. We'll try building the code ourselves and see if it takes care of the issue. Thanks, Jim -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 5:39 PM To: Tomcat Users List Subject: Re: Tomcat + HttpClient + SSL + tcnative-1.dll issues? JP Beaudry wrote: > How do we go about debugging this? Is there any lower level tracing we > can enable? Somewhere between the Tomcat access log and a sniffer trace? This sounds like http://issues.apache.org/bugzilla/show_bug.cgi?id=44087 A new native release is planned shortly to fix this. In the meantime, you could try building from the source and seeing if the issue you are seeing is indeed fixed. 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]
RE: Please help : StackOverFlow error
> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED] > Is there a way of determining what are "reasonable" values > for the stack > size (maybe according to the potential number of threads, ...) ? Profile the app. And, for you in particular, know how deep the recursion will go and hence how large one stack needs to be. Also, can you move any data off the stack onto the heap? This reduces your maximum stack size. - 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: Please help : StackOverFlow error
Hi Peter, Thanks a lot. '-Xss' option works great. Is there a way of determining what are "reasonable" values for the stack size (maybe according to the potential number of threads, ...) ? In fact I am not really used to such configurations... Thanks again Cheers, Benoit Le 7/01/08 16:33, « Peter Crowther » <[EMAIL PROTECTED]> a écrit : >> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED] >>> "Exception in thread "Thread-8" java.lang.StackOverflowError" >> >> The expansive algorithm is a recursive one. >> >> I now always have StackOverFlow exceptions. >> >> I have already tried to customize JVM memory options with the >> following line >> in my ".profile" file : >>>export CATALINA_OPTS="-server -showversion -Xmx512m" >> But I always have the same error message. >> >> Can anyone help me ? > > Check -Xss - this changes the stack size. You might want to change this. > > - 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] > > This email contains confidential and proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If you have received this email in error, please notify the author immediately by telephone or by replying to this email. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this email. - 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 -Catalina.out : Application failing with java.net.SocketException
David Delbecq-2 wrote: > > It's probably a timeout between the front end http server (apache?) and > the back end tomcat installation, related to mod_jk. IThe java > application takes too long to start generating an answer and the http > server (apache?) considers there is a problem and closes connection. > What you see in catalina.out is the result when the webapp starts to > write output and the connection has already been closed. This is just my > opinion, could be something else :) > Thank you, if that is the case where/what parameters should be changed? Thanks for your time. -- View this message in context: http://www.nabble.com/TomCat--Catalina.out--%3A-Application-failing-with-java.net.SocketException-tp14658933p14668780.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: Please help : StackOverFlow error
> From: Benoit VARVENNE [mailto:[EMAIL PROTECTED] > > "Exception in thread "Thread-8" java.lang.StackOverflowError" > > The expansive algorithm is a recursive one. > > I now always have StackOverFlow exceptions. > > I have already tried to customize JVM memory options with the > following line > in my ".profile" file : > >export CATALINA_OPTS="-server -showversion -Xmx512m" > But I always have the same error message. > > Can anyone help me ? Check -Xss - this changes the stack size. You might want to change this. - 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]
Please help : StackOverFlow error
Hello, I'm running a quite "memory-expansive" algorithm under Tomcat and I then got the following error message : > "Exception in thread "Thread-8" java.lang.StackOverflowError" The expansive algorithm is a recursive one. What is done is : - (1) launch a servlet, retrieves user's parameters for the algorithm - (2) launch a thread (my class extends Thread), corresponding to the launcher of the high-cost algorithm - ... The fact is that when I ran the algorithm on my computer (a mac OS X, 1.25Gb RAM) with the same test data, I had no problem and had no need to customize JVM memory options At this time, the algorithm was not implemented as a thread. As I'm now deploying this on a server (mac OS X, 4Gb RAM), it has become a thread launched by a servlet. I now always have StackOverFlow exceptions. I have already tried to customize JVM memory options with the following line in my ".profile" file : >export CATALINA_OPTS="-server -showversion -Xmx512m" But I always have the same error message. Can anyone help me ? Thanks a lot Regards Benoit V. This email contains confidential and proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If you have received this email in error, please notify the author immediately by telephone or by replying to this email. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this email. - 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.20+ behind an F5 Load Balancer doing SSL Connector problem
Hi, use a quot at AccessLogValve pattern to a muliple value field. "%{X-Forwarded-For}i" %l %u %t "%r" %s %b Look the following definition: http://en.wikipedia.org/wiki/X- Forwarded-For First value is the client ip. Peter Am 05.01.2008 um 22:19 schrieb Rainer Jung: Hi Gregory, the descriptions below work (at least) for TC 5.0/5.5/6.0. Gregory Gerard schrieb: I've got an F5 load balancer running version 9.3 of the software. I've got several Tomcat installations behind it. The F5 does all SSL and clear traffic as a reverse proxy, rewriting headers as needed for cookies and whatnot. I have one connector on 8080 for the clear traffic. My problem: I tried to add another connector on 8081 setting secure to true so that the HttpServletRequest would say, yup, this is a secure connection and tell the 8080 connector 8081 is the secure address it should use when trying to upshift to higher security. Don't use "secure", use scheme="https" instead. See http://tomcat.apache.org/tomcat-6.0-doc/config/http.html When I did this and started Tomcat up, it whined about not being able to open up my keystore. I want all my SSL to offloaded and keep the keys out of each machine and centrally managed. I *just* want to get the servlets to believe the connection is secure. This is analogous to HTTPd doing the SSL offload with the mod_jk connector. Also, the header X-Forwarded-For is set by the F5 and I'd like the Connector to also give out this IP instead of the load balancer's. I assume you are talking about the access log? For common log format, but using the client IP, you take the pattern: %{X-Forwarded-For}i %l %u %t "%r" %s %b See: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html Caution: X-Forwarded-For can contain multiple IP addresses, if the request passed through multiple proxies and they are configured to add IPs, not to overwrite. Keep this in mind when doing analysis on the field. Any ideas short of recompiling Tomcat with a modified connector? Anyone else faced this problem? There should be no need for code changes :) thanks, greg 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: Tomcat as Service -- Working Directory is system32
> From: grailcattt [mailto:[EMAIL PROTECTED] > Subject: Tomcat as Service -- Working Directory is system32 > > Is there a way to set a working directory for Tomcat? It's under the Startup tab for tomcat6w.exe or tomcat5w.exe. > Is there a way to specify in Grails where to look for files? Wrong list for that question. - 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]
How to stop WSDL modification
Hi, I tried looking for a solution to this but couldn't find anyone actually complaining about this behaviour. I'm using Tomcat 6 with Axis2. My WSDL defines messages like this: But when I visit the site through a browser to view the WSDL it shows up like: Why is it that the name seems to get changed? Is there a way to stop tomcat from making any changes, or to make sure that it uses something better than 'part1'? Thanks, Mike Gardiner The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it.
Tomcat as Service -- Working Directory is system32
When I run Tomcat as a service, the working directory becomes c:\windows\system32. I'm using Grails and it tries to load application.properties and other files such as images from this path. My current workaround is to copy all these files into system32 (i.e. images have to go in c:\windows\system32\web-app\images). But that needs to be fixed properly. Is there a way to set a working directory for Tomcat? - OR - Is there a way to specify in Grails where to look for files? Thanks much. Michael -- View this message in context: http://www.nabble.com/Tomcat-as-ServiceWorking-Directory-is-system32-tp14668013p14668013.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
as the previous user mentioned, if you copy libraries to different places, and sometimes to multiple places, you're going down a path that will be hard to debug. start fresh, don't place libraries inside tomcat, unless you know what you're doing, and only use WEB-INF/lib Filip Thomas Chang wrote: This jar (spring.jar) is already in the WEB-INF/lib. common/lib is not the good place to put your war's required jar files (like spring.jar). You war's required jar should go to WEB-INF/lib http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html En l'instant précis du 07/01/08 11:54, Thomas Chang s'exprimait en ces termes: I download the Tomcat 5.5.17 and I got the same exception. I am not sure it is really the downloaded file is corrupt. The war I deploy is a spring application. At the beginning as I deploy it, I got exception like: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader .. Then I copy the spring.jar onto /tomcat_home/commond/lib and reploy my war again. Then I got the exception as mentioned earlier. ** Your download is most probably corrupted, redownload the file from server, and extract it to a fresh new folder. This kind of error can happen when one of the tomcat jar file is either corrupted or just missing. En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces termes: Hi all, I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? ** 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start SCHWERWIEGEND: LifecycleException java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) at javax.servlet.
Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
Bad move. Each jar should only exist once. If it's in tomcat's common/lib, it can't exist in your webapp's WEB-INF/lib and vice-versa. I suspect this is more a spring question than a tomcat question as spring does some interesting things with the classloader. The class in question in particular seems to requre another jar named spring-tomcat-weaver.jar in tomcat's server/lib directory as well as a element in your context.xml file. --David Thomas Chang wrote: I download the Tomcat 5.5.17 and I got the same exception. I am not sure it is really the downloaded file is corrupt. The war I deploy is a spring application. At the beginning as I deploy it, I got exception like: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader ... Then I copy the spring.jar onto /tomcat_home/commond/lib and reploy my war again. Then I got the exception as mentioned earlier. ** Your download is most probably corrupted, redownload the file from server, and extract it to a fresh new folder. This kind of error can happen when one of the tomcat jar file is either corrupted or just missing. En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces termes: Hi all, I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? ** 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start SCHWERWIEGEND: LifecycleException java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.Standard
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Hi all, As I try to deploy my WAR in the office I got exception as follow. Somebody knows why? I do the same deployment at home and it runs well. Could be a problem of fire wall of my company? Regards Thomas *** SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/faces-config.xml]; nested exception is java.net.ConnectException: Connection timed out: connect Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:917) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:78) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(Standar
Re: mod_jk "Busyness" algorithm and Node Health Check
Mohan2005 wrote: Hello Rainer; Thanks. So if I have it right, sorry if I keep repeating whats been stated already, all the load-balancer algorithms are not really checking node health as in JVM Memory usage, CPU usage or Threads used at any given time (which I believe is a feature in a future mod_jk ? ), Only checks the Network Latency (Network Response ) through Cping and Cpong methods as a nodes health as described in http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html Correct. Rainer Jung-3 wrote: Hi Mohan, Mohan2005 schrieb: Dear All; If I am not wrong, the "Busyness" algorithm routes requests to workers by checking their "Health" What criteria constitutes as a "nodes" "Health" and if so, How is it determined (using the native JVM or else ) All balancing methods of mod_jk share common aspects: 1) Don't send requests to workers, which are in error Workers go into error state, whenever mod_jk detects a failure during request processing with that worker. Which failures depends on the jk configuration. Mostly they are timeouts and network problems. 2) Use stickyness instead of load based balancing if not disabled 3) Decide about requests without sessions based on the load value of the workers, which are not in error What's the load value? That depends on the balancing method. - method "Request" (default): increase the load value of a worker by one for each request send to the worker and divide by two all load values every now and then (app. once a minute). So the load value is the comulative number of requests handled by the worker with a envelope curve that counts older requests less than more recent ones. This method tries to keep total work balanced. - method "Session": the same as Request, but do only count a request, if it didn't contain a session cookie or URL encoded session. It is not the same as actually knowing how many sessions each backend has. - method "Busyness": load value is the number of requests currently being processed by a worker. For example when load is low, most or all workers will have load value "0". This method tries to keep concurrency balanced. It will not be good in balancing total work. So: the health aspect is not special to method "Busyness". One could argue, that if one node gets slow, the concurrency will go up soon, so Busyness includes a good prevention for overload. On the other hand, using "Request" with a reply_timeout will also lead to such a prevention, because then a node that has overload will be put temporarily into error state. Mod_jk has no internal knowledge of the backends state, like Memory, Thread counts etc. It can only judge by the symptoms observed during the response handling (no connect possible, no cpong answer to a cping, response took longer than reply_timeout etc.). Whenever such a type of error is detected, the jk log should contain an error log line with an indication of the type of error. With JkLogLevel info you might get (info) log lines even if there is no hard error, but in case of a real error, you will get additional information about the root cause. Thanks you Regards Mohan 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: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
This jar (spring.jar) is already in the WEB-INF/lib. common/lib is not the good place to put your war's required jar files (like spring.jar). You war's required jar should go to WEB-INF/lib http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html En l'instant précis du 07/01/08 11:54, Thomas Chang s'exprimait en ces termes: > I download the Tomcat 5.5.17 and I got the same exception. > > I am not sure it is really the downloaded file is corrupt. The war I deploy is a spring application. At the beginning as I deploy it, I got exception like: > > java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader > .. > > Then I copy the spring.jar onto /tomcat_home/commond/lib and reploy my war again. Then I got the exception as mentioned earlier. > > > > ** > Your download is most probably corrupted, redownload the file from > server, and extract it to a fresh new folder. > This kind of error can happen when one of the tomcat jar file is either > > corrupted or just missing. > > > En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces > termes: > >> Hi all, >> >> I just download and install the Tomcat 5.5.23. As I try to deploy >> > my web application (a war file), I got exceptions as follow. Someone > knows why? > >> >> ** >> 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start >> SCHWERWIEGEND: LifecycleException >> java.lang.NoClassDefFoundError: >> > org/apache/catalina/loader/WebappClassLoader > >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >> at >> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:299) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:164) >> at >> > org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) > >> at >> > org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) > >> at >> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) > >> at >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) > >> at >> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > >> at >> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > >> at >> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) > >> at >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) > >> at >> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) > >> 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) > >> at >> > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) > >> at >> > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) > >> at >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) > >> at >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) > >> at >> > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) > >> at >> > org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) > >> at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > >> at >> > org.apache.cata
Re: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Hm, i think the complete stack-trace does not help further, but anyway: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) at de.retrobib.utils.RequestParameterFetcher.buildHashs (RequestParameterFetcher.java:156) at de.retrobib.utils.RequestParameterFetcher. (RequestParameterFetcher.java:58) at de.retrobib.actions.secure.BatchAction.executeAction (BatchAction.java:85) at de.retrobib.actions.RetrobibAction.execute(RetrobibAction.java:83) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.SecurityFilter.doFilter(SecurityFilter.java:93) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at de.retrobib.filter.URLFilter.doFilter(URLFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) I can not find a second commons...-lib. Maybe it is somewhere inside NetBeans 6.0...? Am 07.01.2008 um 12:12 schrieb David Delbecq: Check you don't have 2 versions of commons fileupload. Also, provide a more complete stacktrace to get meaningful answers :) En l'instant précis du 07/01/08 12:09, Christian Aschoff s'exprimait en ces termes: Hi, i have a webapplication developed with NetBeans 5.5. Everything is fine. But when i recompile it with NetBeans 6.01, i get a 2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java: 89) - Exception in Action java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest( ServletFileUpload.java:126) Exception when uploading files (via apache.commons.fileupload). I upgraded all librarys (io/collections/fileupload) but this does not helped. Any hint for me? Regards, Christian --- Dipl. Ing. (FH) Christian Aschoff Büro: Universität Ulm Kommunikations- und Informationszentrum Abt. Informationssysteme Raum O26/5403 Albert-Einstein-Allee 11 89081 Ulm Tel. 0731 50-22432 Fax. 0731 50-22471 [EMAIL PROTECTED] Privat: Fabristr. 13 89075 Ulm Deutschland/Old Europe Tel. 0731 602 803 60 Fax. 0731 602 803 61 Mob. 0171 272 03 04 [EMAIL PROTECTED] Helfen Sie mit: http://www.retrobibliothek.de - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.devlog.be (a belgian developer's logs) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Dipl.
Re: java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Check you don't have 2 versions of commons fileupload. Also, provide a more complete stacktrace to get meaningful answers :) En l'instant précis du 07/01/08 12:09, Christian Aschoff s'exprimait en ces termes: Hi, i have a webapplication developed with NetBeans 5.5. Everything is fine. But when i recompile it with NetBeans 6.01, i get a 2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java:89) - Exception in Action java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126) Exception when uploading files (via apache.commons.fileupload). I upgraded all librarys (io/collections/fileupload) but this does not helped. Any hint for me? Regards, Christian --- Dipl. Ing. (FH) Christian Aschoff Büro: Universität Ulm Kommunikations- und Informationszentrum Abt. Informationssysteme Raum O26/5403 Albert-Einstein-Allee 11 89081 Ulm Tel. 0731 50-22432 Fax. 0731 50-22471 [EMAIL PROTECTED] Privat: Fabristr. 13 89075 Ulm Deutschland/Old Europe Tel. 0731 602 803 60 Fax. 0731 602 803 61 Mob. 0171 272 03 04 [EMAIL PROTECTED] Helfen Sie mit: http://www.retrobibliothek.de - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.devlog.be (a belgian developer's logs) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest
Hi, i have a webapplication developed with NetBeans 5.5. Everything is fine. But when i recompile it with NetBeans 6.01, i get a 2008-01-07 10:13:51,244 ERROR [http-8084-2] (RetrobibAction.java:89) - Exception in Action java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List; at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) Exception when uploading files (via apache.commons.fileupload). I upgraded all librarys (io/collections/fileupload) but this does not helped. Any hint for me? Regards, Christian --- Dipl. Ing. (FH) Christian Aschoff Büro: Universität Ulm Kommunikations- und Informationszentrum Abt. Informationssysteme Raum O26/5403 Albert-Einstein-Allee 11 89081 Ulm Tel. 0731 50-22432 Fax. 0731 50-22471 [EMAIL PROTECTED] Privat: Fabristr. 13 89075 Ulm Deutschland/Old Europe Tel. 0731 602 803 60 Fax. 0731 602 803 61 Mob. 0171 272 03 04 [EMAIL PROTECTED] Helfen Sie mit: http://www.retrobibliothek.de - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
common/lib is not the good place to put your war's required jar files (like spring.jar). You war's required jar should go to WEB-INF/lib http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html En l'instant précis du 07/01/08 11:54, Thomas Chang s'exprimait en ces termes: I download the Tomcat 5.5.17 and I got the same exception. I am not sure it is really the downloaded file is corrupt. The war I deploy is a spring application. At the beginning as I deploy it, I got exception like: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader .. Then I copy the spring.jar onto /tomcat_home/commond/lib and reploy my war again. Then I got the exception as mentioned earlier. ** Your download is most probably corrupted, redownload the file from server, and extract it to a fresh new folder. This kind of error can happen when one of the tomcat jar file is either corrupted or just missing. En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces termes: Hi all, I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? ** 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start SCHWERWIEGEND: LifecycleException java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorRepo
Re: mod_jk "Busyness" algorithm and Node Health Check
Hello Rainer; Thanks. So if I have it right, sorry if I keep repeating whats been stated already, all the load-balancer algorithms are not really checking node health as in JVM Memory usage, CPU usage or Threads used at any given time (which I believe is a feature in a future mod_jk ? ), Only checks the Network Latency (Network Response ) through Cping and Cpong methods as a nodes health as described in http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html Regards Mohan Rainer Jung-3 wrote: > > Hi Mohan, > > Mohan2005 schrieb: >> Dear All; >> >> If I am not wrong, the "Busyness" algorithm routes requests to workers >> by >> checking their "Health" >> >> What criteria constitutes as a "nodes" "Health" >> and if so, >> How is it determined (using the native JVM or else ) > > All balancing methods of mod_jk share common aspects: > > 1) Don't send requests to workers, which are in error > > Workers go into error state, whenever mod_jk detects a failure during > request processing with that worker. > Which failures depends on the jk configuration. Mostly they are timeouts > and network problems. > > 2) Use stickyness instead of load based balancing if not disabled > > 3) Decide about requests without sessions based on the load value of the > workers, which are not in error > > What's the load value? > That depends on the balancing method. > > - method "Request" (default): increase the load value of a worker by one > for each request send to the worker and divide by two all load values > every now and then (app. once a minute). So the load value is the > comulative number of requests handled by the worker with a envelope > curve that counts older requests less than more recent ones. This method > tries to keep total work balanced. > > - method "Session": the same as Request, but do only count a request, if > it didn't contain a session cookie or URL encoded session. It is not the > same as actually knowing how many sessions each backend has. > > - method "Busyness": load value is the number of requests currently > being processed by a worker. For example when load is low, most or all > workers will have load value "0". This method tries to keep concurrency > balanced. It will not be good in balancing total work. > > So: the health aspect is not special to method "Busyness". One could > argue, that if one node gets slow, the concurrency will go up soon, so > Busyness includes a good prevention for overload. On the other hand, > using "Request" with a reply_timeout will also lead to such a > prevention, because then a node that has overload will be put > temporarily into error state. > > Mod_jk has no internal knowledge of the backends state, like Memory, > Thread counts etc. It can only judge by the symptoms observed during the > response handling (no connect possible, no cpong answer to a cping, > response took longer than reply_timeout etc.). > > Whenever such a type of error is detected, the jk log should contain an > error log line with an indication of the type of error. With JkLogLevel > info you might get (info) log lines even if there is no hard error, but > in case of a real error, you will get additional information about the > root cause. > >> Thanks you >> Regards >> Mohan > > 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] > > > -- View this message in context: http://www.nabble.com/mod_jk--%22Busyness%22-algorithm-and-Node-Health-Check-tp14650298p14663038.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
I download the Tomcat 5.5.17 and I got the same exception. I am not sure it is really the downloaded file is corrupt. The war I deploy is a spring application. At the beginning as I deploy it, I got exception like: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassNotFoundException: org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader ... Then I copy the spring.jar onto /tomcat_home/commond/lib and reploy my war again. Then I got the exception as mentioned earlier. ** Your download is most probably corrupted, redownload the file from server, and extract it to a fresh new folder. This kind of error can happen when one of the tomcat jar file is either corrupted or just missing. En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces termes: > Hi all, > > I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? > > ** > 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start > SCHWERWIEGEND: LifecycleException > java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) > at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) > at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) > 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) > at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) > at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) > at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) > at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) > at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > at org.apache.tomcat.util.net.PoolTcp
Re: java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
Your download is most probably corrupted, redownload the file from server, and extract it to a fresh new folder. This kind of error can happen when one of the tomcat jar file is either corrupted or just missing. En l'instant précis du 07/01/08 11:21, Thomas Chang s'exprimait en ces termes: Hi all, I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? ** 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start SCHWERWIEGEND: LifecycleException java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. -- http://www.devlog.be (a belgian developer's logs) - 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: fifo queue
Marco Caldirola wrote: Hi, I'm trying to do a performance test and I must generate a fifo queue in order to verify my resource allocation policies.I have implement ed the synchronized method and set maxThread=1 in server.xml file. It seems it is working. Could you please send me reference on command object?Thanks a lot for you support. *http://tinyurl.com/2w24z9 * -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
Hi all, I just download and install the Tomcat 5.5.23. As I try to deploy my web application (a war file), I got exceptions as follow. Someone knows why? ** 07.01.2008 11:02:33 org.apache.catalina.loader.WebappLoader start SCHWERWIEGEND: LifecycleException java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:795) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:667) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4108) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail.
Re: fifo queue
Hi, I'm trying to do a performance test and I must generate a fifo queue in order to verify my resource allocation policies.I have implement ed the synchronized method and set maxThread=1 in server.xml file. It seems it is working. Could you please send me reference on command object?Thanks a lot for you support. Marco - Messaggio originale - Da: Mikolaj Rydzewski <[EMAIL PROTECTED]> A: Tomcat Users List Inviato: Venerdì 4 gennaio 2008, 12:47:15 Oggetto: Re: fifo queue Marco Caldirola wrote: > I need to create on my tomcat 6.0 server a fifo queue of my http requests. > I want to process a single request at a time. > Do you have an idea? > Change your idea. Do you really need such a nasty hack? Use command pattern. Process requests as usual, create Command objects and insert them into any queue you want. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
Re: TomCat -Catalina.out : Application failing with java.net.SocketException
It's probably a timeout between the front end http server (apache?) and the back end tomcat installation, related to mod_jk. IThe java application takes too long to start generating an answer and the http server (apache?) considers there is a problem and closes connection. What you see in catalina.out is the result when the webapp starts to write output and the connection has already been closed. This is just my opinion, could be something else :) En l'instant précis du 07/01/08 06:01, micro_learner s'exprimait en ces termes: I've volunteered to maintain a Java based application for a non-profit org. Specs: Apache TomCat 4.1.24 Database : Mysql 4.X Application : Java,VTL,Torgue and Turbine The application used to gather reports works well for a small date range ( lesser time) and fails (not always) for bigger date range (more time , but does not fail always.wks sometimes) with a org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe on the Catalina.out. The funny thing is that this same thing works on my Local machine (almost same config but on Tomcat 5.3). Also, even when the app. works fine the Catalina.out has this message (dont know if it is benign) ## an 3, 2008 1:08:07 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection ## The Excepion on Catalina is as follows. ## qJan 3, 2008 12:50:13 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:595) Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Jan 3, 2008 12:50:13 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:595) Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnect