Friday, 3 August 2007

Remove Servlet.class

During starting jboss and launching xtrans-EAR-0.1.3.ear, Jboss Application Server gave ERROR

[WebappClassLoader] validateJarFile(C:\java\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp25436xtrans-EAR-0.1.3.ear-contents\xtrans-web-exp.war\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

The reason:
This indicates that the SERVLET.JAR file included within xtrans-web.war is unnecessary. This is because the file can be found elsewhere in the JAVA CLASSPATH.

So I just removed it from the /web-inf/lib directory, then error msg disappear.

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...