I have deployed archiva-1.2.2 successfully to glassfish before,
and I'm upgrading to archiva-1.3.1.
I have undeployed archiva-1.2.2, and then deploy the new archiva-1.3.1.
And the error occurred.
Thank you,
Lenik
On 2010-7-8 09:45, Deng Ching wrote:
Hi,
I'm not sure you were able to successfully deploy Archiva to Glassfish
already, but if not, the instructions in the following link might help:
https://cwiki.apache.org/ARCHIVA/archiva-on-glassfish-with-mysql.html
https://cwiki.apache.org/ARCHIVA/archiva-on-glassfish-with-derby.html
Thanks,
Deng
On Wed, Jul 7, 2010 at 9:49 PM, Lenik<[email protected]> wrote:
Sorry I post this again, in the last post the version of glassfish is
wrong, so fix it here:
Archiva 1.3.1
GlassFish Server Open Source Edition 3.0.1 (build 22)
Linux 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686
GNU/Linux
$ asadmin deploy --contextroot archiva apache-archiva-1.3.1.war
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception
while loading the app : java.lang.Exception:
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'urlFailureCache' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'cache#url-failures-cache' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'cache#url-failures-cache': Post-processing of the
FactoryBean's object failed; nested exception is
org.springframework.beans.factory.BeanInitializationException: Failed to
invoke plexus lifecycle Initializable.initialize on
cache#url-failures-cache; nested exception is
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException:
A previous cache with name [url-failures-cache] exists.
Command deploy failed.
$ asadmin deploy --force --contextroot archiva apache-archiva-1.3.1.war
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception
while loading the app : java.lang.Exception:
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'urlFailureCache' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'cache#url-failures-cache' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'cache#url-failures-cache': Post-processing of the
FactoryBean's object failed; nested exception is
org.springframework.beans.factory.BeanInitializationException: Failed to
invoke plexus lifecycle Initializable.initialize on
cache#url-failures-cache; nested exception is
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException:
A previous cache with name [url-failures-cache] exists.
Command deploy failed.
$ asadmin list-applications
hello<web>
WEB-INF<web>
hudson-1.337<web>
Command list-applications executed successfully.