On 2 avr, 12:28, Vasily Vasilkov <[email protected]> wrote:
> Hi!
>
> I have the web-application that uses classes from GWT in its
> server-side code (com.google.gwt.user.server.rpc.RPC for example)
>
> I pack my classes, static files and libs (gwt jars too) into app.war
> file and deploy it on tomcat 6.x
>
> While deploying it I've got the following tomcat error:
>
> INFO: validateJarFile(/opt/tomcat/webapps/app/WEB-INF/lib/gwt-user.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class
>
> Please, don't advice me to read Servlet Spec. because I know that this
> error means :)
> This error occurs if application jars contain classes from servlet-api
> and gwt libs do this - they contain these classes
>
> I think I can re-jar gwt libs and exclude serlet-api classes, but I
> want to find a more appropriate solution.
>
> Does anyone know something about it?
Don't deploy gwt-dev-xxx, use gwt-servlet instead. See:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_PackageAppInWARFile
AFAICT (I don't do GWT RPC), your don't need to deploy gwt-user.jar
either.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---