lemonzone2010 / javamelody

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

Installation with TeamCity 7.1.5 on Tomcat 7 fails due to error on filter start #309

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install webapp Jetbrains TeamCity on Tomcat 7 in Context teamcity 
http://www.jetbrains.com/teamcity/download/
2. Start the server, the context is accessible, the logs are fine
3. Install javamelody by dropping the two jars into WEB-INF/lib and put the xml 
stuff into web.xml, just at the beginning.
4. Restart the server, the log shows

SCHWERWIEGEND: The web application [/teamcity] registered the JDBC driver [net.b
ull.javamelody.JdbcDriver] but failed to unregister it when the web application
was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregis
tered.
14.05.2013 06:30:06 org.apache.catalina.loader.WebappClassLoader clearReferences
Jdbc
SCHWERWIEGEND: The web application [/teamcity] registered the JDBC driver [org.a
pache.commons.dbcp.PoolingDriver] but failed to unregister it when the web appli
cation was stopped. To prevent a memory leak, the JDBC Driver has been forcibly
unregistered.
14.05.2013 06:30:06 org.apache.catalina.loader.WebappClassLoader 
clearReferencesJdbc
SCHWERWIEGEND: The web application [/teamcity] 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.
14.05.2013 06:30:06 org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SCHWERWIEGEND: The web application [/teamcity] appears to have started a thread 
named [Memory Usage Watcher] but has failed to stop it. This is very likely to 
create a memory leak.
14.05.2013 06:30:06 org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SCHWERWIEGEND: The web application [/teamcity] created a ThreadLocal with key 
of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@113bc51]) and a 
value of type [org.springframework.security.core.context.SecurityContextImpl] 
(value [org.springframework.security.core.context.SecurityContextImpl@ffffffff: 
Null authentication]) 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.
...
INFO: Deploying web application directory /var/lib/tomcat-7/webapps/teamcity
14.05.2013 06:30:08 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Error filterStart
14.05.2013 06:30:08 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Context [/teamcity] startup failed due to previous errors
14.05.2013 06:30:08 org.apache.coyote.AbstractProtocol start
...

I use the latest javamelody on Tomcat 7.0.23, Oracle Java 1.6., gentoo linux.

My web.xml is attached

Original issue reported on code.google.com by Frank.Ja...@gmail.com on 14 May 2013 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago
The log given does not say why there is an error in the filter.
I should probably download teamcity and test.

Original comment by evernat@free.fr on 14 May 2013 at 12:02

GoogleCodeExporter commented 9 years ago
After a little while of logsurfing and debugging, I've found the exception 
stacktrace. It was javax/transaction/UserTransaction missin.
I put the jta-1-1.jar in the WEB-INF/lib folder and up it went.

Original comment by Frank.Ja...@gmail.com on 14 May 2013 at 8:00

GoogleCodeExporter commented 9 years ago
A bit strange and javax/transaction/UserTransaction is not used anywhere in the 
javamelody code.

Anyway, thanks for the solution.
This issue will be the documentation for this.

Original comment by evernat@free.fr on 8 Jun 2013 at 10:00