Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Simon Prinzleve
Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - liferay 4.3.5)
May 25, 2008 12:42 PM
Answer

Simon Prinzleve

Rank: Junior Member

Posts: 48

Join Date: December 2, 2007

Recent Posts

Dear group,

I have troubles upgrading liferay to Version 5.0.1.

Background:
I run liferay version 4.3.5 on Jboss 4.2 (was the bundle installation) with a mysql database.

1. Step: Upgrade to 4.4.2
This worked without problems after following the steps from the wiki.

2. Step: Upgrade from 4.4.2 to 5.0.1
When following the steps from the wiki (copy dependencies and deploy WAR file) I got the following error from Jboss:

2008-05-25 19:39:43,108 INFO [STDOUT] 19:39:43,103 ERROR [WSDDDeployableItem:560] Unable to deploy typemapping: {http://model.blogs.portlet.liferay.com}BlogsCategorySoap
java.lang.ClassNotFoundException: com.liferay.portlet.blogs.model.BlogsCategorySoap
etcetc.

And the end I get:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.liferay.portlet.blogs.service.BlogsCategoryService.transaction' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:378)

As an alternative I tried a different approach:
I downloaded the new 5.0.1. JBoss 4.2. bundle - and copied the whole Folder ROOT.war to my 4.4.2 portal.
Then I got the following exception:

2008-05-25 19:18:15,856 INFO [STDOUT] 19:18:15,851 INFO [[/tunnel-web]:631] Initializing Spring root WebApplicationContext
2008-05-25 19:18:15,917 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)/Tomcat-5.5'
2008-05-25 19:18:17,704 ERROR [org.apache.axis.deployment.wsdd.WSDDDeployableItem] Unable to deploy typemapping: {http://model.blogs.portlet.liferay.com}BlogsCategorySoap
java.lang.ClassNotFoundException: com.liferay.portlet.blogs.model.BlogsCategorySoap
etcetc

and then later:

2008-05-25 19:18:19,144 ERROR [org.apache.axis.deployment.wsdd.WSDDDeployableItem] Unable to deploy typemapping: {urn:oasis:names:tc:wsrp:v1:types}Online
java.lang.ClassNotFoundException: oasis.names.tc.wsrp.v1.types.Online



Any help would be greatly appreciated!!

Thanks in advance,

Simon
Simon Prinzleve
RE: Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - lifer
May 28, 2008 12:50 PM
Answer

Simon Prinzleve

Rank: Junior Member

Posts: 48

Join Date: December 2, 2007

Recent Posts

short update on this one:

I tried to reconstruct the errors with a clean "sandbox" installation of my version (4.3.5 JBOss 4.2 bundle) - to check if some of my changes messed the ugrade up:

The result is as before: 4.3.5 to 4.4.2 works fine - 4.4.2 to 5.0.1 fails.

The upgrade routine is run - but the jboss throws the mentioned errors.
BTW: The browser displays the following then:


An unexpected system error occurred.

javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/security/permission/PermissionChecker


Next thing I'll try is: 4.3.5 -> 4.4.9 -> 5.0.1.

If that fails i try to go JBoss 4.3.5. -> Tomcat 4.3.5 -> 4.4.2. -> 5.0.1. emoticon

One more question:
How is one supposed to deploy the war file to the JBoss?
- copy the contents to the ROOT.war folder? or
- copy the war file into the deploy folder (there will be no ROOT.war folder created then..)

As always thanks in advance - and I'm gonna keep you updated...
Simon Prinzleve
RE: Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - liferS
May 28, 2008 12:57 PM
Answer

Simon Prinzleve

Rank: Junior Member

Posts: 48

Join Date: December 2, 2007

Recent Posts

Sorry for spamming again - but I also noted the following:

When restoring my sandbox 4.3.5. (mySQL restore + old dependencies + old ROOT.war folder) I get the following errors.
However - liferay seems to work.

2008-05-28 19:51:30,881 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)

and

2008-05-28 19:51:55,145 ERROR [com.liferay.portal.lucene.IndexWriterFactory] Unable to create a new writer
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\Users\sprinzle\liferay\lucene\0\write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:70)

just FYI (maybe somebody knows?)
Eric Devlin
RE: Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - lifer
May 28, 2008 4:57 PM
Answer

Eric Devlin

Rank: Regular Member

Posts: 154

Join Date: February 19, 2008

Recent Posts

Hey,
I moved the jms directory from the deploy directory and the error first went away. Those lucene lock files aren't always cleaned up on exit check in your home directory for a liferay/lucene directory and clean that out.
Eric
Simon Prinzleve
RE: Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - lifer
May 29, 2008 2:37 AM
Answer

Simon Prinzleve

Rank: Junior Member

Posts: 48

Join Date: December 2, 2007

Recent Posts

Hi Eric,

thanks a lot!
I wasn't aware of those folders - cleaning them helped against the error!

How about the other working folders like the hibernate ones? I clean them now as well... emoticon

For the rest of the upgrade:
I'm still confused about deployment on JBoss - and started a seperate thread for that: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/903169

At least restoring my old 4.3.5 version worked finally without problems - it seems that using the ROOT.war from the bundle was one key step to achieve that.

More to come...
Anika Hofmann
RE: Deployment error on upgrade to 5.0.1. (from Jboss 4.2 - lifer
July 25, 2008 5:32 AM
Answer

Anika Hofmann

Rank: New Member

Posts: 14

Join Date: December 9, 2007

Recent Posts

Hi!

I'm trying the upgrade from 4.4.2 to 5.0 (with jboss 4.0 on mac osx) at the moment and I get the same error!

(Thread: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1110353)

Does anybody have an idea?

Thanks!

Anika

P.S:
BTW: I'm also coming from 4.3.5