This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB with annotation in weblogic exception

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

Hi,

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 classes.com.LongProcessMessageBean 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(BaseJ2eeAnnotationProcessor.java:1272) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.addFatalProcessingError(BaseJ2eeAnnotationProcessor.java:1277) at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:168) at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:344) at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:204) at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93) at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1210) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:382)


Now structure of ear file is as below:


myEjbTest.ear
--------------------------------------------------------------------------
META-INF -----> application.xml
my.jar --------> classes / com / LongProcessMessageBean.java
com / LongProcessMessageBean.java
META-INF

myapp.war ------> classes / controller / MsgClient.java
controller / MsgClient.java
META-INF
WEB-INF

----------------------------------------------------------------------------



Structure of application.xml is


so, is there still missing something?

Thanks in advance

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic