Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. @DataSourceDefinitions({
  2. @DataSourceDefinition(name="java:comp/env/compds",
  3. className="org.apache.derby.jdbc.ClientDataSource",
  4. portNumber=1527,
  5. serverName="localhost",
  6. databaseName="derbyDB",
  7. user="cts1",
  8. password="cts1",
  9.  
  10. description="ds1",
  11. initialPoolSize=1,
  12. isolationLevel=Connection.TRANSACTION_READ_COMMITTED,
  13. loginTimeout=300,
  14. maxIdleTime=1000,
  15. maxPoolSize=2,
  16. minPoolSize=1,
  17. transactional=false,
  18. properties={},
  19. url="jdbc:derby://${derby.server}:${derby.port}/${derby.dbName};create=true"
  20. ),
  21. @DataSourceDefinition(name="java:comp/env/compds2",
  22. className="org.apache.derby.jdbc.ClientDataSource",
  23. portNumber=1527,
  24. serverName="localhost",
  25. databaseName="derbyDB",
  26. user="cts1",
  27. properties={},
  28. password="cts1")
  29. })
  30.  
  31.  
  32. @Resource(lookup="java:comp/env/compds")
  33. private DataSource compds;
  34.  
  35. @Resource(name="java:comp/env/compds2")
  36. private DataSource compds2;
  37.  
  38.  
  39. 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}
  40. at org.jboss.as.ee.component.LazyBindingSourceDescription.getResourceValue(LazyBindingSourceDescription.java:50)
  41. at org.jboss.as.ee.component.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:82)
  42. at org.jboss.as.ee.component.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:51)
  43. at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:102)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement