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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -