archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hilco Wijbenga" <>
Subject Re: Running Archiva WAR on JBoss 4.0.5
Date Sat, 16 Dec 2006 01:29:32 GMT
Woohoo! I got it to work. Just in case somebody wants to know how...

(I'm running the 'default' JBoss configuration.)

1. copy archiva-webapp/src/main/webapp/WEB-INF/lib/derby-
into $JBOSS_HOME/server/default/lib;

2. create $JBOSS_HOME/server/default/deploy/derby-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
      <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
      <!-- Datasources are not available outside the virtual machine -->
      <!-- for in-process persistent db, saved when jboss stops. The
      org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db
shutdown -->
      <!-- The driver class -->
      <!-- The login and password -->
      <!-- The minimum connections in a pool/sub-pool. Pools are
lazily constructed on first use -->
      <!-- The maximum connections in a pool/sub-pool -->
      <!-- The time before an unused connection is destroyed -->
      <!-- Whether to check all statements are closed when the
connection is returned to the pool,
           this is a debugging feature that should be turned off in
production -->

3. edit archiva-webapp/src/main/webapp/WEB-INF/web.xml and add
(somewhere between <web-app> and </web-app>);

4. create archiva-webapp/src/main/webapp/WEB-INF/jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>

5. rerun 'mvn install' (to update the WAR with the updated web.xml and

6. deploy the new WAR and Archiva should work.

DISCLAIMER: I'm not, by any stretch of the word, an expert on JBoss so
this is probably not the *best* way to do it ... but it works. :-)

View raw message