Sitemap

Amicuk Programming Answers

Do i need to set Resource Ref's in teh deploy tool for a CMP bean?

-0001-11-30   Views:0

Advertisement

Hi, I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following. [#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEn

Hi,
I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following.
[#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEntityBean' method ejbFindByPrimaryKey:
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76400: Got a JDBC SQLException while executing the SQL statement:
SQL statement<select t0.person_id, t0.name from person t0 where t0.person_id = ?> with input values:java.lang.Integer:1.
Please examine the SQLException for more information.
NestedException: java.sql.SQLException: No database selected
THe database has been set up in the connection pools, i thought this was enough, as there is no coded names in the implementation code, am i wrong?
how do i get my CMP bean to communicate with the database?
do i need to set up any references?
thank you for your time
Gavin.

The replay answer
Advertisement
You set the JNDI name of the JDBC resource in deploytool. To do this, select your EJB JAR, select the General pane, and click Sun-specific Settings. Enter the JNDI name of your JDBC resource, and then set up the mappings & relationships. The J2EE 1.4 Tutorial's Container Managed Persistence Examples chapter has several examples that show how to do this.
-Ian Evans

Go to See the other 3 answers

Do i need to set Resource Ref's in teh deploy tool for a CMP bean?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following. [#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEn[More]

Some doubts in using resource-ref,connection pool n Data-source

Category:DefaultRelease time:2015-10-11Views:130

Hi all , I need little bit clarification in the following points. 1) Does the connection pool which is created can be displayed in JNDI Tree??? I am seeing only DataSOurce in the JNDI Tree Only. 2)In case of Bean Managed Persistance, in ejb-jar.xml,[More]

How to map a resource-ref in Jdev11 deployment plan editor

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I have a ADF/BC web application where the BC4J application module does connect to a JNDI data source. The ViewController project does declare the Datasource as needed resource in its web.xml: <resource-ref> <res-ref-name>jdbc/wlogDS<[More]

Message Driven Bean - Resource Ref

Category:DefaultRelease time:2015-10-11Views:130

hi Can anyone guide me with the steps in creating the resource ref in the Message Driven bean. When i run i get the following C:\Sun\Projects\simple>appclient -client MSBApplicationClient.jar JNDI lookup failed: javax.naming.NameNotFoundException: No[More]

Resource Ref's settings of a CMP bean in SAS PE 8.2 - Deploytool

Category:DefaultRelease time:2015-10-11Views:130

Dear all, In the deploytool of SAS8.2, in the [Resource Ref's] tab of a CMP bean do I need to set anything here to enable the CMP bean to connect to the database? I already have a JDBC source registered in the server and it is called jdbc/mydatasourc[More]

Resource-ref binding

Category:DefaultRelease time:2015-10-11Views:130

i'm using the weblogic ejb server. i currently have a datasource configured with a jndi name of myDS. i have some stateless session beans using a resource-ref to access the datasource. i'm not a jndi expert at all, but i think jboss by default binds[More]

Looking up Managed ConnectionFactory by JNDI Resource-Ref

Category:DefaultRelease time:-0001-11-30Views:130

Thank you in advance for your help... I'm writing an Enterprise Java Bean using WebLogic Workshop that needs to access a connection factory defined in a deployed Resource Adapter. I'm trying to access the server managed connection factory through the[More]

Adding resource-ref  in web.xml

Category:DefaultRelease time:-0001-11-30Views:130

dos it make any difference adding      <resource-ref>            <description>Application Datasource </description>            <res-ref-name>jdbc/myDataSource</res-ref-name>            <res-type>javax.sql.DataSource<[More]

What's the actual function of resource-ref in web.xml

Category:DefaultRelease time:-0001-11-30Views:130

I was configuring JNDI datasource in tomcat and found an confusing fact. If I have the JNDI resource configuration in the context configuration of the project, I could get access to the JNDI element with or without the resource-ref configuration in m[More]

What's resource-ref for?

Category:DefaultRelease time:-0001-11-30Views:130

I'm a JNDI newbie, so I hope this isn't too dumb. :-) I have a web app that I'm running in Tomcat 4.1.10 against a MySQL database. The app gets the DB using JNDI as described in the JNDI howto that comes with Tomcat. Everything works fine. Question i[More]

Unable To lookup .... weblogic.jobscheduler  and  web-xml resource ref

Category:DefaultRelease time:-0001-11-30Views:130

Unable To lookup .... weblogic.jobscheduler and web-xml resource ref for timer manager JNDI NameNotFound Exception .... Do, i need to configure something get that working. Didn't find any thing on documentation or hosted examples.The default timerman[More]

Hot
Hi Experts, Could you please let me know the process to make  coming saturday as working day. As per work schedules..Saturday and sunday s are weekly offs. Due to mgt. s decision we want to make it as a working day. Kindly share your ideas to make ne [More]
Hi, in RSA1 when deleting source system , which caused info objects/PSA tables for the particular source system deleted. Now, when creating new source system, it fails, It times out. It stops at "write version D" and times-out .  Is there anyway [More]
Is there a way, using Flash 8, that I can create a Flash Banner which rotates images everytime the browser is refreshed? Many thanks - Kevin// Action script... // [Action in Frame 3] bar._xscale = 1; // [Action in Frame 5] bar._xscale = 100 / getByte [More]
Hi, I've taken a program to create scenegraph from a wrml file (cybervrml97). That works fine. But what I want to do now is to "connect" this scenegraph to a J3D hierarchy that I've created by myself: branchgroup, transformgroups... Do you think [More]
explain each exit with a simple easy example... Message was edited by:         balaji velpuriexplain each exit with a simple easy example... Message was edited by:         balaji velpuriRead other 8 answers [More]
1st off I don't often complain (really I don't) I just feel that this should happen(and may if enough of us scream bloody murder). I won't demand the whole $200. A compromise. $100 (and i'll use it to buy some iPhone stuff) thanks.Dude, get a grip. I [More]
Hello, I have created a simple page in OAF and it is taking a lot of time to render the page(but the page comes after 10 - 15 mins). I am not using VPN. Do anyone know what is causing the issue? Thanks, SJHi, What does 'Safe Mode' mean? Did you mean [More]
There is no mirroring button for AirPlay in ios 8.1' I've read another forum that says you just need to scroll up, I have done that and it is simply not there up or down scroll. Please help, can no longer multitask. JayReally guys, there has always b [More]
Bonjour Je suis en train de publier une App (.apk) sur android, mais se suis surpris du poids 13 Mo alors que en version ZIP ou API (iOS) c'est 220 Mo QQ1 à une idée ? merci pourDeux éléments de réponse : 1. j'ai déplacé votre sujet sur le forum en f [More]
I have a 5-month-old MacBook which has been running Leopard since I got it. I have a 18-month-old iMac, which missed qualifying for a free upgrade to Leopard by two days. I finally bought the upgrade and installed it. Mail didn't survive the upgrade. [More]