Hello,
I'm trying to install archiva 1.3.1 on Ubuntu 10.04. I did everything like on  
the guide.
http://archiva.apache.org/docs/1.3.1/adminguide/webapp.html

But I needed to change somewhat because Ubuntu is a little bit different.
There are two directories, one is 
CATALINE_HOME = /usr/share/tomcat6 
and the other is 
CATALINA_BASE = /var/lib/tomcat6

* created archiva directory in /usr/share/tomcat6 because there are the bin/ 
and lib/ directories.
* created archiva.xml in /usr/lib/tomcat6/conf/Catalina/localhost
* copied derby-10-6-1-0.jar, activation-1.1.1.jar and mail-1.4.1.jar to 
/usr/share/tomcat6/lib

I have no idea where to put CATALINA_OPTS="-Dappserver.home=$CATALINA_HOME -
Dappserver.base=$CATALINA_HOME".

I attached it to JAVA_OPTS, I changed the init.d script, I even extract the 
archive and changed the WEB-INF/classes/application.properties.
I still get the same exception.

Where should I put the CATALINA_OPTS?

Sep 24, 2010 7:52:41 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 24, 2010 7:54:33 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/archiva'
Sep 24, 2010 7:54:33 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Sep 24, 2010 7:54:35 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'xmlRpcUserRepositories' defined in ServletContext resource [/WEB-
INF/applicationContext.xml]: Cannot resolve reference to bean 
'userRepositories' while setting constructor argument; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userRepositories': FactoryBean threw exception on object creation; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'roleManager' defined in URL 
[jar:file:/var/lib/tomcat6/webapps/archiva/WEB-INF/lib/redback-rbac-role-
manager-1.2.3.jar!/org/codehaus/plexus/redback/role/DefaultRoleManager.class]: 
Initialization of bean failed; nested exception is 
javax.jdo.JDODataStoreException: Failed initialising database. Please check 
that your database JDBC driver is accessible, and the database URL and 
username/password are correct. Exception : Cannot create 
PoolableConnectionFactory (Failed to create database 
'/path/to/database/users', see the next exception for details.)
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Failed to create database 
'/path/to/database/users', see the next exception for details.)

-- 
Erwin Mueller, [email protected]
http://www.global-scaling-institute.de/

Reply via email to