« Return to Thread: Archiva install on Geronimo 2.1.4

Re: Archiva install on Geronimo 2.1.4

by v2cg4ss :: Rate this Message:

Reply to Author | View in Thread

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.

v2cg4ss wrote:
I'm getting the following when deploying the Archiva 1.2 war, I followed the wiki entry and changed the versions were they applied based on the content of the geronimo repository.  Also below the stack trace is the deployment plan:

http://cwiki.apache.org/ARCHIVA/archiva-on-geronimo-202-with-mysql-backend.html

Any more wiki's on deployment???

Unable to create configuration for deployment
org.apache.geronimo.common.DeploymentException: Unable to create configuration for deployment
        at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:150)
        at org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:130)
        at org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:110)
        at org.apache.geronimo.j2ee.deployment.EARContext.<init>(EARContext.java:68)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:530)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.maven.archiva/archiva/1.2/war failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:328)
        at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:287)
        at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111)
        at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:147)
        ... 17 more
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Error starting configuration gbean org.apache.maven.archiva/archiva/1.2/war
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:353)
        at org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:313)
        ... 21 more
Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Missing dependency: org.apache.geronimo.configs/javamail/2.0.2/car
        at org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:113)
        at org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:410)
        at org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:327)
        at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:272)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:349)
        ... 23 more

<?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.0.2</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>

 « Return to Thread: Archiva install on Geronimo 2.1.4