Hi,

now that my war is build,

I would like to automatically deploy it on a Tomcat Server.
I tried the Maven Tomcat Plugin:

http://mojo.codehaus.org/tomcat-maven-plugin/

typing: mvn tomcat:run

However, this failed with:
javax.naming.NameNotFoundException: Name yourdatasource is not bound in this 
Context

The reason for this is probably our server.xml in tomcat/conf/server.xml,
where we defined custom data sources like this:

<Server port="8005" shutdown="SHUTDOWN">
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
<Resource name="yourdatasource " type="javax.sql.DataSource" auth="Container"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
                                maxActive="10" maxIdle="10"
                                maxWait="10000" username="secret"
                                password="secret" 
driverClassName="com.mysql.jdbc.Driver"
                                url="jdbc:mysql://localhost:3307/mypath"/>


Is there any way to give the tomcat plugin and or the jetty plugin access to 
our custom server.xml? The documentation doesn't say a word about this, and the 
help plugin wasn't much more helpfull in this case either! :-(

Alternatively, what else could I do to deploy my application ? - using Maven 1, 
we somehow copied the war file to the running server...

Hmmmm, migrating to Maven 2 is much harder then I've thought!!! :-(((

Thanks a lot,

Stefanie






-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to