Sysdeo Tomcat DevLoader - Hot Deploying Java Class Reboots Entire Application

I am using sysdeo tomcat plugin 3.2.1 with eclipse 3.5.1 (Galileo) and tomcat 5.5.23 on Windows XP. I can get the tomcat plugin working in eclipse and fetch devloader.zip in [tomcat] \ server \ classes. I also updated the context and now it has this entry:

<Context path="/myapp1" reloadable="true" docBase="F:\Work\eclipse_workspace\myapp1" workDir="F:\Work\eclipse_workspace\myapp1\work" >
    <Logger className="org.apache.catalina.logger.SystemOutLogger" verbosity="4" timestamp="true"/>
    <Loader className="org.apache.catalina.loader.DevLoader" reloadable="true" debug="1" useSystemClassLoaderAsParent="false" />
</Context>

I activated devloader (in Project> Properties> Tomcat> Devloader Classpath) and โ€œcheckedโ€ all my classes and banks, I did not โ€œcheckโ€ commons-loggin.jar jsp-api.jar, servlet-api.jar.

So, when running tomcat through the plugin, I can get it to work with devloader, as shown in the eclipse console view

[DevLoader] Starting DevLoader
[DevLoader] projectdir=F:\Work\eclipse_workspace\myapp1
[DevLoader] added file:/F:/Work/eclipse_workspace/myapp1/WEB-INF/classes/
[DevLoader] added file:/F:/Work/eclipse_workspace/myapp1/WEB-INF/lib/activation.jar

, System.out.println java , ( ~ 80 ), , / tomcat. -Xdebug JAVA_OPTS catalina.bat, : (

, .

, "" tomcat, , , java " " / . , tomcat/application /.

, .

PS: ant/maven , eclipse, ( ).

+3
2

DevLoader, - Eclipse: server.xml, , DevLoader, Tomcat. ( Devloder).

0

, , , reloadable="true" Context?

Tomcat:

true, , Catalina /WEB-INF/classes//WEB-INF/lib -, . , , . . - , .

, true , false ( ), hotdeploys ( docBase ). , , JAR ? docBase? , , , Eclipse/Tomcat , ( Eclipse, )... docBase , , , reloadable true.

0

Source: https://habr.com/ru/post/1747923/


All Articles