geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v2cg4ss <ssel...@datamentors.com>
Subject Re: Archiva install on Geronimo 2.1.4
Date Thu, 28 May 2009 14:57:47 GMT

After a couple of posts on the Archiva-Users forum I got Archiva 1.2
installed on Geronimo 2.1.4:

1.  Updated the deployment plan with the latest versions, the one that got
me was the javamail:

<?xml version="1.0" encoding="UTF-8"?>
<web:web-app
	xmlns:gernaming="http://geronimo.apache.org/xml/ns/naming-1.2"
	xmlns:geronimo="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
	xmlns:persistence="http://java.sun.com/xml/ns/persistence"
	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
	xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 ">
	<sys:environment>
		<sys:moduleId>
			<sys:groupId>org.apache.maven.archiva</sys:groupId>
			<sys:artifactId>archiva</sys:artifactId>
			<sys:version>1.2</sys:version>
		</sys:moduleId>
		<sys:dependencies>
			<sys:dependency>
				<sys:groupId>console.dbpool</sys:groupId>
				<sys:artifactId>archiva</sys:artifactId>
			</sys:dependency>
			<sys:dependency>
				<sys:groupId>org.apache.geronimo.configs</sys:groupId>
				<sys:artifactId>javamail</sys:artifactId>
				<sys:version>2.1.4</sys:version>
				<sys:type>car</sys:type>
			</sys:dependency>
			<sys:dependency>
				<sys:groupId>commons-lang</sys:groupId>
				<sys:artifactId>commons-lang</sys:artifactId>
				<sys:version>2.3</sys:version>
				<sys:type>jar</sys:type>
			</sys:dependency>
			<sys:dependency>
				<sys:groupId>commons-collections</sys:groupId>
				<sys:artifactId>commons-collections</sys:artifactId>
				<sys:version>3.2</sys:version>
				<sys:type>jar</sys:type>
			</sys:dependency>
		</sys:dependencies>
		<sys:hidden-classes>
			<sys:filter>org.apache.commons.lang.</sys:filter>
			<sys:filter>org.apache.commons.collections.</sys:filter>
		</sys:hidden-classes>
	</sys:environment>

	<web:context-root>/archiva</web:context-root>
	<gernaming:resource-ref>
		<gernaming:ref-name>jdbc/archiva</gernaming:ref-name>
		<gernaming:resource-link>archiva</gernaming:resource-link>
	</gernaming:resource-ref>
	<gernaming:resource-ref>
		<gernaming:ref-name>jdbc/users</gernaming:ref-name>
		<gernaming:resource-link>archiva</gernaming:resource-link>
	</gernaming:resource-ref>
	<gernaming:resource-ref>
		<gernaming:ref-name>mail/Session</gernaming:ref-name>
		<gernaming:resource-link>mail/MailSession</gernaming:resource-link>
	</gernaming:resource-ref>
</web:web-app>

2.  Based on the Tomcat install instructions I set the GERONIMO_OPTS and the
JAVA_OPTS.

set JAVA_OPTS=-XX:PermSize=256m -XX:MaxPermSize=256m -Xms512m -Xmx1024m
set GERONIMO_OPTS=-Dappserver.home="%GERONIMO_HOME%"
-Dappserver.base="%GERONIMO_HOME%\archiva"

3.  Updated the MySQL user security.

GRANT INDEX,ALTER ON archiva.* TO archiva@localhost IDENTIFIED BY 'archiva';

4.  I had a big glassfish appserver-rt.jar so I had to update the
struts.properties file in the war.

struts.multipart.maxSize=20971520


After that all was well with the deploy and start of the application, the
only difference I have found between the Tomcat and Geronimo install is the
archiva logs.  With the Tomcat install the archiva logs are going to the
archiva\logs folder, but with Geronimo the logging is sent to the Geronimo
var\log folder.


kevan wrote:
> 
> 
> On May 27, 2009, at 2:54 PM, v2cg4ss wrote:
> 
>>
>> The 2.1.4 worked, but now when the application is started I get the
>> following:
> 
> <snip>
>>
>> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
>> Configuration org.apache.maven.archiva/archiva/1.2/war failed to  
>> start due
>> to the following reasons:
>>  The service
>> J2EEApplication 
>> =null,j2eeType=WebModule,name=org.apache.maven.archiva/archiva/1.2/war
>> did not start because ContainerBase.addChild: start:  
>> LifecycleException:
>> java.io.IOException: Context did not start for an unknown reason
>>
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .kernel 
>> .config 
>> .ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java: 
>> 485)
>> 	... 16 more
>>
>> Any Ideas???
> 
> Did Archiva log an exception? This typically means that your App  
> Context did not start properly.
> 
> --kevan
> 
> 

-- 
View this message in context: http://www.nabble.com/Archiva-install-on-Geronimo-2.1.4-tp23747944s134p23763484.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message