continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian E. Fox" <bri...@reply.infinity.nu>
Subject RE: Deploy trunk on tomcat
Date Mon, 13 Nov 2006 21:59:15 GMT
For the archives:

I was able to get 1.1-SNAPSHOT deployed on Tomcat 5.0 and MSSQL 2005. I configured the resources
via the admin tool and it updated the server.xml file as follows (I was unsuccesfull in getting
the resources defined in the continum.xml)
<GlobalNamingResources>
 <ResourceParams name="jdbc/continuum">
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>4</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>continuum</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:jtds:sqlserver://machine:1433/continuum</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>net.sourceforge.jtds.jdbc.Driver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>2</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>continuum</value>
      </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/users">
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>4</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>continuum-users</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:jtds:sqlserver://machinem:1433/continuum</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>net.sourceforge.jtds.jdbc.Driver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>2</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>continuum-users</value>
      </parameter>
    </ResourceParams> 

Then in /conf/catalina/localhost/continuum.xml I have:

<?xml version='1.0' encoding='utf-8'?>
<Context displayName="Continuum Webapp" docBase="c:\continuum.war" path="/continuum" workDir="work\Catalina\localhost\continuum">
  <ResourceLink name="jdbc/continuum" type="javax.sql.DataSource" global="jdbc/continuum"/>
  <ResourceLink name="jdbc/users" type="javax.sql.DataSource" global="jdbc/users"/>
</Context>

I placed the war in the specified location and it gets extracted to webapps. (I could probably
change this but haven't tried yet).

Then to make it work on mssql, I made the changes specified in: http://jira.codehaus.org/browse/CONTINUUM-697


-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Friday, November 03, 2006 7:31 PM
To: continuum-users@maven.apache.org
Subject: RE: Deploy trunk on tomcat

Perfect, this is exactly what I needed. I would like to point this at a mssql database. This
should be straightforward because I also have a jira instance pointed there and the configuration
is also though the datasources. Are there any other known issues using mssql? 

-----Original Message-----
From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
Sent: Friday, November 03, 2006 3:24 PM
To: continuum-users@maven.apache.org
Subject: Re: Deploy trunk on tomcat

A sample tomcat 5.X conf is there : 
http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/src/test/tomcat5x/conf/Catalina/localhost/continuum.xml

Emmanuel

Brian E. Fox a écrit :
> I have seen some recent messages that indicate the trunk should work 
> on tomcat. I built the war and dropped it into tomcat but I'm getting 
> some exceptions that are related (i'm guessing) to data sources not 
> being setup. Any guidance would be appreciated.
>  
> 2006-11-02 13:34:35 StandardContext[/continuum]Exception sending 
> context initialized event to listener instance of class 
> org.codehaus.plexus.xwork.PlexusLifecycleListener
> org.jpox.exceptions.ConnectionFactoryNotFoundException: Connection 
> Factory "java:comp/env/jdbc/continuum" not found  at 
> org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPe
> rs
> istenceManagerFactory.java:175)
>  at
> org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(Abstrac
> tP
> ersistenceManagerFactory.java:212)
>  at
> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pe
> rs
> istenceManagerFactoryImpl.java:99)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
>  at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478)
>  at
> org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abs
> tr
> actConfigurableJdoFactory.java:108)
>  at
> org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstr
> ac
> tConfigurableJdoFactory.java:75)
>  at
> org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceM
> an
> agerFactory(AbstractConfigurableJdoFactory.java:43)
>  at
> org.apache.maven.continuum.store.JdoContinuumStore.initialize(JdoConti
> nu
> umStore.java:106)
> 
>  
> NestedThrowablesStackTrace:
> javax.naming.NameNotFoundException: Name jdbc is not bound in this 
> Context  at
> org.apache.naming.NamingContext.lookup(NamingContext.java:768)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
>  at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
>  at javax.naming.InitialContext.lookup(InitialContext.java:347)
>  at
> org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPe
> rs
> istenceManagerFactory.java:171)
>  at
> org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(Abstrac
> tP
> ersistenceManagerFactory.java:212)
>  at
> org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pe
> rs
> istenceManagerFactoryImpl.java:99)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
>  at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478)
>  at
> org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abs
> tr
> actConfigurableJdoFactory.java:108)
> 




Mime
View raw message