You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Prem kalyan <pr...@gmail.com> on 2004/09/29 15:03:07 UTC
javax.naming.NotContextException
Hi all,
I was trying to run an application on geronimo. While starting the
server I got the following exception.
java.sql.SQLException: Io exception: JNDI Package
failurejavax.naming.NotContextException: Not an instance of DirContext
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
The application is reading the folowing property from a properties file
java.naming.factory.url.pkgs = org.apache.geronimo.naming
when i comment the above line the application is running.
any help in this regard would be great.
thanx in advance.
--
regards,
prem
Re: javax.naming.NotContextException
Posted by David Jencks <da...@yahoo.com>.
You should not need a jndi.properties file to run geronimo, since there
is a NamingProperties gbean (in the system plan) that is supposed to be
used to set these properties as System properties. Did you add the
jndi.properties file or is it still, despite my efforts, included with
geronimo?
Either way, this exception is rather odd, in that it appears that the
Oracle driver is relying on particular jndi settings in its
environment. Does the Oracle documentation discuss this?
thanks
david jencks
On Sep 29, 2004, at 6:03 AM, Prem kalyan wrote:
> Hi all,
>
> I was trying to run an application on geronimo. While starting the
> server I got the following exception.
>
> java.sql.SQLException: Io exception: JNDI Package
> failurejavax.naming.NotContextException: Not an instance of DirContext
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
> at
> oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
> at
> oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java
> :365)
> at
> oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:140)
>
> The application is reading the folowing property from a properties file
>
> java.naming.factory.url.pkgs = org.apache.geronimo.naming
>
> when i comment the above line the application is running.
>
> any help in this regard would be great.
>
> thanx in advance.
> --
> regards,
> prem
>