Meaningless Drivel is fun!*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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