Hi Thanks for he replay, my mistake was that I had in service.xml this line
<parameter name="ServiceTCCL">composite</parameter> so when I removed this I got it to work, but thanks fro the replay cheers, Håkon 2008/11/10 Leif Olson <[EMAIL PROTECTED]> > 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: > > <bean id="dataDialect" > class="org.springframework.jndi.JndiObjectFactoryBean" scope="singleton"> > <property name="jndiName" value="jdbc/workflowdb" /> > <property name="resourceRef" value="true" /> > </bean> > > 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: [email protected] > > 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 > > > <TOMCAT_HOME>/conf/server.xml > > > > > > <Context path="/axis2" > > docbase="axis2" reloadable="true" > > > crossContext="true" > > cachingAllowed="false"> > > > > > > <Resource name="jdbc/workflowdb" > > 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" /> > > > > > > </Context> > > > > > > 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] > > -- Håkon Sagehaug, Software Developer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company)
