 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
hyun chang Guest
|
Posted: Sat Oct 25, 2003 11:14 am Post subject: EJB Development Using Borland JBuilder 8 and Borland Enterpr |
|
|
Hi, I'm trying to follow the example from the whitepaper "EJB Development
Using Borland JBuilder 8 and Borland Enterprise Server 5.2 "
(http://www.borland.com/products/white_papers/pdf/ejb_development_using_jb8_
and_bes52.pdf), and instead of using JDataStore db, I'm importing schema
from an Oracle 9i db.
And the problem is that when running the Test Client, it doesn't work, when
the same thing in JDataStore it runs without any problem.
I can manage to add the Data Source, setup the connection to the Oracle db,
and view the list of the tables from the schema, from where I can create the
CMP entity bean. But when running the TestClient that calls the Session bean
method to retrieve some data from the entity bean, it simply fails...
I followed every step as indicated in the whitepaper, and simply don't
understand why it's not working.
The error message I would get is "..IllegalArgumentException: Unable to
resolve //the JNDI name".."
I tried to search a bit on the net if there were similar cases, and there
are a few forums where they include the c:...ora92/jdbc into the PATH
variable, and if I do this, then I would get that the method run
successfully, but the Return value would be a ClassCastException...
Any idea or anyone with the similar problem???? Please help!
Really appreciate if anyone can give me any tip. Thanks!
hyun chang
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Sun Oct 26, 2003 10:47 pm Post subject: Re: EJB Development Using Borland JBuilder 8 and Borland Ent |
|
|
hyun chang wrote:
| Quote: |
I followed every step as indicated in the whitepaper, and simply don't
understand why it's not working.
The error message I would get is "..IllegalArgumentException: Unable to
resolve //the JNDI name".."
I tried to search a bit on the net if there were similar cases, and there
are a few forums where they include the c:...ora92/jdbc into the PATH
variable, and if I do this, then I would get that the method run
successfully, but the Return value would be a ClassCastException...
|
You are leaving out all the interesting and helpful information on these
exceptions. Let's see some more complete traces from them, then maybe
we can help.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
hyun chang Guest
|
Posted: Mon Nov 03, 2003 1:13 pm Post subject: Re: EJB Development Using Borland JBuilder 8 and Borland Ent |
|
|
Hi, yes. Sorry, I should have given more details. I'm using and following
all the steps in the whitepaper, but instead of using DataStore, I'm using
oracle database.
When DataStore, I can run successfully, but when running with the Oracle
Data Source, it just errors out with the following error message: (the
datasource name is ORADataSource)
"..java.rmi.ServerException: java.rmi.ServerException: Internal Error:
Failed to do initiazation prior to first PM call; nested exception is:
java.lang.IllegalArgumentException: Unable to resolve the JNDI name:
serial://datasources/ORADataSource; nested exception is:
java.lang.IllegalArgumentException: Unable to resolve the JNDI name:
serial://datasources/ORADataSource
at
com.inprise.ejb.EJBHome$RemoteStrategyImpl.getSystemException(EJBHome.java:8
46)
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1366)
at com.inprise.ejb.Dispatcher.invokeSecurityCheck(Dispatcher.java:1023)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:816)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:595)
at com.inprise.ejb.EJBHome.dispatcherInvokeBeanMethod(EJBHome.java:55)
at
com.inprise.ejb.EJBHome$ComponentInterfaceMethodCache.invokeDispatcherMethod
(EJBHome.java:1502)
at com.inprise.ejb.EJBHome.invokeDispatcherMethod(EJBHome.java:34)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:416)
at
com.bex.ejb.CusSessionPOAInvokeHandler.getCustomer(CusSessionPOAInvokeHandle
r.java:35)
at
com.bex.ejb.CusSessionPOAInvokeHandler.getCustomer(CusSessionPOAInvokeHandle
r.java:69)
at com.bex.ejb.CusSessionPOA._invoke(CusSessionPOA.java:63)
at com.bex.ejb.CusSessionPOA._invoke(CusSessionPOA.java:43)
at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2693)
at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:109)
at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte
rceptorManager.java:110)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.j
ava:824)
at
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapt
er.java:68)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAda
pter.java:1106)
at
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.j
ava:106)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
Caused by: java.lang.IllegalArgumentException: Unable to resolve the JNDI
name: serial://datasources/ORADataSource
at com.inprise.ejb.Global$TxCallback.getDataSource(Global.java:606)
at
com.borland.ejb.pm.bas.BasEjbJarLoader.getDataSource(BasEjbJarLoader.java:88
)
at
com.borland.ejb.pm.JdbcResourceManager.getDataSource(JdbcResourceManager.jav
a:44)
at com.borland.ejb.pm.JdbcResourceContext.open(JdbcResourceContext.java:192)
at com.borland.ejb.pm.TxContext.findResourceContext(TxContext.java:53)
at
com.borland.ejb.pm.JdbcEntityManager.initCmpFields(JdbcEntityManager.java:19
1)
at com.borland.ejb.pm.DataEntityManager.init(DataEntityManager.java:179)
at
com.borland.ejb.pm.DataEntityManager.createTrustedPrimaryKey(DataEntityManag
er.java:62)
at
com.inprise.ejb.deployment.CMP2EntityDescriptor.convertToTrustedPK(CMP2Entit
yDescriptor.java:66)
at com.inprise.ejb.EntityHome.convertToTrustedPK(EntityHome.java:125)
at com.inprise.ejb.EntityHome.find(EntityHome.java:239)
at com.inprise.ejb.EJBHome.invoke(EJBHome.java:340)
at com.inprise.ejb.EJBHome.access$300(EJBHome.java:6)
at com.inprise.ejb.EJBHome$LocalStrategyImpl.invoke(EJBHome.java:1091)
at
com.bex.ejb.TMasCusHomePOAInvokeHandler.findByPrimaryKey(TMasCusHomePOAInvok
eHandler.java:36)
at
com.bex.ejb.TMasCusHomePOAInvokeHandler.findByPrimaryKey(TMasCusHomePOAInvok
eHandler.java:70)
at com.bex.ejb._TMasCusHome_Stub.findByPrimaryKey(_TMasCusHome_Stub.java:28)
at com.bex.ejb.CusSessionBean.getCustomer(CusSessionBean.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:32)
at com.inprise.ejb.EJBContext.invoke(EJBContext.java:166)
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1301)
.... 19 more
; nested exception is:
java.rmi.ServerException: Internal Error: Failed to do initiazation prior to
first PM call; nested exception is: java.lang.IllegalArgumentException:
Unable to resolve the JNDI name: serial://datasources/ORADataSource; nested
exception is:
java.lang.IllegalArgumentException: Unable to resolve the JNDI name:
serial://datasources/ORADataSource-- Failed: getCustomer(PSGL_S)
at com.bex.ejb._CusSession_Stub.getCustomer(_CusSession_Stub.java:111)
at com.bex.test.CusSessionTestGet.getCustomer(CusSessionTestGet.java:98)
at com.bex.test.CusSessionTestGet.main(CusSessionTestGet.java:139)
Caused by: java.rmi.ServerException: Internal Error: Failed to do
initiazation prior to first PM call; nested exception is:
java.lang.IllegalArgumentException: Unable to resolve the JNDI name:
serial://datasources/ORADataSource; nested exception is:
java.lang.IllegalArgumentException: Unable to resolve the JNDI name:
serial://datasources/ORADataSource
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:850)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:689)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at com.bex.ejb._CusSession_Stub.getCustomer(_CusSession_Stub.java:27)
.... 2 more
Caused by: java.lang.IllegalArgumentException: Unable to resolve the JNDI
name: serial://datasources/ORADataSource
at com.inprise.ejb.Global$TxCallback.getDataSource(Global.java:606)
at
com.borland.ejb.pm.bas.BasEjbJarLoader.getDataSource(BasEjbJarLoader.java:88
)
at
com.borland.ejb.pm.JdbcResourceManager.getDataSource(JdbcResourceManager.jav
a:44)
at com.borland.ejb.pm.JdbcResourceContext.open(JdbcResourceContext.java:192)
at com.borland.ejb.pm.TxContext.findResourceContext(TxContext.java:53)
at
com.borland.ejb.pm.JdbcEntityManager.initCmpFields(JdbcEntityManager.java:19
1)
at com.borland.ejb.pm.DataEntityManager.init(DataEntityManager.java:179)
at
com.borland.ejb.pm.DataEntityManager.createTrustedPrimaryKey(DataEntityManag
er.java:62)
at
com.inprise.ejb.deployment.CMP2EntityDescriptor.convertToTrustedPK(CMP2Entit
yDescriptor.java:66)
at com.inprise.ejb.EntityHome.convertToTrustedPK(EntityHome.java:125)
at com.inprise.ejb.EntityHome.find(EntityHome.java:239)
at com.inprise.ejb.EJBHome.invoke(EJBHome.java:340)
at com.inprise.ejb.EJBHome.access$300(EJBHome.java:6)
at com.inprise.ejb.EJBHome$LocalStrategyImpl.invoke(EJBHome.java:1091)
at
com.bex.ejb.TMasCusHomePOAInvokeHandler.findByPrimaryKey(TMasCusHomePOAInvok
eHandler.java:36)
at
com.bex.ejb.TMasCusHomePOAInvokeHandler.findByPrimaryKey(TMasCusHomePOAInvok
eHandler.java:70)
at com.bex.ejb._TMasCusHome_Stub.findByPrimaryKey(_TMasCusHome_Stub.java:28)
at com.bex.ejb.CusSessionBean.getCustomer(CusSessionBean.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:32)
at com.inprise.ejb.EJBContext.invoke(EJBContext.java:166)
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1301)
at com.inprise.ejb.Dispatcher.invokeSecurityCheck(Dispatcher.java:1023)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:816)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:595)
at com.inprise.ejb.EJBHome.dispatcherInvokeBeanMethod(EJBHome.java:55)
at
com.inprise.ejb.EJBHome$ComponentInterfaceMethodCache.invokeDispatcherMethod
(EJBHome.java:1502)
at com.inprise.ejb.EJBHome.invokeDispatcherMethod(EJBHome.java:34)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:416)
at
com.bex.ejb.CusSessionPOAInvokeHandler.getCustomer(CusSessionPOAInvokeHandle
r.java:35)
at
com.bex.ejb.CusSessionPOAInvokeHandler.getCustomer(CusSessionPOAInvokeHandle
r.java:69)
at com.bex.ejb.CusSessionPOA._invoke(CusSessionPOA.java:63)
at com.bex.ejb.CusSessionPOA._invoke(CusSessionPOA.java:43)
at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2693)
at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:109)
at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte
rceptorManager.java:110)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.j
ava:824)
at
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapt
er.java:68)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAda
pter.java:1106)
at
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.j
ava:106)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
-- Return value from getCustomer(PSGL_S): ..."
Thanks very much!! Really appreciate if anyone can give me a hint as I'm
stucked in this step for a few weeks already!!
"Lori M Olson (TeamB)" <javadragon (AT) techie (DOT) com> wrote
| Quote: | hyun chang wrote:
I followed every step as indicated in the whitepaper, and simply don't
understand why it's not working.
The error message I would get is "..IllegalArgumentException: Unable to
resolve //the JNDI name".."
I tried to search a bit on the net if there were similar cases, and
there
are a few forums where they include the c:...ora92/jdbc into the PATH
variable, and if I do this, then I would get that the method run
successfully, but the Return value would be a ClassCastException...
You are leaving out all the interesting and helpful information on these
exceptions. Let's see some more complete traces from them, then maybe
we can help.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|