Hi all!
I have an interesting update: I'm trying to execute my portlet on Liferay 6 Tomcat bundled and...surprise! The exception is raised however!!!
Exactly the same problem (after server restart all OK, after deploy KO).
So, the problem is not specific of Jboss (and its classloader) but is a portlet problem!
Here paste the portlet.xml:
1<portlet>
2 <portlet-name>PortletBE</portlet-name>
3 <display-name>Back End</display-name>
4 <portlet-class>org.apache.portals.bridges.struts.StrutsPortlet</portlet-class>
5 <init-param>
6 <name>ServletContextProvider</name>
7 <value>com.liferay.util.bridges.struts.LiferayServletContextProviderWrapper</value>
8 </init-param>
9 <init-param>
10 <name>check-auth-token</name>
11 <value>false</value>
12 </init-param>
13 <init-param>
14 <name>EditPage</name>
15 <value>/portlet_action/edit</value>
16 </init-param>
17 <init-param>
18 <name>HelpPage</name>
19 <value>/portlet_action/help</value>
20 </init-param>
21 <init-param>
22 <name>ViewPage</name>
23 <value>/portlet_action/list</value>
24 </init-param>
25 <expiration-cache>0</expiration-cache>
26 <supports>
27 <mime-type>text/html</mime-type>
28 <portlet-mode>edit</portlet-mode>
29 <portlet-mode>help</portlet-mode>
30 </supports>
31 <portlet-info>
32 <title>Back End</title>
33 <short-title>Portlet BE</short-title>
34 <keywords>Portlet BE</keywords>
35 </portlet-info>
36 <security-role-ref>
37 <role-name>administrator</role-name>
38 </security-role-ref>
39 <security-role-ref>
40 <role-name>power-user</role-name>
41 </security-role-ref>
42 <security-role-ref>
43 <role-name>user</role-name>
44 </security-role-ref>
45 </portlet>
and the liferay-portlet.xml:
1<portlet>
2 <portlet-name>PortletBE</portlet-name>
3 <portlet-url-class>com.liferay.portal.apache.bridges.struts.LiferayStrutsPortletURLImpl</portlet-url-class>
4 <use-default-template>true</use-default-template>
5 <header-portlet-css>/html/portlet/style/style.css</header-portlet-css>
6 <header-portlet-javascript>/html/portlet/script/script.js</header-portlet-javascript>
7 <header-portlet-javascript>/html/portlet/script/jquery-1.4.4.min.js</header-portlet-javascript>
8 </portlet>
There are any problems with
org.apache.portals.bridges.struts.StrutsPortlet portlet type and
com.liferay.util.bridges.struts.LiferayServletContextProviderWrapper ServletContextProvider??? There are mistakes that I'm not seeing?
The portlet was created by the example on the SVN repository of Liferay (http://svn.liferay.com/repos/public/plugins/trunk/portlets/sample-struts-portlet).
Thanks for your attention.
Please sign in to flag this as inappropriate.