Skip navigation

Working with JBoss 4.2, Ant and mixing EJB 3 with EJB 2,using different packages to deploy, follwing error occured:

 

--- MBeans waiting for other MBeans ---

ObjectName: persistence.units:unitName=UEPersistanceUnit

  State: FAILED

  Reason: javax.persistence.PersistenceException: [PersistenceUnit: UEPersistanceUnit] class or package not found

  I Depend On:

    jboss.jca:service=DataSourceBinding,name=OraDS

 

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

ObjectName: persistence.units:unitName=UEPersistanceUnit

  State: FAILED

  Reason: javax.persistence.PersistenceException: [PersistenceUnit: UEPersistanceUnit] class or package not found

  I Depend On:

    jboss.jca:service=DataSourceBinding,name=OraDS

 

The error message, which appears at the end of the log is misleading.

The only reason was I did mistake my <javac ... in Ant (with <include ... and <exclude...). Some classes where missing in my jar file.

I found that by looking higher in the log and looking into the jar file, where I saw missing files.

Filter Blog

By date:
By tag: