Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty taking long time to startupp

Unless you are doing work against bleeding edge Servlet 3.0 spec, do not use Jetty 8.x, stick with Jetty 7.x.
The configuration process for Servlet 3.0 spec is very heavy on WEB-INF/lib analysis and discovery of configuration pieces.  analysing all tlds, xml files, and even the classes themselves for annotations.
If you have a very large webapp, or a large set of jar files in WEB-INF/lib, the startup will take a while with Servlet 3.0 spec.

- Joakim

On Mon, May 24, 2010 at 9:21 AM, tubin gen <fachhoch@xxxxxxxxx> wrote:
I am using maven jetty plugin  version 8

 here is my pom configration for jetty


     <plugin>
     <groupId>org.mortbay.jetty</groupId>
     <artifactId>jetty-maven-plugin</artifactId>
     <version>8.0.0.M0</version>
     <configuration>
     <scanIntervalSeconds>10</scanIntervalSeconds>
     <webAppConfig>
     <contextPath>/artms</contextPath>
     <jettyEnvXml>${basedir}/jetty-env.xml</jettyEnvXml>
     </webAppConfig>
     <reload>automatic</reload>
     </configuration>
      <dependencies>
  <dependency>
  <groupId>commons-dbcp</groupId>
  <artifactId>commons-dbcp</artifactId>
  <version>1.2.2</version>
  </dependency>
  <dependency>
  <groupId>com.oracle</groupId>
  <artifactId>ojdbc</artifactId>
  <version>14</version>
  </dependency>
      </dependencies>
     </plugin>

yes the log4j error is through my app.


On Mon, May 24, 2010 at 11:17 AM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
tubin,

What version of jetty are you discussing?

Also, there is an error logged in the log4j logger - is that an
error from your app?

thanks
Jan

tubin gen wrote:
jetty takes   4 minutes   after it logs this
*2010-05-21 15:26:47.975*:INFO::No annotation on initializer class  org.apache.jasper.runtime.TldScanner log4j:ERROR Parsing error on line 10 and column 14 log4j:ERROR The content of element type "layout" must match "(param)*". *2010-05-21 15:30:01.488*:INFO:/artms:Initializing Spring root WebApplicationContext

please tell me why is it taking so long
see the time difference  for both the below lines

**2010-05-21 15:26:47.975*:INFO::No annotation on initializer class  org.apache.jasper.runtime.TldScanner *

*2010-05-21 15:30:01.488*:INFO:/artms:Initializing Spring root WebApplicationContext

------------------------------------------------------------------------

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users

--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top