• 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
deploy on tomcat and jdbc name context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

deploy on tomcat and jdbc name context


  • Subject: deploy on tomcat and jdbc name context
  • From: Paolo Sommaruga <email@hidden>
  • Date: Fri, 17 Jun 2005 13:39:13 +0200

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: deploy on tomcat and jdbc name context
      • From: Cliff Tuel <email@hidden>
  • Prev by Date: Re: WO, MySQL and UTF-8 issue
  • Next by Date: Re: Vertical inheritance cascade deletes
  • Previous by thread: WO freelancer Hamburg/Germany
  • Next by thread: Re: deploy on tomcat and jdbc name context
  • Index(es):
    • Date
    • Thread