wso2GadgetServer:如何使用代理?

时间:2012-04-12 06:37:57

标签: wso2

我在公司网络中安装了wso2GadgetServer-1.4.2。可通过代理访问外部数据源。在/repository/conf/wrapper.conf中,我添加了以下内容:

wrapper.java.additional.11=-Dhttp.proxyHost=<ip of our proxy>
wrapper.java.additional.12=-Dhttp.proxyPort=<port the proxy is listening to>
wrapper.java.additional.13=-Dhttp.nonProxyHosts=127.0.0.1|localhost

我(重新)启动了GadgetServer并再次打开了仪表板。未显示(预定义)小工具的(外部)内容。而是显示了超时消息。在/repository/logs/wrapper.logs中,我找到了相应的条目,如下所示:

INFO   | jvm 1    | 2012/04/12 08:24:21 | Apr 12, 2012 8:24:20 AM org.apache.shindig.gadgets.servlet.ProxyBase outputError
INFO   | jvm 1    | 2012/04/12 08:24:21 | Warnung: Request failed
INFO   | jvm 1    | 2012/04/12 08:24:21 | org.apache.shindig.gadgets.GadgetException: org.apache.http.conn.ConnectTimeoutException: Connect to soa-platform.blogspot.com/209.85.148.132:80 timed out
INFO   | jvm 1    | 2012/04/12 08:24:21 |   at org.apache.shindig.gadgets.http.BasicHttpFetcher.fetch(BasicHttpFetcher.java:351)
[...]
INFO   | jvm 1    | 2012/04/12 08:24:21 | Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to soa-platform.blogspot.com/209.85.148.132:80 timed out

有人有想法,如何解决问题?

btw:2个人在http://wso2.org/forum/thread/21081

处理同样的问题

1 个答案:

答案 0 :(得分:2)

在文章WSO2 ESB 4.0.3 - Configure forward proxy for client software中,我找到了一个解决方案。如果从配置中删除http.,则会显示小工具的外部内容:

wrapper.java.additional.11=-DproxyHost=<ip of our proxy>
wrapper.java.additional.12=-DproxyPort=<port the proxy is listening to>
wrapper.java.additional.13=-DnonProxyHosts=127.0.0.1|localhost