archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Höller <mar...@xss.co.at>
Subject Re: Trouble deploying Archiva 1.0 to JBoss 4.2.2.GA
Date Wed, 23 Jan 2008 10:09:22 GMT
Hi!

On Monday 21 January 2008 wrote Leon Davis:
> Hi I have been trying to deploy the latest version of
> the Archiva war to JBoss version 4.2.2 without
> success. Has anyone else been successful in deploying
> the latest version of Archiva to JBoss?

I just had the same problem as you had and did not find a perfect solution
but at least archiva is running now.

What I did was basically following this wiki entry:
http://docs.codehaus.org/display/MAVENUSER/Archiva+on+JBoss

Step 1) as described

Step 1a) is to restart JBoss to make it recognize the new driver.

Step 2) as described but adding an additional datasource:

  <local-tx-datasource>
     <jndi-name>archiva</jndi-name>
     <connection-url>jdbc:derby:database/archiva;create=true</connection-url>
     <driver-class>org.apache.derby.jdbc.EmbeddedDriver</driver-class>
     <user-name>sa</user-name>
     <password></password>
     <min-pool-size>5</min-pool-size>
     <max-pool-size>20</max-pool-size>
     <idle-timeout-minutes>5</idle-timeout-minutes>
     <track-statements/>
  </local-tx-datasource>

Step 3) is not needed as the mentioned resource-ref is alread there.

Step 3a) is to comment this entry out from web.xml

  <!--
  <resource-ref>
     <res-ref-name>mail/Session</res-ref-name>
     <res-type>javax.mail.Session</res-type>
     <res-auth>Container</res-auth>
     <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>
  -->

It would probably be better to configure this resource somehow but I don't
know how to do this. Any suggestions?

Step 4) as descibed with the addition to add the following:

  <resource-ref>
    <res-ref-name>jdbc/archiva</res-ref-name>
    <jndi-name>java:/archiva</jndi-name>
  </resource-ref>

Step 5) and 6) as descibed.


Comments (especially about setp 3a) are very welcome!

hth,
- martin
-- 
Martin Höller                   | martin.hoeller@xss.co.at
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Mime
View raw message