• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Migrating 1.1 application to Websphere v5

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a problem I have successfully deployed the 1.1 ejb in Websphere. The problem I am facing is with Datasource of Websphere. I get the following stacktrace. What I understand is my datasource is for 1.x EJB while the deployment Descriptor is for 2.x. I don't know how to fix this problem. Any help is highly appreciated.
WSVR0209E: Unable to prepare EJB jar Deployed_Cabintmp.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.ContainerManagedEntityImpl(Cabin) (isReentrant: false) (version: 1.x)
javax.naming.NamingException: Attempted to use a 4.0 DataSource in EJB 2.0 Module. Invalid configuration.
at com.ibm.ejs.cm.DSFactoryImpl.verifyConfiguration(DSFactoryImpl.java:225)
at com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:733)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313) at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1674) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457) at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167) at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132) at javax.naming.InitialContext.lookup(InitialContext.java:359) at com.ibm.ws.cpi.JDBCPersisterFactoryImpl.create(JDBCPersisterFactoryImpl.java:97) at com.ibm.ejs.container.BeanMetaData.completeInitialization(BeanMetaData.java:1169)
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere Forum...
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running the verify command of the AAT on your ear file? The command is on the file pull down menu.
 
Do not set lab on fire. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic