留言板
Wicket Portlet in Liferay
Hi,
I'm trying to develop an Apache Wicket-portlet with Netbeans. I've downloaded and installed the plugin Wicket 1.4 Support from geertjan on http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586.
Currently i'm using Liferay 5.2.3 with tomcat-6.0.18 (i deployed my Wicket-app in Tomcat 6.0.18 as well).
I added following libs in my Liferay:
- portlet_20.jar from http://www.jcp.org/aboutJava/communityprocess/final/jsr286/index.html
- portals-bridges-common-1.0.4.jar from http://portals.apache.org/bridges/download.html
- log4j-1.2.15.jar from http://logging.apache.org/log4j/1.2/download.html
- slf4j-api-1.5.8, slf4j-log4j12-1.5.8.jar, slf4j-jdk14-1.5.8.jar from http://www.slf4j.org/download.html
and „jaxb-api.jar“ from https://jaxb.dev.java.net/servlets/ProjectDocumentList
I installed my war-File and i got the following error message:
I'm trying to develop an Apache Wicket-portlet with Netbeans. I've downloaded and installed the plugin Wicket 1.4 Support from geertjan on http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586.
Currently i'm using Liferay 5.2.3 with tomcat-6.0.18 (i deployed my Wicket-app in Tomcat 6.0.18 as well).
I added following libs in my Liferay:
- portlet_20.jar from http://www.jcp.org/aboutJava/communityprocess/final/jsr286/index.html
- portals-bridges-common-1.0.4.jar from http://portals.apache.org/bridges/download.html
- log4j-1.2.15.jar from http://logging.apache.org/log4j/1.2/download.html
- slf4j-api-1.5.8, slf4j-log4j12-1.5.8.jar, slf4j-jdk14-1.5.8.jar from http://www.slf4j.org/download.html
and „jaxb-api.jar“ from https://jaxb.dev.java.net/servlets/ProjectDocumentList
I installed my war-File and i got the following error message:
Hi,
i've solved the problem. I put the libs of the current Wicket Release and not it works fine!
i've solved the problem. I put the libs of the current Wicket Release and not it works fine!
Maybe you can post the portlet to the community repository???
Sure, I'll do it tonight. Shall I post it right here as an attachment?
The Wicket-App-Integration is for our EU Project SPIKE http://www.spike-project.eu/home.html - we are going to integrate different kinds of web applications into Liferay (that will be our Portal ;) ) and Wicket is one of these Frameworks we'll use.
My Bachelorthesis is about Developing Portlets from existing Web-Apps (using Liferay Portal), so Wicket was the first.
The Wicket-App-Integration is for our EU Project SPIKE http://www.spike-project.eu/home.html - we are going to integrate different kinds of web applications into Liferay (that will be our Portal ;) ) and Wicket is one of these Frameworks we'll use.
My Bachelorthesis is about Developing Portlets from existing Web-Apps (using Liferay Portal), so Wicket was the first.
WOOT! I'll have to install it and check it out
Lisa Simpson:
WOOT! I'll have to install it and check it out
First I deployed my Wicket-App in Tomcat 6.0.18.
Then i packed the following libs in Liferay's Tomcat 6.0.18
- portlet_20.jar from http://www.jcp.org/aboutJava/communityprocess/final/jsr286/index.html
- portals-bridges-common-1.0.4.jar from http://portals.apache.org/bridges/download.html
- log4j-1.2.15.jar from http://logging.apache.org/log4j/1.2/download.html
- slf4j-api-1.5.8, slf4j-log4j12-1.5.8.jar, slf4j-jdk14-1.5.8.jar from http://www.slf4j.org/download.html
and „jaxb-api.jar“ from https://jaxb.dev.java.net/servlets/ProjectDocumentList
When you're developing with Netbeans 6.5 (or 6.5.1) and using the Wicket 1.4 Support-Plugin ( Netbeans-Plugin-Link ), then you'll get the following libs:
- wicket-1.4-rc1.jar
- wicket-auth-roles-1.4-rc1.jar
- wicket-extensions-1.4-rc1.jar
I created a portlet.xml:
<!--?xml version="1.0" encoding="UTF-8"?-->
<portlet-app>
<portlet>
<description>Bachelorarbeit</description>
<portlet-name>WicketApplication</portlet-name>
<display-name>WicketApplication</display-name>
<portlet-class>org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
<init-param>
<name>ServletContextProvider</name>
</init-param>
<init-param>
<name>wicketFilterPath</name>
<value>/wicket/*</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>WicketApplication</title>
<short-title>WicketApplication</short-title>
</portlet-info>
</portlet>
</portlet-app>
Then I deployed this Wicket-App in Liferay but there was no content available. (See my first posting in this thread! )
The cause it didn't work with these libs was that ServletContextProvider wasn't found, so i changed them with the new ones of Apache Wicket 1.4-rc6. (Here: Apache Wicket 1.4-rc6 and here you can download it: Download Apache Wicket 1.4-rc6.
This is what it's look like:
I attached my example for the Thesis.
I am very new in liferay. I need to deploy wicket in liferay 5.2 using eclipse could you help me with the steps.
Sandy K:
I am very new in liferay. I need to deploy wicket in liferay 5.2 using eclipse could you help me with the steps.
First you'll have to create an application you can deploy. Then do the steps i explained above and it should work.
Thanks for the reply.
If you share sample hello world portlet build with Apache Wicket 1.4-rc6 code that would great so I can have some idea to start with Eclipse.
Thanks in Advance.
If you share sample hello world portlet build with Apache Wicket 1.4-rc6 code that would great so I can have some idea to start with Eclipse.
Thanks in Advance.