好吧,我正在开发一个项目:Eclipse IDE中的JPA + Maven + Spring + JSF 2 + Primefaces + Tomcat 7。
我在DEBUG模式下启动我的TOMCAT,我希望我可以更改任何代码并继续测试我的软件。问题是当我尝试更改任何代码时,我的tomcat会自动重启,并且我丢失了内存中的所有数据,我必须从重新开始测试。
如何避免重启?有什么办法吗?
这是tomcat重新加载的日志:
Abr 27, 2014 1:04:44 PM org.apache.catalina.core.StandardContext reload
Informações: Reloading Context with name [/odontonew] has started
Abr 27, 2014 1:04:45 PM org.apache.catalina.core.ApplicationContext log
Informações: Closing Spring root WebApplicationContext
19647 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.hibernate.impl.SessionFactoryImpl - closing
Abr 27, 2014 1:04:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/odontonew] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Abr 27, 2014 1:04:45 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
Informações: validateJarFile(/home/ronaldo/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/odontonew/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Abr 27, 2014 1:05:03 PM org.apache.catalina.core.ApplicationContext log
Informações: Initializing Spring root WebApplicationContext
20 [Thread-5] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
22 [Thread-5] INFO org.hibernate.cfg.Environment - Hibernate 3.6.10.Final
24 [Thread-5] INFO org.hibernate.cfg.Environment - hibernate.properties not found
25 [Thread-5] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
26 [Thread-5] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
35 [Thread-5] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.6.10.Final