2 Replies Latest reply on Oct 8, 2006 9:15 AM by Adrian Brock

    DataSource is broken

    Adrian Brock Master

      This was working, so I'm guessing Scott's parser changes broke this?

      The only thing that is getting deployed out of the -ds.xml
      is the hibernate mbean.

      ejort@ejort:~/jboss-head/build/output/jboss-5.0.0.Beta/server/default/log$ grep hsqldb server.log
      2006-10-08 13:06:09,138 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Add deployment context: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:09,138 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Scheduling deployment: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:14,571 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@5dc994, cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
      2006-10-08 13:06:14,571 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@5dc994, cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
      2006-10-08 13:06:14,572 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
      2006-10-08 13:06:14,903 DEBUG [org.jboss.deployers.plugins.structure.AbstractDeploymentContext] Added component jboss:database=localDB,service=Hypersonic to file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:36,022 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Deployed: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:46,930 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Scheduling undeployment: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:51,585 DEBUG [org.jboss.deployers.plugins.structure.AbstractDeploymentContext] Removed component jboss:database=localDB,service=Hypersonic from file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      2006-10-08 13:06:52,132 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository removed(true) org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
      2006-10-08 13:06:52,132 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Unregistering cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
      2006-10-08 13:06:52,133 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository removed(false) org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
      2006-10-08 13:06:52,133 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Undeployed: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
      


      P.S. Note to Bill: I don't do open source via private e-mail,
      so spamming me 5 private e-mails about this is pointless.

        • 1. Re: DataSource is broken
          Adrian Brock Master

          It is no longer invoking the XSLDeployer's parse method:

          XSLDeployer

           /**
           * Parse a deployment
           *
           * @param unit the deployment unit
           * @param file the metadata file
           * @return the metadata
           * @throws Exception for any error
           */
           protected T parse(DeploymentUnit unit, VirtualFile file) throws Exception
          


          Method defined by AbstractParsingDeployer and implemented
          by the parent JAXPDeployer of XSLDeployer
           /**
           * Parse a deployment
           *
           * @param unit the deployment unit
           * @param file the metadata file
           * @param root - possibly null pre-existing root
           * @return the metadata
           * @throws Exception for any error
           */
           protected abstract T parse(DeploymentUnit unit, VirtualFile file, T root) throws Exception;
          


          So the document never goes through the XSL transformation.
          It is effectively just deployed as a straight -service.xml

          • 2. Re: DataSource is broken
            Adrian Brock Master

            This is now fixed.