开发者

How do I get Eclipse Deployment Assembly to add a jar instead of a war from a dynamic web project

开发者 https://www.devze.com 2023-03-17 00:11 出处:网络
I have two 开发者_如何学运维dynamic web projects and need to reference one in the deployment assembly of the other.The problem is that it adds a .war file to WEB-INF/lib instead of a .jar which causes

I have two 开发者_如何学运维dynamic web projects and need to reference one in the deployment assembly of the other. The problem is that it adds a .war file to WEB-INF/lib instead of a .jar which causes my tomcat server to have class not found errors.

Is there a simple solution?


Create a Java Project and include it into both of the Dynamic web app projects that you currently have. Move the code that you want to share from web app project A with web app project B into the Java Project.


I know this is old but giving solution. Go to project properties->Project Facets-> Untick "Dynamic Web Module".

0

精彩评论

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