[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1151) When using a MappedSuperclass then application is not deployable

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Wed Jan 30 16:55:00 EST 2008


    [ http://jira.jboss.com/jira/browse/EJBTHREE-1151?page=comments#action_12397552 ] 
            
Carlo de Wolf commented on EJBTHREE-1151:
-----------------------------------------

Both jar and sources do not contain a class named com.trinitec.samples.ejb3xfire.GeneralEntityDaoImpl

> When using a MappedSuperclass then application is not deployable
> ----------------------------------------------------------------
>
>                 Key: EJBTHREE-1151
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1151
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: EJB3 Extensions
>    Affects Versions: AS 4.2.2.GA
>            Reporter: Roland Burgermann
>         Assigned To: Carlo de Wolf
>         Attachments: ejb3xfire-core-1.0-SNAPSHOT.jar, source-files.zip
>
>
> I have tagged a class with the stereotype <<MappedSuperClass>> which holds some general attributes.
> As described in the EJB3 specification i didn't have a DAO implementation class, because they are not necessary.
> But when i try to deploy my application with JBoss 4.2.2.GA i got the following error:
> 2007-12-04 15:03:51,328 DEBUG [org.jboss.ejb3.Ejb3Module] Initialization failed jboss.j2ee:service=EJB3,module=ejb3xfire-core-1.0-SNAPSHOT.jar
> java.lang.ClassNotFoundException: No ClassLoaders found for: com.company.samples.ejb3xfire.GeneralEntityDaoImpl
> 	at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
> 	at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
> 	at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 	at org.jboss.ejb3.Ejb3DescriptorHandler.getContainers(Ejb3DescriptorHandler.java:303)
> 	at org.jboss.ejb3.Ejb3Deployment.deployBeansFromLib(Ejb3Deployment.java:465)
>         .......
> The whole stack trace can be found in the JBoss forum.
> When i'm using JBoss 4.0.5.GA with the EJB3 RC9 Patch 1 then my application is startable.
> Edit @ 10th December 2007:
> I found a solution to solve this problem. 
> I removed the following entry from the jboss.xml
>         <session>
>             <ejb-name>GeneralEntityDao</ejb-name>
>         </session>
> and removed the following entry from the ejb-jar.xml
>         <session>
>             <description>
>                 <![CDATA[
>                 
>                 ]]>
>             </description>
>             <ejb-name>GeneralEntityDao</ejb-name>
>             <local>com.trinitec.samples.ejb3xfire.GeneralEntityDao</local>
>             <ejb-class>com.trinitec.samples.ejb3xfire.GeneralEntityDaoImpl</ejb-class>
>             <session-type>Stateless</session-type>
>             <transaction-type>Container</transaction-type>
>         </session>
> After this two changes, i can start up JBoss with my application and everything is working fine for the moment.
> Can i remove this two entries, or will this produce another problem somewhere else?
> And why is this running on JBoss 4.0.5.GA + EJB3 RC9 Patch 1?
> Some checks are missing in JBoss 4.2.2.GA?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list