Community
Participate
Working Groups
Gemini Web cannot discover an annotated web component if it is outside of the WEB-INF/classes or WEB-INF/lib, but it is in the bundle class path (i.e. Bundle-Classpath: .,WEB-INF/classes).
If the web component is described in web.xml then it is working as expected.
It would be helpful to have some clarifications as we are seeing similar problems with Spring MVC apps. Is this a WAB in which you specify Bundle-Classpath or is it a WAR in which the Bundle-Classpath has been generated during deployment? Which annotations are causing the problem? Thanks.
(In reply to comment #2) > Is this a WAB in which you specify Bundle-Classpath Yes > or is it a WAR in which > the Bundle-Classpath has been generated during deployment? No, because Servlet Spec declares only WEB-INF/classes and WEB-INF/lib/*.jar for inclusion in the class loader. Gemini Web does not add '.' to the generated Bundle-Classpath. So in this case everything is working. > Which annotations are causing the problem? Those specified in Servlet Spec i.e. @WebServlet etc. I checked Tomcat implementation and it is not trivial to add the additional class path to the processing (see org.apache.catalina.startup.ContextConfig.webConfig() -> // Step 4. Process /WEB-INF/classes for annotations). I will need more time to find a way to process this. I do not want to override webConfig() because we will need to copy almost the whole method.