This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Websphere Application Server 7 ... EJB 2.0 Error :: PMGR1012E

 
Ranch Hand
Posts: 51
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are migrating our applicatin to WebSphere App Server 5 to 7. But still we are using EJB 2.0

When our application tries to access EJBs it is getting following error

[11/2/10 17:40:52:998 PDT] 0000001c FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident em
itted on /websphere/AppServer/profiles/logs/ffdc/server1_27c4c54d_10.11.02_17.40.52.6021454924967577386301.txt com.ibm.ejs.co
ntainer.EJSHome.createBeanO 1023
[11/2/10 17:40:53:010 PDT] 0000001c RemoteExcepti E CNTR0019E: EJB threw an unexpected (non-declared) exception during invo
cation of method "findAllSessions". Exception data: com.ibm.ejs.container.ContainerEJBException: EJB failed to initialize. ;
nested exception is: com.ibm.ws.exception.WsEJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceMa
nagerException: PMGR1012E: The current backend id DB2UDBNT_V82_1, does not match the data source connected to. at com.ibm.ejs.container.ContainerManaged2_0BeanO.<init>(ContainerManaged2_0BeanO.java:168)
at com.ibm.ejs.container.ContainerManaged2_0BeanOFactory.create(ContainerManaged2_0BeanOFactory.java:44)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1031)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1177)
at com.ibm.ejs.container.EJSHome.getFinderEntityBeanO(EJSHome.java:3293)
at com.incentivesystems.util.server.core.session.EJSCMPSessionEntityHomeBean_6deb3818.findAllSessions(Unknown Source)
at com.incentivesystems.util.server.core.session.EJSRemoteCMPSessionEntityHome_6deb3818.findAllSessions(Unknown Sourc
e)
at com.incentivesystems.util.server.core.session._EJSRemoteCMPSessionEntityHome_6deb3818_Stub.findAllSessions(Unknown
Source)
at com.incentivesystems.util.server.core.session.SessionCleanup.cleanupExpiredSessions(Unknown Source)
at com.incentivesystems.tools.server.core.soap.StatelessEJBProvider.doLogin(Unknown Source)
at com.incentivesystems.tools.server.core.soap.StatelessEJBProvider.invoke(Unknown Source)
at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:354)
at com.incentivesystems.util.server.soap.ConfiguredRPCRouterServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback
.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:557)



But we are using Oracle 9i as our database. I built this application using ant script and server generated the stubs while deploying the applcation. Application structure in Eclipse is attached
tools-ejb.JPG
[Thumbnail for tools-ejb.JPG]
Eclipse project structure
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read this?
 
Debopam Poddar
Ranch Hand
Posts: 51
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I read this but I do not have any web sphere IDE. But I solves the problem in a different way

While installing the application in was 6.1 after uploading the ear file I used longer path (rather than usual fast path) installation. There in one step for ejb installation db2_udb... was selected by default by server. I changed it to blank from drop down and continued installation. After that from folder structure it took oracle as a database vendor and generated the code accordingly.
 
I don't even know how to spell CIA. But this tiny ad does:
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