• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error with creation of data source

 
Ronak Parekh
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error during Data Source creation: weblogic.common.ResourceException: DataSource (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi) (oraclePool)
I have already created oraclePool with the following properties:
Name : oraclePool
URL : jdbc:weblogic racle
Driver: weblogic.jdbc.oci.Driver
Properties:
user=system
server=myserver
In weblogic-ejb-jar.xml file:
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>

In ejb-jar.xml file:
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Do I need to make changes in my Entity Bean files? I have made a datasource called GangsterDB. I do not know the reason for this error. Please do let me know.
Error during Data Source creation: weblogic.common.ResourceException: DataSource (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi) (oraclePool)
Thank you
Ronak Parekh
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds to me like you never set the Target Server for your Connection Pool. Try this:
  • Login to the WebLogic Console.
  • Goto JDBC->Connection Pools->oraclePool->Targets.
  • Select your server's name from the available list and move it to chosen.
  • Apply.
  • Shutdown WebLogic.
  • Startup WebLogic.
  • Problem solved. (hopefully)

  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic