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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -