This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Error with creation of data source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Error with creation of data source" Watch "Error with creation of data source" New topic
Author

Error with creation of data source

Ronak Parekh
Greenhorn

Joined: Aug 21, 2002
Posts: 26
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

Joined: Jul 18, 2001
Posts: 2712
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)

  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Error with creation of data source
     
    Similar Threads
    JBOSS connection pooling
    how to connect different datasources using multiple datasource using ENC
    Problem with jndi and data source
    how to connect multiple datasource using ENC in jboss
    Need help with understanding the link between jndi and data source