• 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: Sun Application server JDBC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sun Application server JDBC


  • Subject: Re: Sun Application server JDBC
  • From: 時期 精霊 <email@hidden>
  • Date: Wed, 16 Nov 2005 16:48:31 +0100

Hi again,

After much search and try, I found the following:


INFO 2005-11-16 16:06:08,992 [httpWorkerThread-80-2] - javax.naming.NameNotFoundException: No object bound to name java:comp/ env/jdbc/java:comp/env/jdbc/Nadesico
at com.sun.enterprise.naming.NamingManagerImpl.lookup (NamingManagerImpl.java:668)
at com.sun.enterprise.naming.java.javaURLContext.lookup (javaURLContext.java:132)
at com.sun.enterprise.naming.SerialContext.lookup (SerialContext.java:288)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.webobjects.jdbcadaptor.JDBCContext.setupJndiConfiguration (JDBCContext.java:285)
at com.webobjects.jdbcadaptor.JDBCContext.connect (JDBCContext.java:165)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect (JDBCContext.java:331)
at com.webobjects.jdbcadaptor.JDBCContext._channelWillOpen (JDBCContext.java:468)
at com.webobjects.jdbcadaptor.JDBCChannel.openChannel (JDBCChannel.java:81)



I think webobjects has the following problem:

When it ask the app server for the content of web.xml, it expect something like jdbc/Nadesico. But it receive the complete url (java:comp/env/jdbc/Nadesico) because of a "feature" of the app server.

Then WO append the url to java:com/env/jdbc because it expect to have the full url.

Any idea of a work around?

Where this is implement in WO?

I'll also ask on a sun mailing list about how to disable this in the server.

Regards

Kuon
On Nov 16, 2005, at 4:46 AM, 時期 精霊 wrote:

Hello,

Yea, I found it, but it's not working.

http://lists.apple.com/archives/Webobjects-deploy/2003/Dec/ msg00009.html

(Having EOF using directly the Driver work)

I don't know what's wrong.

Thanks anyway

regards

Kuon
On Nov 16, 2005, at 2:09 AM, Owen McKerrow wrote:

Yes,

Check the archives ( possible OmniGroup ones ). We played with that a while back and ended up sending out an email explaining the hoops we had to jump through to get it to work.

I can't seem to locate it now, must be on a back up CD somewhere, but we did send it to the list.

Owen

On 16/11/2005, at 10:52 AM, 時期 精霊 wrote:

Hello,

I try to deploy an application to sun application server.

I got the following problem:

An exception occurred while trying to open a channel: java.lang.RuntimeException: Exception during lookup: javax.naming.NameNotFoundException: No object bound for java:comp/ env/jdbc/Nadesico [Root exception is java.lang.NullPointerException]


in my sun-web.xml:

<resource-ref>
<res-ref-name>jdbc/Nadesico</res-ref-name>
<jndi-name>java:comp/env/jdbc/Nadesico</jndi-name>
</resource-ref>

I tried a lot of combinaison (<jndi-name>jdbc/Nadesico</jndi- name> for an example)

in web.xml I got:

<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/Nadesico</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>


I have an oracle database, and I have the oracle pool configured on my application server.

Anybody know if webobjects has specials things to do to get it working?

regards

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


This email sent to email@hidden

Owen McKerrow WebMaster, emlab http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

People who prefer typing to pointing then seem to prefer acronyms to save typing :-)
-Denis Stanton, On people using Command Line Interfaces




_______________________________________________ WebObjects-dev mailing list email@hidden http://www.omnigroup.com/mailman/listinfo/webobjects-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Sun Application server JDBC
      • From: 時期 精霊 <email@hidden>
References: 
 >Sun Application server JDBC (From: 時期 精霊 <email@hidden>)
 >Re: Sun Application server JDBC (From: Owen McKerrow <email@hidden>)
 >Re: Sun Application server JDBC (From: 時期 精霊 <email@hidden>)

  • Prev by Date: Re: WOTextField
  • Next by Date: EOModeler 5.3 (Xcode2.2) many-to-many SQL generation bug
  • Previous by thread: Re: Sun Application server JDBC
  • Next by thread: Re: Sun Application server JDBC
  • Index(es):
    • Date
    • Thread