Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @DataSourceDefinitions({
- @DataSourceDefinition(name="java:comp/env/compds",
- className="org.apache.derby.jdbc.ClientDataSource",
- portNumber=1527,
- serverName="localhost",
- databaseName="derbyDB",
- user="cts1",
- password="cts1",
- description="ds1",
- initialPoolSize=1,
- isolationLevel=Connection.TRANSACTION_READ_COMMITTED,
- loginTimeout=300,
- maxIdleTime=1000,
- maxPoolSize=2,
- minPoolSize=1,
- transactional=false,
- properties={},
- url="jdbc:derby://${derby.server}:${derby.port}/${derby.dbName};create=true"
- ),
- @DataSourceDefinition(name="java:comp/env/compds2",
- className="org.apache.derby.jdbc.ClientDataSource",
- portNumber=1527,
- serverName="localhost",
- databaseName="derbyDB",
- user="cts1",
- properties={},
- password="cts1")
- })
- @Resource(lookup="java:comp/env/compds")
- private DataSource compds;
- @Resource(name="java:comp/env/compds2")
- private DataSource compds2;
- Caused by: java.lang.IllegalArgumentException: Failed to determine resource binding value for BindingDescription{bindingName='java:comp/env/compds2', bindingType='javax.sql.DataSource', referenceSourceDescription=org.jboss.as.ee.component.LazyBindingSourceDescription@49239780}
- at org.jboss.as.ee.component.LazyBindingSourceDescription.getResourceValue(LazyBindingSourceDescription.java:50)
- at org.jboss.as.ee.component.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:82)
- at org.jboss.as.ee.component.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:51)
- at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:102)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement