Re: war deployment: "Name jdbc is not bound in this Context"

From: Mike Schrag (mschra..dimension.com)
Date: Wed Jul 09 2008 - 09:34:18 EDT

  • Next message: Chuck Hill: "Re: Maven Optimism"

    This is a fake error. You can ignore it. It throws an exception if
    you're not using JNDI for a connection pool IIRC.

    ms

    On Jul 9, 2008, at 9:15 AM, Trent Larson wrote:

    >
    > When I build my application as a war and drop it into Tomcat, the
    > server seems to start OK but as soon as I try to browse to the
    > application and it attempts to access the DB, I get the following
    > error:
    >
    > javax.naming.NameNotFoundException: Name jdbc is not bound in this
    > Context
    > at org.apache.naming.NamingContext.list(NamingContext.java:
    > 344)
    > at org.apache.naming.NamingContext.list(NamingContext.java:
    > 352)
    > at org.apache.naming.NamingContext.list(NamingContext.java:
    > 352)
    > at org.apache.naming.NamingContext.list(NamingContext.java:
    > 367)
    > at
    > org.apache.naming.SelectorContext.list(SelectorContext.java:306)
    > at javax.naming.InitialContext.list(InitialContext.java:395)
    > at
    > com
    > .webobjects
    > .jdbcadaptor.JDBCContext.setupJndiConfiguration(JDBCContext.java:310)
    > at
    > com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:197)
    > at
    > com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java:
    > 362)
    > at
    > com
    > .webobjects
    > .jdbcadaptor.JDBCContext._channelWillOpen(JDBCContext.java:505)
    > at
    > com.webobjects.jdbcadaptor.JDBCChannel.openChannel(JDBCChannel.java:
    > 111)
    > at
    > com
    > .webobjects
    > .eoaccess
    > .EODatabaseContext._openChannelWithLoginPanel(EODatabaseContext.java:
    > 1907)
    > ....
    >
    > I have successfully run the sample application from the tutorial as
    > a war file. I have successfully run my application within Eclipse
    > and from the generated command-line script. It creates the war file
    > (from the 'compileAndBuild' Ant target) and some things are not in
    > the right place, so I have to manually tweak some of the deployment
    > paths for the frameworks in the package; maybe the problem is
    > something along those lines.
    >
    > Any suggestions are appreciated. Thanks!
    > Trent
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Jul 09 2008 - 09:35:16 EDT