You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Timo Meinen <ti...@googlemail.com> on 2010/03/26 14:12:18 UTC
Re: tomcat maven plugin datasource
Is the 'initialize' phase of maven executed?
Timo
2010/3/26 Pid <pi...@pidster.com>:
> On 26/03/2010 02:01, fachhoch wrote:
>>
>> I am having trouble setting datasource
>>
>> here is my configration for datasource
>>
>> <Context>
>>
>> <Resource name="jdbc/artmsDataSource" auth="Container"
>> type="javax.sql.DataSource"
>> username="username" password="password"
>> driverClassName="oracle.jdbc.driver.OracleDriver"
>> url="myurl"/>
>>
>>
>> </Context>
>>
>>
>> and here my pom configration
>
> Perhaps you meant to include the server.xml? Rather than a POM, which
> doesn't tell me anything about what Tomcat is actually using.
>
>
> p
>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>tomcat-maven-plugin</artifactId>
>> <version>1.0-beta-1</version>
>> <configuration>
>>
>> <path>/artms</path>
>>
>>
>> <contextFile>${basedir}/context.xml</contextFile>
>> <reload>automatic</reload>
>> </configuration>
>> <dependencies>
>> <dependency>
>> <groupId>commons-dbcp</groupId>
>> <artifactId>commons-dbcp</artifactId>
>> <version>1.2.2</version>
>> <scope>compile</scope>
>> </dependency>
>> <dependency>
>> <groupId>com.oracle</groupId>
>> <artifactId>ojdbc</artifactId>
>> <version>14</version>
>> <scope>compile</scope>
>> </dependency>
>> </dependencies>
>> </plugin>
>>
>>
>> am I missing anything ? my application fails starting, complaining cannot
>> find datasource ,please tell me what am I doing wrong ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Glück Auf
Timo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org