0 Replies Latest reply on Feb 5, 2002 3:18 PM by twhphan

    Error deploying in jboss-3.0.0DR1

    twhphan

      Hi, I cannot deploy my code that worked with JBoss 3 alpha in jboss-3.0.0DR1 (the newest src from the CVS)

      03:48:34,516 INFO [EJBDeployer] Deploying GenericDAO
      03:48:34,518 INFO [EJBDeployer] Deploying Mailer
      03:48:34,520 INFO [EJBDeployer] Deploying ViewFacade
      03:48:34,521 INFO [EJBDeployer] Deploying Logger
      03:48:35,423 INFO [Default] XmlFileLoader: File file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "defaults" does not allow "type-mapping" here.
      03:48:35,424 INFO [Default] XmlFileLoader: File file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "type-mapping" does not allow text.
      03:48:35,425 INFO [Default] XmlFileLoader: File file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 7. Error message: Element "type-mapping" requires additional elements.
      ...
      03:48:35,525 INFO [Default] XmlFileLoader: File file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 269. Error message: EMPTY content models must have no content.
      03:48:35,527 INFO [Default] XmlFileLoader: File file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar!/META-INF/jbosscmp-jdbc.xml process error. Line: 272. Error message: Element "ejb-relationship-role" does not allow "foreign-key-fields" here.
      03:48:37,577 INFO [EnterpriseContextCachePolicy] Cache policy scheduler started
      03:48:37,665 INFO [Sequence] Table 'Sequence' already exists
      ...
      03:48:37,825 INFO [User] Table 'User' already exists
      03:48:37,862 INFO [Role] Table 'Role' already exists
      03:48:37,944 ERROR [EJBDeployer] Could not deploy file:/var/jboss-all/build/output/jboss-3.0.0DR1/tmp/deploy/61.esb-ejb.jar
      org.jboss.deployment.DeploymentException: Error while creating table, Cause: java.sql.SQLException: General error: All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:162)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartCommand.java:106)
      ...

      I checked that all my entity beans' primary keys in the database allow only wholely non-NULL values

      Or there's a new DTD rather than http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd? I created my jbosscmp-jdbc.xml using xdoclet

      Thanks