Skip to main content

RSSServlet works only for localhost why?- extending

8 replies [Last post]
zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Hi Iam trying to get rss feed to work in production enviroment witth no luck allthough it works for localhost any suggestios?
Having the right jars and jmaki.js what I get is "Please wait while RSS ticker is being generated"

Looking at the analogous component I see :
var topic = null;

if (typeof wargs.args != 'undefined') {
if (typeof wargs.args.interval != 'undefined') {
interval = Number(wargs.args.interval);
}
if (typeof wargs.args.feed != 'undefined') {
feed = wargs.args.feed;
}
if (typeof wargs.args.topic != 'undefined') {
topic = wargs.args.topic;
}
}

if (topic == null) {
document.getElementById(wargs.uuid + "_item").innerHTML = "Please wait while RSS ticker is being generated."
}

So topic is null

Message was edited by: zissiszarty

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zissiszarty
Offline
Joined: 2007-03-27
Points: 0

extending usability...

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

New JDK with xalan jars required...

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Sorry about bringing back a depreceted wigdet...but this could be very usefull in an all java architecture i use...
I could use jdom api to create feed from databese but ...
.
well another problem arised with rss servlet with the rdf file actually.
It only works if it is written in en-us .
there is a tag in rdf file:
en-us
this must be restricting content to be only english ... although the file is in utf-8 format and jamaki component and java servlet too.
Any ideas anybody?

Message was edited by: zissiszarty

z

Message was edited by: zissiszarty

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

How are you providing the tag?

Our example is:

Also can you try installing FireBug (https://addons.mozilla.org/en-US/firefox/addon/1843) which will show you the XmlHttpRequest being made and if there was an error making the reqest.

This component has been deprecated in favor of using the XMLHttpProxy in the latest version of jMaki which is a bit more easy to configure. If you are look at any jMaki version .9.x you will see the jMaki Block List which you can set the service to /xhp?id=rss and you will get a better list:

We have been meaning to make the Ticker on http://jmaki.com a widget (it is a derivitve of the RSS widget you are looking at).

Let me know if you are interested in using the lates and I can help you with a new and improvied ticker. Otherwise let me know what FireBug Error comes up.

-Greg

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Hi thank you for your email.

I have checked the fire bug error which is listed bellow:
GET http://www.freelancing.gr/rssprovider?url=http%3A%2F%2F72.9.96.82%2Ffree... (375ms)component.js (line 51)
ParamsHeadersPostResponse
Response Headers
Request Headers

Apache Tomcat/5.5.17 - Error report


HTTP Status 500 -

size="1" noshade="noshade">

type Exception report

message

description

The server encountered an internal error () that prevented it from fulfilling this request.<

/u>

exception

javax.servlet.ServletException: Servlet execution threw an exception

	CharsetFilter.doFilter(CharsetFilter.java:24)

root cause

javax.xml.transform.TransformerFactoryConfigurationError: Provider

 org.apache.xalan.processor.TransformerFactoryImpl not found

	javax.xml.transform.TransformerFactory.newInstance(Unknown Source)

	com.sun.jmaki.services.XmlHttpProxy.transform(XmlHttpProxy.java:142)

	com.sun.jmaki.services.XmlHttpProxy.doGet(XmlHttpProxy.java:114)

	com.sun.jmaki.rss.RssServlet.getRssFeed(RssServlet.java:145)

	com.sun.jmaki.rss.RssServlet.doGet(RssServlet.java:95)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	CharsetFilter.doFilter(CharsetFilter.java:24)

note The full stack trace of the root cause is available in the Apache Tomcat

/5.5.17 logs.



Apache Tomcat/5.5.17

I t seems it is a Java-Tomcat error looking at the log files I see

SEVERE: Servlet.service() for servlet RSSServlet threw exception
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at com.sun.jmaki.services.XmlHttpProxy.transform(XmlHttpProxy.java:142)
at com.sun.jmaki.services.XmlHttpProxy.doGet(XmlHttpProxy.java:114)
at com.sun.jmaki.rss.RssServlet.getRssFeed(RssServlet.java:145)
at com.sun.jmaki.rss.RssServlet.doGet(RssServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at CharsetFilter.doFilter(CharsetFilter.java:24)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

It seems that org.apache.xalan.processor.TransformerFactoryImpl is missing and I dont know in which library this should be found. I probably have this at my machine because it works for localhost.

Iam moving to a newer Jmaki version (slowly) and since a stable release is out I will get to work!
Nevertheless the RSSServlet version comes handy for my current architecture...

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

I tied to find org.apache.xalan.processor.TransformerFactoryImpl , it seems it is included in xalan.jar .
I got version 1.2.6 uploaded on my server but still doesnt find it I am searching a way to make this usable by Tomcat.
I sow that xalan jars are included in Glashfish and latest JDK so maybe the solution would be to install a newer JDK on production server.

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Well after installing latest JDK no more java problems but now firebug finds a jascript error which doesnt occur on localhost with same \resources\jmaki\rss\component.js ... puzzleheaded :
GET http://www.freelancing.gr/resources/config.json (766ms)jmaki.js (line 713)
GET http://www.freelancing.gr/rssprovider?url=http%3A%2F%2F72.9.96.82%2Ffree... (625ms)component.js (line 51)
missing ) in parenthetical
[Break on this error] Greg Murray's Blog\n

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Hurray ! Rssservlet works the problem was that I had used both the new JDK and the xalan Jars when I erased the xalan jars the Javascript error was solved!