<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: DeploymentException: Error: can't find data source: Partha
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/parthapratim.blog">Partha Pratim</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/569152#569152">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>In my web.xml last entry is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><resource-ref><br/>      <description>DB Connection </description><br/>      <res-ref-name>jdbc/Partha</res-ref-name><br/>      <res-type>javax.sql.DataSource</res-type><br/>      <res-auth>Container</res-auth><br/>   </resource-ref></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In jbosscmp-jdbc.xml default enrty is</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <defaults><br/>        <datasource>jdbc:/Partha</datasource><br/>        <datasource-mapping>MS SQLSERVER2000</datasource-mapping><br/>        <create-table>false</create-table><br/>        <remove-table>false</remove-table><br/>        <pk-constraint>true</pk-constraint><br/>        <fk-constraint>true</fk-constraint><br/>    </defaults></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In jboss-web.xml I have</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><resource-ref><br/>         <res-ref-name>jdbc/Partha</res-ref-name><br/>         <jndi-name>java:DefaultDS</jndi-name></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></resource-ref></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/>And my DefaultDs is in WEB-INF Folder like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Partha</jndi-name><br/>    <connection-url>jdbc:sqlserver://Partha_server:1433;databasename=Partha</connection-url><br/>    <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class><br/>    <user-name>Partha</user-name><br/>    <password>123456</password><br/>    <min-pool-size>5</min-pool-size><br/>    <max-pool-size>20</max-pool-size><br/>    <idle-timeout-minutes>5</idle-timeout-minutes><br/>  </local-tx-datasource><br/></datasources><br/>In my web.xml last entry is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><resource-ref><br/>      <description>DB Connection </description><br/>      <res-ref-name>jdbc/Partha</res-ref-name><br/>      <res-type>javax.sql.DataSource</res-type><br/>      <res-auth>Container</res-auth><br/>   </resource-ref></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In jbosscmp-jdbc.xml default enrty is</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <defaults><br/>        <datasource>jdbc:/Partha</datasource><br/>        <datasource-mapping>MS SQLSERVER2000</datasource-mapping><br/>        <create-table>false</create-table><br/>        <remove-table>false</remove-table><br/>        <pk-constraint>true</pk-constraint><br/>        <fk-constraint>true</fk-constraint><br/>    </defaults></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In jboss-web.xml I have</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><resource-ref><br/>         <res-ref-name>jdbc/Partha</res-ref-name><br/>         <jndi-name>java:DefaultDS</jndi-name></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></resource-ref></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/>And my DefaultDs is in WEB-INF Folder like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Partha</jndi-name><br/>    <connection-url>jdbc:sqlserver://Partha_server:1433;databasename=Partha</connection-url><br/>    <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class><br/>    <user-name>Partha</user-name><br/>    <password>123456</password><br/>    <min-pool-size>5</min-pool-size><br/>    <max-pool-size>20</max-pool-size><br/>    <idle-timeout-minutes>5</idle-timeout-minutes><br/>  </local-tx-datasource><br/></datasources></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/>When i want to deploy the EAR i am getting the error like this.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>java.lang.RuntimeException: No Attribute found with name: PolicyConfigurationFacadeMBean for jboss.jacc:service=jacc,id="vfszip<br/>:/C:/jboss-5.1.0.GA/server/default/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear", attributes: [JaccContextID, PolicyConfigur<br/>ation]<br/>        at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)<br/>        at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)<br/>        at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)<br/>        at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)<br/>        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.<br/>java:62)<br/>        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)<br/>        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)<br/>        at org.jboss.system.ServiceController.install(ServiceController.java:274)<br/>        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)<br/>        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)<br/>        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6<br/>2)<br/>        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)<br/>        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)<br/>        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)<br/>        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)<br/>        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java<br/>:306)<br/>        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)<br/>        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)<br/>        at org.jboss.Main.boot(Main.java:221)<br/>        at org.jboss.Main$1.run(Main.java:556)<br/>        at java.lang.Thread.run(Thread.java:662)<br/>19:18:56,556 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/ET<br/>SC.ear/ state=PreReal mode=Manual requiredState=Real<br/>org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jacc:service=jacc,id="vfszip:/C:/jboss-5.1.0.GA/server/defa<br/>ult/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear"<br/>        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)<br/>        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)<br/>        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)<br/>        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6<br/>2)<br/>        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)<br/>        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)<br/>        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)<br/>        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)<br/>        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java<br/>:306)<br/>        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)<br/>        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)<br/>        at org.jboss.Main.boot(Main.java:221)<br/>        at org.jboss.Main$1.run(Main.java:556)<br/>        at java.lang.Thread.run(Thread.java:662)<br/>Caused by: java.lang.RuntimeException: No Attribute found with name: PolicyConfigurationFacadeMBean for jboss.jacc:service=jacc<br/>,id="vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/Partha.ear/Partha-ejb.jar/",parent="Partha.ear", attributes: [JaccContextID, Pol<br/>icyConfiguration]<br/>        at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)<br/>        at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)<br/>        at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)<br/>        at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)<br/>        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.<br/>java:62)<br/>        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)<br/>        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)<br/>        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br/>        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)<br/>        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br/>        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br/>        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br/>        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br/>        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)<br/>        at org.jboss.system.ServiceController.install(ServiceController.java:274)<br/>        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)<br/>        ... 35 more</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/569152#569152">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>