GeeCON Prague 2014*
The moose likes Oracle/OAS and the fly likes oc4j 10.1.3.5 deployment - Unable to resolve datasource: jdbc/OracleDS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "oc4j 10.1.3.5 deployment - Unable to resolve datasource: jdbc/OracleDS " Watch "oc4j 10.1.3.5 deployment - Unable to resolve datasource: jdbc/OracleDS " New topic
Author

oc4j 10.1.3.5 deployment - Unable to resolve datasource: jdbc/OracleDS

mg sg
Greenhorn

Joined: Nov 11, 2009
Posts: 2
Hi,

I am trying to deploy an ear file into a standalone oc4j 10.1.3.5 and it fails with the following error. The same ear deploys fine in 10.1.3.1, 10.1.3.3 and 10.1.3.4.


Nov 10, 2009 4:01:45 PM Application Deployer for efc STARTS.
Nov 10, 2009 4:01:45 PM Copy the archive to E:\ORACLE\OAS_10_1_3\j2ee\efc_test\applications\efc.ear
Nov 10, 2009 4:01:46 PM Initialize E:\ORACLE\OAS_10_1_3\j2ee\efc_test\applications\efc.ear begins...
Nov 10, 2009 4:01:46 PM Unpacking efc.ear
Nov 10, 2009 4:01:48 PM Done unpacking efc.ear
Nov 10, 2009 4:01:49 PM Unpacking efc.war
Nov 10, 2009 4:01:55 PM Done unpacking efc.war
Nov 10, 2009 4:01:55 PM Initialize E:\ORACLE\OAS_10_1_3\j2ee\efc_test\applications\efc.ear ends...
Nov 10, 2009 4:01:55 PM Starting application : efc
Nov 10, 2009 4:01:55 PM Initializing ClassLoader(s)
Nov 10, 2009 4:01:55 PM Initializing EJB container
Nov 10, 2009 4:01:55 PM Loading connector(s)
Nov 10, 2009 4:01:55 PM Starting up resource adapters
Nov 10, 2009 4:01:55 PM Initializing EJB sessions
Nov 10, 2009 4:01:55 PM Committing ClassLoader(s)
Nov 10, 2009 4:01:55 PM Initialize efc begins...
Nov 10, 2009 4:01:55 PM Initialize efc ends...
Nov 10, 2009 4:01:55 PM Started application : efc
Nov 10, 2009 4:01:55 PM Binding web application(s) to site default-web-site begins...
Nov 10, 2009 4:01:55 PM Binding efc web-module for application efc to site default-web-site under context root efc
Nov 10, 2009 4:01:55 PM Operation failed with error: efc:efc - Unable to resolve datasource: jdbc/OracleDS

Also on the console, I see the messages below..

