Open dinox0r opened 11 years ago
I have never user portlet. But it looks like you don't have Spring context.
The Spring context is there, both the org.springframework.web.context.ContextLoaderListener
and org.springframework.web.context.request.RequestContextListener
are in the web.xml
, the applicationContext.xml
is placed in the WEB-INF
directory.
In fact, if I remove the applicationContext.xml
file from the WEB-INF
I got a FileNotFoundException
I've tried to do some combinations in the web.xml
, commenting several configuration lines of the file, still same result.
If you want, I can post the test project
Yes. It'll be very helpfull.
Same problem here. In my project, the error only occurs after a Hot Deployment. If I restart the server afterwards, the initialization succeeds.
@xpoft Sorry for the delay, here is the repo for the test project
I found what the problem was, I put the configContextLocation
parameter in the WEB-INF/web.xml
file, but the addon loading routine requires to be in the portlet.xml
file, like this:
<portlet>
...
<portlet-class>ru.xpoft.vaadin.SpringVaadinPortlet</portlet-class>
<init-param>
<name>beanName</name>
<value>mainUI</value>
</init-param>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/applicationContext.xml</value>
</init-param>
...
</portlet>
The add-on documentation miss this configuration point, can you please update it?
I want to create an archetype for this vaadin7-liferay6-spring-porlet, so it will save time for others, can I contribute it to the project?
I got the following stacktrace trying to run the addon in liferay 6.1.1, I made the adjustments for portlets indicated in the documentation site, but still can't make it work, I even tried some modifications (e.g:
@Scope("session")
, changing theweb.xml
to use theVaadinServlet
instead theSpringVaadinServlet
, etc) but I keep getting the same exception:(BTW, can you post a demo of the spring portlet integration in the demo page?)
(Vaadin version 7.1.0, Addon version 2.0)