Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
threadlocal issues in tomcat
Yemi Dalley
Greenhorn
Posts: 12
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello Please my app refuses to startup in
tomcat
,
I'm using
struts
, spring and hibernate ...
web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app id="person" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>person</display-name> <!-- Include this if you are using Hibernate --> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter> <filter-name>Spring OpenEntityManagerInViewFilter</filter-name> <filter-class> </filter-class> </filter> <filter-mapping> <filter-name>Spring OpenEntityManagerInViewFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> </web-app>
tomcat logs
16:01:19,412 INFO LocalSessionFactoryBean:246 - Closing Hibernate SessionFactory 16:01:19,423 INFO SessionFactoryImpl:853 - closing May 5, 2010 4:01:19 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prev ent a memory leak, the JDBC Driver has been forcibly unregistered. May 5, 2010 4:01:19 PM org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread SEVERE: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a me mory leak, the timer (and hence the associated thread) has been forcibly cancelled. May 5, 2010 4:01:19 PM org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread SEVERE: A web application appears to have started a TimerThread named [Timer-2] via the java.util.Timer API but has failed to stop it. To prevent a me mory leak, the timer (and hence the associated thread) has been forcibly cancelled. May 5, 2010 4:01:19 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1a01e8a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1353154]) but failed to remove it when the web application was stopped. To prevent a memory l eak, the ThreadLocal has been forcibly removed. May 5, 2010 4:01:19 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1398cac]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1429cf1]) but failed to remove it when the web application was stopped. To prevent a memory l eak, the ThreadLocal has been forcibly removed. May 5, 2010 4:01:20 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT May 5, 2010 4:01:20 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 May 5, 2010 4:01:20 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 May 5, 2010 4:01:20 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/70 config=null May 5, 2010 4:01:20 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 30184 ms
SCJD (URlybird)
Sue Temple
Greenhorn
Posts: 19
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Your Tomcat error log has this -
# SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prev # ent a memory leak, the JDBC Driver has been forcibly unregistered.
Can you check if your code is closing all db connections after completing each database-related call
Yemi Dalley
Greenhorn
Posts: 12
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm using hibernate, so i don't manage the connections.
I've configured spring with it now, and everything seems to be ok.
Thanks
SCJD (URlybird)
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Error in FilterStart Struts 2 web app
Problem with the JBDC driver
Axis webservices on apache-tomcat-6.0.26
Unload event for Tomcat
Can two filters use the same filter-class?
More...