SQL eror pri redeployi spring aplikace na tomcat

Tomáš Adámek tomas.adamek na gmail.com
Pondělí Září 22 23:35:03 CEST 2008


Dobry den, kdyz z Eclipsu redeployuji spring aplikace na lokalni
tomcat z antovskeho target, obejvi se mi pri startu a inicalizaci
springu v logu toto:

22.9.2008 19:36:08 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.SQLError.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused
the illegal access, and has no functional impact.
java.lang.IllegalStateException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3246)
	at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1656)
	at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4261)
	at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1248)
	at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2655)
	at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
	at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
	at java.lang.ref.Finalizer.access$100(Unknown Source)
	at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

Nesetkal se nekdo s podobnou chybou?

Potom mam jeste jedne kosmeticky problem s eclipsem - pri pouziti kodu

		WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();

respektive:

		WebApplicationContext wac =
WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
		WebDAO webDAO = (WebDAO) wac.getBean("webDAO");

Me zarve a oznaci wac.getBean jaky error s hlaskou (The type
org.springframework.context.ApplicationContext cannot be resolved. It
is indirectly referenced from required .class files). Nevim presne cim
to je ale predpokladam, ze mu zrejme na projektove ceste chybi nejaky
konfiguracni soubor. Aplikace pak Antem normalne zbuildit lze 9dokonce
i v eclipsu debugovat). Opet nesetkal se s tim nekdo?

Diky moc.



Další informace o konferenci Konference