Hi Hakon,
Do you reference "workflowdb" a bean property for Spring injection somewhere in
your codebase? For instance one might expect an applicationContext for data
source that includes something like:
Leif
--- On Mon, 11/10/08, Håkon Sagehaug <[EMAIL PROTECTED]> wrote:
> From: Håkon Sagehaug <[EMAIL PROTECTED]>
> Subject: Re: Using JNDI in axis 2 web service in tomcat
> To: axis-user@ws.apache.org
> Date: Monday, November 10, 2008, 3:45 AM
> Hi
>
> Any hnit on how to solve this issue
>
> Håkon
>
> 2008/11/6 Håkon Sagehaug
> <[EMAIL PROTECTED]>
>
> > Hi
> >
> > I'm trying to use a jndi datasource in a web
> service that runs in axis2
> > under tomcat. Here in my configuration of the context
> element inside
> > /conf/server.xml
> >
> > docbase="axis2" reloadable="true"
> > crossContext="true"
> cachingAllowed="false">
> >
> > auth="Container"
> > type="javax.sql.DataSource"
> > maxActive="5"
> maxIdle="2" maxWait="1000"
> > removeAbandoned="true"
> removeAbandonedTimeout="60"
> > username="user"
> password="password"
> > driverClassName="org.postgresql.Driver"
> >
> url="jdbc:postgresql://hostname/Workflows" />
> >
> >
> >
> > I've got the same for a web app, just path and
> docbase attribute is
> > different for a web app, and this works fine, so but
> when I call the web
> > service I get this response
> >
> >
> > A connection could not be obtained for driver class
> "javax.sql.DataSource"
> > and URL "null". You may have specified an
> invalid URL.
> >
> > So I guess the web service or axis servlet does not
> see the configuration,
> >
> > Any tips how to solve this??
> >
> > Håkon
> >
> > --
> > Håkon Sagehaug, Software Developer
> > Parallab, Bergen Center for Computational Science
> (BCCS)
> > UNIFOB AS (University of Bergen Research Company)
> >
>
>
>
> --
> Håkon Sagehaug, Software Developer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]