|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Archiva install on Geronimo 2.1.4I'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> |
|
|
Re: Archiva install on Geronimo 2.1.4I got some feedback from someone in the Geronimo forum and they said to update the java mail to 2.1.4. That worked, but now when the application is started I get the following:
start of org.apache.maven.archiva/archiva/1.2/war failed org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.maven.archiva/archiva/1.2/war failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:580) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:544) 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:832) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$7be39eff.startConfiguration(<generated>) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:563) ... 14 more 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???
|
|
|
Re: Archiva install on Geronimo 2.1.4On Wed, May 27, 2009 at 12:01 PM, v2cg4ss <sselvia@...> wrote:
> > I got some feedback from someone in the Geronimo forum and they said to > update the java mail to 2.1.4. That worked, but now when the application is > started I get the following: ... > Any Ideas??? Is there anything in Archiva's log files? Can you deploy the same war to a simple Servlet container like Tomcat or Jetty? -- Wendy |
|
|
Re: Archiva install on Geronimo 2.1.4Yes I was able to follow the Tomcat 6.xx instructions and all installed/setup properly:
http://archiva.apache.org/docs/1.2/adminguide/webapp.html I was really hoping to use Geromino ???
|
|
|
Re: Archiva install on Geronimo 2.1.4On Wed, May 27, 2009 at 1:06 PM, v2cg4ss <sselvia@...> wrote:
> > Yes I was able to follow the Tomcat 6.xx instructions and all installed/setup > properly: > http://archiva.apache.org/docs/1.2/adminguide/webapp.html > I was really hoping to use Geromino ??? Sure, I was just trying to rule out a problem with the webapp itself. Are you getting any log files from Archiva? -- Wendy |
|
|
Re: Archiva install on Geronimo 2.1.4No Archiva logs but in the Geronimo log I am getting:
2009-05-27 17:08:05,859 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'registry#commons-configuration' defined in null: Could not resolve placeholder 'appserver.base' From the tomcat install instructions you need to set the appserver.base and .home, so would I need to set the GERONIMO_OPTS as I did with the CATALINA_OPTS??? Thanks... Scott
|
|
|
Re: Archiva install on Geronimo 2.1.4After 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.
|
| Free embeddable forum powered by Nabble | Forum Help |