classpath mess when deploying war with org.eclipse.jetty.server.Server -
i using org.eclipse.jetty.server.server
start jetty , deploy war. have this:
class runner { private static void run(string[] arg) { server server = new server(); ... server.sethandler(webapp); server.start(); } }
i got problem classpaths:
seems webapp's classpath contains (inherit) classpath of runner class.
for example if have spring service com.my.myclass1
in classpath of runner (not in webapp classpath) , inside wepapp
run spring scanning pacage "com.my" spring find , try create bean myclass1
.
is correct behavior servlet container (jetty)? possible configurate jetty not have such behavior?
Comments
Post a Comment