cancel
Showing results for 
Search instead for 
Did you mean: 

Error after update 1.2RC1 to RC2

plaugraud
Champ in-the-making
Champ in-the-making
Hello,

today I upgraded Alfresco 1.1.2 successfully to 1.2RC1.
Then I updated the alfresco.war to RC2, and now there are some depoyment error at JBoss start:

2006-02-14 16:27:58,452 INFO  [org.alfresco.repo.policy.PolicyComponentImpl] Registered class policy {http://www.alfresco.org}onContentRead (interface org.alfresco.repo.content.ContentServicePolicies$OnContentReadPolicy)
2006-02-14 16:27:58,512 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'systemBootstrap' while setting property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeIndexer' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'indexerComponent' while setting property 'indexer';
……
nested exception is java.lang.NumberFormatException: For input string: "${lucene.commit.lock.timeout}"], [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [long] for property 'lockPollInterval'; nested exception is java.lang.NumberFormatException: For input string: "${lucene.lock.poll.interval}"]
PropertyAccessExceptionsException (3 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [long] for property 'writeLockTimeout'; nested exception is java.lang.NumberFormatException: For input string: "${lucene.write.lock.timeout}"
java.lang.NumberFormatException: For input string: "${lucene.write.lock.timeout}"
       at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48 )
       at java.lang.Long.parseLong(Long.java:403)
        …
        …
— Incompletely deployed packages —
org.jboss.deployment.DeploymentInfo@f39f8cbb { url=file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war/ }
  deployer: org.jboss.web.tomcat.tc5.Tomcat5@72d873
  status: Deployment FAILED reason: URL file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war/ deployment failed
  state: FAILED
  watch: file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1139931834240
  lastModified: 1139931750000
  mbeans:

— MBeans waiting for other MBeans —
ObjectName: jboss.web.deployment:war=alfresco.war,id=-207647557
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war/ deployment failed

— MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
ObjectName: jboss.web.deployment:war=alfresco.war,id=-207647557
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.0.2/server/default/deploy/alfresco.war/ deployment failed

—————————————-

Deployment is on plain jboss 4.0.2 (Linux)

Thx for advice.
Regards, Rudolf.
5 REPLIES 5

teamkrusty
Champ in-the-making
Champ in-the-making
There is a bug in the way spring initializes the alfresco context.  If you set your jboss log4j.xml to "ERROR" instead of "DEBUG" this error will disappear.  This is just a workaround.  Also make sure your alfresco spring files are in the jboss/conf directory.

gavinc
Champ in-the-making
Champ in-the-making
If you upgraded just the WAR file to RC2 you will need to remove the configuration files in /opt/jboss-4.0.2/server/default/conf/alfresco and also /opt/jboss-4.0.2/server/default/conf/ehcache.xml and /opt/jboss-4.0.2/server/default/treecache.xml.

The configuration approach has changed for 1.2, allowing us to perform upgrades more smoothly in the future.

Have a look at the following wiki docs for more info:

http://www.alfresco.org/mediawiki/index.php/Release_1.2RC2
http://www.alfresco.org/mediawiki/index.php/Upgrading_1.2

plaugraud
Champ in-the-making
Champ in-the-making
I already removed ../conf/alfresco, ehcache.xml treecache.xml before upgrade from 1.1.2 to 1.2RC1. Then alfresco 1.2RC1 worked.
But after upgrade from RC1 to RC2 I had those problems.
At the moment I don't have any of the obove config files.

What are the upgrade steps from 1.2RC1 to RC2 ?
Or should I downgrade to RC1 ?

Regards, Rudolf.

gavinc
Champ in-the-making
Champ in-the-making
OK.

I think I see what is happening, in repository.properties there are 3 new properties:

lucene.write.lock.timeout=10000
lucene.commit.lock.timeout=100000
lucene.lock.poll.interval=100

I'm guessing you have re-configured Alfresco to point to your own repository.properties file?

If that's the case you either need to add these properties to your file or configure the "repository-properties" spring bean to include our files and additionally add your which can then only contain the things to override. Have a look at http://www.alfresco.org/mediawiki/index.php/Repository_Configuration for details on doing this.

Hope this helps.

plaugraud
Champ in-the-making
Champ in-the-making
Thank you Gavin, for the prompt reply.

Yes, I re-configured the repository.properties. And I did a mistake: I copied the RC1-repository.properties to the RC2-alfresco.war.

Now I changed the dir.root= in the original repository.properties and then Alfresco-1.2RC2 was deployed correctly at first go.

Best regards, Rudolf.