• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: deploy on tomcat and jdbc name context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: deploy on tomcat and jdbc name context


  • Subject: RE: deploy on tomcat and jdbc name context
  • From: "Ruenagel, Frank" <email@hidden>
  • Date: Fri, 17 Jun 2005 14:25:02 +0200

Hi,

I have filed this as a bug:

JDBCContext.setupJndiConfiguration()  throws an
Exception  "javax.naming.NameNotFoundException: Name jdbc is not bound in
this Context"
even if JNDI is not used by the EO-Model.

The exception is thrown every time, when a connection is established.

This happens for me with tomcat on windows.

I found that to resolve this, you'll have to configure the context in tomcat
with useNaming="false" *and* must disable Tomcat's user
authentification in server.xml. This means that you cannot
use the admin and manager applications any more...
:-(

Perhaps somebody has a better idea for a workaround?
Alternatively you can simply ignore it.

HTH
Frank


> -----Original Message-----
> From: Paolo Sommaruga [mailto:email@hidden]
> Sent: Friday, June 17, 2005 1:39 PM
> To: WebObjects Development
> Subject: deploy on tomcat and jdbc name context
>
>
> I am trying to migrate our WO application to WO 5.3, deployed in
> tomcat 5.5.9 in a solaris box. The first problem I have met was with
> the database connection. The exception was:
>
> - An exception occurred while trying to open a channel:
> com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot create JDBC
> driver of class '' for connect URL 'null'
>
> Then I have commented the <resource-ref> section in the web.xml
> generated by Xcode 2.1 following the suggestion reported in the
> description
>
> <resource-ref>
>      <description>The data source to be used by EOF. If there are
> multiple data sources,
>                   then the definition below must be used to
> configure
> which JDBC URL (Model) should
>                   use which data source. If EOF should use a JDBC
> driver directly, this section must be commented out</description>
>      <res-ref-name>jdbc/DefaultDataSource</res-ref-name>
>      <res-type>javax.sql.DataSource</res-type>
>      <res-auth>Container</res-auth>
>    </resource-ref>
>
> With this the application starts and seems work correctly but /logs/
> catalina.out frequently reports this exception:
>
> - 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)
> ....
>
> Has anyone reported the same issue ? I don't know figure me why
> tomcat needs looks jdbc name. In the server.xml all the reference to
> jdbc are commented by default, and none reference to the jdbc
> context
> seems to appear in the other configuration files.
> There is a way to disable tomcat to lookup jdbc name ?
>
> Regards
>
>
>          Paolo Sommaruga
>
>
>
>
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
email@hidden

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • RE: deploy on tomcat and jdbc name context
      • From: "Ricardo Cortes" <email@hidden>
  • Prev by Date: Re: Vertical inheritance cascade deletes
  • Next by Date: Stand-alone J2SE server
  • Previous by thread: Re: deploy on tomcat and jdbc name context
  • Next by thread: RE: deploy on tomcat and jdbc name context
  • Index(es):
    • Date
    • Thread