Chris, -----Original Message----- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, February 25, 2014 1:01 AM To: Tomcat Users List Subject: Re: Installing the OWF webapp to an existing Tomcat Instance
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Brian, On 2/24/14, 6:46 PM, J. Brian Hall wrote: > Hey Chuck, thanks (I was worried someone would yell at me for posting > this question here). Responses are below ... > > -----Original Message----- From: Caldarale, Charles R > [mailto:chuck.caldar...@unisys.com] Sent: Monday, February 24, 2014 > 6:26 PM To: Tomcat Users List Subject: RE: Installing the OWF webapp > to an existing Tomcat Instance > >> From: J. Brian Hall [mailto:jbrianhall...@me.com] Subject: >> Installing the OWF webapp to an existing Tomcat Instance > >> if I access OWF through Tomcat's Application Manager, the URL address >> it follows goes to http://localhost:8080/owf/ when it should go to >> https://localhost:8443/owf/ > > That's expected - the manager doesn't know that the specified app is > for https use only. However, there could be a problem with your > server.xml file in Tomcat's conf directory, so you should post that > here with comments removed and sensitive information masked out. > Also, look in the various Tomcat log files to see if the application > initialized properly. > > > Thanks. Two comments: > > 1. The only thing I added to server.xml per the instructions is: > > <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" > maxThreads="150" scheme="https" secure="true" > keystoreFile="certs/keystore.jks" keystorePass="changeit" > clientAuth="want" sslProtocol="TLS" /> Sanity check: you do have a certs/keystore.jks file and the password is in fact "changeIt", right? It would be best to fully-qualify the path of the keystore file. Yes, the OWF distribution provided a certs folder with that file in it and 3 others. I fully-qualified the path and I have the same result. > 2. Log files. Yes, the webapp fails to initialize. Here's the first > few lines: > > ERROR org.springframework.web.context.ContextLoader - Context > initialization failed > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'messageSource': Initialization of bean > failed; nested exception is > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'transactionManager': Cannot resolve reference > to bean 'sessionFactory' while setting bean property 'sessionFactory'; > nested exception is > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'sessionFactory': Cannot resolve reference to > bean 'hibernateProperties' while setting bean property > 'hibernateProperties'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'hibernateProperties': Cannot resolve > reference to bean 'dialectDetector' while setting bean property > 'properties' with key [hibernate.dialect]; nested exception is > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'dialectDetector': Invocation of init method > failed; nested exception is > org.springframework.jdbc.support.MetaDataAccessException Failure to deploy ought to either cause Tomcat to immediately stop after trying to start or continue running and issue 404 responses for requests to /owf/ -- depending upon the severity of the error. Is there anything suspicious in logs/catalina.out (or any other log file in logs/ for that matter)? Yes, note that I don't have experience with the logs so I will provide parts that may shed light: Feb 24, 2014 7:14:28 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-8443"] java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR Feb 24, 2014 7:14:28 PM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]] Feb 24, 2014 7:15:13 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Feb 24, 2014 7:15:13 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/owf] startup failed due to previous errors Feb 24, 2014 7:15:13 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/owf] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Feb 24, 2014 7:15:13 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/owf] appears to have started a thread named [HSQLDB Timer @dd627f] but has failed to stop it. This is very likely to create a memory leak. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTDDGAAAoJEBzwKT+lPKRYdVMP/i15PUUWaSFbZSvw9aT/sB0u ih0jGQAVseeg0M+DF9cGpLLFS2Eg5nBZH45ohefUdw1W2KmgWplJArzHn3bVnV/1 4b/qs2Tba+NKJSxG1Pd8k6RJ3zpi9hGkocIGxR31XYpVKlbK17z5nVp55jx0oxwh D5BqBwYT9SHzi24dCIMNdVA9GHp5jRxTh3raE4M3sYdLV8IfCtTInGq455CxDgMa bNnhpmQ12t2WJqZGIAu/6yZMqwovYyqKFBR7gUzJegfBwfbmLdElRmxfiGU2xZ/P u5lEwxcQxW2jCXjunc5jsQYX2i97/psA0khaiQaEG3r4HyfFSx5iqPXClKL8n5dB eui6HeCHq9zqBjfQxFexEm1Q2MTHqW4G+ta4Qh3hqbI7uXpD/XNAj4zfV1xOhksc aJukhdZkpmWfpfPsjmDZS6Icjz/L+IZGMmHhCQ7gP0bL+0PGMHQysZ6KV8ig4cs1 uplpanBhHVUCEcjw0Ja1xZNgn9epvKMIoJyJUwfsS8IOpfuBH9ZSGEZ9SuEOfAG3 c0+OJr6o9DQixKr17xXKWksgROqFvHyhND37B/2bo9xKlU8T3N4gDWwpBG+S3meg rRAgz6xixWAgDsX14KJCA5uk13sJQGVRbgCk640ZiAx3Wzeik8D5LNbXdILHwf85 rlc1cELEym7QBhAVy6c+ =AnAD -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org