- This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by cconway.
-
AuthorPosts
-
vsampathMemberHi,
I am getting below error when i add gwt to project. is their any way to exlude some jars to deploy to tomcat?Please help.
SaiINFO: validateJarFile(C:\Users\svennela\Workspaces\MyEclipse for Spring 10\.metadata\.me_tcat\webapps\myApplication1.0\WEB-INF\lib\gwt-dev.jar) – jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 19, 2011 8:14:03 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\svennela\Workspaces\MyEclipse for Spring 10\.metadata\.me_tcat\webapps\myApplication1.0\WEB-INF\lib\gwt-user.jar) – jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 19, 2011 8:14:04 PM com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer <clinit>
INFO: Unable to initialize a JSR 303 Bean Validator
javax.validation.ValidationException: Unable to find a default provider
cconwayMemberHi Sai,
I’ve seen this problem before with projects that use older versions of hibernate. The problem is that versions of hibernate-validator prior to 4.1.0 are not JSR 303 providers.
I believe this validator is a requirement of GWT so removing it from the deployment may result in other problems. Instead, the solution is to change your project to depend on hibernate-validator-4.1.0.Final.jar.
If you need help with exactly how to do that, then I’ll need to know how your project dependencies are configured (Maven, Jars in Lib directory, or classpath containers). If your project is using classpath containers, then I’ll need to know the name of the Hibernate Container that is contributing the older hibernate-validator jar, for example “Hibernate Core 3.5 Libraries”.
vsampathMemberHi ,
My project is blank project, no hibernate involved. I just added GWT and deployed it.
Thanks,
Sai
cconwayMemberYou have some control on the Project Properties dialog but unfortunately there is no control on a per-jar basis, the options are more coarse grained.
1. Right click on the project and select Properties.
2. Click the MyEclipse node, then the Web node.
3. Select the Deployment tab.If it is a matter of you need a different jar picked up by the server, you can prepend jars to the classpath by modifying the server connector. To do that, right-click on the server connector and select Configure Server Connector. Then expand the Server in the tree and select the Paths sub-node.
-
AuthorPosts