Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Newb EE deployment / exec questions - app client - EJB class not found exception.  RSS feed

 
Sean Overby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply trying to run the conveter j2ee example, using netbeans 6.8 and glassfish v3 on windows vista.

Build and deploy appears to work fine (no log errors or warnings), the web client works fine (localhost:8080/converter) but when I try to run the application client I get the below stack trace.

So, it can't find the class file for the EJB, but I can't figure out why since the example is pre-packged. I've been through all the manifest files but I don't see anything that would indicate what's wrong. I'm sure it's something both painfully obvious and simple, but after spending a few hours banging my head against the wall any pointers in the right direction would be much obliged....

Undeploying ...
Initializing...
Initial deploying converter to C:\javaee-5-doc-tutorial-1.0_05\javaeetutorial5\examples\ejb\converter\dist\gfdeploy\converter
Completed initial distribution of converter
Initializing...
post-run-deploy:
run-deploy:
Warning: Could not find file C:\glassfishv3\glassfish\domains\domain1\generated\xml\converter\converterClient.jar to copy.
Copying 1 file to C:\javaee-5-doc-tutorial-1.0_05\javaeetutorial5\examples\ejb\converter\dist
Copying 3 files to C:\javaee-5-doc-tutorial-1.0_05\javaeetutorial5\examples\ejb\converter\dist\converterClient
Jan 19, 2010 5:45:43 PM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
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.NoClassDefFoundError: Lconverter/ejb/Converter;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredField(Class.java:1880)
at com.sun.enterprise.deployment.util.DefaultDOLVisitor.acceptWithCL(DefaultDOLVisitor.java:350)
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:188)
at com.sun.enterprise.deployment.ApplicationClientDescriptor.visit(ApplicationClientDescriptor.java:657)
at com.sun.enterprise.deployment.archivist.AppClientArchivist.validate(AppClientArchivist.java:168)
at org.glassfish.appclient.client.acc.FacadeLaunchable.validateDescriptor(FacadeLaunchable.java:175)
at org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(AppClientContainer.java:350)
at org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClientContainer.java:311)
at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:264)
at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:75)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Caused by: java.lang.ClassNotFoundException: converter.ejb.Converter
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 org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 18 more
Exception in thread "main" Java Result: 1
run-converter-app-client:
run-ant:
run:
BUILD SUCCESSFUL (total time: 11 seconds)
 
M Yama
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to change your GlassFish to v3.0.1 or v3.1.
You can download it from http://download.java.net/glassfish/v3.1/nightly/
Add and use the new Glassfish server in the NetBeans.

Yamaguti
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!