This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have problem configuring the Oracle8i Database with JBoss 3.0.2, I have copied the oracle-service.xml to the deploy directory and made appropriate changes to suit my database and the JNDI name is configured as OracleDS. I have also copied the classes12.zip,classes11.zip to the lib directory as specified in documentation. I tried context lookup with JNDI names "java:/OracleDS" and got error "Java Not bound" then I tried "OracleDS" and got the same error in my client program. I should also mention that I have the habit of first checking the JNDI and context obtaining in any new app server configuration before venturing into Bean Deployment.This is mainly to avoid major cryptic error messages after deployment which would take more time to debug.Therefore I am using a simple java Client and not EJB Client to check the DataSource configuration Please let me know where exactly I am going wrong Thanks in advance Regards K.Muthukumaran
Hi. I don't know exactly the solution to your problem. But What has helped me a lot whenever I have this annoying "name not bound" is to use the jmx-console in JBoss. http://localhost:8080/jmx-console/ Have you tried it? have you tried to use the JNDIView in Jboss section? you can then check the Global JNDI Namespace and see if the jndi name you define is there and it is in the correct place. not an answer again, but it's worth to check it. hope it helps.
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Joined: Sep 17, 2002
I tried the link for changing my name it says The requested URL /cgi-bin/ultimatebb.cgi was not found on this server. Well regarding my problem, I actually tried to access the datasource from a simple application, but from the discussion forums at www.jboss.org I understand that the Data Source in JBoss 3.0.2 can be accesed in the same jvm ie when i deployed a session EJB referring above datasource as "java:/OracleDS" then thigs worked perfectly. But I do not understand why the datasource configured in an app server (JBoss in this case) is not usable by a simple java program Could anybody explain why it is so? Anyway, only http://localhost:8080/jmx-console and the JNDIVIEW assured me that I have to refer to the datasource as "jaava:/OracleDS" Thanks anyway Rgds
Marilyn de Queiroz
Joined: Jul 22, 2000
I apologize for the bad link, Muthukumaran. I've fixed it now. It should be: http://www.coderanch.com/forums/user/profile/. It is also available as the "my profile" link under the "new post" and "edit post" buttons. [ September 27, 2002: Message edited by: Marilyn de Queiroz ]
I hope much of the talk is here about Oracle configuration with JBoss. Can someone of you please point out where I can find the oracle-service.xml file? Please excuse me for my ignorance. I do not know if I need to create this somehow. Thanks in advance.
Joined: Sep 17, 2002
Hi Krishna, Sorry for the delay in response file - oracle-service.xml is located at <JBOSS_HOME>\docs\examples\jca for example C:\jboss\jboss-3.0.2\docs\examples\jca Rgds Kala