4 Replies Latest reply on Jul 23, 2009 11:07 AM by Nicole Schweighardt

    DEPLOYMENTS MISSING DEPENDENCIES: UNRESOLVED Demands 'persis

    Nicole Schweighardt Novice

      Hi,

      I have got an application that worked without problems.
      I use JBOss 5.0.1.

      I had no problems with the datasource-file or sth.
      Now I only changed some package-names where my sessionbeans are in and add comments to some files. That was all.

      And I get the following error:

      16:42:31,156 INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
      16:42:31,234 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#cmt state=Create
      javax.persistence.PersistenceException: [PersistenceUnit: cmt] Unable to build EntityManagerFactory
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
       at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
       at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
       at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
       at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: Appointment, for columns: [org.hibernate.mapping.Column(appointmentOffers)]
       at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)
       at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
       at org.hibernate.mapping.Property.isValid(Property.java:207)
       at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
       at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
       at org.hibernate.cfg.Configuration.validate(Configuration.java:1135)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1320)
       at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
       ... 50 more
      16:42:31,453 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      DEPLOYMENTS MISSING DEPENDENCIES:
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=AppointmentHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=AppointmentHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=CourseHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=CourseHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:GroupHandler/remote-de.cmt.server.ejb.groupManagement.GroupHandlerRemote' **")
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=CourseHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=EventInformationHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=EventInformationHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=GroupHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=GroupHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=ModelTestHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=ModelTestHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
       Deployment "jboss.j2ee:jar=CMT_ejb.jar,name=UserHandler,service=EJB3" is missing the following dependencies:
       Dependency "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=UserHandler,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **")
      
      DEPLOYMENTS IN ERROR:
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=GroupHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=EventInformationHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=ModelTestHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=UserHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=CourseHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:GroupHandler/remote-de.cmt.server.ejb.groupManagement.GroupHandlerRemote' **, ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "<UNKNOWN jboss.j2ee:jar=CMT_ejb.jar,name=AppointmentHandler,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#cmt' **
       Deployment "persistence.unit:unitName=#cmt" is in error due to the following reason(s): org.hibernate.MappingException: Could not determine type for: java.util.List, at table: Appointment, for columns: [org.hibernate.mapping.Column(appointmentOffers)]
      



      I now have a structure like:

      ejbModule
      - de.cmt.server.ejb.appointmentManagement
      - de.cmt.server.ejb.courseManagement
      - de.cmt.server.entities
      etc.

      in META-INF there is my persistence.xml:
      <persistence
       xmlns="http://java.sun.com/xml/ns/persistence"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
       http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
       version="1.0">
       <persistence-unit name="cmt">
       <jta-data-source>java:/cmt</jta-data-source>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="create-drop" />
       <property name="hibernate.dialect"
       value="org.hibernate.dialect.MySQLDialect"/>
       </properties>
       </persistence-unit>
      </persistence>


      in C:\jboss-5.0.1.GA\server\default\deploy there is my ds-file: (cmt-ds.xml)
      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
       <local-tx-datasource>
       <jndi-name>cmt</jndi-name>
       <connection-url>jdbc:mysql://localhost:3307/cmt</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>root</user-name>
       <password>nschweigdb</password>
       <exception-sorter-class-name>
       org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
       </exception-sorter-class-name>
       <metadata>
       <type-mapping>mySQL</type-mapping>
       </metadata>
       </local-tx-datasource>
      </datasources>
      


      I am totally confused, can you please give my a hint?
      Thanks
      NSchweig