Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MDB with annotation in weblogic exception

Rahul Ba
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am eveloping a sample application (MDB with annotation in weblogic), but While deploying the ear application I am get this exception

weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015001]Unable to link class in Jar C:\Oracle\Middleware\user_projects\domains\dev_domain\servers\AdminServer\tmp\_WL_user\myEjbTest\awr4ve\my.jar : java.lang.NoClassDefFoundError: classes/com/LongProcessMessageBean (wrong name: com/LongProcessMessageBean) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addProcessingError( at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError( at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations( at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations( at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile( at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile( at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor( at weblogic.ejb.container.deployer.EJBModule.prepare(

Now structure of ear file is as below:

META-INF -----> application.xml
my.jar --------> classes / com /
com /

myapp.war ------> classes / controller /
controller /


Structure of application.xml is

so, is there still missing something?

Thanks in advance

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!