• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic