Inter-portlet (JSR286) in liferay portal
i had created two portlets using ADF and i can consume them in WebCenter Portal apps. Nothing has to do in the portal side as webcenter auto-wire the portlets. The question is how i can consume the portlets in liferay? is there any step required in the liferay portal site to 'wire' the portlets so that they can communicate with each other? or just like drag and drop in webcenter? I developed the portlets using the guide here: http://yonaweb.be/inter_portlet_communication_jsr_286_and_webcenter_11g_ps3
Wiring portlets together in liferay not dependend on the portlet. Because your portlets are standard based, liferay doesn't care if they are ADF portlets, JSP portlets or portlets build with other technology.
Information on how to do this in liferay should be found in the documentation of liferay: http://www.liferay.com/community/wiki/-/wiki/Main/Inter-portlet+communication
Just a question... Did you had any issues with consuming the portlets in liferay. I have tried it in the past and had lots of issues with libraries and so on. Especially because ADF uses a lot of javascript and I had a hard time configuring it properly with liferay...
Similar Messages
-
Oracle E-Business PORTLETS Exposed on Liferay PORTAL
Dear Gurus,
I have a liferay portal 5.2.1 and i'm trying to expose Oracle EBS PORTLETS on it now i'm facing the following problem
"The Service Is Not Available Temporarly" Inside Liferay and that error is displayed after exposing the PORTLETS on the liferay portal.
All Steps i have processed are exist in the following document and i reach to step #5.4
The document is named "Using Oracle Portal 10g with Oracle E-Business Suite 12.mht" and i'm trying to do the same thing on the Liferay. And This doucment is exist in metaLink.
Summary:
- I have a Liferay Portal Installed
- I have a EBS Installed on another machine
- I read the document "Using Oracle Portal 10g with Oracle E-Business Suite 12.mht" and i'm trying to do the same thing on the Liferay.
- I reach 5.4 on the document and i have 4 PORTLETS on the liferay but there is no any one runing properly
Goal:
- I want to run the EBS Portlet on the liferay
Can Anyone help me !!What i'm doing here is to deploy the .war file on the GlassFish application server (v 2.1) and then i go through the last steps and the log file contains the following messages:
[#|2010-12-13T12:42:31.341+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;_RequestID=14548697-32cd-4af7-84b7-45663be16888;|ApplicationDispatcher[/wsrp-portlet] PWC1231: Servlet.service() for servlet 2 threw exception
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: CHARS
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: CHARS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPStub.getMarkup(WSRP_v1_Markup_Binding_SOAPStub.java:957)
at com.liferay.wsrp.proxy.MarkupServiceHandler.doInvoke(MarkupServiceHandler.java:68)
at com.liferay.wsrp.proxy.MarkupServiceHandler.invoke(MarkupServiceHandler.java:47)
at $Proxy243.getMarkup(Unknown Source)
at com.liferay.wsrp.portlet.ConsumerPortlet.getMarkupResponse(ConsumerPortlet.java:432)
at com.liferay.wsrp.portlet.ConsumerPortlet.doRender(ConsumerPortlet.java:326)
at com.liferay.wsrp.portlet.ConsumerPortlet.render(ConsumerPortlet.java:168)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:66)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:625)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:707)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:421)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java from :1457)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3400)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3358)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1106)
at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:87)
at com.liferay.portal.action.UpdateLayoutAction.addPortlet(UpdateLayoutAction.java:260)
at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:211)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:585)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:562)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:237)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:181)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:240)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:37)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:444)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:230)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
{http://xml.apache.org/axis/}hostname:ds-pc -
How we develop inter-portlet communication in plumtree portal using IDK
1)How we will develop inter-portlet communication in plumtree portal using IDK .
is it possiable using Master Detail Pattern? or any other alternate way.
Regards
Dheeraj SaiThis can be done by developing Adaptive Portlets:
http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/PlumtreeDevDoc_Integration_Portlets_Adaptive_Intro.htm -
Problems with Inter-Portlet Communication in Weblogic Portal 10.3
Hi,
I'm developing a web application using Weblogic Portal 10.3.
The requirement is that the work requests have to be stored in a workbasket which can be submitted by the user at the end.
The user can create multiple request of same form.
Consider a scenario that the user creates 5 instances or work request in a single form. No he moves back to the 2nd request and modifies it. While modifying the 2nd request a validation message is thrown. Now the user navigates to Workbasket directly by selecting the Workbasket from the menu item.
Now when the user selects any one of the 5 requests, he is able to view the same validation message which is thrown as said in the above scenario. This is happening only when the user navaigates from the workbasket. If the user switches between the request, the problem is not simulated.
Someone please help me how this can be avaoided.
More Information:
Weblogic Portal 10.3
JSF 1.2
Spring
Message is thrown using the FacesMessage in JSF and is displayed in the screen using the following JSF tag.
<h:messages globalOnly="true" rendered="#{! empty facesContext.maximumSeverity}" styleClass="liststylenone"/>Hi,
Could someone pls explain which cache is used to cache portlet content and in which form the content is cached? -
Inter portlet communication, load order, portal server 7
Hi.
I�m struggling with a portlet application, which uses interportlet communication. PortletOne creates an ArrayList of objects and add the list to the portletSession. PortletTwo displays the first object in the ArrayList.
The trouble seams to be the load order of the portlets. If portletTwo loads before PortletOne, the ArrayList is empty, and it displays nothing.
Any idea how I can be sure that my page loads PortletOne before PortletTwo?If your intention is to transfer data(Array List of Objects) from from one portlet to the other, you need to use InterPortlet Communication API rather than putting the data in the session. In the first portlet set the event data and fire the event and in the second portlet, get the event data.
The order in which the events are fired is not guaranteed. i.e if portlet fires an event to portlet1, portlet2 and portlet3, the order in which the portlet1, 2 & 3 will receive the events is not guaranteed. Load order of portlets does not cause any problems. -
Inter portlet Communication - Events and Parameters
Hi,
I just tried a sample inter portlet communication using events and parameters.
I used the below code to enable inter portlet communication between two struts portlet.
UrlUtils.constructLink etc
The above works fine. Instead of link, I would like to use a form button to fire the event.
Is there any way of using button to fire the event.
Another thing I noticed is that when the event is fired the page gets refreshed.
How to enable inter portlet communication without the portal page refreshing.
Many Thanks in advance!!!!!!!!
-ChidHi Natu,
To start: read the documentation: http://download.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_java_adv.htm#CHDHDCGI
Then, you need to make sure the portlets can operate independently. That means: the locations portlet should be able to run without the incidents portlet.
What you should try to achieve is create a locations jspx that uses a page parameter with the incident number as input. The page can then be populated based on that id.
The key thing here is: input portlet variables are available as page parameters.
Then, you need to add some functionality to the incidents portlet to submit the selected incident number to the outside world. You can do this using some backing bean code. Example:
public void transmitEvent(ActionEvent actionEvent) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
Object response = externalContext.getResponse();
if (response instanceof javax.portlet.ActionResponse) {
ActionResponse actionResponse = (ActionResponse)response;
// setting the portlet OUT parameter
String outResult = "my output";
actionResponse.setRenderParameter("outParam", outResult);
} else {
// not in portlet environment
}Hope this brings you further.
Jeroen van Veldhuizen -
When i create a portlet using JDeveloper 10.1.3.2 or 9.0 + portlet extension when i deploy it to Liferay Portal all versions and when i add the portlet somewhere the portal console prints me infinitive stacktrace... and the portlet never viewed
i think the problem is somewhere in the dispatching dont know ..
any ideas ?Hi,
if you connet to OTN via a proy server, make sure this is configured in the JDeveloper preferences for browser and proxy settings. The username and password is your OTN account
Frank -
ADF application as portlet for Liferay Portal
Hi,
Is this possible to use ADF (11g or 10g) application as portlet for Liferay Portal ?
KubaHi,
ADF BC SHOULD work, not sure about RC but I would tend to say yes. Dunno about the bridge's price. You could also take a look at the latest portlet bridge specification and the MyFaces community as from what I understand on the list there, Oracle is giving its code base to MyFaces so that MyFaces Portlet-Bridge become the RI of the spec. Someone from Oracle would certainly be better suited to answer that part however.
Regards,
~ Simon -
My application portlets don't appear in the liferay portal ?
I'm trying to use liferay portal with a jsf project already created on another machine.
I installed the liferay successfully on Tomcat Apache 5.5.
I followed all the installation steps from the liferay website & they're all successful, i tried (http://localhost:8080) and it ran successfully.
Now came the step of importing my app in liferay ... I've put the (*.war) file of my app. in (webapps) folder in the liferay folder .
I also created (lportal) mysql db & imported the previous portal db in it, & edited the connection file to it in liferay(ROOT.xml).
Now i ran (startup.bat) for liferay .... liferay starts successfully in the browser but empty .... no portlets !!
Only the portlets names appear but no portlets at all(except the liferay default portlets).
When i try to access any of the portlets of my app. in the browser, the following error appears in the console :
WARN [com.liferay.portal.service.impl.PortletLocalServiceImpl] Portlet not found for 182 portlet1Name_portlet_WAR_myappName
WARN [com.liferay.portal.service.impl.PortletLocalServiceImpl] Portlet not found for 182 Portlet2Name_portlet_WAR_myappNameI tried this with liferay v(4.2) & v(4.3) and they give the same errors.
am i missing something here ?
If you need any other information, just ask me...Thanks RahulSharna .... i already sent a post to the liferay forum community ... but i didn't get any helpful response yet .... & i've to solve my problem as soon as possible.
Okay .... I found that i was having a problem in the deployment folder (Thanks yo you) ... & i fixed that.
To test things are okay i downloaded (1) of the liferay server portlets, installed it, then show it using (Add Content) and it worked perfect ..... So there's no problem with liferay itself.
Now i tried to download my own portlet war file just like the previous step .... when it started deploying it, it showed that exception in console & it didn't work :
114:27:34,968 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployDir] Processing DEPLOY_TO__Admin_Site_Portlet.war
214:27:34,984 INFO [com.liferay.portal.deploy.auto.PortletAutoDeployListener] Copying portlets for C:\Documents and Settings\Owner\liferay\deploy\DEPLOY_TO__Admin_Site_Po
3rtlet.war
4 Expanding: C:\Documents and Settings\Owner\liferay\deploy\DEPLOY_TO__Admin_Site_Portlet.war into C:\Programs\Java\liferay\temp\20071005142734984
5 Copying 1 file to C:\Programs\Java\liferay\temp\20071005142734984\WEB-INF
6 Copying 1053 files to C:\Programs\Java\liferay\bin\..\webapps\Admin_Site_Portlet
7Oct 5, 2007 2:28:18 PM org.apache.catalina.startup.HostConfig checkResources
8INFO: Undeploying context [/Admin_Site_Portlet]
9Oct 5, 2007 2:28:20 PM org.apache.catalina.core.StandardContext start
10SEVERE: Error listenerStart
11Oct 5, 2007 2:28:20 PM org.apache.catalina.core.StandardContext start
12SEVERE: Context [/Admin_Site_Portlet] startup failed due to previous errors
13Oct 5, 2007 2:28:20 PM com.icesoft.faces.util.event.servlet.ContextEventRepeater contextDestroyed
14INFO: Servlet Context Name: null, Server Info: Apache Tomcat/5.5.23
15 Copying 1 file to C:\Programs\Java\liferay\bin\..\webapps\Admin_Site_Portlet
16 Deleting directory C:\Programs\Java\liferay\temp\20071005142734984
17Oct 5, 2007 2:29:31 PM org.apache.catalina.startup.HostConfig checkResources
18INFO: Reloading context [/Admin_Site_Portlet]
19Oct 5, 2007 2:29:31 PM org.apache.catalina.core.StandardContext stop
20INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Admin_Site_Portlet] has not been started
21Oct 5, 2007 2:29:31 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
22INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
23Oct 5, 2007 2:29:31 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
24INFO: Reading config jar:file:/C:/Programs/Java/liferay/webapps/Admin_Site_Portlet/WEB-INF/lib/icefaces-comps.jar!/META-INF/faces-config.xml
25Oct 5, 2007 2:29:31 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
26INFO: Reading config jar:file:/C:/Programs/Java/liferay/webapps/Admin_Site_Portlet/WEB-INF/lib/jsf-components-core-1.1-SNAPSHOT.jar!/META-INF/faces-config.xml
27Oct 5, 2007 2:29:31 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
28INFO: Reading config jar:file:/C:/Programs/Java/liferay/webapps/Admin_Site_Portlet/WEB-INF/lib/just-ice.jar!/META-INF/faces-config.xml
29Oct 5, 2007 2:29:31 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
30INFO: Reading config jar:file:/C:/Programs/Java/liferay/webapps/Admin_Site_Portlet/WEB-INF/lib/myfaces-all-1.1.1.jar!/META-INF/faces-config.xml
31.
32.
33.
34.
35.
36INFO: ServletContext 'C:\Programs\Java\liferay\webapps\Admin_Site_Portlet\' initialized.
3714:31:03,593 INFO [com.liferay.portal.deploy.hot.PluginPackageHotDeployListener] Reading plugin package for Admin_Site_Portlet
3814:31:03,734 INFO [com.liferay.portal.deploy.hot.PluginPackageHotDeployListener] Plugin package Admin_Site_Portlet/admin-site/1.0-SNAPSHOT/war registered successfully
3914:31:03,750 INFO [com.liferay.portal.deploy.hot.PortletHotDeployListener] Registering portlets for Admin_Site_Portlet
4014:31:08,703 ERROR [com.liferay.portal.kernel.deploy.hot.HotDeployUtil] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Admin_Site_Portlet
41com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for Admin_Site_Portlet
42 at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:371)
43 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:85)
44 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:42)
45 at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:45)
46 at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39)
47 at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:52)
48 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
49 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
50 at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
51 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
52 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
53 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
54 at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
55 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
56 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
57 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
58 at java.lang.Thread.run(Thread.java:595)
59Caused by: java.lang.ClassCastException: org.apache.myfaces.portlet.MyFacesGenericPortlet
60 at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:152)
61 ... 16 moreAny suggestions ? -
Migrate portlets deployed on Liferay to WebCenter
Is there a way to convert a JSR-168 portlet WSRP portlet so that it can be deployed on WebCenter?
The latest version of JDeveloper (11.1.2) supports importing of Maven projects but it does not support creation of WebCenter Applications.
The Version 11.1.1.5 of JDeveloper Supports WebCenter Application creation but we were unable to import a maven project. We Want to port our portlets (JSR 168) running on liferay to WebCenter.
Any hints on same would be helpful.
ThanksI tell this also in all my courses I give.
Standards are good but in the end when you migrate from one system to another, you almost always end up with rewriting the whole app...
Most of the time you are interacting with the portal itself from within your portlet which completly removes the idea of loose coupling between portlet and portal.
Then there is the JSR168 standard. If you are using inter portlet communication then you are using some special technique owned by the portal which measn that it cannot be migrated.
Another thing is security. WebCenter does not work according the JEE roles which means that if you have defined security in your portlets in Liferay and used security, it will not work in webcenter unless you use WS-Security and configure quite a lot of mapping and security stores.
SO as you can see, standards are good and well but in the end they are more a pain in the .... -
Weblogic 9.1 - problems running Liferay portal
I'm working on getting the Liferay portal 3.6.1 working on Weblogic 9.1.
Anyone here succesfully got it working!?
So far i can get the ear file to deploy and start ok, but when i access the page in a browser i get alot of Exceptions.
I have tried Liferay on several other App Server, but have never run into these Exceptions before.
Any ideas what they mean here?
CET> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@cb3542 - name: '
/', context-path: ''] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1117)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:152)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:181)
Truncated. see log file for complete stacktrace
>
org.quartz.SchedulerException: The Scheduler has been shutdown.
at org.quartz.core.QuartzScheduler.validateState(QuartzScheduler.java:535)
at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:579)
at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:238)
at com.liferay.portal.job.JobScheduler.scheduleJob(JobScheduler.java:67)
at com.liferay.portal.job.JobScheduler.schedule(JobScheduler.java:61)
at com.liferay.portlet.mail.job.Scheduler.schedule(Scheduler.java:39)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:321)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:493)
at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:424)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:124)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:494)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:95)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:124)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Loading file:/D:/download/tmp/liferay-portal-4.ear/portal-ejb.jar/portal.properties for liferay.com
ERROR [com.liferay.taglib.util.IncludeTag] java.lang.NullPointerException
at jsp_servlet._html._themes._brochure._templates.__portal_normal._jspService(__portal_normal.java:1096)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:265)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:124)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:494)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:426)
at com.liferay.taglib.util.ThemeUtil.includeJSP(ThemeUtil.java:140)
at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:94)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:59)
at jsp_servlet._html._common._themes.__portal._jspService(__portal.java:405)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
Thanks for pointing me in this direction Srini.<br>
I tried to deploy the sample BlackBoxNoTx connector to WL 9.1 and it worked for me too. This got me wondering what was different in my connector. And then I realized it was the permission settings in my ra.xml :- <br><br>
<security-permission><br>
<description>Granting all permissions</description><br>
<security-permission-spec><br>
 grant{permission java.security.AllPermission;};<br>
