GWT application\" mode only. But when I deploy it to Tomcat开发者_JS百科 the external jar is missing in the exported WAR" />
开发者

GWT - server side - how to add external lib right to war file with eclipse

I have tried to add external jar to eclipse project and it works in "Run as -> GWT application" mode only. But when I deploy it to Tomcat开发者_JS百科 the external jar is missing in the exported WAR file :( Please tell me how can I add an external lib to gwt project to have it be added automatically to exported war file (servlets use it)?

Any useful comments are appreciated


Add the file to the war/WEB-INF/lib folder. You can simply drag the file to that folder. Then add the file your build path by right clicking on the project -> properties -> build path -> libraries tab.


1/ Click Project -> Properties -> Project Facets :: Convert to faceted form;

2/ Check Dynamic Web Module;

3/ Add *.jar to /war/WEB-INF/lib, it automatically will be referenced by eclipse into "Web App Libraries" and be exported with *.war

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