Foros de discusión

Web Proxy Portlet ---- need help

anirban sarkar, modificado hace 15 años.

Web Proxy Portlet ---- need help

New Member Mensajes: 8 Fecha de incorporación: 14/07/08 Mensajes recientes
Hi,

I add web proxt portlet to my liferay portal page.But after saving the configuration (I've just use http://google.com as url and left the other fields as default values) when I'm clicking the 'return to full page' link the google page is not coming in my portal and I'm the getting error:
...............................................
There was a problem while processing your request: error.httpclient
..................................................

In the console I'm getting :

14:13:07,312 WARN [BridgeViewPortlet:111] no bridge request found for null
14:14:31,296 WARN [PortletBridgePortlet:254] javax.portlet.PortletException: error.httpclient
javax.portlet.PortletException: error.httpclient
at org.portletbridge.portlet.BridgeViewPortlet.doView(BridgeViewPortlet.java:162)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at org.portletbridge.portlet.PortletBridgePortlet.doView(PortletBridgePortlet.java:277)
at com.liferay.portlet.webproxy.WebProxyPortlet.doView(WebProxyPortlet.java:65)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at org.portletbridge.portlet.PortletBridgePortlet.render(PortletBridgePortlet.java:250)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
at com.liferay.portlet.InvokerPortlet.invoke(InvokerPortlet.java:602)
at com.liferay.portlet.InvokerPortlet.render(InvokerPortlet.java:366)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1356)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

.......


What's the wrong?
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Hey,
It worked for me using liferay 4.4.2 bundled with jboss and tomcat. WebProxy used to crash in easier versions. What version are you using? I had to modify WebProxy to work with a post on liferay.
Eric
Change details
anirban sarkar, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

New Member Mensajes: 8 Fecha de incorporación: 14/07/08 Mensajes recientes
Hi,

I'm using liferay 5.0.1 and Tomcat 5.5.
NB:-The iframe portlet is working fine for the external application.

-------------------
19:14:33,750 WARN [BridgeViewPortlet:111] no bridge request found for null
19:15:05,843 WARN [PortletBridgePortlet:254] javax.portlet.PortletException: error.httpclient
javax.portlet.PortletException: error.httpclient
at org.portletbridge.portlet.BridgeViewPortlet.doView(BridgeViewPortlet.java:162)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at org.portletbridge.portlet.PortletBridgePortlet.doView(PortletBridgePortlet.java:277)
at com.liferay.portlet.webproxy.WebProxyPortlet.doView(WebProxyPortlet.java:65)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at org.portletbridge.portlet.PortletBridgePortlet.render(PortletBridgePortlet.java:250)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
at com.liferay.portlet.InvokerPortlet.invoke(InvokerPortlet.java:602)
at com.liferay.portlet.InvokerPortlet.render(InvokerPortlet.java:366)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1356)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:1914)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:667)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:165)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:102)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:271)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:189)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:798)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:263)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:427)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:186)
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:163)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:409)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:638)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.strip.StripFilter.doFilter(StripFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.secure.SecureFilter.doFilter(SecureFilter.java:205)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.doubleclick.DoubleClickFilter.doFilter(DoubleClickFilter.java:134)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:191)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:142)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:173)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
anirban sarkar, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

New Member Mensajes: 8 Fecha de incorporación: 14/07/08 Mensajes recientes
Hi Eric,

Thanks for ur information.Could u plz attach the modified jar(s) for bridgeportlet?
I'm using liferay 5.0.1 with tomcat 5.

Thanks in advance
Anirban
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Here you go.
anirban sarkar, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

New Member Mensajes: 8 Fecha de incorporación: 14/07/08 Mensajes recientes
Hi Eric,

I've replaced the old jars(2 replaced & 1 added) by ur jars.
Now I've few queries about the following steps:

----------
6. Added filters/bridge/src/com/liferay/filters/bridge to my liferay source
7. Added BridgeFilter.java to same (see below)
8. Added build.xml (see below)


12. Added filter to web.xml (see below)
13. Added filter-mapping to web.xml (see below)