2009-11-10 17:47:13.373 NOTIFICATION Started application : efc
2009-11-10 17:47:13.389 NOTIFICATION Binding web application(s) to site default-
web-site begins...
2009-11-10 17:47:13.389 NOTIFICATION Binding efc web-module for application efc
to site default-web-site under context root efc
09/11/10 17:47:13 WARNING: Code-source C:\oc4j10135\j2ee\home\applications\efc\e
fc\WEB-INF\lib\mail.jar (from WEB-INF/lib/ directory in C:\oc4j10135\j2ee\home\a
pplications\efc\efc\WEB-INF\lib) has the same filename but is not identical to /
C:/oc4j10135/j2ee/home/lib/mail.jar (from <code-source> (ignore manifest Class-P
ath) in META-INF/boot.xml in C:\oc4j10135\j2ee\home\oc4j.jar). If it contains di
fferent versions of the same classes, it will be masked as the latter is already
visible in the search path of loader efc.web.efc:0.0.0.
09/11/10 17:47:13 WARNING: Code-source C:\oc4j10135\j2ee\home\applications\efc\e
fc\WEB-INF\lib\orasaaj.jar (from WEB-INF/lib/ directory in C:\oc4j10135\j2ee\hom
e\applications\efc\efc\WEB-INF\lib) has the same filename but is not identical t
o /C:/oc4j10135/webservices/lib/orasaaj.jar (from <code-source> (ignore manifest
Class-Path) in META-INF/boot.xml in C:\oc4j10135\j2ee\home\oc4j.jar). If it con
tains different versions of the same classes, it will be masked as the latter is
already visible in the search path of loader efc.web.efc:0.0.0.
09/11/10 17:47:14 oracle.oc4j.admin.internal.DeployerException: efc:efc - Unab
le to resolve datasource: jdbc/OracleDS
09/11/10 17:47:14 at com.evermind.server.ejb.exception.DeploymentException
.unableToResolveDataSource(DeploymentException.java:116)
09/11/10 17:47:14 at com.evermind.server.ejb.persistence.PersistenceUnitIn
foImpl.getDataSource(PersistenceUnitInfoImpl.java:122)
09/11/10 17:47:14 at com.evermind.server.ejb.persistence.PersistenceUnitIn
foImpl.initialize(PersistenceUnitInfoImpl.java:87)
09/11/10 17:47:14 at com.evermind.server.ejb.persistence.PersistenceUnitMa
nagerImpl.initializePersistenceUnit(PersistenceUnitManagerImpl.java:158)
09/11/10 17:47:14 at com.evermind.server.ejb.persistence.PersistenceUnitMa
nagerImpl.initialize(PersistenceUnitManagerImpl.java:87)
09/11/10 17:47:14 at com.evermind.server.http.HttpApplication.createDefaul
tPersistenceUnitManager(HttpApplication.java:875)
09/11/10 17:47:14 at com.evermind.server.http.HttpApplication.<init>(HttpA
pplication.java:844)
09/11/10 17:47:14 at com.evermind.server.ApplicationStateRunning.getHttpAp
plication(ApplicationStateRunning.java:435)
09/11/10 17:47:14 at com.evermind.server.Application.getHttpApplication(Ap
plication.java:592)
09/11/10 17:47:14 at com.evermind.server.http.HttpSite$HttpApplicationRunT
imeReference.createHttpApplicationFromReference(HttpSite.java:2280)
09/11/10 17:47:14 at com.evermind.server.http.HttpSite$HttpApplicationRunT
imeReference.<init>(HttpSite.java:2199)
09/11/10 17:47:14 at com.evermind.server.http.HttpSite.addHttpApplication(
HttpSite.java:1833)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.WebApplicationBinder.bindW
ebApp(WebApplicationBinder.java:304)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.WebApplicationBinder.bindW
ebApp(WebApplicationBinder.java:120)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.WebApplicationBinder.bindW
ebApp(WebApplicationBinder.java:92)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.ApplicationDeployer.bindWe
bApp(ApplicationDeployer.java:825)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.ApplicationDeployer.doDepl
oy(ApplicationDeployer.java:276)
09/11/10 17:47:14 at oracle.oc4j.admin.internal.DeployerBase.execute(Deplo
yerBase.java:100)
09/11/10 17:47:14 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeploy
erRunnable.doRun(OC4JDeployerRunnable.java:52)
09/11/10 17:47:14 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRu
nnable.run(DeployerRunnable.java:81)
09/11/10 17:47:14 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:298)
09/11/10 17:47:14 at java.lang.Thread.run(Thread.java:595)
2009-11-10 17:47:14.483 NOTIFICATION Application Deployer for efc FAILED.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

"mg sg",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (obviously fake names are not allowed). Thank you.


[My Blog]
All roads lead to JavaRanch
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
"jdbc/OracleDS" jndi location is "Example Connection Pool" in iAS for localhost 1521 ORCL and scott user.
Your ear file has references in datasources.xml and web.xml to datasources. Does oc4j 10.1.3.5 has a datasource located at "jdbc/OracleDS" jndi location? If not try to create it or completely remove it from your datasource references.

Regards,

Fatih.
mg sg
Greenhorn

Joined: Nov 11, 2009
Posts: 2
Hi Fatih,

Thanks for the reply.. I checked both my datasources on the server side (OAS) and in all the xml files, i have within the ear. I do not see any instances of the jdbc/oracleDS or JNDI.

I do not want to create this datasource in OAS as i am not using it within my application. So i am not sure what else to check. Please let me know, if you have any other thoughts..
Thanks
Mgsg.
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
I am curious if you are able to deploy any simple ear file to your oc4j 10.1.3.5 standalone instance either from command line, using JDeveloper 10.x or using em console?
 
GeeCON Prague 2014
 
subject: oc4j 10.1.3.5 deployment - Unable to resolve datasource: jdbc/OracleDS