This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have a Java Enterprise Application project. It contains a WAR project and an EJB project. The WAR project uses ICEFaces, and are set to package the ICEFaces libraries in /WEB-INF/lib/. In addition, the WAR and EJB project references another JAR project, without packaging, which the Enterprise Application packages in /lib/. All projects are set to deploy on GlassFish 2.1. I can deploy the EJB project and the WAR project, but when I try to deploy the Enterprise Application, it throws an exception - it cannot find the class FileArchive. This is the complete stack trace from the Output window: java.lang.NullPointerException at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.getFileArchive(DirectoryDeploymentFacility.java:264) at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.initialDeploy(DirectoryDeploymentFacility.java:168) at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.initialDeploy(DirectoryDeployment.java:430) at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.initialDeploy(DirectoryDeploymentFacade.java:247) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:616) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:189) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:132) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) java.lang.IllegalStateException: cannot find FileArchive class... at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.initialDeploy(DirectoryDeploymentFacility.java:170) at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.initialDeploy(DirectoryDeployment.java:430) at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.initialDeploy(DirectoryDeploymentFacade.java:247) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:616) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:189) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:132) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Deployment error: cannot find FileArchive class... See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:224) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:132) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.lang.IllegalStateException: cannot find FileArchive class... at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.initialDeploy(DirectoryDeploymentFacility.java:194) at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.initialDeploy(DirectoryDeployment.java:430) at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.initialDeploy(DirectoryDeploymentFacade.java:247) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:616) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:189) ... 17 more Caused by: java.lang.IllegalStateException: cannot find FileArchive class... at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.initialDeploy(DirectoryDeploymentFacility.java:170) ... 21 more BUILD FAILED (total time: 0 seconds) It was using NetBeans 6.5.1 when I started the project. I recreated the projects, and the start-up project you are given deploys without the error. I tried to update to NB 6.7, both Java SE with installing EE modules later, and the Full Java version, with a new GlassFish, as well as recreating the projects again. Still the error comes when I deploy the Enterprise Application. GlassFish are able to deploy the application. If I use the admin page for GlassFish, or the autodeploy folder, the application is loaded - it is only NetBeans' Deploy or Run actions that fail. Best regards, Thomas Jahnsen
Looks like GF issue...
It looks like this fell through the cracks. Can you still replicate this issue with recent builds of NetBeans (like 7.0 Beta or a recent dev build)? Can you provide detailed instructions that will help me reproduce it? I have tried to replicate the issue, but haven't been able to... so it seems like this may be: 1. Solved by a code change that has already been applied to the code, OR 2. There was a problem with the v2 install, OR 3. I haven't created the exact environment that the user has... because I have done 'something different' If you have a sample project that demonstrates the issue that you can share, that would be very helpful, too.
I have not been able to reproduce with a recent 7.0 build... Since I don't have enough info from the filer to feel like my test strategy matched their situation, I am closing this issue as incomplete. Filer: if you can provide advice about how to reproduce this issue please add that info and reopen the issue.