Guys I have created a github repository that demonstrates the problem: https://github.com/paranoiabla/jetty-slow-startup
Just run mvn clean install or mvn jetty:run and you see it hangs. I'd really appreciate some help here. 2015-04-16 22:48 GMT+03:00 Petar Tahchiev <[email protected]>: > Hello all, > > I just found out what's happening - I have spring-web jar in my classpath, > which has a non empty @HandlesTypes annotation so the annotation scanning > is happening. My parent pom also includes ext-js webjar: > > <!-- Javascript --> > <dependency> > <groupId>org.webjars</groupId> > <artifactId>extjs</artifactId> > <version>${extjs.webjars.version}</version> > </dependency> > > > which (believe it or not) is almost 85MB. If I exclude this dependency > from the pom.xml then jetty starts again for 8 seconds. If I leave it in > the pom.xml then jetty starts for more than 15 minutes. > > Please let me know how can I exclude the extjs webjar from annotation > scanning. > > Thanks > > 2015-04-16 15:16 GMT+03:00 Jan Bartel <[email protected]>: > >> If any of your libs contain a servletcontainerinitializer that has a non >> empty HandlesTypes annotation on it then scanning will be done any way. >> Enable debug for org.eclipse.jetty.annotations and you'll see which one it >> is. >> >> Jan >> On 16/04/2015 8:39 am, "Petar Tahchiev" <[email protected]> wrote: >> >>> Hi there, >>> >>> I tried adding metadata-complete="true" and also >>> >>> <Call name="setAttribute"> >>> >>> <Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg> >>> <Arg></Arg> >>> </Call> >>> >>> to my jetty-env.xml but had no effect - the same amount of time :( >>> >>> 2015-04-16 1:35 GMT+03:00 Simone Bordet <[email protected]>: >>> >>>> Hi, >>>> >>>> On Wed, Apr 15, 2015 at 9:57 PM, Petar Tahchiev <[email protected]> >>>> wrote: >>>> > Hi, >>>> > >>>> > I tried 9.2.10.v20150310 and it takes more than 10 minutes!!!! With >>>> Java7 >>>> > and version 9.1.3.v20140225 it takes 8 seconds! I also think it's >>>> annotation >>>> > scanning. Here's the threaddump: >>>> >>>> So it is annotation scanning. >>>> Do you need it ? >>>> >>>> What's the value for "metadata-complete" attribute in your web.xml ? >>>> >>>> Read also: >>>> https://www.eclipse.org/jetty/documentation/current/using-annotations.html >>>> >>>> -- >>>> Simone Bordet >>>> ---- >>>> http://cometd.org >>>> http://webtide.com >>>> http://intalio.com >>>> Developer advice, training, services and support >>>> from the Jetty & CometD experts. >>>> Intalio, the modern way to build business applications. >>>> _______________________________________________ >>>> jetty-dev mailing list >>>> [email protected] >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev >>>> >>> >>> >>> >>> -- >>> Regards, Petar! >>> Karlovo, Bulgaria. >>> --- >>> Public PGP Key at: >>> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 >>> Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 >>> >>> _______________________________________________ >>> jetty-dev mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/jetty-dev >>> >> >> _______________________________________________ >> jetty-dev mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/jetty-dev >> > > > > -- > Regards, Petar! > Karlovo, Bulgaria. > --- > Public PGP Key at: > https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 > -- Regards, Petar! Karlovo, Bulgaria. --- Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
