Foros de discusión

RE: jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Nam

thumbnail
Wayne Christian, modificado hace 14 años.

jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Name j

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
Help. Any ideas what to check? This is on Mac OSX 10.5, using the liferay tomcat bundle

03:09:15,683 ERROR [DataSourceFactoryBean:71] Unable to lookup jdbc/LiferayPool
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.liferay.portal.kernel.jndi.JNDIUtil._lookup(JNDIUtil.java:169)
Alex Leshinsky, modificado hace 12 años.

JNDI lookup error on Glassfish 3.1 and Oracle

New Member Mensajes: 3 Fecha de incorporación: 1/12/11 Mensajes recientes
I'm replying to this thread only because I couldn't find a way to post a new one, must be because of my low credentials.
Anyway, I spent considerable time trying to set up Liferay 6 on an existing Glassfish using existing Oracle. All on the same dev box.

portal-ext.properties

jdbc.default.driverClassName=oracle.jdbc.driver.OracleDriver
jdbc.default.url=jdbc:oracle:thin:@localhost:1521:xe
jdbc.default.username=liferay
jdbc.default.password=pwd
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect

Steps
- start Glassfish
- create a jdbc pool named jdbc/LiferayPool to the database specified above and make sure ping is successful
- stop Glassfish
- ant deploy (from liferay home)
- start Glassfish

server.log
[#|2011-12-01T22:02:39.963-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|22:02:39,941 ERROR [DataSourceFactoryBean:74] Unable to lookup jdbc/LiferayPool
javax.naming.NamingException: Lookup failed for 'java:comp/env/jdbc/LiferayPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/jdbc/LiferayPool]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)

Please help. Thanks.
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Nam

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
Can you try by deleting jdbc/LiferayPool you created
Alex Leshinsky, modificado hace 12 años.

RE: jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Nam

New Member Mensajes: 3 Fecha de incorporación: 1/12/11 Mensajes recientes
I did like you've suggested. Removed the pool from Glassfish resources.
Same result.
server.log
[#|2011-12-02T10:04:12.806-0500|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|10:04:12,779 ERROR [DataSourceFactoryBean:74] Unable to lookup jdbc/LiferayPool
javax.naming.NamingException: Lookup failed for 'java:comp/env/jdbc/LiferayPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/jdbc/LiferayPool]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
Alex Leshinsky, modificado hace 12 años.

RE: jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Nam

New Member Mensajes: 3 Fecha de incorporación: 1/12/11 Mensajes recientes
Could somebody help me with issue please?
I'm a Principal Software Engineer with decades of experience and if even I cannot do it following your instructions, something is not right.
I'm evaluating this product for a client and if it cannot be set up on some existing infrastructure as opposed to some "bundles", I'll be forced to recommend looking elsewhere.
Thanks!
thumbnail
Nagendra Kumar Busam, modificado hace 12 años.

RE: jdbc error with 5.2.3 startup - javax.naming.NameNotFoundException: Nam

Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
Have you changed anything with respect to jndi in portal-ext.properties