フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド数 [ 前へ | 次へ ]
toggle
Paul Sterk
RSS News Portlet Can't Resolve URL
2011/08/23 11:00
答え

Paul Sterk

ランク: New Member

投稿数: 8

参加年月日: 2011/08/23

最近の投稿

Hi,

I am using the RSS news portlet with this URL. (I have removed the company name):

https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP

The portlet does not display the news feed and displays this message: https://jira.intra.com/jira/plugins/servlet/streams?key=HADOOP cannot be found.

However, this URL does resolve in my web browser to an RSS feed. Also, a similar Jira news feed URL did resolve. What did I miss?

thanks,
Paul
Thiago Leão Moreira
RE: RSS News Portlet Can't Resolve URL
2011/08/23 17:43
答え

Thiago Leão Moreira

LIFERAY STAFF

ランク: Liferay Legend

投稿数: 1190

参加年月日: 2007/10/10

最近の投稿

Hey Paul,

I have tried to access those urls and none was accessible. Make sure that the box that is running Liferay has access to those urls as well.
Paul Sterk
RE: RSS News Portlet Can't Resolve URL
2011/08/24 6:57
答え

Paul Sterk

ランク: New Member

投稿数: 8

参加年月日: 2011/08/23

最近の投稿

Thanks for the reply. The URLs are internal - I removed the company name for privacy reasons. Nonetheless, they are accessible internally - so, I am not sure what is wrong.

Paul
Mani kandan
RE: RSS News Portlet Can't Resolve URL
2011/08/25 0:03
答え

Mani kandan

ランク: Expert

投稿数: 490

参加年月日: 2010/09/15

最近の投稿

I have successfully done RSS portlet see this thread
And I have different problem.
Could you post here your rss or xml file?
Alberto Chaparro
RE: RSS News Portlet Can't Resolve URL
2011/08/25 1:36
答え

Alberto Chaparro

LIFERAY STAFF

ランク: Junior Member

投稿数: 44

参加年月日: 2011/04/25

最近の投稿

Yeah,

I found this problem using Weblogic as application server some time ago .

I was using RSS portlet and trying to connect to a server which returned "text/html" as content-type in the header but the XML returned used UTF-8 as encoding (<?xml version="1.0" encoding="UTF-8"?>), in this case server should be returned "text/html;charset=UTF-8".

If you could use a RSS validator you could be able to check if you are in this situation (you can check this manually if you can't use the validator for that URL), for example the following URL validates RSS feeds:

http://feedvalidator.org/

In these cases the validator returns:

Feeds should not be served with the "text/html" media type

Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"


Good luck!!
Paul Sterk
RE: RSS News Portlet Can't Resolve URL
2011/09/12 9:40
答え

Paul Sterk

ランク: New Member

投稿数: 8

参加年月日: 2011/08/23

最近の投稿

I have a better understanding of my RSS issue. I am using an internal RSS News feed from Jira:

https://jira.intra.mycompany.com/jira/plugins/servlet/streams?key=HADOOP

Notice that the protocol is https. I used curl to access the URL and got this message:

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html


My conclusion is the Jira web server is using a self-signed cert that cannot be verified. I think this is the reason that the RSS Portlet cannot 'find' the news feed even though it resolves in my web browser. I probably created an certificate exception in Firefox and forgot about it.

So, besides creating a new Jira cert, what options do I have? Can the RSS Portlet be configured to turn off certificate verification?

Also, please tell me how I can get the source code for the Default Liferay RSS Portlet? I'd be happy to get this working and submit a patch.
Julien Bonjean
RE: RSS News Portlet Can't Resolve URL
2011/09/12 10:05
答え

Julien Bonjean

ランク: Junior Member

投稿数: 57

参加年月日: 2009/06/10

最近の投稿

If the self-signed certificate is your problem, you can add it to your java keystore, here is some information.
Paul Sterk
RE: RSS News Portlet Can't Resolve URL
2011/09/12 11:50
答え

Paul Sterk

ランク: New Member

投稿数: 8

参加年月日: 2011/08/23

最近の投稿

Julien Bonjean:
If the self-signed certificate is your problem, you can add it to your java keystore, here is some information.


Thanks for the suggestion. I enabled SSL for the Tomcat web server, verified the tomcat certificate and confirmed that I had imported the cert from the remote web server into Tomcat's local keystore. I restart Tomcat and tried to access the RSS feed again. The RSS Portlet still says that it cannot find the feed. I can access the feed on the Liferay server machine using curl -k [RSS URL].

Any ideas why the portlet cannot find the feed?
Julien Bonjean
RE: RSS News Portlet Can't Resolve URL
2011/09/12 12:02
答え

Julien Bonjean

ランク: Junior Member

投稿数: 57

参加年月日: 2009/06/10

最近の投稿

Did you check the logs ? Without more information, it will be difficult to know what happen. If nothing is in the log, you will have to run Liferay with Eclipse and debug the code to check what goes wrong (or debug remotely).
Paul Sterk
RE: RSS News Portlet Can't Resolve URL
2011/09/12 12:51
答え

Paul Sterk

ランク: New Member

投稿数: 8

参加年月日: 2011/08/23

最近の投稿

I checked the logs and there are no error messages. I will try your debugging suggestion. Thanks.
Hitoshi Ozawa
RE: RSS News Portlet Can't Resolve URL
2011/09/12 15:07
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿数: 8000

参加年月日: 2010/03/23

最近の投稿

The source for the RSS portlet is in the svn:
http://www.liferay.com/community/wiki/-/wiki/Main/SVN