1 Reply Latest reply on Jun 23, 2008 11:18 AM by jaikiran pai

    Entity Bean Package Modification (javax.persistence.Persiste

    Ramazan Pekin Newbie

      Hi,
      I have changed Entity bean package to another, but jboss server is still looking for for old package and giving "class or package not found" exception.

      I have changed com.atosorigin.utils.pojo.PrStaff to com.atosorigin.utils.ejb.PrStaff, but server is still searching for old package.

      15:01:15,327 WARN [ServiceController] Problem starting service persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      javax.persistence.PersistenceException: [PersistenceUnit: time_report_persistence_context] class or package not found
      at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1092)
      .
      .
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: com.atosorigin.utils.pojo.PrStaff
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)





      15:01:15,640 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,656 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrGroupsHome,service=EJB3 with dependencies:
      15:01:15,656 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,656 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,656 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrLocationHome,service=EJB3 with dependencies:
      15:01:15,656 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,672 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,672 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectHome,service=EJB3 with dependencies:
      15:01:15,672 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,703 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,703 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectTaskHome,service=EJB3 with dependencies:
      15:01:15,703 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,703 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,703 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHistoryHome,service=EJB3 with dependencies:
      15:01:15,750 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,750 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,750 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHome,service=EJB3 with dependencies:
      15:01:15,750 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,765 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,765 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrTeamsHome,service=EJB3 with dependencies:
      15:01:15,797 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,797 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,797 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationCompensationHome,service=EJB3 with dependencies:
      15:01:15,797 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,797 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,812 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationHome,service=EJB3 with dependencies:
      15:01:15,812 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,812 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,812 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorksheetHome,service=EJB3 with dependencies:
      15:01:15,812 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,828 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      15:01:15,828 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorkunitHome,service=EJB3 with dependencies:
      15:01:15,828 INFO [JmxKernelAbstraction] persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      15:01:15,828 INFO [EJB3Deployer] Deployed: file:/C:/jboss/server/default/tmp/deploy/tmp33896surgeonfish.ear-contents/surgeonfish.jar
      15:01:15,844 INFO [TomcatDeployer] deploy, ctxPath=/surgeonfish, warUrl=.../tmp/deploy/tmp33896surgeonfish.ear-contents/surgeonfish-exp.war/
      15:01:15,969 INFO [EARDeployer] Started J2EE application: file:/C:/jboss/server/default/deploy/surgeonfish.ear
      15:01:15,969 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      State: FAILED
      Reason: javax.persistence.PersistenceException: [PersistenceUnit: time_report_persistence_context] class or package not found
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=time_reporting_data_source
      Depends On Me:
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrGroupsHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrLocationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectTaskHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHistoryHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrTeamsHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationCompensationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorksheetHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorkunitHome,service=EJB3

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrGroupsHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrLocationHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectTaskHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHistoryHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrTeamsHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationCompensationHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorksheetHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      ObjectName: jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorkunitHome,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:ear=surgeonfish.ear,jar=surgeonfish.jar,unitName=time_report_persistence_context
      State: FAILED
      Reason: javax.persistence.PersistenceException: [PersistenceUnit: time_report_persistence_context] class or package not found
      I Depend On:
      jboss.jca:service=DataSourceBinding,name=time_reporting_data_source
      Depends On Me:
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrGroupsHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrLocationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrProjectTaskHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHistoryHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrStaffHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrTeamsHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationCompensationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrVacationHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorksheetHome,service=EJB3
      jboss.j2ee:ear=surgeonfish.ear,jar=surgeonfish.jar,name=PrWorkunitHome,service=EJB3


      I have cleaned tmp directory, but not affected.