Two different EJBs are deployed in two different machines running weblogic 6.0.
We are using container managed transaction and one EJB is calling the second EJB
deployed in another machine. The transaction context is being passed from one
EJB to another and transaction is working too, but in the second EJB while trying
to accessing the same database, it is giving the following error:
java.sql.SQLException: No default driver for database type: jdbc:weblogic:jts
at weblogic.jdbcbase.t3.Driver.seeIfWeNeedToInferDriverNameAndUrlFrom(Driver.java:774)
at weblogic.jdbcbase.t3.Driver.getAllPropsFrom(Driver.java:667)
at weblogic.jdbcbase.t3.Driver.connect(Driver.java:64)
at weblogic.jdbcbase.jts.Driver.createRemoteConnection(Driver.java:199)
at weblogic.jdbcbase.jts.Driver.connect(Driver.java:134)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:44)
at com.marsh.cansys.placement.service.submissionmngr.SubmissionMngrImpl.getEmployeeName(Subm
issionMngrImpl.java:76)
at com.marsh.cansys.placement.service.submissionmngr.SubmissionMngrEJBImpl.getEmployeeName(S
ubmissionMngrEJBImpl.java:110)
at com.marsh.cansys.placement.service.submissionmngr.SubmissionMngrEJBEOImpl.getEmployeeName
(SubmissionMngrEJBEOImpl.java:31)
at com.marsh.cansys.placement.service.submissionmngr.SubmissionMngrEJBEOImpl_WLSkel.invoke(S
ubmissionMngrEJBEOImpl_WLSkel.java:88)
at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:128)
at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
at weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.java:118)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:17)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
When the second EJB is accessed independently of the first EJB, it is working
fine. Transaction attributes are "Required" and "Mandatory" for first and second
EJB respectively.
Please let me know what could be the possible reason.
Thanks
-- Rob
--
----------------------------------------------------------------------
Coming Soon: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson