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 tried the InterceptorStateless project as a template for a GlassFish 3.1 testcase. No luck. I really need these examples for test cases otherwise I don't have any reference point what works and what doesn't. Is it possible that you get all the Java EE samples working on GF 3.1 so I can focus on reporting the errors not on the examples? File|New Project|Samples|Java EE|Interceptor Stateless When I run it as is on GlassFish 3.01, then I get an error: Completed initial distribution of InterceptorStateless deploy?DEFAULT=C:\bt\java\database\O-R-Mapping\JPA\Products\EclipseLink\issues\Duplicates\enterprise\EnterpriseApplication2\InterceptorStateless\dist\gfdeploy\InterceptorStateless&name=InterceptorStateless&force=true failed on GlassFish Server 3.0.1 Exception while loading the app : java.lang.RuntimeException: java.io.FileNotFoundException: C:\Program%20Files\glassfish-3.0.1\glassfish\modules\gf-client.jar (The system cannot find the path specified) Exception while invoking class org.glassfish.appclient.server.core.AppClientServerApplication start method : java.lang.RuntimeException: java.io.FileNotFoundException: C:\Program%20Files\glassfish-3.0.1\glassfish\modules\gf-client.jar (The system cannot find the path specified) C:\bt\java\database\O-R-Mapping\JPA\Products\EclipseLink\issues\Duplicates\enterprise\EnterpriseApplication2\InterceptorStateless\nbproject\build-impl.xml:284: The module has not been deployed. Obviously it cannot deal with the space in the path of the default installation. I change the server in the property dialog, run, property to GlassFish Server 3.1 (which is really what I want) and then I run it. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338) Caused by: java.lang.LinkageError: injection failed on class org.glassfish.appclient.client.acc.ACCAppClientArchivist from sun.misc.Launcher$AppClassLoader@fabe9 at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:252) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:89) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:123) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:88) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:79) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73) at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1045) at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1026) at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:776) at org.glassfish.appclient.client.acc.FacadeLaunchable.getArchivist(FacadeLaunchable.java:174) at org.glassfish.appclient.client.acc.FacadeLaunchable.selectFacadeFromGroup(FacadeLaunchable.java:376) at org.glassfish.appclient.client.acc.FacadeLaunchable.newFacade(FacadeLaunchable.java:238) at org.glassfish.appclient.client.acc.Launchable$LaunchableUtil.newLaunchable(Launchable.java:105) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:166) at org.glassfish.appclient.client.AppClientFacade.createContainerForAppClientArchiveOrDir(AppClientFacade.java:492) at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:454) at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:269) at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:76) ... 6 more Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.deployment.annotation.factory.SJSASFactory from sun.misc.Launcher$AppClassLoader@fabe9 at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:252) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:89) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:123) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:88) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:79) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:64) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73) at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1045) at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1026) at com.sun.hk2.component.InjectInjectionResolver.getComponentInjectValue(InjectInjectionResolver.java:156) at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:87) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:139) ... 24 more Caused by: java.lang.LinkageError: injection failed on class com.sun.enterprise.deployment.annotation.handlers.EntityManagerFactoryReferenceHandler from sun.misc.Launcher$AppClassLoader@fabe9 at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:252) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:89) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:123) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:88) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:79) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:64) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73) at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:698) at java.util.AbstractList$Itr.next(AbstractList.java:345) at java.util.AbstractCollection.toArray(AbstractCollection.java:171) at com.sun.hk2.component.InjectInjectionResolver.getArrayInjectValue(InjectInjectionResolver.java:110) at com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:78) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:139) ... 36 more Caused by: java.lang.NoClassDefFoundError: javax/persistence/PersistenceUnit at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:166) ... 49 more Caused by: java.lang.ClassNotFoundException: javax.persistence.PersistenceUnit at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 53 more FATAL ERROR in native method: processing of -javaagent failed Exception in thread "main" Java Result: 1
which NetBeans build are you using?
I am using Build 201101280000 My apologires if that is too old. I thought there would be a quick fix to a regression, bug 194939, but this takes longer than I expected.
(In reply to comment #2) > I am using Build 201101280000 > > My apologires if that is too old. I thought there would be a quick fix to a > regression, bug 194939, but this takes longer than I expected. you may want to raise the priority on that issue...
Hmmm. I am able to replicate the first problem under win7 but when I switch to 3.1, the ent app 'Run's correctly when I use nb dev 201102100500 So... 1. Where is nb installed? 2. Where is gf 3.1 installed? 3. which project did you attempt to run? 4. which project did you change the target server for? The ant output, server log and ide log content would be helpful for trying to resolve this.
Thanks for your patience. The GlassFish 3.1 problem, which was my main concern, no longer reproduces. So I don't need the GlassFish 3.01 solution anymore. However, the GlassFish 3.01 issue still persists, and I have recorded my results as follows: The example runs as expected with GlassFish 3.1 in the new beta2 version: Product Version: NetBeans IDE 7.0 Beta 2 (Build 201102140001) Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03 Userdir: C:\Documents and Settings\Administrator\.netbeans\7.0beta2 Menu|File|New Project|Samples|Java EE|Interceptor Stateless (Java EE 5)|Next|Finish Projects Window|Select InterceptorStateless|Right click|Run Then I stop GlassFish 3.1 and register GlassFish 3.01. C:\Program Files\glassfish-3.0.1 Change run properties of project to use GlassFish 3.01 Right click on project node|Run Problem with space in path reproduces. Please refer to attached log files.
Created attachment 106142 [details] NetBeans and GlassFish logs
3.0.1 does not ship with NB 7.0. The work-around is to start using 3.1 instead of 3.0.1 for apps that exhibit this behavior in NB 7.0. Changed the TM, Summary and priority to reflect current status/thinking on this. I think we can resolve this for 7.0... but we should not stop shipment of 7.0 for this issue.
*** Bug 181593 has been marked as a duplicate of this bug. ***
As I understand this is the issue with the serverplugin for GF, right ? The sample project is just a way to reproduce the problem. The main problem is spaces in the path of GF installation and this is generic problem for any application which uses the GF 3.0.1. I reassign it to the serverplugin. Please correct me if I'm wrong .
I did a bit of research. This is actually a gf 3.0.1 issue... http://java.net/jira/browse/GLASSFISH-12769 there isn't anything the plugin can do about this. I am closing this as worksforme.