Tuesday, October 7, 2008

Liferay 5.1.2 with WebSphere 6.1 [Temp fix]

Liferay 5.1.2 contains a new spring version. While start up of app server an error occurs.
------------------------------------------------------------------------------------------
org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
java.lang.TypeNotPresentException: Type javax.annotation.Resource not present
...
java.lang.ClassNotFoundException: javax.annotation.Resource
------------------------------------------------------------------------------------------
To fix this error you need to download the geronimo-annotation_1.0_spec-1.1.1.jar of the Apache Geronimo project and copy it to /Web-INF/lib.
See this post for a complete tutorial of deploying Liferay in WebSphere.

Hint:
In Liferay 5.1.2 contains still some crazy bugs like wrong virtual hosts and lazy db connections i do not recommend it for production (with websphere)
Change log

Update: To Fix the wrong virtual host settings go to Enterprise Admin > Settings and replace "localhost" with your virtual host (appserver).

2 Kommentare:

Lorenzo said...

I've posted my experience with LR&WAS at [HOWTO] Liferay on Websphere.
Still have problems with portlet deployment.
Is it the same for you?

Regards,
Lorenzo

eichelgartenweg said...

hi lorenzo,
portlet deployment works for me.

take a look at these posts:
Portlet Deployment in Liferay's Portlet Container
Portlet Deployment in WebSpheres's Portlet Container

Greets Marcel