[jetty-maven-plugin] slow startup again with latest version

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-maven-plugin] slow startup again with latest version

jean
This post has NOT been accepted by the mailing list yet.
I'm using 8.1.0.v20120127 and the slow startup problem that is supposed to be fixed with attribute 'metadata-complete="true"' in element <web-app> in web.xml reappears.

I takes more than a minute for a mid-size webapp to pass the this step:

2012-03-05 18:01:05.370:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2012-03-05 18:02:15.435:INFO:/myapp:No Spring WebApplicationInitializer types detected on classpath

Any idea why this is happening again?
Any more recent version of the plugin available?

cheers
PiT
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-maven-plugin] slow startup again with latest version

PiT
This post has NOT been accepted by the mailing list yet.
I have the same problem and found out that root leads to org.eclipse.jetty.annotations.AnnotationConfiguration class code:

if (parser != null)
       {          
           if (LOG.isDebugEnabled()) LOG.debug("Scanning all classses for annotations: webxmlVersion="+context.getServletContext().getEffectiveMajorVersion()+" configurationDiscovered="+context.isConfigurationDiscovered());
           parseContainerPath(context, parser);
           //email from Rajiv Mordani jsrs 315 7 April 2010
           //    If there is a <others/> then the ordering should be
           //          WEB-INF/classes the order of the declared elements + others.
           //    In case there is no others then it is
           //          WEB-INF/classes + order of the elements.
           parseWebInfClasses(context, parser);
           parseWebInfLib (context, parser);
       }

And there is no any possibility to disable this parsing.. at least I dodn't found it in jetty-maven-plugin v8.1.7.v20120910