RE: Deploy trunk on tomcat

2006-11-13 Thread Brian E. Fox
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
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuecontinuum/value
  /parameter
  parameter
nameurl/name
valuejdbc:jtds:sqlserver://machine:1433/continuum/value
  /parameter
  parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuecontinuum/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/users
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuecontinuum-users/value
  /parameter
  parameter
nameurl/name
valuejdbc:jtds:sqlserver://machinem:1433/continuum/value
  /parameter
  parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuecontinuum-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:[EMAIL PROTECTED] 
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:[EMAIL PROTECTED]
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

Re: Deploy trunk on tomcat

2006-11-03 Thread Emmanuel Venisse
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(AbstractPers
istenceManagerFactory.java:175)
 at
org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP
ersistenceManagerFactory.java:212)
 at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers
istenceManagerFactoryImpl.java:99)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
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(Abstr
actConfigurableJdoFactory.java:108)
 at
org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstrac
tConfigurableJdoFactory.java:75)
 at
org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceMan
agerFactory(AbstractConfigurableJdoFactory.java:43)
 at
org.apache.maven.continuum.store.JdoContinuumStore.initialize(JdoContinu
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(AbstractPers
istenceManagerFactory.java:171)
 at
org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP
ersistenceManagerFactory.java:212)
 at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers
istenceManagerFactoryImpl.java:99)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
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(Abstr
actConfigurableJdoFactory.java:108)





RE: Deploy trunk on tomcat

2006-11-03 Thread Brian E. Fox
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:[EMAIL PROTECTED] 
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)
 




Deploy trunk on tomcat

2006-11-02 Thread Brian E. Fox
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(AbstractPers
istenceManagerFactory.java:175)
 at
org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP
ersistenceManagerFactory.java:212)
 at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers
istenceManagerFactoryImpl.java:99)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
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(Abstr
actConfigurableJdoFactory.java:108)
 at
org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstrac
tConfigurableJdoFactory.java:75)
 at
org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceMan
agerFactory(AbstractConfigurableJdoFactory.java:43)
 at
org.apache.maven.continuum.store.JdoContinuumStore.initialize(JdoContinu
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(AbstractPers
istenceManagerFactory.java:171)
 at
org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP
ersistenceManagerFactory.java:212)
 at
org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers
istenceManagerFactoryImpl.java:99)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
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(Abstr
actConfigurableJdoFactory.java:108)