2 Replies Latest reply on Feb 7, 2011 9:31 AM by kts1021

    Upon deploy, JBoss gives me the following error

    kts1021 Newbie

      21:52:52,859 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "jboss-switchboard:appName=LaSeC,module=LaSeC" is missing the following dependencies:

          Dependency "java:/MySqlDS" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'java:/MySqlDS' **")

        Deployment "jboss.web.deployment:war=/LaSeC" is missing the following dependencies:

          Dependency "jboss-switchboard:appName=LaSeC,module=LaSeC" (should be in state "Installed", but is actually in state "Create")

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "java:/MySqlDS" is in error due to the following reason(s): ** NOT FOUND Depends on 'java:/MySqlDS' **

       

       

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]

                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]

                at java.lang.Thread.run(Unknown Source) [:1.6.0_23]

       

       

      21:52:57,890 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' from JNDI name 'MySqlDS'

      21:52:58,031 INFO  [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'MySqlDS'

       

      I copied mysql-ds.xml file and changed it accordingly, and placed jboss-web.xml file under my <WEB-INF>.

       

      Can someone help me? I have been looking for an answer but yet to find one.

       

      web.xml

        <resource-ref>

                  <description>MySQL DataSource</description>

                  <res-ref-name>jdbc/MySqlDS</res-ref-name>

                  <res-type>javax.sql.DataSource</res-type>

                  <res-auth>Container</res-auth>

        </resource-ref>


        • 1. Re: Upon deploy, JBoss gives me the following error
          jaikiran pai Master

          Your mysql-ds.xml has use-java-context = false:

           

          <jndi-name>MySqlDS</jndi-name>
              <use-java-context>false</use-java-context>
          

           

          So change your jboss-web.xml to:

           

          <jndi-name>MySqlDS</jndi-name>
          • 2. Re: Upon deploy, JBoss gives me the following error
            kts1021 Newbie

            Thank you so much! It was my stupidity. Now the project is up and running. However, it gives me this error:

             

            [CODE]

            private Context context = null;

            private DataSource datasource = null;

             

            public void init() throws ServletException {

                      super.init();

                      try {

                           context = new InitialContext();

                           datasource = (DataSource) context.lookup("java:/comp/env/jdbc/MySqlDS");

                      } catch (Exception e) {

                           e.printStackTrace();

                      }

            }

            [/CODE]

             

            I am really new to DataSource but Taste CF engine in Mahout requires a datasource.

             

            The code above gives me the following error:

             

            22:23:53,062 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/_____].[RecommendServlet]] Servlet.service() for servlet RecommendServlet threw exception: java.lang.IllegalArgumentException: dataSource is null or empty

             

            Is something the wrong?