Variables in server.xml?
Hi, is it possible to set values in server.xml to something referencing a variable? Like in ANT build files, where I could do host workdir=${TMP} Kind regards, Christian Aust This email has been scanned for all viruses by the MessageLabs SkyScan service. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL handshake times out on Tomcat 5.5
Hi, although I've read all the docs and FAQs I could find, I can't get Tomcat 5.5.15 to do SSL on Windows with SUN JDK 1.5. I've imported the keys according to the docs, starting with the root CA cert and going all the way up until the cert that matches my key request. Then I've copied the keystore file keystore into CATALINA_HOME and configured Tomcat like such: !-- Define a SSL HTTP/1.1 Connector on port 443 -- Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=99 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=keystore keystorePass=changeit / All environment variables are set, JAVA_HOME plus CATALINA_HOME pointing to the right directories. When I start Tomcat, there's nothing special in the logs. Pointing a browser to https://localhost/ just times out. Doing the same using the OpenSSL tool gives me $ openssl s_client -connect localhost:443 -showcerts -state CONNECTED(0003) SSL_connect:before/connect initialization SSL_connect:SSLv2/v3 write client hello A 2644:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188: Interesting point: Pointing the browser to http://localhost:443/ works. Since I don't find anything in the logs, I'm lost. Remaining issues are: 1) Should I import the server certificate under the alias tomcat oder the name of the host? There's different documentation about this. 2) Can I increase logging somehow, to see what's going on inside the SSL factory/connector? Any help is appreciated... Kind regards Christian Aust Development mySAP Human Resources Pecaso Deutschland Im Breitspiel 5 - 69126 Heidelberg - Germany Phone: +49 (0) 6221 3106-270 - Fax: +49 (0) 6221 3106-275 Mobil: +49 (0) 151 171 56 191 mailto:[EMAIL PROTECTED] - http://www.pecaso.com/ This email has been scanned for all viruses by the MessageLabs SkyScan service. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redeploying war file kills context xml
Hi, I'm using Tomcat 5.5.15 on Windows 2003 w/ SUN JDK 1.5. Inside a virtual host, I've configured a context to define some JNDI datasources. Therefore I've written a context XML file in CATALINA_BASE/conf/Catalina/host/myapp.xml The app is deployed using a war file HOST_BASE/myapp.war and expanded to HOST_BASE/myapp automatically. It all works pretty well until I redeploy the war file: Uploading the war takes a little while. While I'm still uploading, tomcat starts to redeploy the unfinished war file and _deletes_ the myapp.xml file as well. When the upload is finished, the war file is complete, the directory HOST_BASE/myapp/ is incomplete and the context XML file CATALINA_BASE/conf/Catalina/host/myapp.xml is gone. I've searched the docs, googled the web, tried everything... nothing. How do I need to configure this context so that my custom myapp.xml file stays in place during a redeploy? Is there a chance to redeploy even over a slow link without tomcat trying to expand an unfinished archive? Kinnd regards / Mit freundlichen Grüßen Christian Aust Development mySAP Human Resources This email has been scanned for all viruses by the MessageLabs SkyScan service. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redeploying war file kills context xml
Hi Kevin, including a context.xml file in META-INF could cure the disappearing context file issue, although it would rather be some kind of workaround: The file would still be deleted but eventually restored. Any idea how I could configure tomcat 5.5 to stop from deleting that file? The other issue remaining is Tomcat trying to deploy an unfinished war file. Kind regards, - Christian -Original Message- From: Kevin Klinemeier [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 9:44 PM To: Tomcat Users List Subject: Re: Redeploying war file kills context xml Would including the myapp.xml in your META-INF/ be an option? I read here that that should work: http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#A% 20word%20on%20Contexts -Kevin This email has been scanned for all viruses by the MessageLabs SkyScan service. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]