Community
Participate
Working Groups
Hi, I want to specify in the web application's context.xml the following configurations: - custom classloader - basic authenticator - access log valve 1. When I specify a custom classloader the following exception is thrown: Caused by: java.lang.ClassNotFoundException: org.apache.catalina.loader.WebappLoader at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) The problem is discussed also in the following mail thread: http://dev.eclipse.org/mhonarc/lists/virgo-dev/msg00532.html 2. When I specify an authenticator the following exception is thrown: Caused by: java.lang.ClassNotFoundException: org.apache.catalina.authenticator.BasicAuthenticator at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) 3. When I specify an access log valve the following exception is thrown: Caused by: java.lang.ClassNotFoundException: org.apache.catalina.valves.AccessLogValve at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205) In order to solve this issues I can propose to add the following packages: - org.apache.catalina.loader - org.apache.catalina.valves - org.apache.catalina.authenticator To the "Import-Package" header of the "org.eclipse.gemini.web.tomcat" bundle. Regards Violeta
Created attachment 185889 [details] patch proposal
The proposed fix seems reasonable to me.
Tested, committed, pushed.