简体   繁体   中英

GWT: conflicting classes in the gwt-user.jar

This sounds like a stupid question, but I cannot find the answer.

I'm using GWT and I need to use JSON on the client. Corresponding classes are in package com.google.gwt.json.client and are located in gwt-user.jar . However, the same JAR contains javax.servlet classes that conflict (different version) with the ones I use in servlet container. How do I resolve this problem?

gwt-user.jar is not needed in server side, so dont deploy it in your container.

If you are using maven, set the scope of the gwt-user dependency as 'provided'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM