Hi!
I have problem configuring DS. after client starts i got this:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: ejbFindByPrimaryKey: OperatorEJB.makeConnection: Unable to connect t
o database!OracleDS not bound
I have allready placed oracle-service.xml as attached one to JBoss. To have sure, i have restarded JBoss server, JDBC Oracle jars are located in $JBOSS_HOME/lib (nls classess too)
I have added to my bean some lines:
java.util.Hashtable env = new java.util.Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "thomas:1099");
env.put("java.naming.factory.url.pkgs", "org.jnp.interfaces");
System.err.println("OperatorEJB.makeConnection");
try
{
InitialContext ic = new InitialContext(env);
DataSource ds = (DataSource) ic.lookup("java:/OracleDS");
con = ds.getConnection("user", "pass");
I have tried to lookup("OracleDS");
what can cause problem here?
some messages that are shown during startup:
13:55:00,358 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=OracleDS does not implement any Service methods
13:55:22,408 INFO [OracleDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS'
where is the problem?