JNDI can acquire and not datasource. -WLS JDBC, 10.3
Now I have problems connecting to the database for my EJB entities.I use Jdev 11 r1, ADF Faces, EJB3.0, Oracle database 10g. I have my WLS connection to the database server, and the application connects to it, when it is run with the server integrated into Jdeveloper. When I deploy my application for the server (I created a JDBC connection to the database with the name jndi jdbc/DatabaseDevDS), I get way below.
I have my persistence.xml
< name of persistence - unit = "Company" >
<>provider
org.eclipse.persistence.jpa.PersistenceProvider
< / provider >
< jta-data-source >
Java: / app/jdbc/jdbc/DatabaseDevDS
< / jta-data-source >
ERROR:
Caused by: Exception EclipseLink-7060 (Eclipse - 1.0.1 persistence Services (Build 20080905)): org.eclipse.persistence
.exceptions. ValidationException
Description of the exception: could not acquire data source Java: / app/jdbc/jdbc/DatabaseDevDS.
Inner exception: javax.naming.NameNotFoundException: while trying to search/app/jdbc/jdbc/DatabaseDevDS/app/ejb/E
JB.jar #SessionEJB. ; rest the name "/ app/jdbc/jdbc/DatabaseDevDS.
at org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:429)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:123)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:164)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal (DatasourceAccessor.java:32
4)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:264)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:407)
at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:130)
at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:110)
at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:500)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:606)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login (EntityManagerFactoryProvider.java:211
)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:246)
... more than 97
Caused by: javax.naming.NameNotFoundException: while trying to get/app/jdbc/jdbc/DatabaseDevDS in /app/ejb/EJB.jar#Se
ssionEJB. ; rest the name "/ app/jdbc/jdbc/DatabaseDevDS.
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:135)
at javax.naming.InitialContext.lookup(InitialContext.java:396)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:117)
... more than 108
Dan,
Hi, thank your for use EclipseLink as EJB 3.0 JPA provider.
The appearance of your JNDI name (* java: / app/jdbc/jdbc/DatabaseDevDS *)-(Note: il y a un double «* jdbc *») as opposed to a global brand (* DatabaseDevDS *) in your persistence.xml JPA - it seems that you are using a broad application data source and not a source of data globally extensive set directly on your WebLogic Server.
If this is the case, for a broad application datasource on Oracle WebLogic server please see the tutorial following the 3 steps to prepare your application to use app level datasources.
The application following business base tutorial using EclipseLink as the APP provider described workaround to use a source of data application when it is deployed on WebLogic 10.3 using the normal + the < jta-data-source > + element and the overriding javax.persistence.jtaDataSource property, until the bug of WLS Server base followed by EclipseLink bug # 246126 in. [http://bugs.eclipse.org/246126] is fixed soon.
Reference
[http://wiki.eclipse.org/EclipseLink/Examples/JPA/WLS_AppScoped_DataSource]
related to
[http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Application_Scoped_Datasource_Setup]
Persistence.XML suggested additional changes:
(1) adds a reference to the WebLogic Platform
+ < property name = value "eclipselink.target - server" = "WebLogic_10" / >.
(2) make sure you really set your datasource scope application (tutorial 3 steps above) with a double ' * jdbc. "
* "" java: / app/jdbc/jdbc/DatabaseDevDS "*"
and didn't really say "+ java: / app/jdbc/DatabaseDevDS +" which is usually standard
See
[http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Persistence.xml]
and an EclipseLink open source example that uses a globally set the datasource in an application tutorial WebLogic Web using EclipseLink JPA provider
[http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/ejbModule/META-INF/persistence.xml]
In addition, an additional workaround would be globally set the source of data on your integrated WebLogic Server and reference as described in...
[http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Global_Scoped_Datasource_Setup]
I hope this helps.
For any other TopLink, EclipseLink questions you can also post on the next TopLink forum or EclipseLink related forums
TopLink/Eclipselink
[f [48]
EclipseLink
[https://dev.eclipse.org/mailman/listinfo/eclipselink-users]
[http://www.eclipse.org/newsportal/thread.php?group=eclipse.rt.eclipselink]
[http://www.nabble.com/EclipseLink-f26430.html]
Shay, thanks for pointing the tutorial to EclipseLink.
Thank you
/Michael att eclipselink.org
Tags: Java
Similar Questions
-
Can check and not Null added to the names Administration constraints?
I don't know if this is the right place to make a request for improvement, but it would be possible to add "and not Null Check constraints" in Tools-> object names Administration?
It would be extremely useful for those who use them and also apply naming rules.
Thank youI logged an ER
Philippe
-
Strange behavior on WLS in autonomous, and not on WLS integrated
Hi all
This project is in jdev 11.1.1.3.0. The stand-alone server version is 10.3.5.0 and the console/em 11 g.
When I run the project on integrated WLS, inserting rows behaves as expected. When I deploy on a stand-alone server, the inserted rows suddenly have the default values that appear because it's attributes. The values exactly copy the other already existing lines to the table.
Anyone experienced something like that or know the possible causes?
Problem solved. It's the 11.1.1.5 insert with immediate = true bug button. We consider using the fix for this problem or live with immediate = false property.
-
DAQ Assistant Express Vi to acquire and generate data at the same time in LABView
Can I run acquire it and generate the Express Assistant DAQ Vi at the same time in a LABView program? I am using LABView 2010. It's acquire and generate a NI USB-6009.
Thank you
Mary
You can acquire and generate the same VI but obviously you can't generate a wave form unless you do a single point at a time inside a loop with a sample on request and can live with low samples/s specifications.
-
Advantages and disadvantages of the JDBC Url vs Datasources
Hi all
We are developing an erp with full stack ADF system. Now have a serious discussion on whether to use datasource or jdbc URLs. We know that data sources are managed by the application server, but jdbc URL are directly connects to the database. is there a drawback by using the jdbc url, whereas ADF BC? jdbc url would be much simpler for our need. Otherwise, we need to create the new source of data on the fly to the container (my previous question).
JDeveloper/ADF: 12.1.3
AppServer: Weblogic/Glassfish
Thank you
Youssef Mohamed Jawhar.
The answer to
(1) Yes, am grouping will work and no you do not have loos next to abstraction and configuration functionality. ADF works on JDBC URL.
2) Yes, if you have enough memory installed that should work, however I have never used over 10 data sources. Oh, and you should test the startup time. AFAIK the server tests each data source initially to the top of the server.
Timo
-
How can implement you not with Tim Capsule and AirPort their simulation on the iMac?
Hello
How can implement you not with Time Capsule and AirPort their simulation on the iMac?
I don't know what you're asking.
AirPort Extreme is a wireless router.
A Time Capsule airport is an AirPort Extreme with a built-in hard drive for data storage.
An iMac is a Mac computer.
An iMac is not a wireless router, so he is unable to perform the functions of a wireless router.
-
firefox 38-how can I get the box options old back and NOT a browser with the orders page?
I want to go the pop up box that opens when I go to TOOLS - OPTIONS and NOT a web browser page. How do I do that?
The browser.preferences.inContent is no longer supported in Firefox 42 and later is not possible to open an independent window by setting this pref to false.
Bug 1140495 - Remove glass preferences supportOptionally, create a button on the toolbar of bookmarks for the subject: preferences and hold the Shift key and left click to open the page in a new window.
You can watch the extension Classic theme restaurateur.
- General UI (1): The options Page (topic: preferences) in a window
- https://addons.Mozilla.org/firefox/addon/classicthemerestorer/
-
How can I force Firefox to download mp3 files and NOT play?
Hi guys,.
I couldn't change the settings of Firefox in this way, that it does not play mp3 files at all (in any kind of player), but allows to decide what with them for example to download the file.
What I actually did:
- changed at settings, that I want a dialog or download any file type and NOT use any other option (yes, all of them - not any kind of effect was seen there...) - changed especially all mp3-related options to download - deactivated ALL plugins and addons - about:config -> media.windows-media-foundation.enabled -> false - uninstalled ALL types of mediaplayers (Winamp, VLC etc.), but not WMP because it would be very complicated and would cause several bugs
Many updates before (I think it's up to 20 FF or if) you could simply tell FF, I tried to download the file via the settings and now it isn't.
Is it possible to left I can force Firefox to NOT READ mp3 files in any player and offer my the possibility to download?
Please do NOT give answers like:
- right click on the file and save it as ... I allready know that and do not want to use that solution. A few years before it was possible, so it should also be possible to directly click at the file and decide what to do with it. On all the sites I want to use it the possibilities are given and not blocked by the sites or implementations itself.
I thank very you much for your help in advance. I'm desperately trying to find an answer to this question for months...
Hello TurZ, please set media.windows - media - foundation.enabled back to its default value and turn media.play - stand alone false instead.
-
Whey can I not send and receive SMS on my iPad Pro (cellular and Wi - Fi), but I can send and receive text Messages on my iPad (WiFi only) Air?
You have set up on your iPad Pro of continuity?
Continuity allows you to connect your iPhone, iPad, iPod touch and Mac - Apple Support
-
Why Apple can't do two systems? First of all, we are protected, and the other is free just like android, but in the style of the iOS and Apple needs a request so we can manage and see new products from an application and do not go on this site!
and I don't know that if Apple make a system more freely, there no need for any device on Earth but iPhone.
-
updated at 14.0 and not more can access firefox on my mac OSX - help!
Firefox asked me to update to 3.6 to 14.0, so I did. At the end of the process, I was told that '14.0 is not compatible with your OS x system. I have since not been able to access Firefox and lost all my favorites and other info. In addition, my computer is slow since then (I use Safari). I hope you can help me to reverse this trend, or do you need to go back to Firefox.
I think you should warn people to this incompatibility before asking them to update! Thank you very much.
Open the Applications folder in Finder and drag the firefox application to the trash. When you do that, you can download and install Firefox 3.6
Ref: -
all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not help somehow
One possible cause is security software (firewall, antivirus) that prevents or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.
Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.
See:
You can try to reset (power off / on) of the router.
-
I just bought an Iphone 6s and not yet am possession of en from the Sim Card. Ook, do you know if I can use the phone including applications via Wifi and put the chip later? Thank you. Renault JL
No, because if you bought a new iPhone, then you need a SIM card to activate it before you can use the wifi applications.
This is a phone after all, you don't need a sim card any to be able to activate it.
-
I have a Dell Inspiron 1525 and if there is a note pad/text tab I don't remember. Firefox system has function that I can take and save notes with everything in, let's say, I created an affiliate campaign?
Try FoxNotes.
-
After software update today, my password does not work. My phone is now disabled. I don't have a backup. How can I start to use my phone again and not lose all my content? Help, please.
You can not
Maybe you are looking for
-
I have tried everything to find info on why it does not appear. There is none that I can find.
-
I have a sony DSC-W290 camera, is it intrinsically safe to use in a refinery environment?
-
DAQmx error at the start of task-50103
Hello, I would like to acquire the data of two lvdt.I use a same programming for the two lvdt.the different with the two lvdt is in the selection of the entry,the mistake of saying at the beginning. I'm trying to make a newDAQmx start task, but he al
-
start-up and re boot
-
HP deskjet2542 does not connect to the network
I just brought a range of hp deskjet2542 printers. When you try to put it up for printing via ipad is unable to find my wireless net work? I'm a bit of a technophobe so have no idea what is wrong. The blue light just flashes which means unable to fin