Client authentication for single servlet
In Tomcat 5.0.x Is it possible to for a servlet to get a client's certificate without forcing the whole server to use client authentication? in server.xml: clientAuth=true - stops everyone accessing via https clientAuth=want - secure servlet displays no content clientAuth=false - request.getAttribute("javax.servlet.request.X509Certificate") doesn't get the cert thanks, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.0.19 - working at last!
hey hey hey! I'm an idiot - always a nice way to introduce yourself to a list :)) I have a USB stick drive which I use to copy JAVA_HOME/lib/ext files around between machines and guess what? I'd only gone and copied an old catalina.jar to lib/ext, you know, the one without setAwait defined! All works now! thanks for listening to a moron! Alistair On 6 Apr 2004, at 10:56, Alistair Young wrote: OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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: 5.0.19 - won't start on anything other thatn *nix
OK, I think I'm getting somewhere: org.apache.catalina.startup.Bootstrap in /bin calls org.apache.catalina.startup.Catalina.setAwait(boolean) in /server/lib which inherits setAwait from org.apache.catalina.startup.Embedded I checked the jars and setAwait is defined in both Catalina.class and Embedded.class so why is the class loader failing to load those files correctly? catalina.out: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) I've looked for another catalina.jar in the CLASSPATH but there isn't one. Can anyone shed some light? thanks, Alistair On 6 Apr 2004, at 10:28, Alistair Young wrote: Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -----Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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: 5.0.19 - won't start on anything other thatn *nix
Thanks for that - I've never had problems with Tomcat before! It's seems to be something to do with Embedded - whatever that is. bootstrap.jar is using catalina.jar and trying to call setAwait - which doesn't exist. Can anyone say why setAwait is being called when it clearly doesn't exist in catalina.jar? Is there something in catalina.sh that's making Tomcat think it should run in Embedded mode - is embedded mode a bad thing? thanks, Alistair On 6 Apr 2004, at 10:01, Anand Ravi wrote: Hi! I'm using Tomcat 5.0.19 on Win 98,NT,XP and 2K. Seems to be working fine. Regards, Anand Ravi -----Original Message- From: Alistair Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 1:57 PM To: Tomcat Users List Subject: 5.0.19 - won't start on anything other thatn *nix Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - 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]
5.0.19 - won't start on anything other thatn *nix
Hi folks, I've now tried Tomcat 5.0.19 on 3 different machines and 2 OSes: On Windows XP and MAC OS X 10.3.3, running bin/startup.bat/sh or bin/catalina.bat/sh start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. I'm using JDK 1.4.2_03 Can anyone please help as Tomcat is now unusable outside *nix! cheers, Alistair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.0.19 server not starting
Hi there, sorry about the lack of info - I'm still a bit off course - this is the first time I can't get Tomcat to start! 5.0.19 runs fine on Linux, using bin/startup.sh On Windows XP and MAC OS X 10.3.3, running bin/startup.bat or bin/catalina.bat start produces the error: java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod(Class.java:978) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) JAVA_HOME and CATALINE_HOME are set OK. No errors are produced by catalina.bat regarding environment variables. If I use the Tomcat installed with the Sun Web Services Developer Pack, which I don't really want to have to do, it all works fine but the way Tomcat is started is completely different: exec "$JAVA_HOME"/bin/java -classpath "$JWSDP_HOME/jwsdp-shared/bin:$JWSDP_HOME/jwsdp-shared/bin/commons- launcher.jar:$JWSDP_HOME/apache-ant/lib/ant.jar:$JWSDP_HOME/apache-ant/ lib/optional.jar:$JWSDP_HOME/jaxp/lib/jaxp-api.jar:$JWSDP_HOME/jaxp/ lib/endorsed/sax.jar:$JWSDP_HOME/jaxp/lib/endorsed/dom.jar:$JWSDP_HOME/ jaxp/lib/endorsed/xercesImpl.jar:$JWSDP_HOME/jaxp/lib/endorsed/ xalan.jar" -DJAVA_HOME="$JAVA_HOME" -DCATALINA_OPTS="$CATALINA_OPTS" LauncherBootstrap jwsdp "$@" Thanks for any help, Alistair On 4 Apr 2004, at 17:34, Mark Thomas wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I've tried just about every distro from 4.1.28 onwards and none of them work under Windows! They all have either ant or Tomcat4.CoyoteConnector failures. Is Tomcat not now supported under Windows? Tomcat is supported under Windows. In Tomcat 5 I tried tomcatw \\GT\\Tomcat5 - to no avail. I always get the "no such method problem" on setAwait. Can anyone help please! With this little information about your environment, the error reported, etc frankly no. Have you tried starting tomcat directly? thanks, Alistair Also, please don't hijack other people's threads. Looks like you have a broken server.xml Try using the one provided with the tomcat distribution. Mark -Original Message- From: jitender ahuja [mailto:[EMAIL PROTECTED] Sent: Sunday, April 04, 2004 2:24 PM To: [EMAIL PROTECTED] Subject: 5.0.19 server not starting Hi, I am facing problem in starting the server 5.0.19 , the same issue is with "catalina", except with the debug mode of that. The error message for catalina in run mode is: Can't load server.xml Can't load server.xml Apr 4, 2004 6:49:36 PM org.apache.catalina.startup.Catalina start INFO: Server startup in ms java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) ... 6 more The server application aborts. The same issue is with "catalina", except with the debug mode of that . Can someone point out the reason for the same. Regards, Jitender - 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]