Community
Participate
Working Groups
Build Identifier: 20100617-1415 I'm using Eclipse Helios with "GlassFish Server Open Source Edition 3 (Java EE 6)" server adapter built by Oracle at this link: http://blogs.sun.com/theaquarium/entry/eclipse_3_6_helios_glassfish My application is an EAR project and has tree projects: EJB module, EJB client module and a Web module. Each time that I deploy my aplication in Glassfish via Eclipse I have a diferent error, see bellow. 1) SEVERE: Exception in command execution : java.lang.NullPointerException java.lang.NullPointerException at org.glassfish.javaee.full.deployment.EarDeployer.subContext(EarDeployer.java:301) at org.glassfish.javaee.full.deployment.EarDeployer.access$100(EarDeployer.java:79) at org.glassfish.javaee.full.deployment.EarDeployer$CompositeApplicationInfo.getSubContext(EarDeployer.java:180) at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:251) at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:759) at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:790) at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:184) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) 2) When I try to redeploy I get this error: Deployment Error for module: cob: Application name cob is already in use. Please pick a different name.%%%EOL%%%java.lang.NullPointerException%%%EOL%%% 3) When I stop the Glassfish and try a new start and deploy I get this other error: org.glassfish.deployment.common.DeploymentException: Error in linking security policy for 4)cob -- Inconsistent Module State at com.sun.enterprise.security.SecurityUtil.linkPolicyFile(SecurityUtil.java:329) at com.sun.enterprise.security.SecurityDeployer.linkPolicies(SecurityDeployer.java:259) at com.sun.enterprise.security.SecurityDeployer.access$100(SecurityDeployer.java:63) at com.sun.enterprise.security.SecurityDeployer$AppDeployEventListener.event(SecurityDeployer.java:96) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176) 4) Ok, so I try to delete GLASSFISH/domains/domain1/generated/* and start the Glassfish my EAR app start with success. But... the webapp throws a ClassNotFoundException. But all jars exists in the WEB-INF/classes. I found the jars in GLASSFISH/domains/domain1/eclipseApps/cob/cob-web.war/WEB-INF/lib, but when I visit any webpage of this application I get the GlassNotFoundException. This is very strange, because if I deploy the application as an EAR generate by eclipse via Glassfish Admin the application works fine without ClassNotFoundException. Reproducible: Sometimes Steps to Reproduce: 1. Create an EAR application with an EJB, EJB-client and Dynamic Web Project. 2. Deploy and redeploy for many times
Otavio, the errors displayed are coming from the Glassfish server adapter, which is not part of WTP or Eclipse. Please report this bug in their error reporting facility.
Thanks Carl. Where I can report this bug? Regards