Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andrey Filippov
Spring contexts issue after migrating to 6.1 GA2
August 16, 2012 2:45 AM
Answer

Andrey Filippov

Rank: New Member

Posts: 18

Join Date: October 21, 2010

Recent Posts

Hi there,
I am migrating project of the Web type from 6.1 to 6.1.1 and just ran into a strange behaviour. We have StartUpAction class defined in the poart.properties where we do some init stuff. Besides that we have a custom sppring context defined in our web.xml:
 1<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 2    <context-param>
 3        <param-name>contextConfigLocation</param-name>
 4        <param-value>/WEB-INF/classes/META-INF/*-spring.xml</param-value>
 5    </context-param>
 6    <listener>
 7        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 8    </listener>
 9</web-app>

So the problem is that in 6.1 version custom spring context was initialized first and then portlet context, that started StartUpAction. In 6.1.1 the order of contexts loading changed and consequently StartUpAction failed to complete.
I wonder what could be wrong..?
Thx.
Andrey Filippov
RE: Spring contexts issue after migrating to 6.1 GA2
August 20, 2012 12:45 PM
Answer

Andrey Filippov

Rank: New Member

Posts: 18

Join Date: October 21, 2010

Recent Posts

Still no solution found...
Shinn Lok
RE: Spring contexts issue after migrating to 6.1 GA2
August 20, 2012 1:00 PM
Answer

Shinn Lok

LIFERAY STAFF

Rank: Junior Member

Posts: 67

Join Date: January 14, 2011

Recent Posts

Andrey Filippov
RE: Spring contexts issue after migrating to 6.1 GA2
August 22, 2012 2:22 AM
Answer

Andrey Filippov

Rank: New Member

Posts: 18

Join Date: October 21, 2010

Recent Posts

Thanks a lot