codigostcc / marmoset

Automatically exported from code.google.com/p/marmoset
0 stars 0 forks source link

Deployment of SubmitServer on Tomcat 7 fails, SEVERE: Error filterStart #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to setup marmoset submit server according to the Wiki-documentation on a 
plain Ubuntu/12.04, with installed Tomcat 7 and OpenJDK 1.7
2. Building of SubmitServer.war works
3. Deployment of SubmitServer.war fails

What is the expected output? What do you see instead?
Deployment of submitServer.war fails because of the following error message in 
Tomcat's log files:
-----
Jun 25, 2013 5:14:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Jun 25, 2013 5:14:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/submitServer] startup failed due to previous errors
Jun 25, 2013 5:14:40 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/submitServer] appears to have started a thread 
named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. 
This is very likely to create a memory leak.
Jun 25, 2013 5:14:40 PM org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SEVERE: The web application [/submitServer] created a ThreadLocal with key of 
type [com.google.inject.internal.InjectorImpl$1] (value 
[com.google.inject.internal.InjectorImpl$1@65cd7629]) and a value of type 
[java.lang.Object[]] (value [[Ljava.lang.Object;@1408b1f6]) but failed to 
remove it when the web application was stopped. Threads are going to be renewed 
over time to try and avoid a probable memory leak.
-----

So, what am I doing wrong?

Original issue reported on code.google.com by fromm.a...@gmail.com on 25 Jun 2013 at 3:25

GoogleCodeExporter commented 9 years ago
I get the same error but before those I also get: 

ERROR 2013-10-01 13:37:07,770 rolling.RollingFileAppender: 
setFile(/usr/share/tomcat7/logs/marmoset/submitServerServlet.log,true) call 
failed.
java.io.FileNotFoundException: 
/usr/share/tomcat7/logs/marmoset/submitServerServlet.log (No such file or 
directory)

Original comment by sukl...@gmail.com on 1 Oct 2013 at 11:40

GoogleCodeExporter commented 9 years ago
I acutally managed to found some more information. In localhost_xx.log I get 
the folowing error: 

SEVERE: Exception starting filter RegistrationFilter
java.lang.RuntimeException: Unable to load sql driver "com.mysql.jdbc.Driver"

I put the mysql-connector-java.jar inside $CATALINA_HOME/lib but still get that 
error. Could you please tell us,  how do we configure the datbase? I have this 
lines in local.web.properties, but it seems I have the database.driver setup 
wrongly: 
database.driver="com.mysql.jdbc.Driver"
database.server.jdbc.url=jdbc:mysql://localhost:3306/marmoset
database.options=unicode=true&characterEncoding=utf8

Thank you for the help

Original comment by sukl...@gmail.com on 1 Oct 2013 at 1:01

GoogleCodeExporter commented 9 years ago
I solved the problem and got it running - I had quotes around the driver, which 
shouldn't be there

If you have SEVERE: Error filterStart, you probably have the database driver 
wrongly setup.

Original comment by sukl...@gmail.com on 2 Oct 2013 at 10:39