From: Jan B. (JIRA) <ji...@co...> - 2006-07-06 08:51:24
|
[ http://jira.codehaus.org/browse/JETTY-62?page=comments#action_69047 ] Jan Bartel commented on JETTY-62: --------------------------------- Not sure if this would help but Jetty has the ability to "hide" classes from a webapp. This is done on a package level basis. The default setting for this is: {"org.mortbay.", "-org.mortbay.naming.","-org.mortbay.util.", "org.slf4j."} meaning that everything in org.mortbay is hidden from the webapp EXCEPT org.mortbay.util and org.mortbay.naming. and org.slf4j classes are hidden too. Potentially we could hide the maven core libraries too for the plugin? > Jetty plugin beta12 can no longer run plexus-based servlets > ----------------------------------------------------------- > > Key: JETTY-62 > URL: http://jira.codehaus.org/browse/JETTY-62 > Project: Jetty > Type: Bug > Components: Maven2 > Versions: 6.0.0beta15, 6.0.0beta14, 6.0.0beta12 > Reporter: Brett Porter > Attachments: JETTY-62.diff > > > I've not yet investigated what changed, but it works when I use beta11. An example is MRM: > http://svn.apache.org/repos/asf/maven/repository-manager/trunk (run mvn install at the root, then jetty6:run in the webapp) > Caused by: java.lang.ClassCastException: org.apache.maven.plugin.MavenPluginDiscoverer > at org.codehaus.plexus.component.discovery.DefaultComponentDiscovererManager.initialize(DefaultComponentDiscovererManager.java:89) > at org.codehaus.plexus.DefaultPlexusContainer.initializeCoreComponents(DefaultPlexusContainer.java:1252) > at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:640) > at org.codehaus.plexus.embed.Embedder.start(Embedder.java:216) > at org.codehaus.plexus.servlet.ServletContextUtils.createContainer(ServletContextUtils.java:172) > at org.codehaus.plexus.servlet.PlexusServletContextListener.contextInitialized(PlexusServletContextListener.java:65) > at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:368) > at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:970) > at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:341) > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:368) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37) > at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:133) > at org.mortbay.jetty.Server.doStart(Server.java:256) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37) > at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:116) > at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:398) > ... 21 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |