开发者

Cannot deploy Enterprise Application to glassfish

开发者 https://www.devze.com 2023-01-23 03:11 出处:网络
I\'ve been working on a web application created on Netbeans 6.9.1, and everything works fine and I\'m able to deploy it without problems. Today I\'ve created an Enterprise Application and replaced the

I've been working on a web application created on Netbeans 6.9.1, and everything works fine and I'm able to deploy it without problems. Today I've created an Enterprise Application and replaced the content of 'web' and 'src' folders on the Enterprise Application web module with the folders from the original web application. Everything seems ok, it compiles without problems and generates the ear file when I run 'clean and build'. Bu开发者_如何学运维t when I try to deploy the Enterprise Application, I keep getting the following error: org.glassfish.deployment.common.DeploymentException: by java.lang.NoClassDefFoundError: project/dao/MerchantDao

I've looked the structure of the generated ear and it has the expected META-INF and the war file. The war file inside the ear is also ok, I've tried to deploy it separately and it worked fine.

I'm not sure what else I can try, I'm afraid this might be a glassfish bug and I'm just wasting my time.

Can someone help me with this?

Kind regards,

Carlos Jorge Ferreira


I don't think you are providing enough informations to get an answer about your current problem (e.g. the EAR structure).

Anyway, if you don't have strong modularity needs, my suggestion would be to use the WAR packaging (with Java EE 6, using an EAR is not mandatory and you can package EJBs under WEB-INF/classes or under WEB-INF/lib if you bundle them as EJB-JAR).

Oh, by the way, I'm deploying a Java EE 6 EAR on GlassFish and it just works.

0

精彩评论

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

关注公众号