Community
Participate
Working Groups
Created attachment 199993 [details] WAB without Bundle-ClassPath The attached file session-persist-test.war (from bug 350154) fails when a request is sent (at http://localhost:8080/sess/Test) due to a class loading error for a class which should be on the bundle classpath. The file is actually a Web Application Bundle rather than a standard WAR since it sets Web-ContextPath in the manifest. As of 3.0.0.M06, Bundle-Classpath is not set to a default value for WABs unless WABHeaders is set to defaulted in the web integration layer properties file. The bug here is that setting WABHeaders to defaulted still does not fix the class loading problem. Explicitly setting the bundle classpath, as in the attached file session-persist-test.jar solves the problem. So it appears the defaulting is not happening as expected when WABHeaders is set to defaulted.
Created attachment 199994 [details] WAB with Bundle-Classpath
The problem is that the org.eclipse.virgo.web.properties file in config is loaded into the kernel instance of Config Admin, but the web layer runs in the user region. The solution is to move the properties file into repository/ext. The documentation needs to be reworked to match.
Fixed, but waiting to push and ripple. Web integration layer fix in commits 9f42e155268597824b0eedcf7502c68a8b7aa475 and 82f2dc4eab22c368609bd85ea78084de0a44d057. Documentation fix in commit fc93043af3ee1663b04744856702a5ec55353268. Virgo Tomcat Server fix in commit d6e3c059e8be4ee6b62427d8fb40863cba44fff7.
Rippled and pushed.