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.

Bug 172510 - Error running app client for deployed EAR
Summary: Error running app client for deployed EAR
Status: RESOLVED DUPLICATE of bug 172237
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 18:28 UTC by chaase3
Modified: 2009-09-17 18:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
application that fails to run (139.13 KB, application/x-compressed)
2009-09-17 18:29 UTC, chaase3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chaase3 2009-09-17 18:28:47 UTC
I have a deployed EAR file that I can run just fine by retrieving the client jar and using the appclient command.
However, when I try to run it in NetBeans 6.8 using development build netbeans-dev-200909151512, I get the following
stack trace in the run window:

Copying 1 file to /home/chaase/NetBeansProjects/clientmdbentity/dist
Copying 3 files to /home/chaase/NetBeansProjects/clientmdbentity/dist/clientmdbentityClient
Exception in thread "main" 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: Failed to inject class com.sun.enterprise.deployment.archivist.ACCAppClientArchivist
from sun.misc.Launcher$AppClassLoader@923e30
FATAL ERROR in native method: processing of -javaagent failed
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:163)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:599)
        at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:580)
        at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:340)
        at org.glassfish.appclient.client.acc.FacadeLaunchable.getFacadeArchivist(FacadeLaunchable.java:156)
        at org.glassfish.appclient.client.acc.FacadeLaunchable.selectFacadeFromGroup(FacadeLaunchable.java:309)
        at org.glassfish.appclient.client.acc.FacadeLaunchable.newFacade(FacadeLaunchable.java:214)
        at org.glassfish.appclient.client.acc.Launchable$LaunchableUtil.newLaunchable(Launchable.java:99)
        at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:142)
        at org.glassfish.appclient.client.AppClientFacade.createContainerForAppClientArchiveOrDir(AppClientFacade.java:440)
        at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:402)
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:253)
        at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
        ... 6 more
Caused by: java.lang.LinkageError: Failed to inject class com.sun.enterprise.deployment.annotation.factory.SJSASFactory
from sun.misc.Launcher$AppClassLoader@923e30
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:163)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:599)
        at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:580)
        at com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:149)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:81)
        ... 25 more
Caused by: java.lang.LinkageError: Failed to inject class
com.sun.enterprise.deployment.annotation.handlers.DataSourceDefinitionHandler from sun.misc.Launcher$AppClassLoader@923e30
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:163)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:275)
        at java.util.AbstractList$Itr.next(AbstractList.java:345)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:171)
        at com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:125)
        at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:81)
        ... 37 more
Caused by: java.lang.NoClassDefFoundError: javax/annotation/sql/DataSourceDefinition
        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:111)
        ... 50 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.sql.DataSourceDefinition
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 54 more
Java Result: 6
run-clientmdbentity-app-client:
run:
BUILD SUCCESSFUL (total time: 21 seconds)

I am using the glassfishv3 build (glassfish-v3-b62) that comes with netbeans-dev-200909151512. The application requires
a couple of JMS resources: a connection factory and a topic named jms/Topic. I will attach a zip of the application.
Comment 1 chaase3 2009-09-17 18:29:47 UTC
Created attachment 87877 [details]
application that fails to run
Comment 2 Vince Kraemer 2009-09-17 18:52:20 UTC
this is the same symptom as the issue davisn filed.

the fix for that issue is in web-main, but has not been pushed into main-golden (the repository taht the nightly builds
come from...)

You may want to add yourself to the cc list for that issue, so you see the integration notice...

*** This issue has been marked as a duplicate of 172237 ***
Comment 3 chaase3 2009-09-17 18:58:49 UTC
Thanks, Vince, I've added myself to 172237.