----------
steps 7 & 8 will be needed anymore?If yes the in which module i'll add filters/bridge/src/com/liferay/filters/bridge --- In which base directory i'll create filters/bridge/src/com/liferay/filters/bridge directory?
I'm not getting.please update me.
and then add the calss BridgeFilter.java and build.xml in the above mentioned directory.Is it?
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Those source changes should be in your copy of liferay's source so that when you rebuild liferay you always get them. I'm not sure I'm getting the gist of your question
thumbnail
Chris Whittle, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Expert Mensajes: 462 Fecha de incorporación: 17/09/08 Mensajes recientes
Eric, can you post the zipped portletbridge source? It's not available on sourceforge anymore... I think they didn;t move it to svn when sourceforge moved everything... And I am having issues trying to make this work with 5.1.2 and I need the source.. Thanks!
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Chris,
I think it's still available through cvs, but here you go. I also included my submitted changes.
Eric

<target name="portletbridge_cvs">
<mkdir dir="${portletbridge}"/>
<property name="cvspassword" value='""' />
<property name="cvsroot" value="-d:pserver:anonymous@portletbridge.cvs.sourceforge.net:/cvsroot/portletbridge" />
<cvs>
<commandline>
<argument value="${cvsroot}"/>
<argument value="login"/>
<argument value="-p"/>
<argument value="${cvspassword}"/>
</commandline>
</cvs>
<cvs dest="${portletbridge}">
<commandline>
<argument value="${cvsroot}"/>
<argument value="co"/>
<argument value="-P"/>
<argument value="portletbridge-core"/>
</commandline>
</cvs>
<cvs dest="${portletbridge}">
<commandline>
<argument value="${cvsroot}"/>
<argument value="co"/>
<argument value="-P"/>
<argument value="portletbridge-portlet"/>
</commandline>
</cvs>
<jar destfile="/usr/dev/users/eric/download/portletbridge-1.2.zip"
basedir="${portletbridge}"
includes="**"
/>
</target>
thumbnail
Chris Whittle, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Expert Mensajes: 462 Fecha de incorporación: 17/09/08 Mensajes recientes
Thanks Eric,
I could never get the web proxy to behave so I fixed the liferay version of portlet bridge portlet from the site... This one works with 5.1.2 and also has the ability to set the Authetication in the preferences instead of having to do it in the portlet.xml... Its bigger but has source code in it too...
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Hey,
Glad things worked out for you. I haven't had a chance to really dig into the 5.x. version. Are you saying the configuration for the portlet did not work? I've only ever used it as a library in which it was configured in the main portlet.xml and never as a plugin war.
Eric
thumbnail
Chris Whittle, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Expert Mensajes: 462 Fecha de incorporación: 17/09/08 Mensajes recientes
3 things were happening...
1) This error (which doesn't seem to be happening anymore but not sure if it's fixed)
2) Couldn't put more than one on a page (it would but as soon as you refreshed it was gone)
3) Needed the ability to do the Auth per portlet due to different things we were wanting to look at...
thumbnail
ITCSrikanth ITCReddy ITCSanivarapu, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 203 Fecha de incorporación: 15/11/08 Mensajes recientes
Chris Whittle:
3 things were happening...
1) This error (which doesn't seem to be happening anymore but not sure if it's fixed)
2) Couldn't put more than one on a page (it would but as soon as you refreshed it was gone)
3) Needed the ability to do the Auth per portlet due to different things we were wanting to look at...




Hi Chris ,

Can u plz reply what is the use of this web proxy portlet..???

and whats the need of this thing?

Thanks & Regards,
Srikanth Reddy.S
guillaume lundy, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

New Member Mensaje: 1 Fecha de incorporación: 19/01/09 Mensajes recientes
Hi,
I tried to recompile the attachements portletbridge-1.2-src-modified.zip (192.3k), but it fails
I think is uses a different veriosn of portlet API.

Any Idea?

Regards
Guillaume


G:\test\poc\portletbridge\portletbridge-1.2-src-modified\portletbridge-portlet>ant
Buildfile: build.xml

