archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Kamradt" <>
Subject RE: Archiva/Tomcat config help
Date Mon, 29 Sep 2008 17:56:29 GMT
If you want to squelch the '/' URL, putting in a blank index.html or
index.jsp (or one that redirects to archiva) in the webapps/ROOT
directory should do that.  By putting the archiva context.xml into the
webapps/ROOT/META-INF, it probably confused Tomcat as to what to run
when it finds a /archiva path. 

-----Original Message-----
From: waaraa1331 [] 
Sent: Monday, September 29, 2008 10:49 AM
Subject: RE: Archiva/Tomcat config help

it was suggested I do that because we did not want the default tomcat
web page to come up.  We wanted to just go to the IP address and have
archiva startup without needing the webapp manager to deploy it
manually.  I don't know if thats a good enough reason to get rid of ROOT
but I just want to let you know there was a purpose for doing that.  If
you still think it should be done i shall do it.

Randy Kamradt wrote:
> Adding files to the webapps/ROOT directory was probably not a good 
> idea, that's a special case directory intended for handling the '/'
URL path.
> See if you can restore the webapps/ROOT directory and restart tomcat.
> -----Original Message-----
> From: waaraa1331 []
> Sent: Monday, September 29, 2008 10:29 AM
> To:
> Subject: Re: Archiva/Tomcat config help
> So far I have downloaded the webapp .WAR file.  I have setup 
> apache-tomcat and was able to get the default tomcat homepage.  I put 
> the war file in a folder named archiva which i made on the same level 
> as the tomcat conf directory.  Inside conf/Catalina/localhost i made 
> the archiva.xml file which looks like this
> <?xml version="1.0" encoding="UTF-8"?> <Context path="/archiva"
>           docBase="${catalina.home}/archiva/apache-archiva-1.1.1.war">
>  <Resource name="jdbc/users" auth="Container"
> type="javax.sql.DataSource"
>            username="user"
>            password="pass"
>            driverClassName="com.mysql.jdbc.Driver"
>            url="jdbc:mysql:///;create=true" />
>  <Resource name="jdbc/archiva" auth="Container"
> type="javax.sql.DataSource"
>            username="pass"
>            password="pass"
>            driverClassName="com.mysql.jdbc.Driver"
>            url="jdbc:mysql:///;create=true" />
>  <Resource name="mail/Session" auth="Container"
>             type="javax.mail.Session"
>   "localhost"/>  </Context>
> *address and DB names have been changed but the IP's work and the DBs 
> exist and the users exist*
> I also downloaded derby-, activation-1.1.jar, 
> derbytools- and mail-1.4.jar and put those in the lib 
> folder.
> I also made webapps/ROOT/META-INF/context.xml file which is the same 
> as the file above.  I have been using the following two sites for most

> of my config setup.
> I have downloaded the mysql connector to the tomcat lib folder and 
> tried it in the webapps/ROOT/WEB-INF/lib folder as well and it nothing
> If you have any other questions please let me know. Hope this helps.
> --
> View this message in context:
> tm
> l
> Sent from the archiva-users mailing list archive at

View this message in context:
Sent from the archiva-users mailing list archive at

View raw message