🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #421

Re: JNDI Connection Problem

#421
From: Paul Furbacher [TeamB]
Date: Sat, 03 Dec 2005 06:45
61 lines
3343 bytes
Tom wrote:

> Steven - did you ever find a solution for this?  I'm having trouble 
> getting a JNDI database resource set up within JBuilder 2006.  I can get 
> it to work with Tomcat outside of Jbuilder, but not within JBuilder (due 
> to fact that Jbuilder is managing the .xml/tomcat config - still trying 
> to figure this out.)  Do you know where I can find a definitive set of 
> instructions for configuring a JNDI database resource within Jbuilder 2006?

I don't think this has changed from earlier versions.
Currently, I have a rather large Web app that I'm
maintaining using JBuilder 2006, and I have no
problems with this.

The key issue is that you have to work with JBuilder's
management of the server8080.xml file, and the context
files.  There's plenty of good reading on editing these
files in the newsgroup archives, and if you avail yourself
to that resource, you'll save us a lot of typing.

Keywords:  "server8080" edit

Also look up datasource definition in the archives.

Finally, look at the context files in your project
dir/Tomcat/conf.  Suppose I have a context called
"commerce".  There'll be a "jb-commerce.xml" file
there, initially only when you run your server
(runtime configuration).  Do the editing thing
described in the archives.  Do the adding of
datasource definition as described in the
archives.

It works.  Once you get it to work, you'll
probably immediately grok why it works.
I remembered being befuddled the first time
I had to set this up.  But then, it was, how
do they say it?  Intuitive.

Finally, this is actually a "servlets-jsp"
or "enterprise" newsgroup topic because it's
more a question about configuring the server
and not about the database.  If you have
further questions, post to either of those
two newsgroups (but not both).


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <43913ece$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42c3a0a6$1@newsgroups.borland.com> <42c879ec$1@newsgroups.borland.com> <43913a32$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,2417608254d405db
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 03 Dec 2005 01:45:20 -0500
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.database
Subject: Re: JNDI Connection Problem
References: <42c3a0a6$1@newsgroups.borland.com> <42c879ec$1@newsgroups.borland.com> <43913a32$1@newsgroups.borland.com>
In-Reply-To: <43913a32$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.194.228
Message-ID: <43913ece$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133592270 69.142.194.228 (2 Dec 2005 22:44:30 -0700)
Lines: 61
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail