4 Replies Latest reply on Dec 3, 2010 8:51 AM by nicolasdavyt1234

    DeploymentException: Error: can't find data source: Partha

    Partha Pratim Newbie

      Hi,

      Right now I have switched to JBoss AS 5.1.0 from JBoss  6.0.0 M5 and update the required xml files. But when i want to deploy  the EAR, it starts executing [EjbDeployer] and at last failed to deploy.  I am getting an error message like this.

       

      5:14:25,828 INFO  [ProxyFactory] Unbind EJB Home 'SupportTeamMasterBean' from jndi 'SupportTeamMasterBean'
      5:14:25,828 INFO  [EjbModule] Undeployed SupportTeamMasterBean
      5:14:25,828 INFO  [EjbModule] Undeployed ApplicationServerManagementAgentBean
      5:14:27,203 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ET
      C.ear/ state=PreReal mode=Manual requiredState=Real
      rg.jboss.deployment.DeploymentException: Error: can't find data source: Partha
             at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:153)
             at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:435)
             at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
             at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
             at org.jboss.ejb.EjbModule.startService(EjbModule.java:495)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
             at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
             at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
             at $Proxy38.start(Unknown Source)
             at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
             at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
             at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
      ava: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.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
             at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
             at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
             at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
             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.system.ServiceController.doChange(ServiceController.java:688)
             at org.jboss.system.ServiceController.start(ServiceController.java:460)
             at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
             at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
             at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
             at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
      )
             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.doInstallParentFirst(DeployersImpl.java:1210)
             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:1631)
             at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
             at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
             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:702)
             at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
             at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
             at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
             at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
             at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
             at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
             at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
             at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
             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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
      306)
             at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
             at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
             at org.jboss.Main.boot(Main.java:221)
             at org.jboss.Main$1.run(Main.java:556)
             at java.lang.Thread.run(Thread.java:662)
      aused by: javax.naming.NameNotFoundException: Partha not bound
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
             at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
             at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
             at javax.naming.InitialContext.lookup(InitialContext.java:392)
             at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:149)
             ... 68 more
      5:14:27,515 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR
      DETAILS):

       


      EPLOYMENTS IN ERROR:
      Deployment "vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/Partha.ear/" is in error due to the following reason(s): javax.nami
      g.NameNotFoundException: Partha not bound

       


      5:14:27,578 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-192.168.1.205-8080
      5:14:27,672 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-192.168.1.205-8009
      5:14:27,687 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 3
      :31s:276ms

        • 1. Re: DeploymentException: Error: can't find data source: Partha
          Wolf-Dieter Fink Master

          Looks like that you have forgotten to deploy you (partha*)-ds.xml fot the data source.

          • 2. Re: DeploymentException: Error: can't find data source: Partha
            Partha Pratim Newbie

            In my web.xml last entry is:

             

            <resource-ref>
                  <description>DB Connection </description>
                  <res-ref-name>jdbc/Partha</res-ref-name>
                  <res-type>javax.sql.DataSource</res-type>
                  <res-auth>Container</res-auth>
               </resource-ref>

             

            In jbosscmp-jdbc.xml default enrty is

             

                <defaults>
                    <datasource>jdbc:/Partha</datasource>
                    <datasource-mapping>MS SQLSERVER2000</datasource-mapping>
                    <create-table>false</create-table>
                    <remove-table>false</remove-table>
                    <pk-constraint>true</pk-constraint>
                    <fk-constraint>true</fk-constraint>
                </defaults>

             

            In jboss-web.xml I have

             

            <resource-ref>
                     <res-ref-name>jdbc/Partha</res-ref-name>
                     <jndi-name>java:DefaultDS</jndi-name>

             

            </resource-ref>

             


            And my DefaultDs is in WEB-INF Folder like this:

             

            Partha</jndi-name>
                <connection-url>jdbc:sqlserver://Partha_server:1433;databasename=Partha</connection-url>
                <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
                <user-name>Partha</user-name>
                <password>123456</password>
                <min-pool-size>5</min-pool-size>
                <max-pool-size>20</max-pool-size>
                <idle-timeout-minutes>5</idle-timeout-minutes>
              </local-tx-datasource>
            </datasources>
            In my web.xml last entry is:

             

            <resource-ref>
                  <description>DB Connection </description>
                  <res-ref-name>jdbc/Partha</res-ref-name>
                  <res-type>javax.sql.DataSource</res-type>
                  <res-auth>Container</res-auth>
               </resource-ref>

             

            In jbosscmp-jdbc.xml default enrty is

             

                <defaults>
                    <datasource>jdbc:/Partha</datasource>
                    <datasource-mapping>MS SQLSERVER2000</datasource-mapping>
                    <create-table>false</create-table>
                    <remove-table>false</remove-table>
                    <pk-constraint>true</pk-constraint>
                    <fk-constraint>true</fk-constraint>
                </defaults>

             

            In jboss-web.xml I have

             

            <resource-ref>
                     <res-ref-name>jdbc/Partha</res-ref-name>
                     <jndi-name>java:DefaultDS</jndi-name>

             

            </resource-ref>

             


            And my DefaultDs is in WEB-INF Folder like this:

             

            Partha</jndi-name>
                <connection-url>jdbc:sqlserver://Partha_server:1433;databasename=Partha</connection-url>
                <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
                <user-name>Partha</user-name>
                <password>123456</password>
                <min-pool-size>5</min-pool-size>
                <max-pool-size>20</max-pool-size>
                <idle-timeout-minutes>5</idle-timeout-minutes>
              </local-tx-datasource>
            </datasources>

             


            When i want to deploy the EAR i am getting the error like this.

             

            java.lang.RuntimeException: No Attribute found with name: PolicyConfigurationFacadeMBean for jboss.jacc:service=jacc,id="vfszip
            :/C:/jboss-5.1.0.GA/server/default/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear", attributes: [JaccContextID, PolicyConfigur
            ation]
                    at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
                    at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
                    at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
                    at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.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.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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.system.ServiceController.doChange(ServiceController.java:688)
                    at org.jboss.system.ServiceController.install(ServiceController.java:274)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
            2)
                    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.doInstallParentFirst(DeployersImpl.java:1210)
                    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:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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:702)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
            :306)
                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                    at org.jboss.Main.boot(Main.java:221)
                    at org.jboss.Main$1.run(Main.java:556)
                    at java.lang.Thread.run(Thread.java:662)
            19:18:56,556 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ET
            SC.ear/ state=PreReal mode=Manual requiredState=Real
            org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jacc:service=jacc,id="vfszip:/C:/jboss-5.1.0.GA/server/defa
            ult/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear"
                    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
            2)
                    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.doInstallParentFirst(DeployersImpl.java:1210)
                    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:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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:702)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
            :306)
                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                    at org.jboss.Main.boot(Main.java:221)
                    at org.jboss.Main$1.run(Main.java:556)
                    at java.lang.Thread.run(Thread.java:662)
            Caused by: java.lang.RuntimeException: No Attribute found with name: PolicyConfigurationFacadeMBean for jboss.jacc:service=jacc
            ,id="vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear", attributes: [JaccContextID, Pol
            icyConfiguration]
                    at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
                    at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
                    at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
                    at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.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.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    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.system.ServiceController.doChange(ServiceController.java:688)
                    at org.jboss.system.ServiceController.install(ServiceController.java:274)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
                    ... 35 more

             

             

            Thanks in advance

            Partha

            • 3. Re: DeploymentException: Error: can't find data source: Partha
              Wolf-Dieter Fink Master

              I think that you must deploy your Partha-datasource file as a separate -ds.xml file because in your configuration only the WAR will see it.

              • 4. Re: DeploymentException: Error: can't find data source: Partha
                nicolasdavyt1234 Newbie

                Try whith generate a Partha-datourceDS.xml with this:

                 

                <datasources>
                    <local-tx-datasource>
                            <jndi-name>Partha</jndi-name>
                             <connection-url>jdbc:sqlserver://Partha_server:1433;databasename=Partha</connection-url>           
                            <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
                                    <user-name>Partha</user-name>
                                    <password>123456</password>
                                    <min-pool-size>5</min-pool-size>
                                    <max-pool-size>20</max-pool-size>
                                    <idle-timeout-minutes>5</idle-timeout-minutes>
                    </local-tx-datasource>
                </datasources>

                 

                And put the file Partha-datourceDS.xml in Path > C:/jboss-5.1.0.GA/server/default/deploy/