error in CATALINA startup in UNIX
Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem . We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? Kurt Kurniawan WOW-Australia What I hear, I forget. What I see, I remember. And what I do, I understand. ~ Chinese Proverb CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.
redeploy problem
Hello, I encounter an issue on redeploy ( ie undeploy/deploy a web archive) I use jakarta ant task on windows XP and tomcat 5.5.9 to deploy the web archive. The ant task undeploy/deploy the application. I also use sometime the undeploy link of tomcat manager which produce also the same error. Does anyone encounter this on windows platform ? And was able to fix it ? The produced error is : code INFO: Repli (undeploy) de l'application web ayant pour chemin de contexte /THEAPP 9 août 2005 08:49:05 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren GRAVE: Exception invoking periodic operation: java.lang.NullPointerException at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1003) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1162) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557) at java.lang.Thread.run(Thread.java:595) /code The context.xml file is : code ?xml version=1.0 encoding=ISO-8859-1? Context path=/THEAPP docBase=THEAPP debug=0 privileged=false antiResourceLocking=true antiJARLocking=true !-- define a datasource for THEAPP - Tomcat 5.5.x style -- !-- JDBC driver for SQL Server is jtds-- Resource name=jdbc/TheAppDB auth=Container type=javax.sql.DataSource factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory username=TheApp password=Pass driverClassName=net.sourceforge.jtds.jdbc.Driver url=jdbc:jtds:sqlserver://dbserver/TheApp maxWait=1 maxActive=0 maxIdle=0 initialSize=5 minActive=5 / Environment name=version type=java.lang.String value=3.1.0 / /Context /code -- Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR in starting CATALINA.SH in UNIX
Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem. We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
FYI: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html Tomcat 5.5.10 ... Update to JDT from Eclipse 3.1, with support for Java 5 However 5.5.10 is still alpha Christoph Patrick Thomas wrote: Thanks Chuck, I definitely wouldn't have noticed that without the pointer. Oh well, I guess I'll stick to casting and iterators for a few more months ;) On 8/8/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support in Tomcat? Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? Some pertinent paragraphs from: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html --- The servlet which implements Jasper is configured using init parameters in your global $CATALINA_BASE/conf/web.xml. # compilerSourceVM - What JDK version are the source files compatible with? (Default JDK 1.4) # compilerTargetVM - What JDK version are the generated files compatible with? (Default JDK 1.4) The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible. --- I don't know when as soon as possible might be. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Last question on JAAS I promise
OK I got JAAS working with form authentication. That worked a treat (After a bit of head banging). I then moved to invoking the login from Struts (Or a Servlet for Tomcat users who don't use Struts) The code still gets invoked correctly. IBTJAASCallbackHandler callbackHandler = new IBTJAASCallbackHandler(loginForm.getUserName(), loginForm.getPassword()); LoginContext context = new LoginContext(IBTJAAS, callbackHandler); context.login(); However the request.remoteUser() is now null (Was populated correctly when I used form authentication) and the same for request.isUserInRole() (It returns false, even though the Principal was added to the subject). Any ideas...? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page not working
It may be because of the size of your errorpage.jsp. According to http://www.404-error-page.com/404-error-page-too-short-problem-microsoft -ie.shtml 500 errors should have pages with size greater than 512 bytes. Marius -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 7:29 AM To: tomcat-user@jakarta.apache.org Subject: error-page not working Hi; I am using JSF - although that should not make a difference. In web.xml I have: error-page exception-typejava.lang.Throwable/exception-type location/errorpage.jsp/location /error-page And in my event handler I have: throw new NullPointerException(hi there); But when it happens, I get the following in IE: The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. _ Please try the following: * Open the http://localhost:8080 localhost:8080 home page, and then look for links to the information you want. * Click the Refresh button, or try again later. * Click javascript:doSearch() Search to look for information on the Internet. * You can also see a list of related sites. HTTP 500 - Internal server error Internet Explorer Any ideas? Thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR in starting CATALINA in HP-UX
Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem. We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP/1.1 GZIP compression and its impact on server
I thought our discussion on GZIP is almost complete untill one of collegue said that , just enabling it by adding required attributes for connector tag in server.xml is not enough, but we need tp do some coding too probably using some filters . Is this true?? But the documentation doesnt speak anything about this. so please clarify on this last doubt thank you Regards Srikanth On 8/4/05, Peddireddy Srikanth [EMAIL PROTECTED] wrote: thanks for the help Ya I agree with you in bandwidth and responsiveness issue. We started using GZIP in test environment and most probably we would go into prodcution with compression turned on. Thanks again for your help Srikanth On 8/3/05, George Sexton [EMAIL PROTECTED] wrote: Yes. In my particular case, the server throughput in requests fell by 2.3%. Of course, the bandwidth utilization fell also from 6Mb/s to 1.0Mb/s. Additionally, you have to ask yourself how much more responsive the application will seem to users. We host our web calendar application, and we run compression on it. Actually, at the co-location site we are moving to, we pay for bandwidth usage. It's probably going to be cheaper to put another machine in than to use 6 times more bandwidth. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:02 PM To: tomcat-user@jakarta.apache.org Subject: Re: HTTP/1.1 GZIP compression and its impact on server Hi , On 8/1/05, George Sexton [EMAIL PROTECTED] wrote: Our App does GZIP compression. I actually did some real testing on using it. Here's what we tell our customers: Enable GZIP Compression Enabling this option will cause Connect Daily to send web pages to the browser compressed in the GZIP format. This can result in a compression factor of six (6) times. Needless to say, this can make your calendar noticeably faster to end users. Our testing indicates serviced per minute was reduced by 2.3% when GZIP compression is enabled. This means once u started using GZIP number of requests that are services by your server in one minute is fallen by 2.3 %. Essentially server's throughput is fallen. Am I right ?? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Tomcat 5.5.10 has an update JDT compiler from Eclipse 3.1. This understands Java 5. You can also configure that you compile with the sun compiler. Ronald. On Mon Aug 08 23:25:27 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hi All, Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? I searched release notes, FAQ, etc and found no mention either way. Does some erudite soul have the answer? Secondly, if it's supposed to support it, why then would it have difficulty with the following: In Part.java (a valid java object, visible from the jsp): public static ArrayListPart listParts() {/* code */} In TestPart.jsp (specifically line 4): % ArrayListPart parts = Part.listParts(); % Attempting to access TestPart results in: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token , invalid AssignmentOperator An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token =, != expected An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token(s), misplaced construct(s) An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token ), : expected It's clearly puking on the ObjectName generic type syntax; so, is it actually supported? Cheers, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP/1.1 GZIP compression and its impact on server
This is untrue at least in Tomcat 5. But why don't you try it instead of having discussions about it? Use a network sniffer to check what the server is sending over the wire. Ronald. On Tue Aug 09 10:05:19 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: I thought our discussion on GZIP is almost complete untill one of collegue said that , just enabling it by adding required attributes for connector tag in server.xml is not enough, but we need tp do some coding too probably using some filters . Is this true?? But the documentation doesnt speak anything about this. so please clarify on this last doubt thank you Regards Srikanth On 8/4/05, Peddireddy Srikanth [EMAIL PROTECTED] wrote: thanks for the help Ya I agree with you in bandwidth and responsiveness issue. We started using GZIP in test environment and most probably we would go into prodcution with compression turned on. Thanks again for your help Srikanth On 8/3/05, George Sexton [EMAIL PROTECTED] wrote: Yes. In my particular case, the server throughput in requests fell by 2.3%. Of course, the bandwidth utilization fell also from 6Mb/s to 1.0Mb/s. Additionally, you have to ask yourself how much more responsive the application will seem to users. We host our web calendar application, and we run compression on it. Actually, at the co-location site we are moving to, we pay for bandwidth usage. It's probably going to be cheaper to put another machine in than to use 6 times more bandwidth. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:02 PM To: tomcat-user@jakarta.apache.org Subject: Re: HTTP/1.1 GZIP compression and its impact on server Hi , On 8/1/05, George Sexton [EMAIL PROTECTED] wrote: Our App does GZIP compression. I actually did some real testing on using it. Here's what we tell our customers: Enable GZIP Compression Enabling this option will cause Connect Daily to send web pages to the browser compressed in the GZIP format. This can result in a compression factor of six (6) times. Needless to say, this can make your calendar noticeably faster to end users. Our testing indicates serviced per minute was reduced by 2.3% when GZIP compression is enabled. This means once u started using GZIP number of requests that are services by your server in one minute is fallen by 2.3 %. Essentially server's throughput is fallen. Am I right ?? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error in CATALINA startup in UNIX
If you used HP's tar - then the you might have some bad files. YOu need to use the GNU tar. To uncompress the .tgz file. -Tim Kurniawan Kurt wrote: Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem . We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error msg after catalina.sh run
I am using AIX 5.2, TC 5.5.9, JAVA 1.4 I am working on 8443 (443) but got an error and how can I solve this problem? Using CATALINA_BASE: /usr/local/jakarta-tomcat Using CATALINA_HOME: /usr/local/jakarta-tomcat Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp Using JRE_HOME: /usr/java14 Created MBeanServer with ID: 52d4d891:1059af76990:-8000:xxx.xxx.xxx.xxx:1 Aug 9, 2005 7:19:33 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 9, 2005 7:19:34 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.io.IOException: Algorithm SunX509 not available at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:125) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142) at org.apache.catalina.connector.Connector.initialize(Connector.java:928) at org.apache.catalina.core.StandardService.initialize(StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764) at org.apache.catalina.startup.Catalina.load(Catalina.java:490) at org.apache.catalina.startup.Catalina.load(Catalina.java:509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) Aug 9, 2005 7:19:34 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.io.IOException: Algorithm SunX509 not available at org.apache.catalina.connector.Connector.initialize(Connector.java:930) at org.apache.catalina.core.StandardService.initialize(StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764) at org.apache.catalina.startup.Catalina.load(Catalina.java:490) at org.apache.catalina.startup.Catalina.load(Catalina.java:509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) (__[TomCigar]___~~~
RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
Dear all, I am just reopening this thread here. Just to give you guys some more info on this OutOfMemoryError issue. We always see this problem on a single page. Our application uses Velocity and in one of the pages we do some special character escaping. If you look at the following stack trace you will notice an arrow: java.lang.OutOfMemoryError java.util.zip.ZipFile.open(Native Method) java.util.zip.ZipFile.init(ZipFile.java:112) java.util.jar.JarFile.init(JarFile.java:127) java.util.jar.JarFile.init(JarFile.java:92) org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java :1544) org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas sLoader.java:1763) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1570) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:850) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1299) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1181) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) -- org.apache.velocity.runtime.parser.Parser.Escape(Parser.java:378) org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:316) org.apache.velocity.runtime.parser.Parser.process(Parser.java:258) org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104) org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776) org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720) org.apache.velocity.Template.process(Template.java:123) org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour ceManagerImpl.java:423) org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc eManagerImpl.java:341) org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java :831) org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java :813) org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja va:285) org.apache.velocity.tools.view.servlet.VelocityViewServlet.getTemplate(Veloc ityViewServlet.java:540) Whenever we see the OutOfMemoryError, it is always from a specific page/specific action. The arrow points to the line that is present in all of our stack traces. The page in question has some javascript that contains few back slashes. function setImageTag() { if(outOfSync) { if(!confirm(Image is out of sync.\nAre you sure you want to save?)) return false; } arr = new Array(); arr[src]= document.getElementById(preview).src; arr[width] = document.getElementById(preview).width; arr[height] = document.getElementById(preview).height; arr[alt]= document.scaleForm.caption.value; arr[align] = document.scaleForm.align.value; arr[class] = document.scaleForm.classification.value; arr[title] = document.scaleForm.showcaption.checked ? document.scaleForm.caption.value : ; var attributes = ; for (var attrib in arr) { // Right... // Because the imageTag string will be wrapped in single quotes when it is returned // from the backend we need to escape all ' and \ // if (attrib == alt || attrib == title) { arr[attrib] = arr[attrib].replace(new RegExp(, g), ); arr[attrib] = arr[attrib].replace(new RegExp(', g), \\\'); } attributes += + attrib + =\ + arr[attrib] + \; } var imageTag = img + attributes + /; document.getElementById(imageTag).value = imageTag; return true; } This is the only page where we do this kind of thing. Looking at Velocity (1.4) source it is evident that org.apache.velocity.runtime.parser.Parser class is trying to escape these nasty back slashes (when it intially parses the page). It has an object pool of bunch of parsers. Size of this pool can be controlled from the velocity.properties config file. My guess is the velocity RuntimeInstance is running out memory (or some other OS related weird stuff) and as a result an OOME is thrown. To resolve this, we have taken out the java script function out of the
Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules
I'm pretty sure Tomcat doesn't allow a session to migrate from a secure (ssl) channel to an insecure one. It does allow the session to be maintained in the other direction, however. The rationale for this behaviour is that if the login is supposed to be secure why allow the session cookie to be snooped on an insecure channel. Doing a cursory search of the archives I found these threads: http://marc.theaimsgroup.com/?l=tomcat-userm=111470187706771w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=106871784707053w=2 HTH, Jon Seale, Deryl wrote: Hi, there. I have a problem whereby tomcat is getting confused with user sessions due to (I think) some mod_rewrite rules that switch a user in and out of SSL. The general requirement I have is to only use SSL in certain parts of our application (login, user administration, etc), and we use mod_rewrite rules to enforce this. The problem is that while we can correctly make sure a user login is properly redirected to SSL, when that user clicks on a link following login (ie: a non-SSL request), they are sent back to the login page. This is due, I think, to tomcat confusedly thinking the subsequent request comes from a new, unauthenticated user, possibly because the second request is not over SSL. When I run an HTTP tracer, I indeed see that there is a new session cookie placed for the subsequent request. Below is the relevant portion of our httpd.conf file, followed by the workes.properties file. I've followed the recommendations I've seen online regarding connector configuration, but perhaps there is something subtle that is missing, or our rewrite rules are screwed up. Any insight is appreciated. thanks. -d. httpd.conf (irrelevant sections omitted): # Load mod_jk # LoadModulejk_module libexec/mod_jk.so # Configure mod_jk # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkShmFile logs/jk.shm JkShmSize 10M # Map mod_ssl vars to JK vars so that tomcat can reference SSL info. JkExtractSSLOn JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkHTTPSIndicatorHTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER JkCERTSIndicatorSSL_CLIENT_CERT JkMount /tech/* tech_1 JkMount /tech tech_1 VirtualHost _default_:80 RewriteEngine on RewriteLog /usr/local/apache/logs/rewrite.log RewriteLogLevel 1 RewriteCond %{SERVER_PORT} 80 #redirect requests for index.html to login page RewriteCond %{REQUEST_URI} /index.html RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do #redirect requests for login page RewriteCond %{REQUEST_URI} /tech/home.do RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do # redirect requests for the trial page RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /tech/trial.do RewriteRule ^/(.*) https://tech-dev.classroom.com/$1 # redirect requests for the profile RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /tech/.*profile.* RewriteRule ^/(.*) https://tech-dev.classroom.com/$1 # redirect requests for activation RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /tech/activation.* RewriteRule ^/(.*) https://tech-dev.classroom.com/$1 # redirect requests for admin RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /tech/admin/.* RewriteRule ^/(.*) https://tech-dev.classroom.com/$1 # redirect requests for michigan state RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /michigan RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do # redirect requests for CSR Tool RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /subscription* RewriteRule ^/(.*) http://SERVER_CSR/subscription RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /studentwork/.* RewriteRule ^/(.*) http://forumtecprd.classroom.com/$1 /VirtualHost ## ## SSL Settings ## ## IfDefine SSL Listen 443 /IfDefine ## ## SSL Global Context ## ## All SSL configuration in this context applies both to ## the main server and all SSL-enabled virtual hosts. ## # # Some MIME-types for downloading Certificates and CRLs # IfDefine SSL AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl /IfDefine IfModule mod_ssl.c # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filtering dialog program (`builtin' is a internal # terminal dialog) has to provide the pass phrase on stdout. SSLPassPhraseDialog builtin # Inter-Process Session Cache: # Configure the SSL Session Cache: First the mechanism # to use and second the expiring timeout (in
tomcat security
Hi everybody I have a problem about tomcat security One of my friend wrote a single code and he can travel every folder on server I wonder is there any config file for jakarta for disabiling access instead of his folder Maybe you know on php there was a security settings on php.ini for disabliling traveling Is there any config file like this? Best regards Cengiz YAZGAN Sistem Mühendisi/System Engineer DorukNet Tel / Phone : +90 212 326 92 00 Fax : +90 212 227 28 11 E-mail : [EMAIL PROTECTED] http://www.doruk.net.tr http://www.doruk.net.tr/ http://www.doruk.net.tr/english.html
RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)
Dear all, I am just reopening this thread here. Just to give you guys some more info on this OutOfMemoryError issue. We always see this problem on a single page. Our application uses Velocity and in one of the pages we do some special character escaping. If you look at the following stack trace you will notice an arrow: java.lang.OutOfMemoryError java.util.zip.ZipFile.open(Native Method) java.util.zip.ZipFile.init(ZipFile.java:112) java.util.jar.JarFile.init(JarFile.java:127) java.util.jar.JarFile.init(JarFile.java:92) org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java :1544) org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas sLoader.java:1763) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1570) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:850) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1299) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1181) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) -- org.apache.velocity.runtime.parser.Parser.Escape(Parser.java:378) org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:316) org.apache.velocity.runtime.parser.Parser.process(Parser.java:258) org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104) org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776) org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720) org.apache.velocity.Template.process(Template.java:123) org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour ceManagerImpl.java:423) org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc eManagerImpl.java:341) org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java :831) org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java :813) org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja va:285) org.apache.velocity.tools.view.servlet.VelocityViewServlet.getTemplate(Veloc ityViewServlet.java:540) Whenever we see the OutOfMemoryError, it is always from a specific page/specific action. The arrow points to the line that is present in all of our stack traces. The page in question has some javascript that contains few back slashes. function setImageTag() { if(outOfSync) { if(!confirm(Image is out of sync.\nAre you sure you want to save?)) return false; } arr = new Array(); arr[src]= document.getElementById(preview).src; arr[width] = document.getElementById(preview).width; arr[height] = document.getElementById(preview).height; arr[alt]= document.scaleForm.caption.value; arr[align] = document.scaleForm.align.value; arr[class] = document.scaleForm.classification.value; arr[title] = document.scaleForm.showcaption.checked ? document.scaleForm.caption.value : ; var attributes = ; for (var attrib in arr) { // Right... // Because the imageTag string will be wrapped in single quotes when it is returned // from the backend we need to escape all ' and \ // if (attrib == alt || attrib == title) { arr[attrib] = arr[attrib].replace(new RegExp(, g), ); arr[attrib] = arr[attrib].replace(new RegExp(', g), \\\'); } attributes += + attrib + =\ + arr[attrib] + \; } var imageTag = img + attributes + /; document.getElementById(imageTag).value = imageTag; return true; } This is the only page where we do this kind of thing. Looking at Velocity (1.4) source it is evident that org.apache.velocity.runtime.parser.Parser class is trying to escape these nasty back slashes (when it intially parses the page). It has an object pool of bunch of parsers. Size of this pool can be controlled from the velocity.properties config file. My guess is the velocity RuntimeInstance is running out memory (or some other OS related weird stuff) and as a result an OOME is thrown. To resolve this, we have taken out the java script function out of the
Re: tomcat security
Yes. There is the catalina.policy file in the conf/ directory. See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/security-manager-howto.html for details. Ben Ricker On 8/9/05, Cengiz Yazgan [EMAIL PROTECTED] wrote: Hi everybody I have a problem about tomcat security One of my friend wrote a single code and he can travel every folder on server I wonder is there any config file for jakarta for disabiling access instead of his folder Maybe you know on php there was a security settings on php.ini for disabliling traveling Is there any config file like this? Best regards Cengiz YAZGAN Sistem Mühendisi/System Engineer DorukNet Tel / Phone : +90 212 326 92 00 Fax : +90 212 227 28 11 E-mail : [EMAIL PROTECTED] http://www.doruk.net.tr http://www.doruk.net.tr/ http://www.doruk.net.tr/english.html -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat security
I see this config file I disabled this lines permission java.util.PropertyPermission os.name, read; permission java.util.PropertyPermission os.version, read; permission java.util.PropertyPermission os.arch, read; permission java.util.PropertyPermission file.separator, read; permission java.util.PropertyPermission path.separator, read; permission java.util.PropertyPermission line.separator, read; But i can browsing again -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:33 PM To: Tomcat Users List Subject: Re: tomcat security Yes. There is the catalina.policy file in the conf/ directory. See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/security-manager-howto.html for details. Ben Ricker On 8/9/05, Cengiz Yazgan [EMAIL PROTECTED] wrote: Hi everybody I have a problem about tomcat security One of my friend wrote a single code and he can travel every folder on server I wonder is there any config file for jakarta for disabiling access instead of his folder Maybe you know on php there was a security settings on php.ini for disabliling traveling Is there any config file like this? Best regards Cengiz YAZGAN Sistem Mühendisi/System Engineer DorukNet Tel / Phone : +90 212 326 92 00 Fax : +90 212 227 28 11 E-mail : [EMAIL PROTECTED] http://www.doruk.net.tr http://www.doruk.net.tr/ http://www.doruk.net.tr/english.html -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page not working
That's not it - the file is over 2K in size. ??? - thanks - dave David Thielen 303-499-2544 www.windwardreports.com -Original Message- From: Marius Hanganu [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 1:47 AM To: Tomcat Users List Subject: RE: error-page not working It may be because of the size of your errorpage.jsp. According to http://www.404-error-page.com/404-error-page-too-short-problem-microsoft -ie.shtml 500 errors should have pages with size greater than 512 bytes. Marius -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 7:29 AM To: tomcat-user@jakarta.apache.org Subject: error-page not working Hi; I am using JSF - although that should not make a difference. In web.xml I have: error-page exception-typejava.lang.Throwable/exception-type location/errorpage.jsp/location /error-page And in my event handler I have: throw new NullPointerException(hi there); But when it happens, I get the following in IE: The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. _ Please try the following: * Open the http://localhost:8080 localhost:8080 home page, and then look for links to the information you want. * Click the Refresh button, or try again later. * Click javascript:doSearch() Search to look for information on the Internet. * You can also see a list of related sites. HTTP 500 - Internal server error Internet Explorer Any ideas? Thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing catalina.bat
Hi, I just downloaded and installed Tomcat 5.5.9. When i wanted to configure JPDA I saw that catalina.bat is missing in the bin directory. So now I am starting Tomcat by running the tomcat5.exe. I scanned all config files, registry settings, release notes, documentation, mailing lists and did not find a answer to my question: - how to configure JPDA (and other JVM settings) The most appropriate way I could image was the registry setting: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] adding the following to the Options key: -Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n But this does not work. Changing something else like -Dcatalina.home will influence the startup! I have seen somebody else also asking this question to the mailing list. But I did not see any answers. So please if somebody knows tell us and let's put this info in the FAQ. Thanks, Kees - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using more than one SSL cert in keystore?
Justin Jaynes wrote: Thanks. I am doing as you have instructed. I hope to set up client-side redirects. Can you please tell me how? Does it require javascript, or just HTML? Where can I learn about client side re-directs? Try Google (Web and Groups) You can do it like this (relies on JavaScript): html head titleredirection page/title /head body onLoad=window.location.replace('http://me.com/myapp') /body html and I think you can also do it with an HTTP header but I don't have details to hand... Paul S. Justin Jaynes --- Paul Singleton [EMAIL PROTECTED] wrote: Justin Jaynes wrote: ...But now I would like to put up a new site that is completely independant of the others. It needs its own SSL cert and it needs four host names to all point to the same place and redirect to just one of the domain names so that the SSL cert will be valid, regardless of how the users chose to get to my site. An SSL cert is for a specific domain name. If you want your users to be able to make HTTPS requests to all four domains without warnings from the browser, I reckon you need four certificates. But if they make non-SSL requests, and you respond with a client-side redirect to your one true certificated site using HTTPS, that may work OK? Is it possible to do Virtual Hosting using IP's on a Tomcat standalone installation? Yes, I'm doing this now with 5.5.9 You need e.g. this server.xml stuff for each host: Service Connector (HTTP) Connector (HTTPS) Engine Host Context You can use the default keystore for all hosts, and use the (undocumented) keyAlias=myalias Connector attribute to offer the appropriate certificate for each host, e.g. Connector address=288.104.197.211 port=8443 scheme=https secure=true sslProtocol=TLS keyAlias=mrk2 / (in 5.5.9 you also need sslProtocol=TLS explicitly, fixed in later versions) Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.3/66 - Release Date: 8/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Missing catalina.bat
Hi; I hit the same problem. So I then downloaded the .zip install also and pulled the bat files from the .zip install and copied them to the bin directory. - dave David Thielen 303-499-2544 www.windwardreports.com -Original Message- From: Kees Broenink [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 7:39 AM To: 'Tomcat Users List' Subject: Missing catalina.bat Hi, I just downloaded and installed Tomcat 5.5.9. When i wanted to configure JPDA I saw that catalina.bat is missing in the bin directory. So now I am starting Tomcat by running the tomcat5.exe. I scanned all config files, registry settings, release notes, documentation, mailing lists and did not find a answer to my question: - how to configure JPDA (and other JVM settings) The most appropriate way I could image was the registry setting: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] adding the following to the Options key: -Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n But this does not work. Changing something else like -Dcatalina.home will influence the startup! I have seen somebody else also asking this question to the mailing list. But I did not see any answers. So please if somebody knows tell us and let's put this info in the FAQ. Thanks, Kees - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using more than one SSL cert in keystore?
-Message d'origine- De : Paul Singleton [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 août 2005 15:47 À : Tomcat Users List Objet : Re: Using more than one SSL cert in keystore? Justin Jaynes wrote: Thanks. I am doing as you have instructed. I hope to set up client-side redirects. Can you please tell me how? Does it require javascript, or just HTML? Where can I learn about client side re-directs? Try Google (Web and Groups) You can do it like this (relies on JavaScript): html head titleredirection page/title /head body onLoad=window.location.replace('http://me.com/myapp') /body html and I think you can also do it with an HTTP header but I don't have details to hand... You can use meta http-equiv=refresh content=delay; URL=yourURL Cheers, Laurent *** Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur. *** This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not receiver of this message, please cancel it immediately and inform the sender. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sharing server information across a cluster ?
Hello, we're currently setting up a Tomcat 5.5.9 cluster and we'd like to share server information between the different instances. Our approach so far has been to : *create a session *set it so that it never dies *share it across the instances using session replication *have the instances periodically post info about themselves to a bean in that session However, it turns out that that the session (sessions?) quickly become de-synchronized, so that the different containers don't see the same info in the shared bean. Looking through the mailing-list and the code, it would seem that this is the expected behaviour, as the DeltaManager will only replicate a session after a request has been completed (and thus wouldn't be expected to do anything if the session is accessed through some other mean). Is there any other way to accomplish what we're trying to do (basically, broadcasting info to the servers in the cluster) by piggy-backing on the clustering mechanism ? Better yet, would anyone have a piece of code that does something like that ? Thanks in advance, Laurent *** Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur. *** This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not receiver of this message, please cancel it immediately and inform the sender. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using more than one SSL cert in keystore?
Paul Singleton wrote re' client-side redirects: You can do it like this (relies on JavaScript): You can also use this META tag in the head of the document: meta http-equiv=refresh content=0;url=http://example.com; / (The first part of content is the interval in seconds before the 'refresh' happens...) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE
RE: Session lifecycle (UNCLASSIFIED)
Samara, If your logout is a 'post' then when the user hits the back button he/she should see a session expired message. Arup -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 15:03 To: 'Tomcat Users List' Subject: Session lifecycle (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual host, routing, problems with localhost
Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSTL Question
Hello All- I'm running Tomcat 5.0.24 and using the jstl libs from apache. I have two versions of a jsp below. The difference between the two is the taglib declaration. The top one works and the bottom one doesn't. Can someone enlighten me as to why this is? It seems like the bottom one does not handle the expression language. WORKS %@ taglib prefix=c uri=http://java.sun.com/jstl/core_rt; % jsp:useBean id=address scope=request class=com.shawmut.model.Address/ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html body This is my JSP page. br c:forEach var=i begin=1 end=10 step=1 c:out value=${i} / /c:forEach /body /html === DOES NOT WORK === %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % jsp:useBean id=address scope=request class=com.shawmut.model.Address/ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html body This is my JSP page. br c:forEach var=i begin=1 end=10 step=1 c:out value=${i} / /c:forEach /body /html I Received the following error: According to TLD or attribute directive in tag file, attribute value does not accept any expressions Thanks Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session lifecycle (UNCLASSIFIED)
The redirect-after-post pattern might solve your problem otherwise. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, August 9, 2005 10:25 am, Arup Vidyerthy said: Samara, If your logout is a 'post' then when the user hits the back button he/she should see a session expired message. Arup -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 15:03 To: 'Tomcat Users List' Subject: Session lifecycle (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE My fault, I forgot to mention that I am using struts. The code is below public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); session.setAttribute(pageTitle, Logout Action); session.removeAttribute(userId); session.removeAttribute(access); session.removeAttribute(tempId); session.removeAttribute(oldpassword); UserList.getInstance().removeUser(session.getId()); session.invalidate(); // Forward control to this Action's forward page. return mapping.findForward(login); } Let's say that I ran a report, I logged out, if I hit the back button, it takes right into the report I ran before logging out. For security issues, the session to be destroyed and if the user tries to go back, I want to display session has expired. Thanks for your input. -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:26 AM To: 'Tomcat Users List' Subject: RE: Session lifecycle (UNCLASSIFIED) Samara, If your logout is a 'post' then when the user hits the back button he/she should see a session expired message. Arup -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 15:03 To: 'Tomcat Users List' Subject: Session lifecycle (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing server information across a cluster ?
Jini? JavaSpaces? Put your data in a database? Maybe the ServletContext is already clustered in Tomcat 5.5.x? JMS? There is more than Tomcat out there. Ronald. On Tue Aug 09 15:59:58 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hello, we're currently setting up a Tomcat 5.5.9 cluster and we'd like to share server information between the different instances. Our approach so far has been to : *create a session *set it so that it never dies *share it across the instances using session replication *have the instances periodically post info about themselves to a bean in that session However, it turns out that that the session (sessions?) quickly become de-synchronized, so that the different containers don't see the same info in the shared bean. Looking through the mailing-list and the code, it would seem that this is the expected behaviour, as the DeltaManager will only replicate a session after a request has been completed (and thus wouldn't be expected to do anything if the session is accessed through some other mean). Is there any other way to accomplish what we're trying to do (basically, broadcasting info to the servers in the cluster) by piggy-backing on the clustering mechanism ? Better yet, would anyone have a piece of code that does something like that ? Thanks in advance, Laurent *** Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur. *** This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not receiver of this message, please cancel it immediately and inform the sender. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, routing, problems with localhost
Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: JSTL Question
Hi, If you are using JSTL1.1.x the correct uri is http://java.sun.com/jsp/jstl/core;. In JSTL1.1 the uri is changed respected to JSTL1.0. I don't know why the first jsp is correct. May be, it is due to the fact the core_rt is not changed in JSTL1.1 and you are using Tomcat5.x version. BR /Amleto -Messaggio originale- Da: Pitre, Russell [mailto:[EMAIL PROTECTED] Inviato: martedì 9 agosto 2005 16.29 A: Tomcat Users List Oggetto: JSTL Question Hello All- I'm running Tomcat 5.0.24 and using the jstl libs from apache. I have two versions of a jsp below. The difference between the two is the taglib declaration. The top one works and the bottom one doesn't. Can someone enlighten me as to why this is? It seems like the bottom one does not handle the expression language. WORKS %@ taglib prefix=c uri=http://java.sun.com/jstl/core_rt; % jsp:useBean id=address scope=request class=com.shawmut.model.Address/ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html body This is my JSP page. br c:forEach var=i begin=1 end=10 step=1 c:out value=${i} / /c:forEach /body /html === DOES NOT WORK === %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % jsp:useBean id=address scope=request class=com.shawmut.model.Address/ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html body This is my JSP page. br c:forEach var=i begin=1 end=10 step=1 c:out value=${i} / /c:forEach /body /html I Received the following error: According to TLD or attribute directive in tag file, attribute value does not accept any expressions Thanks Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.4/66 - Release Date: 09/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.4/66 - Release Date: 09/08/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: JSTL Question
Hi, I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT? I apprecaite your assist... Tom
IBM IHS and TOMCAT 5.5.9
Hi, I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT? I apprecaite your assist... Tom
RE: R: JSTL Question
From: Tom Spence [mailto:[EMAIL PROTECTED] Subject: Re: R: JSTL Question I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. (I assume you're referring to Apache httpd.) Does he have a reason, or is he just remembering the old days when Tomcat was not as efficient in serving static pages? You might want to show him Peter Lin's performance measurements in an effort to keep your life simpler. http://cvs.apache.org/~woolfel/benchmark_summary.doc http://cvs.apache.org/~woolfel/benchmark_summary.sxw http://cvs.apache.org/~woolfel/tc_results.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IBM IHS and TOMCAT 5.5.9
IBM HTTP SERVER IS A IBM BRANDED VERSION OF APACHE ... http://www.google.co.uk/search?hl=enq=apache++%2B+tomcat+%2B+mod_jkmeta= Will give you good answere ... Guru -Original Message- From: Tom Spence [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 16:51 To: Tomcat Users List Subject: IBM IHS and TOMCAT 5.5.9 Hi, I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT? I apprecaite your assist... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: JSTL Question
If he doesn't listen - just tell him he is a buffoon! -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 16:54 To: Tomcat Users List Subject: RE: R: JSTL Question From: Tom Spence [mailto:[EMAIL PROTECTED] Subject: Re: R: JSTL Question I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. (I assume you're referring to Apache httpd.) Does he have a reason, or is he just remembering the old days when Tomcat was not as efficient in serving static pages? You might want to show him Peter Lin's performance measurements in an effort to keep your life simpler. http://cvs.apache.org/~woolfel/benchmark_summary.doc http://cvs.apache.org/~woolfel/benchmark_summary.sxw http://cvs.apache.org/~woolfel/tc_results.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sharing server information across a cluster ?
-Message d'origine- De : Ronald Klop [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 août 2005 17:07 À : Tomcat Users List Objet : Re: Sharing server information across a cluster ? Jini? JavaSpaces? Put your data in a database? Maybe the ServletContext is already clustered in Tomcat 5.5.x? JMS? There is more than Tomcat out there. Ronald. Well, a database or Jini/Javaspaces are out of the question in our prod environment. The ServletContext doesn't seem to be clustered (tomcat doc : 'In the case of a web application marked distributed in its deployment descriptor, there will be one context instance for each virtual machine. In this situation, the context cannot be used as a location to share global information (because the information won't be truly global). Use an external resource like a database instead'). I'll look into JMS though. Laurent *** Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur. *** This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not receiver of this message, please cancel it immediately and inform the sender. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: R: JSTL Question
Look for mod_jk, it's a module that plugs into apache to talk between apache and tomcat for those requests that are mapped to tomcat. But quite frankly I'd look at using squid as a reverse proxy rather than bothering with setting up apache and tomcat. Squid has the added benefit of allowing you to setup rules for what types of page requests are allowed which has the effect of giving you a content filtering firewall in front of the web server. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Tom Spence [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:51 AM To: Tomcat Users List Subject: Re: R: JSTL Question Hi, I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use HTTP Server. I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT? I apprecaite your assist... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE My fault, I forgot to mention that I am using struts. The code is below public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); session.setAttribute(pageTitle, Logout Action); session.removeAttribute(userId); session.removeAttribute(access); session.removeAttribute(tempId); session.removeAttribute(oldpassword); UserList.getInstance().removeUser(session.getId()); session.invalidate(); // Forward control to this Action's forward page. return mapping.findForward(login); } Let's say that I ran a report, I logged out, if I hit the back button, it takes right into the report I ran before logging out. For security issues, the session to be destroyed and if the user tries to go back, I want to display session has expired. Thanks for your input. Fadi Samara Classification: UNCLASSIFIED Caveats: NONE
Re: TC 5.5.9 TLD exception thrown
I discovered the problem was that the TLD XML has also changed, so by getting rid of the DOCTYPE declaration and using the new taglib start, all was okay (it would have been nice to have a better error message to clue me in). taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd; version=2.0 David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED] Missing catalina.bat
Hi, After some extra efforts I solved the problem of setting JPDA. In fact I was very close to the solution. -Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n You need an Enter after the -Xdebug. Easiest way is to use the tool provided Configure Tomcat (tomcat5w.exe //ES//Tomcat5) Go to the Java Tab Change the Java Options into the following: -Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n -Dcatalina.home=d:\tomcat5.5 -Djava.endorsed.dirs=d:\tomcat5.5\common\endorsed -Djava.io.tmpdir=d:\tomcat5.5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager That's it. Kees -Oorspronkelijk bericht- Van: Kees Broenink [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, August 09, 2005 3:39 PM Aan: 'Tomcat Users List' Onderwerp: Missing catalina.bat Hi, I just downloaded and installed Tomcat 5.5.9. When i wanted to configure JPDA I saw that catalina.bat is missing in the bin directory. So now I am starting Tomcat by running the tomcat5.exe. I scanned all config files, registry settings, release notes, documentation, mailing lists and did not find a answer to my question: - how to configure JPDA (and other JVM settings) The most appropriate way I could image was the registry setting: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] adding the following to the Options key: -Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n But this does not work. Changing something else like -Dcatalina.home will influence the startup! I have seen somebody else also asking this question to the mailing list. But I did not see any answers. So please if somebody knows tell us and let's put this info in the FAQ. Thanks, Kees - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, routing, problems with localhost
Sorry for the latency, I was in a meeting. No I do not have one. Do I need one, and if so, is the IP the machine IP or localhost, or 127.0.0.1? Thanks Scott -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:18 AM To: 'Tomcat Users List' Subject: RE: Virtual host, routing, problems with localhost Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, routing, problems with localhost
I think that unless you have a default entry, that it would fail. The issue is that the host name is being presented to Tomcat, and the request mapper is looking up the host name presented as part of the http request. If it's not found, and there is no default, then it would return an error. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:43 AM To: Tomcat Users List Subject: RE: Virtual host, routing, problems with localhost Sorry for the latency, I was in a meeting. No I do not have one. Do I need one, and if so, is the IP the machine IP or localhost, or 127.0.0.1? Thanks Scott -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:18 AM To: 'Tomcat Users List' Subject: RE: Virtual host, routing, problems with localhost Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules
Thanks for the information, Jon. I finally realized this when I examined the two different cookies Tomcat was setting: the first was marked secure, and the second was not. I followed the threads you provided, and one of the respondents hinted that this behavior may change. Does Tomcat 5.5.x still enforce this rule? thanks. -d. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 5:23 AM To: Tomcat Users List Subject: Re: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules I'm pretty sure Tomcat doesn't allow a session to migrate from a secure (ssl) channel to an insecure one. It does allow the session to be maintained in the other direction, however. The rationale for this behaviour is that if the login is supposed to be secure why allow the session cookie to be snooped on an insecure channel. Doing a cursory search of the archives I found these threads: http://marc.theaimsgroup.com/?l=tomcat-userm=111470187706771w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=106871784707053w=2 HTH, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect after login using form-based-auth
Hi, Hi have tomcat 4.1. It is possible to define a fixed url to redirect after login in form-based-auth ? Now they redirect to page where I try to access and need login, but if page needs post values they give-me an error. Thanks, Paulo -- -- Paulo Jorge Zagalo das Neves Linux User # 61096 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling a stopped web app in a Load Balanced Environment
I'm trying to determine what options are available if any to handle the scenario when web application foo on server 1 gets stopped, but web application foo on server 2 is still running and both are apart of a load-balanced environment. Currently, I'm using a hardware load balanced environment, and it is unaware that the individiual web application is down on server 1. Is my local balancer out-dated? How does the mod_jk and Balancer web-app solutions compare? ___ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
MailSessionFactory problems in 5.5.9
Hello, I'm trying to use the org.apache.naming.factory.MailSessionFactory in 5.5.9 with Spring's JndiObjectFactoryBean and I'm experiencing problems. I want to configure a global mail configuration and then use a resource-link to link one or more apps to the resource. i.e. Resource name=GlobalMailSession auth=Container type=javax.mail.Session description=Global Mail Session mail.smtp.user=xyz password=dummy /Resource The GlobalLifecycleListener creates these MBeans (and the appropriate javax.mail.Authenticator) Unfortunately, however, I can't specify the smtp.mail.host, port, protocol or localhost with this resource definition. smtp.mail.host defaults to localhost. When I want to access the mailSession using Spring, doing a lookup causes a new MailSession to be created with the settings of the ResourceReference (i.e. the Authenticator is null). bean id=mailSession class=org.springframework.jndi.JndiObjectFactoryBean singleton=true property name=jndiName valuemail/MailSession/value /property property name=resourceRef valuetrue/value /property property name=javaMailProperties props prop key=mail.smtp.port25/prop prop key=mail.transport.protocolsmtp/prop prop key=mail.smtp.hostmymailhost/prop /props /property /bean My Web.xml's resource-ref is as follows: resource-ref descriptionMail Session/description res-ref-namemail/MailSession/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref My context.xml (that I'm definining in the META-INF directory) includes: ResourceLink name=mail/Session global=GlobalMailSession type=javax.mail.Session / So, I have the properties for port, protocol, and localhost, but the Authenticator is gone. Argh! I've seen other folks have problems with this in 5.5. Looking at the source suggests that this Factory needs some work. I looked at the 5.5.10 changelog and it doesn't show any changes to this code AFAIK. So my quick questions are: 1. The ResourceParams tag doesn't appear to be supported any longer in Tomcat 5.5.x. (they were supported in 4.1.x, but I can't even find reference to them). How do I define the localhost as well as authentication for a global MailSessionFactory resource? 2. How do I prevent a new resource being created in 5.5.x each time--why can't I get to the original global resource? Is there a switch I forgot to throw? Thanks. -- Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error msg after catalina.sh run
This link might help you http://www.churchillobjects.com/c/11201i.html Anoop On 8/9/05, Tom Spence [EMAIL PROTECTED] wrote: I am using AIX 5.2, TC 5.5.9, JAVA 1.4 I am working on 8443 (443) but got an error and how can I solve this problem? Using CATALINA_BASE: /usr/local/jakarta-tomcat Using CATALINA_HOME: /usr/local/jakarta-tomcat Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp Using JRE_HOME: /usr/java14 Created MBeanServer with ID: 52d4d891:1059af76990:-8000:xxx.xxx.xxx.xxx:1 Aug 9, 2005 7:19:33 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 9, 2005 7:19:34 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.io.IOException: Algorithm SunX509 not available at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:125) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142) at org.apache.catalina.connector.Connector.initialize(Connector.java:928) at org.apache.catalina.core.StandardService.initialize(StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764) at org.apache.catalina.startup.Catalina.load(Catalina.java:490) at org.apache.catalina.startup.Catalina.load(Catalina.java:509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) Aug 9, 2005 7:19:34 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.io.IOException: Algorithm SunX509 not available at org.apache.catalina.connector.Connector.initialize(Connector.java:930) at org.apache.catalina.core.StandardService.initialize(StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764) at org.apache.catalina.startup.Catalina.load(Catalina.java:490) at org.apache.catalina.startup.Catalina.load(Catalina.java:509) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408) (__[TomCigar]___~~~ -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MailSessionFactory problems in 5.5.9
P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use the org.apache.naming.factory.MailSessionFactory in 5.5.9 with Spring's JndiObjectFactoryBean and I'm experiencing problems. I want to configure a global mail configuration and then use a resource-link to link one or more apps to the resource. i.e. Resource name=GlobalMailSession auth=Container type=javax.mail.Session description=Global Mail Session mail.smtp.user=xyz password=dummy /Resource The GlobalLifecycleListener creates these MBeans (and the appropriate javax.mail.Authenticator) Unfortunately, however, I can't specify the smtp.mail.host, port, protocol or localhost with this resource definition. smtp.mail.host defaults to localhost. When I want to access the mailSession using Spring, doing a lookup causes a new MailSession to be created with the settings of the ResourceReference (i.e. the Authenticator is null). bean id=mailSession class=org.springframework.jndi.JndiObjectFactoryBean singleton=true property name=jndiName valuemail/MailSession/value /property property name=resourceRef valuetrue/value /property property name=javaMailProperties props prop key=mail.smtp.port25/prop prop key=mail.transport.protocolsmtp/prop prop key=mail.smtp.hostmymailhost/prop /props /property /bean My Web.xml's resource-ref is as follows: resource-ref descriptionMail Session/description res-ref-namemail/MailSession/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref My context.xml (that I'm definining in the META-INF directory) includes: ResourceLink name=mail/Session global=GlobalMailSession type=javax.mail.Session / So, I have the properties for port, protocol, and localhost, but the Authenticator is gone. Argh! I've seen other folks have problems with this in 5.5. Looking at the source suggests that this Factory needs some work. I looked at the 5.5.10 changelog and it doesn't show any changes to this code AFAIK. So my quick questions are: 1. The ResourceParams tag doesn't appear to be supported any longer in Tomcat 5.5.x. (they were supported in 4.1.x, but I can't even find reference to them). How do I define the localhost as well as authentication for a global MailSessionFactory resource? 2. How do I prevent a new resource being created in 5.5.x each time--why can't I get to the original global resource? Is there a switch I forgot to throw? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: wanted: servlet testing framework
not specifically tomcat-related, but close enough i hope: i'm looking for an out-of-container servlet testing framework that executes servlet context listeners and filters. ideally it would also have maven integration, but i can live without that. i checked out httpunit's servletrunner, but that seems to only understand servlets themselves. i don't want to use cactus or any other in-container framework. anybody have other suggestions? thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MailSessionFactory problems in 5.5.9
Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:25 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use the org.apache.naming.factory.MailSessionFactory in 5.5.9 with Spring's JndiObjectFactoryBean and I'm experiencing problems. I want to configure a global mail configuration and then use a resource-link to link one or more apps to the resource. i.e. Resource name=GlobalMailSession auth=Container
Re: MailSessionFactory problems in 5.5.9
Thanks, Derrick, that's how I used to have it in 4.1.29. Are you using 5.5.x? Brian Derrick Koes wrote: Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:25 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use the org.apache.naming.factory.MailSessionFactory in 5.5.9 with Spring's JndiObjectFactoryBean and I'm experiencing problems. I want to configure a global mail configuration and then use a resource-link to link one or more apps to the resource. i.e. Resource name=GlobalMailSession auth=Container
RE: MailSessionFactory problems in 5.5.9
Nope, 5.0.28 -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:50 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 Thanks, Derrick, that's how I used to have it in 4.1.29. Are you using 5.5.x? Brian Derrick Koes wrote: Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:25 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use the
Re: MailSessionFactory problems in 5.5.9
Yes, that should work. ResourceParams are still around in 5.0.x. However they went away in 5.5.x. :( I'm hoping that a 5.5.x user can help me out. I'm thinking I need to back down to 5.0.28 :( Even though: Apache Tomcat 5.5 is the current focus of development. While it supports the same Servlet and JSP Specification versions as Apache Tomcat 5.0.x, there are significant changes in many areas under the hood, resulting in improved performance, stability, and total cost of ownership. Brian Derrick Koes wrote: Nope, 5.0.28 -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:50 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 Thanks, Derrick, that's how I used to have it in 4.1.29. Are you using 5.5.x? Brian Derrick Koes wrote: Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original
Re: OT: wanted: servlet testing framework
I've seen a combination of httpunit and dbunit used. You could give that a shot and see if it meets your needs. -Dennis Brian Moseley wrote: not specifically tomcat-related, but close enough i hope: i'm looking for an out-of-container servlet testing framework that executes servlet context listeners and filters. ideally it would also have maven integration, but i can live without that. i checked out httpunit's servletrunner, but that seems to only understand servlets themselves. i don't want to use cactus or any other in-container framework. anybody have other suggestions? thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR in starting CATALINA in UNIX
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 9 August 2005 6:26 PM To: Kurniawan Kurt Subject: failure delivery Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem. We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: wanted: servlet testing framework
Dennis wrote: I've seen a combination of httpunit and dbunit used. You could give that a shot and see if it meets your needs. thanks. i looked at httpunit before posting, but it seems to only pull the servlets from your web.xml file. i need the servlet context listeners and filters loaded and executed as well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does JspC in 5.0 rely on Hibernate?
Hi all! I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the components is JspC. Using the ANT Task presented in the 5.0 docs as inspiration I have: target name=jspcx depends=ensure-jsp-src taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${image} webXmlFragment=${jsp.webapp.xml} outputDir=${jsp.src.dir} verbose=99 / /target I added the verbose tag to get some debugging info. During the build, I get this: [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile [jasper2] INFO: Built File: \Common\Calendar.jsp [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile [jasper2] INFO: Built File: \Common\CancelDialog.jsp [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterFrame.jsp [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterNav.jsp [jasper2] Error in class org.apache.jasper.JspC BUILD FAILED file:c:/ecms/Working/WebServerCode/build.xml:385: java.lang.NoClassDefFoundError : net/sf/hibernate/Lifecycle If I immediately restart Ant, if continues on it merry way, goes farther, and then I get the NoClassDefFoundError again. So, it's not my JSPs (which don't use hibernate), and appears to be JspC itself! I don't see anything resembling a Hibernate jar in the Tomcat distro, so I'm just curious where this might cropping up. Any ideas? Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/MySQL Application Update
We have a servlet that is run locally on about 20 laptops. I am currently manually updating the application on each laptop about once per month. Can anyone suggest a method of updating an application running on both OS/X and Windows based machines that would check if a new version was available and then grab it via FTP, Rsync, or something? Or would it be easiest to put the application into a database record? Any help or pointers appreciated. Thanks, -Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/MySQL Application Update
From: Christopher Molnar [EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:56 PM We have a servlet that is run locally on about 20 laptops. I am currently manually updating the application on each laptop about once per month. Can anyone suggest a method of updating an application running on both OS/X and Windows based machines that would check if a new version was available and then grab it via FTP, Rsync, or something? Or would it be easiest to put the application into a database record? Any help or pointers appreciated. Since you're on a laptop, I'm guessing you can't easily automate the process using a cron job or the Window Scheduler, as most laptops aren't up and about in the middle of the night. But, even if it was a manually initiated sync process, it wouldn't be to problematic. You could simply have the user kick off an rsync process at some reasonably regular interval and compare the WAR on their system to the Mater WAR is on your server. If the app is small, your network fast, and you can mount where the Master WAR as a drive on the computer, then you can simply have an Ant task copy the file. It can simply compare timestamps (assuming the machines have compatible clocks), and just suck the whole thing over if the timestamps differ. Hmm, well, you'd need to blow away the old exploded webapp too. That's a bit of a nut. Then, once copied over, Tomcat fires up, explodes the WAR and you're on your merry way. The only hard part is if you perhaps change the DB schema or somesuch thing outside the scope of the application, that brings on a whole different set of problems. Another solution is to embed tomcat, and your app within it, and then use Java Webstart to run it like a desktop appliation. The Webstart handles synchronizing and keep the application up to date. It probably wouldn't be horribly difficult to do, but it's not clear that the effort is worth it just to get the Webstart functionality. Finally, you can add a bit of code to your app to see if it's out of sync, download it your self, then quit with a message saying Updated -- please restart. All sorts of scary things you can do. Since you're talking OS/X and Windows, I'd keep the solutions to Java based ones, tho, rather relying on scripting and such. Luck! Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ERROR in starting CATALINA in UNIX
Hi, All. I think I have solution to my own question. I ended re-install it. One of the problem that I could think of as possibility was: When the tomcat.gz file was transferred, it was transferred as root. somehow the gzip de-compression and untar process that we run under different user still work. But it may internally alter some file permission. It works fine after re-installing, and make sure all permission are OK. Kurt. Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had problem. We use the exact same GZ file for installation. The same java version and the same JAVA_HOME directory We use the same profile and settings, but somehow, this time it decided it doesn't want to start. The environment is as follows: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.08-050401-17:46) Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.08-050401-19:33-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode) Using CATALINA_BASE: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_HOME: /opt/wm/jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: /opt/wm/jakarta-tomcat-5.0.28/temp Using JAVA_HOME: /opt/java1.4 I've got this following error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:986) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:423) I've checked the CLASSPATH etc. Everything is okay. In all machines, We have all CLASSPATH setup. We tools.jar, servlet-api.jar and jsp-api.jar I know this has something to do with class-loading in the bootstrap.jar, but don't have a clue of what and how to solve this. I've compare the CLASSPATH (when it runs the catalina.sh run command, by ECHO-ing the env) from machine that can load up catalina properly and this particular one that has problem, but couldn't find the different. I've google-ed around, and could not find any answer. I'm sure this must have happened to somebody before. Could any one give me some hints ? CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited (including its group of companies) do not accept liability for the views expressed within or the consequences of any computer viruses that may be transmitted with this email. The contents are also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CAUTION: This email and files included in its transmission are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us immediately and delete it without copying the contents contained within. Woolworths Limited
Re: Tomcat/MySQL Application Update
Christopher, We have a servlet that is run locally on about 20 laptops. I am currently manually updating the application on each laptop about once per month. Can anyone suggest a method of updating an application running on both OS/X and Windows based machines that would check if a new version was available and then grab it via FTP, Rsync, or something? Or would it be easiest to put the application into a database record? Any help or pointers appreciated. One option, amongst many, is to store the application as a binary file in a database record. This would allow you to add other information to the record. A user could then, using a web page, download the file. Just a thought. Stephen Caine Soft Breeze Systems, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
* 2 Tomcat instances on same box
Hello, I am trying to achieve not the unimaginable, I thought - to have one instance of Tomcat (5.5) running on port 80, and one - also 5.5 (using the same JAVA_HOME) running on port 8080 on the same box (Win XP). They both start up independently and load on localhost / localhost:8080 just fine. But when one is started, the other will not start up and logs the below message. The one is started as a service, the other a .bat: set CATALINA_HOME=jakarta-tomcat-5.5.9 call %CATALINA_HOME%/bin/startup.bat I thought it may be a conflict of CATALINA_HOME, but as one is installed as a service, I see no reference to the variable in the registry. Any thoughts please? Thanks Paul. java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:346) at org.apache.catalina.startup.Catalina.await(Catalina.java:600) at org.apache.catalina.startup.Catalina.start(Catalina.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Monitor Tomcat with SNMP (MRTG etc)?
Does anyone know how to use SNMP tools to monitor a Tomcat server? Are there any open source tools to assist or add this ability? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part! This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: * 2 Tomcat instances on same box
Paul, I think it's probably because there are other ports (i.e the Tomcat Admin Port that might be on 8005 and the AJP Port that may be on 8009) in use that are common to both of your instances. Brian Paul Wallace wrote: Hello, I am trying to achieve not the unimaginable, I thought - to have one instance of Tomcat (5.5) running on port 80, and one - also 5.5 (using the same JAVA_HOME) running on port 8080 on the same box (Win XP). They both start up independently and load on localhost / localhost:8080 just fine. But when one is started, the other will not start up and logs the below message. The one is started as a service, the other a .bat: set CATALINA_HOME=jakarta-tomcat-5.5.9 call %CATALINA_HOME%/bin/startup.bat I thought it may be a conflict of CATALINA_HOME, but as one is installed as a service, I see no reference to the variable in the registry. Any thoughts please? Thanks Paul. java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:346) at org.apache.catalina.startup.Catalina.await(Catalina.java:600) at org.apache.catalina.startup.Catalina.start(Catalina.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: * 2 Tomcat instances on same box
Paul, It sounds like you have them running on the same port. Either the connector 8005 is the same for both or the 8080 is still being used by both. The bind exception is a socket server exception telling you both instances are trying to use the same port number some where. Wade --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I am trying to achieve not the unimaginable, I thought - to have one instance of Tomcat (5.5) running on port 80, and one - also 5.5 (using the same JAVA_HOME) running on port 8080 on the same box (Win XP). They both start up independently and load on localhost / localhost:8080 just fine. But when one is started, the other will not start up and logs the below message. The one is started as a service, the other a .bat: set CATALINA_HOME=jakarta-tomcat-5.5.9 call %CATALINA_HOME%/bin/startup.bat I thought it may be a conflict of CATALINA_HOME, but as one is installed as a service, I see no reference to the variable in the registry. Any thoughts please? Thanks Paul. java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:346) at org.apache.catalina.startup.Catalina.await(Catalina.java:600) at org.apache.catalina.startup.Catalina.start(Catalina.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No admin page; ServletException: can't find org.apache.struts.action.MESSAGE
Can anyone suggest a fix? Thanks for any help. - Andi After starting tomcat5, this url gives a blank browser page: http://localhost:8080/admin/ Everything else seems OK, esp. Server Status and Manager pages. Exceptions are reported in catalina.out, as follows. (Note - checked already: + grepped documentation, etc, that came with tomcat5; produced no results, ie: [EMAIL PROTECTED] grep -r 'xception.*jakarta.apache.org' /srv/www/tomcat5/base/webapps/* + Searching the lists, web for as much hasn't yet revealed a relevant fix.) The following error(s) in /var/log/tomcat5/base/catalina.out (larger, contextual extract further below): cut Aug 7, 2005 10:37:44 AM org.apache.catalina.authenticator.FormAuthenticator authenticate WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE cut That error is immediately preceded by this one, during the start-up of the session the above occurred in: cut Aug 7, 2005 10:11:23 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validation.xml' Aug 7, 2005 10:12:44 AM org.apache.struts.validator.ValidatorPlugIn init SEVERE: jakarta.apache.org java.net.UnknownHostException: jakarta.apache.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) cut [Context of Exceptions, above, from /var/log/tomcat5/base/catalina.out:] cut Aug 7, 2005 10:11:23 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from '/WEB-INF/validation.xml' Aug 7, 2005 10:12:44 AM org.apache.struts.validator.ValidatorPlugIn init SEVERE: jakarta.apache.org java.net.UnknownHostException: jakarta.apache.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.http.HttpClient.init(HttpClient.java:306) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1591) at org.apache.commons.validator.ValidatorResources.init(ValidatorResources.java:159) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
RE: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE
From: AD Marshall [mailto:[EMAIL PROTECTED] Subject: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE After starting tomcat5, this url gives a blank browser page: http://localhost:8080/admin/ Tomcat 5.0 or 5.5? In 5.5 the addmin app is a separate download and unzip. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: * 2 Tomcat instances on same box
Hi and thank you both for your replies. It turns out more than the HTTP port number needs to be different, as Server port=8005 shutdown=SHUTDOWN was common to both and thus causing the problem. Apart from being an attribute of the parent node, what is this port? Rgds Paul. It sounds like you have them running on the same port. Either the connector 8005 is the same for both or the 8080 is still being used by both. The bind exception is a socket server exception telling you both instances are trying to use the same port number some where. Wade --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I am trying to achieve not the unimaginable, I thought - to have one instance of Tomcat (5.5) running on port 80, and one - also 5.5 (using the same JAVA_HOME) running on port 8080 on the same box (Win XP). They both start up independently and load on localhost / localhost:8080 just fine. But when one is started, the other will not start up and logs the below message. The one is started as a service, the other a .bat: set CATALINA_HOME=jakarta-tomcat-5.5.9 call %CATALINA_HOME%/bin/startup.bat I thought it may be a conflict of CATALINA_HOME, but as one is installed as a service, I see no reference to the variable in the registry. Any thoughts please? Thanks Paul. java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:346) at org.apache.catalina.startup.Catalina.await(Catalina.java:600) at org.apache.catalina.startup.Catalina.start(Catalina.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: * 2 Tomcat instances on same box
From: Paul Wallace [mailto:[EMAIL PROTECTED] Subject: RE: * 2 Tomcat instances on same box Apart from being an attribute of the parent node, what is this port? It's the one Tomcat listens on for the shutdown command in order to gracefully terminate. Bound to 127.0.0.1 only, so you have to be running on the server machine to issue the command. The shutdown script invokes a Tomcat class to send the shutdown string to the configured port. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: * 2 Tomcat instances on same box
One is the control port for SHUTDOWN and maybe other control (think only shutdown), and the other is the AJP port used to connect tomcat to other servers like Apache and IIS. If you are on a Linux box you can use Pseudo IP addresses. Linux allows more than one IP address to be assigned to a NIC. You can then use these different IPs to run your multiple containers on your internal IP addresses. It's probably a better solution than all different ports. You might be able to do this with Windows server, but I'm not sure. Maybe the Admin resource kit might have something to allow this. Wade --- Paul Wallace [EMAIL PROTECTED] wrote: Hi and thank you both for your replies. It turns out more than the HTTP port number needs to be different, as Server port=8005 shutdown=SHUTDOWN was common to both and thus causing the problem. Apart from being an attribute of the parent node, what is this port? Rgds Paul. It sounds like you have them running on the same port. Either the connector 8005 is the same for both or the 8080 is still being used by both. The bind exception is a socket server exception telling you both instances are trying to use the same port number some where. Wade --- Paul Wallace [EMAIL PROTECTED] wrote: Hello, I am trying to achieve not the unimaginable, I thought - to have one instance of Tomcat (5.5) running on port 80, and one - also 5.5 (using the same JAVA_HOME) running on port 8080 on the same box (Win XP). They both start up independently and load on localhost / localhost:8080 just fine. But when one is started, the other will not start up and logs the below message. The one is started as a service, the other a .bat: set CATALINA_HOME=jakarta-tomcat-5.5.9 call %CATALINA_HOME%/bin/startup.bat I thought it may be a conflict of CATALINA_HOME, but as one is installed as a service, I see no reference to the variable in the registry. Any thoughts please? Thanks Paul. java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:346) at org.apache.catalina.startup.Catalina.await(Catalina.java:600) at org.apache.catalina.startup.Catalina.start(Catalina.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE
Sorry, I've got Tomcat 5.0 now. (I may upgrade shortly, try a standalone install.) On 8/10/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: AD Marshall [mailto:[EMAIL PROTECTED] Subject: No admin page; ServletException: can't find org.apache.struts.action.MESSAGE After starting tomcat5, this url gives a blank browser page: http://localhost:8080/admin/ Tomcat 5.0 or 5.5? In 5.5 the addmin app is a separate download and unzip. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- AD (Andi) Marshall Cell: +84 (0)903871313 eM: [EMAIL PROTECTED] Zone: ICT (IndoChina Time, GMT/UTC+7) Post: HoChiMinh City (ex/or SaiGon), VietNam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]