[Re] CTRL_LOGOFF_EVENT service solution?
Has anyone found a way to use something like the above, with Tomcat, without complex registry editing? The JavaService found at http://www.alexandriasc.com/software/JavaService/index.html does all this and it comes with a batch file to install it as a Tomcat 3.2 service... works perfectly here; no registry editing needed... np: Underworld - Jumbo (Beaucoup Fish) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
re: mySQL again
Hi! My connectionURL in server.xml now looks like this: "jdbc:mysql://localhost/auth?user=rootpassword=somepassword" and tomcat doesn't start up (although there is no error msg or anything) and when i execute tomcat stop i get the following exception: org.xml.sax.SAXParseException: Next character must be ";" terminating reference to entity "password" and a stack trace follows... why is that? I guess you should escape the "" character in your connectionURL by replacing it with "amp;", as the XML parser will parse entities like "lt;" or "quote;" or things like that... Try jdbc:mysql://localhost/auth?user=rootamp;password=somepassword instead, that should work... np: Flanger - Nightbeat 1 (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Linux and Tomcat (URGENT)
1. I know that linux will show me a lot of processes. I know these processes are native threads and they share the memory. (I have more then 40 processes, each one is consuming 70456. This means that Tomcat isn't using 40 x 70456. But all these processes are sharing the same 40456.) 2. But still ... isn't 70456 (70 MB) a bit too much ? Even worse : my provider does get 142M. I think this is NOT normal and we do something wrong. Are you sure you aren't mixing up VSZ and RSS? VSZ is the size of the code image (i.e. of the "java" JVM exectuable) in RAM in _bytes_, while RSS (the resident set size) is the total amount of memory used by the process, in kilobytes... On our linux server, Tomcat's threads show up like this: USER PID %CPU %MEMVSZ RSS TTY ... root 23085 0.0 5.4 145016 14124 ? Which means that the executable image is 140 KB and Tomcat uses about 14 MB of RAM in total... np: Luomo - Call (Vocalcity) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat as Service...
So I'm tryin with JavaService (http://www.alexandriasc.com/software/JavaService/). I configured the Tomcat Service and it starts but it doesn't works. If I start Tomcat in the manual mode (and the prompt window appears) it works fine I used the bat examples in JavaService that help making tomcat a service I called Tomcatsv.exe the file. ... do you have any suggestion? Try TomcatService.exe -install Tomcat %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Xms1M -Xmx8M -Djava.class.path=%TOMCAT_HOME%\lib\webserver.jar;%TOMCAT_HOME%\lib\jasper.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar;%TOMCAT_HOME%\lib\servlet.jar;%JAVA_HOME%\lib\tools.jar -Dtomcat.home=%TOMCAT_HOME% -start org.apache.tomcat.startup.Tomcat -params -config "%TOMCAT_HOME%\conf\server.xml" -stop org.apache.tomcat.startup.Tomcat -params -stop -config "%TOMCAT_HOME%\conf\server.xml" -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log which is what worked for me; the old batch file won't work with 3.2 as the names of the startup and shutdown classes have changed... np: Luke Vibert - I Hear The Drummer (Xen Cuts comp.) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: HTTP response
sigh -- and now I find it -- bug number 151 (http://znutar.cortexity.com/BugRatViewer/ShowReport/151) ... there is no action listed for this... any comments? I would guess that this is because it's fixed in Tomcat 3.2.1 - why don't you just upgrade to the latest stable release? :) quote GET /Teaching/Lectures/List/lectures.tsp HTTP/1.1 Host: desdemona.ssw.uni-linz.ac.at HTTP/1.0 200 OK Content-Type: text/html;charset=8859_1 Pragma: no-cache Expires: -1 Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.) /quote np: Flanger - Stepping Out Of My Dream (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: HTTP response
I would guess that this is because it's fixed in Tomcat 3.2.1 - why don't you just upgrade to the latest stable release? :) Eeep... just noticed you _are_ using Tomcat 3.2.1 - but still, that's what Tomcat returns when queried on port 8080: quote GET /Teaching/Lectures/List/lectures.tsp HTTP/1.1 Host: desdemona.ssw.uni-linz.ac.at HTTP/1.0 200 OK Content-Type: text/html;charset=8859_1 Pragma: no-cache Expires: -1 Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.) /quote And that's what I get when going through Apache: quote GET /Teaching/Lectures/List/lectures.tsp HTTP/1.1 Host: desdemona.ssw.uni-linz.ac.at HTTP/1.1 200 OK Date: Wed, 24 Jan 2001 09:11:11 GMT Server: Apache/1.3.14 (Win32) tomcat/1.0 Expires: -1 Pragma: no-cache Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.) Transfer-Encoding: chunked Content-Type: text/html;charset=8859_1 /quote np: Flanger - Stepping Out Of My Dream (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Session creation speed
When the getSession line is reached in the code it freezes for around 9-10 seconds before returning a session, leading the user to think theyre not going to get anything back... That's because of the secure random number generator that's used to create the session ID - it takes quite some time to initialize. You could try adding -dtomcat.sessionid.randomclass=java.util.Random to the JVM's command line (i.e. add the above string to TOMCAT_OPTS) which makes Tomcat use the standard JAVA random number generator... I guess they're using the SecureRandom generator because it'll make guessing the next session ID harder based on the current one, but I think that that's not needed for development purposes, especially with that speed hit incurred by using the SecureRandom generator... Hope this helps. np: Flanger - Stepping Out Of My Dream (Midnight Sound) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Re] RE: NT-Service-howto feedback
Are you using JDK1.3 ? This is a know bug of JDK1.3. Change to 1.2.2. Check the archives for details. Or, if you _do_ want to use JDK1.3, use the JAVA Service Wrapper found at http://www.alexandriasc.com/software/JavaService/ It's free, and it works perfectly with JDK 1.3, i.e. no unwanted logoffs... I also believe that this bug was recently fixed and should be gone (or at least circumnavigable via a JVM command line switch) in the next JDK 1.3 release... np: Autechre - Acroyear 2 (LP5) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. -