Embedded jetty application not working from jar
问题 I have the following code: Server server = new Server(9090); final URL warUrl = Main.class.getClassLoader().getResource("com/domain/webapps/app"); final String warUrlString = warUrl.toExternalForm(); WebAppContext wac = new WebAppContext(warUrlString, "/app"); server.setHandler(wac); I have the Main class in the com.domain package. The jsp's and html's are in the com.domain.webapps.app package. When run inside Netbeans (or java -cp <classpath> com.domain.Main on the exploded jar) the