</security-permission-spec><br>
</security-permission><br>
<br><br>
Once I removed this from my descriptor, my connector deployed OK.
<br><br>
To be absolutely sure, I added the permission setting to the sample BlackBoxNoTx connector, regenerated the RAR, and redeployed it, upon which it failed with the exception that prompted me to start this thread in the first place.
<br><br>
Unfortunately, I cannot do away with the permission setting for my connector.
<br><br>
I am now more certain than ever that WL 9.1's backward compatibility with JCA 1.0 is suspect.
<br>Anyone from BEA listening ????
<br><br>
Is there a way I can file this for BEA to fix? -
Inter portlet communication in SP4
Can any one tell me in step by step process with sample code to do inter portlet communication in SP4
Here i have 2 portlets
Portlet A and portlet B
Portlet A has 2 hyperlinks link1 and link2
When i click link1 or link2 in portlet A, i am passing a parameter,depends on the paramater i have to display some details in portlet B
Thanks
maria
[email protected]
Message was edited by marianair at Feb 10, 2005 2:27 AMhi,
implement both portlets as page flow portlets. For both the links in portlet A, implement an action that generates an event and fires thisone. Then let the pageflow in portlet A show whatever content is appropriate, eg. the same as before the link.
Portlet B cathces this event and in the connected pageflow action does whatever it needs to do and redirects to the appripriate JSP.
Just remeber that you probably needs to use a custom event here.
For details on IPC and events, see doc:
http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm_wkshp.html
As an alternative you can use the SP3 mechanism, I find thisone somewhat more cumbersome and messy.
http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm.html
Feel free to post follow-ups if you get stuck.
- Anders M. -
Event interface for inter-portlet communication
In which jar file can I find the com.bea.netuix.events.Event interface?
I wish to offer some support for inter-portlet communication while running inside a 8.1sp4 weblogic portal server.
Firstly, there is almost no documentation for working with Custom/Generic Events and definitely none for working with "Invoke a java portlet method"
Found out by decompiling the code that you can do the following:
add methodName(HttpServletRequest, HttpServletResponse, Event) to you backing file, or
add methodName(ActionRequest, ActionResponse, Event) to your java portlet
In both cases, I need find the jar file containing the "Event" interface. Have found most of the other classes in netuix_servlet.jar
Would also appreciate any further info on when the above methods actually get called with respect to the "processAction" and "processRender" methods for jsr168 portlets...Found the answer after a pretty manual search - its located inside:
BEA_HOME/weblogic81/portal/lib/netuix/system/netuix_system.jar
All other interfaces being inside the WEB-INF/lib/netuix_servlet.jar, this one class from this package has been packed into a jar at the system classpath level!!
Had to manually look at the classpath in startWeblogic.cmd and then open up every jar file, follow dependent jar files via the manifest.mf etc... -
Inter Portlet communication without using workshop
Hi
Does any one have any luck trying to do inter portlet communication without using weblogic workshop IDE?Hi Curt,
WLP's eventing system is designed such that portlet's don't have to care
whether the source/destination is local or remote. If you have a portlet
that fires/consumes events, when you create a proxy portlet on a
consumer, the portlet on the producer will be able to fire and receive
events without any changes to it. In this scenario, the proxy portlets
work with the WLP's event runtime to collect and dispatch events on
behalf of portlets on the producer. Going forward, WSRP 2.0 and
JSR168-next's eventing models will be mapped to the same WLP event runtime.
Subbu
Curt Smith wrote:
Thanks Subbu for your enlightenment here and in this group!!
You mentioned my next quest, WSRP'ifying my portlet & IPC system.
Can you suggest an WSRP example anywhere on the net or in bea?
I guessing that suitability of IPC is also a function of whether the portlets are the remote portlets or the local portlets.
Might a non-Bea IPC choice be usable within the local portlets, which are WSRP clients to stand alone remote portlets?
I can imagine now that you mention it that the remote WRSP producer portlets can't use just any IPC facility and the events be pushed inband to the consumer portal...
tnx curt -
Struts Portlet - inter Portlet communication
Hi
How to make inter Portlet communication in Struts portlets?
Thanks
SubinA quick google search brought back this:
http://download.oracle.com/docs/cd/B15904_01/portal.1012/b14134/pdg_java.htm
Maybe you are looking for
-
Setting up BCM 7.0.6.100 Internet Chat Client
Hi, everyone! I've been struggling with a weird error message when setting up the proof-of-concept chat client for BCM 7.0.6.100 What I did is set up a fresh system from scratch and configure it just enough to conduct tests. After that I installed th
-
Safari won't start after Genius Bar restore
My laptop had been randomly crashing for about 2 days so I took it into the Genius Bar and they kept it over night and said they ended up just doing a restore. So far it has not crashed since I got it back. However, now I cannot start Safari - the do
-
Automatic PO creation from PRs?
Hi, I got to generate automatic purchase orders from purchase requisitions. A stdd Transaction ME59N is already availablefor this, but I need to create POs without GR. This is a requirement in IS Media module. We can approach in 2ways: 1. copy the st
-
My ipod 2g won't restore and has an error. what do i do?
when i plug it in it says it needs to be restored. so when i click restore a box pops up that just says "software for this iphone is not currently available. make sure you have the latest version of itunes and try again." and that's it. thing is, i J
-
What settings give the highest quality video for playback on an ipad?
Hello there, I have had success exporting movies and playing them on my ipad by simply selecting the size that shows is compatible with ipad in the share/export format choosing chart. However, knowing that I have more control by exporting using quick