WebSphere Portal Server - Problem in link with a datasource in a portal jsp

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > February 2004 > Problem in link with a datasource in a portal jsp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem in link with a datasource in a portal jsp
gui13

2004-01-19, 3:01 pm

Hi all,

In my theme default.jsp, I use a class which call a datasource.
This class could be found as a jar file in the websphere lib repository.
The problem is that in portal log file System.out, I've got the message :
[12/9/03 15:55:06:271 CET] 7cb4ab67 ConnectionFac I J2CA0122I: Resource
reference jdbc/darvasys could not be located, so default values of the
following are used: [Resource-ref settings]

res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
res-resolution-control: 999 (undefined)
[Other attributes]

isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)

For a web application or a portlet, I know it's possible to define these
parameters
in the web.xml, ibm-web-bnd.xmi, ibm-web-ext.xmi files.

The problem is how to do that in my case ?
Which web.xml should I use ?

I've tried with the web.xml in the web-inf repository (the one which is
on the same level than theme repository)
but it doesn't work.

if anybody could help me ... all ideas are welcome !

Thanks in advance.

alex

2004-02-25, 9:36 am

For normal web application, this problem relate to the "Resource"==>"
reference" setting in web.xml.
you can try to add the reference(javax.sql.DataSource's JNDI reference) in
web.xml.
I am not so sure in portlet application, or maybe in portlet.xml.
Tell me the result please, once you fix the problem.

Good Luck
"gui13" <guillaume.bellivierdeprin@darva.com> wrote in message
news:br4s9l$19lq$1@news.boulder.ibm.com...
> Hi all,
>
> In my theme default.jsp, I use a class which call a datasource.
> This class could be found as a jar file in the websphere lib repository.
> The problem is that in portal log file System.out, I've got the message :
> [12/9/03 15:55:06:271 CET] 7cb4ab67 ConnectionFac I J2CA0122I: Resource
> reference jdbc/darvasys could not be located, so default values of the
> following are used: [Resource-ref settings]
>
> res-auth: 1 (APPLICATION)
> res-isolation-level: 0 (TRANSACTION_NONE)
> res-sharing-scope: true (SHAREABLE)
> res-resolution-control: 999 (undefined)
> [Other attributes]
>
> isCMP1_x: false (not CMP1.x)
> isJMS: false (not JMS)
>
> For a web application or a portlet, I know it's possible to define these
> parameters
> in the web.xml, ibm-web-bnd.xmi, ibm-web-ext.xmi files.
>
> The problem is how to do that in my case ?
> Which web.xml should I use ?
>
> I've tried with the web.xml in the web-inf repository (the one which is
> on the same level than theme repository)
> but it doesn't work.
>
> if anybody could help me ... all ideas are welcome !
>
> Thanks in advance.
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com