Win a copy of Kotlin in Action this week in the Kotlin 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
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 ...
Initial deploying converter to C:\javaee-5-doc-tutorial-1.0_05\javaeetutorial5\examples\ejb\converter\dist\gfdeploy\converter
Completed initial distribution of converter
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
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(
Caused by: java.lang.NoClassDefFoundError: Lconverter/ejb/Converter;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(
at java.lang.Class.getDeclaredField(
at com.sun.enterprise.deployment.util.DefaultDOLVisitor.acceptWithCL(
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(
at com.sun.enterprise.deployment.ApplicationClientDescriptor.visit(
at com.sun.enterprise.deployment.archivist.AppClientArchivist.validate(
at org.glassfish.appclient.client.acc.FacadeLaunchable.validateDescriptor(
at org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(
at org.glassfish.appclient.client.acc.AppClientContainer.prepare(
at org.glassfish.appclient.client.AppClientFacade.prepareACC(
at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Caused by: java.lang.ClassNotFoundException: converter.ejb.Converter
at Method)
at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
... 18 more
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 11 seconds)
M Yama
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
Add and use the new Glassfish server in the NetBeans.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!