views:

25

answers:

3

I'm just getting to grips with the NetBeans 6.9 / Glassfish 3 combo, and have developed a JEE app consisting of a WAR module and an EJB module. Having played around with the EJB side of things for a while, I went back to run the web code, and started having problems.

When I try to run the WAR file, it fails to deploy, and the error from the server is `WEB0113: virtual server [server] already has a web module [MyApp-war.war] loaded.' But I haven't edited the web side code since I last ran it, and I'm rather puzzled as to what it's trying to do.

I've tried the usual things: restarting the server, undeploying and redeploying the application, but to no avail... so if anyone with any more experience with Glassfish has any hints, they will be gratefully received!

+1  A: 

if anyone with any more experience with Glassfish has any hints, they will be gratefully received!

Open GlassFish's Admin Console, see if the application is listed and try to undeploy it from there.

Pascal Thivent
+1  A: 

Did you create and deploy an enterprise application (ear) containing the ejb and web module? I don't think you can then deploy only the webapplication since its already deployed inside the ear. You'll have to redeploy the ear instead.

Jörn Horstmann
+1 I'm not sure they would conflict though (I'd have to test this but I think the ear name is part of the module name).
Pascal Thivent
A: 

Can you share the content of you WAR (jar tvf) ?

Alexis MP