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 i written start routine in transformations. it showing some error. please suggest correct way. TYPES : begin of fs_pctr,               profit_ctr type /BIC/PZPRFTCTR-/BIC/ZPRFTCTR,              end of fs_pctr. DATA : it_pctr type standard table of [More]
In Mail, My preferences are set to display remote images. However, my incoming mail messages don't display the images. This is the condition when the mail is open, not just in preview. Is there another setting hidden somewhere in the app? Thanks much [More]
Hello, I am using Adobe Media encoder CC and I do not see an option to export as FLV.  Is it not supported in 2014 CC? please let me know. Thanks in advance for your help.The FLV export option was removed from the 2014 release of AME CC. Please see t [More]
OPA settings and environment settings OPA version 10.3.0.77 OPA Project properties Rule language: Dutch Region: Netherlands (Dutch) We are using temporal reasoning to make decisions. Example: 'Decision X' is initially 'uncertain', from 01-01-2012 'tr [More]
I have an old white macbook which is not able to use 3-finger gestures. So I cannot swipe between the different desktops in mission control. I know that I can use the alt key and then press a desktop of choice or a keyboard shortcut but I would prefe [More]
Hi Experts, I have added a new header tab strip in MIGO transaction. The tab strip is triggered using the BADI 'MB_MIGO_BADI' (PBO_HEADER method), I populated a selection screen using module pool program through the same BADI. Now i need to update th [More]
Hello forum members, I am using Premiere Pro CS3 on a Windows XP PC. I created a demo reel, which came out fine. But it also created 1GB of files that I don't know if I should keep or not. The path to the files is: My Documents\Adobe\Premiere Pro\3.0 [More]
I have tried different browsers, different download managers, different computers... I am getting this message when I try to install the Acrobat Pro 30day trial... PLEASE HELP!!Hi Gnatly, This error usually comes up when the downloaded installer file [More]
I've spent all night trying to get this to work. I've read other threads with similar problems and their solutions aren't solving my problem. I have my iweb site. I publish it to its own folder. I upload it to the ftp directory (index.html + folder) [More]
My old computer crashed I purchased a new computer my I Pad was in my auto Is it possible to download my playlist and songs from the I pad to the new computer. I downed I Tunes and recovered songs from the store. I am unable to access any files from [More]