compile:
[javac] Compiling 47 source files to G:\test\poc\portletbridge\portletbridge-1.2-src-modified\portletbridge-portlet
\classes
[javac] G:\test\poc\portletbridge\portletbridge-1.2-src-modified\portletbridge-portlet\src\java\org\portletbridge\p
ortlet\PseudoRenderResponse.java:31: org.portletbridge.portlet.PseudoRenderResponse is not abstract and does not override abstract method se
tNextPossiblePortletModes(java.util.Collection<javax.portlet.PortletMode>) in javax.portlet.RenderResponse
[javac] public class PseudoRenderResponse implements RenderResponse {
[javac] ^
[javac] G:\test\poc\portletbridge\portletbridge-1.2-src-modified\portletbridge-portlet\src\java\org\portletbridge\p
ortlet\PseudoPortletURL.java:31: org.portletbridge.portlet.PseudoPortletURL is not abstract and does not override abstract method removePubl
icRenderParameter(java.lang.String) in javax.portlet.PortletURL
[javac] public class PseudoPortletURL implements PortletURL {
[javac] ^
[javac] G:\test\poc\portletbridge\portletbridge-1.2-src-modified\portletbridge-portlet\src\java\org\portletbridge\p
ortlet\PseudoRenderRequest.java:15: org.portletbridge.portlet.PseudoRenderRequest is not abstract and does not override abstract method getE
Tag() in javax.portlet.RenderRequest
[javac] public class PseudoRenderRequest implements RenderRequest {
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors

BUILD FAILED
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Hey,
You're right about the portlet api version. I added dummy calls to the source so it would compile, but I haven't had a chance to test it since my upgrade from 4.4.2 is stalled. Let me know if it works out.
Eric
Sam w, modificado hace 13 años.

RE: Web Proxy Portlet ---- need help

Liferay Master Mensajes: 660 Fecha de incorporación: 3/03/09 Mensajes recientes
Eric Devlin:
Hey,
You're right about the portlet api version. I added dummy calls to the source so it would compile, but I haven't had a chance to test it since my upgrade from 4.4.2 is stalled. Let me know if it works out.
Eric


Hi,

I am having the same problem as described in this post.
After downloaded the modified source file and executed ant command, it shows up alot of error in relating to classpath:


compile:
[javac] C:\liferay-ee-sp4\plugins\portlets\portlet-bridge\portletbridge-portlet\build.xml:25: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 47 source files to C:\liferay-ee-sp4\plugins\portlets\portlet-bridge\portletbridge-portlet\classes
[javac] C:\liferay-ee-sp4\plugins\portlets\portlet-bridge\portletbridge-portlet\src\java\org\portletbridge\portlet\AltBridgeTransformer.java:22: package javax.portlet does not exist
[javac] import javax.portlet.PortletPreferences;
[javac] ^
[javac] C:\liferay-ee-sp4\plugins\portlets\portlet-bridge\portletbridge-portlet\src\java\org\portletbridge\portlet\AltBridgeTransformer.java:23: package javax.portlet does not exist
[javac] import javax.portlet.RenderRequest;
[javac] ^
[javac] C:\liferay-ee-sp4\plugins\portlets\portlet-bridge\portletbridge-portlet\src\java\org\portletbridge\portlet\AltBridgeTransformer.java:24: package javax.portlet does not exist
[javac] import javax.portlet.RenderResponse;


What is the correct setup for this source project?

Your help is very much appreciated

Thanks
S
thumbnail
Chris Whittle, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Expert Mensajes: 462 Fecha de incorporación: 17/09/08 Mensajes recientes
Thanks Eric,
we ended up creating our own using the one posted on portletbridges site but we've abandoned the use of it due to lack of community and documentation... Do you know of any documentation out there for it?
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
I'm confused. You forked portletbridge but dumped it, but you still need a solution? What are you trying to do or what were the issues with portletbridge?
thumbnail
Chris Whittle, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Expert Mensajes: 462 Fecha de incorporación: 17/09/08 Mensajes recientes
Hi Eric... we grabbed the source code from the portletbridge site and then we made a portlet that we could use in 5.1.2.... It seemed to work for all we could tell but due to lack of documentation we abandoned the use of it because we could not figure out how to use the advanced features (ie Regex Scope, XSLT other than the one it uses originally) ... I still have the code that works but it's no longer installed....
Brad Sturgill, modificado hace 12 años.

RE: Web Proxy Portlet ---- need help

New Member Mensajes: 5 Fecha de incorporación: 4/02/11 Mensajes recientes
I have had some success in using this portlet. However, I am having trouble with POST transactions. Not all, just POST transactions just some. We are placing an existing self hosted wordpress blog into our liferay portal using the proxy portlet. All works well, including regex scoping. However, I am having trouble with comments. When someone selects the link to place a comment the form appears perfectly (GET call) but when the submit button is pressed (POST) Proxy times out. I have tested posting comments using iFrame (not the right look for us) and it works fine so I am pretty confident that the issue is with the Poxy Portly.

I have read all of the posts back to 2008 regarding the POST fix that is required. I have to believe that these fixes have been incorporated into Liferay 6.0.6 that I am running. Since Proxy Portlet seems to be integrated into the core of Liferay I thought I had better ask to make sure these changes have been made before I mess with portal-impl and mess up my upgrade capabilities.

Edit: If the fixes are known to be incorporated into LR 6.0.6 does anybody know how to configure the Web Proxy Portlet to handle the POST? It does appear that in LR 6 things are quite a bit different then the way the forum posts describes, so I think it might be difficult to make these changes exactly as outlined in the forum. After all these years and a good fix outlined, is the fix still not incorporated?

Thanks for any insights.
thumbnail
Nikhil Francis, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Junior Member Mensajes: 39 Fecha de incorporación: 24/04/07 Mensajes recientes
I get the following error when starting Liferay 4.4.2 as well as 5 on WebLogic 9.2. Any ideas?



Compiler warnings:
  zip:C:/bea/user_projects/domains/lPortalDomain_4.4.2_jdk1.5_12/servers/AdminServer/tmp/_WL_user/liferay-portal-4/z46kor/war/WEB-INF/lib/portletbridge-port
let.jar!/org/portletbridge/xsl/portletbridge.xsl: line 106: Attribute 'src' outside of element.
ERROR:  'The first argument to the non-static Java function 'equalsIgnoreCase' is not a valid object reference.'
FATAL ERROR:  'Could not compile stylesheet'
11:30:55,014 ERROR [MainServlet:205] java.lang.IllegalStateException: Could not compile stylesheet
java.lang.IllegalStateException: Could not compile stylesheet
        at org.portletbridge.portlet.DefaultTemplateFactory.<init>(DefaultTemplateFactory.java:61)
        at org.portletbridge.portlet.PortletBridgePortlet.init(PortletBridgePortlet.java:67)
        at javax.portlet.GenericPortlet.init(GenericPortlet.java:85)
        at com.liferay.portlet.CachePortlet.init(CachePortlet.java:191)
        at com.liferay.portlet.PortletInstanceFactory._init(PortletInstanceFactory.java:211)
        at com.liferay.portlet.PortletInstanceFactory._init(PortletInstanceFactory.java:191)
        at com.liferay.portlet.PortletInstanceFactory._create(PortletInstanceFactory.java:108)
        at com.liferay.portlet.PortletInstanceFactory.create(PortletInstanceFactory.java:53)
        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:201)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:274)
        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:64)
        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:504)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1716)
        at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1693)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1613)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
        at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:181)
        at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:358)
        at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
        at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:186)
        at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
        at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
        at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
        at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
        at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
        at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
11:30:57,279 INFO  [ServerDetector:76] Detected server weblogic
</init></init>
thumbnail
Eric Devlin, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Regular Member Mensajes: 154 Fecha de incorporación: 19/02/08 Mensajes recientes
Was the default TransformerFactory changed?
thumbnail
Nikhil Francis, modificado hace 15 años.

RE: Web Proxy Portlet ---- need help

Junior Member Mensajes: 39 Fecha de incorporación: 24/04/07 Mensajes recientes
No, I did not modify the source. However, my problem was resolved here