开发者

Problem in building war for web services

We are involved in the development of web services and also web portal which is Java/J2EE based. Which uses tomcat6 application server. The web services are written using netbeans IDE and the web portal is written using Eclipse IDE. We have development and deployment web java/j2ee web portals before.We used create a web archive file in eclipse, select the project->right click and export the file in WAR format and used to copy the war file to tomcat6/webapps folder and tomcat6 server would unwar it and run, when we restarted the server,开发者_运维知识库 but when we got the war file from net beans which is web services, its not unwared some times, but some times it un wars but the structure will be different and few files will be missing, what would be the problem and how to we resolve.

Kindly help us


Are you sure that the WAR file was built correctly? Try unpacking it yourself (just rename the extension to .zip and open it) and comparing the file structure to what Tomcat unpacked. There will probably be no difference: the war file was probably built wrong.

As sherif suggested, you could use ant to build it, or maven. I'm not sure what netbeans uses by default.


may be you can use ant ? http://www.vaannila.com/ant/ant-sample-build-file-war-1.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