I'm trying out the very nice Longwell app (v2.5.1) and in particular its
integrated Welkin RDF graph visualizer. When deploying to Tomcat
(v5.5.23, JDK 1.5.0_12), there seems to be a problem with constructing
URLs.

This works:

When I run Longwell out-of-the-box in Jetty with:

cd /path/to/longwell-2.5.1
mvn package
./longwell

and browse to http://myhost:8080/, I can select, e.g., type "Facade"
(which yields 10 items) and then click on "Graph View" and the Welkin
applet successfully renders the graph. So far so good.

This doesn't work:

When I build the WAR:

cd /path/to/longwell-2.5.1
mvn package
mvn war:war

and deploy it to $CATALINA_BASE/webapps/longwell, I can browse to
http://myhost:8081/longwell (served by Tomcat, not Jetty), select type
"Facade" and click on "Graph View", but the applet's graph display is
empty. The Java Plug-in console shows this error:

Starting Welkin 1.2-dev
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://myhost:8081/longwell//longwell/?command=export&format=RDFXML&-=%4
0lwq.project.PropertyProjector%3Bhttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F2
2-rdf-syntax-ns%23type%3B%40lwq.bucket.DistinctValueBucketer%3Brhttp%3A%
2F%2Fsimile.mit.edu%2F2005%2F04%2Fflair%23Facade&

Note that the "/longwell" substring is duplicated (and yes, there are
two consecutive slashes). If I browse to this URL with this duplicate
substring removed, I get a properly formatted RDF XML document back.

I played around with the "longwell.url" property in longwell.properties,
but I couldn't find a value that worked. If I set it to
http://myhost:8081/longwell, then the URL in the error message reads:

http://myhost:8081/longwell/http://myhost:8081/longwell/?command=export&;
format=RDFXML&-=%40lwq.project.PropertyProjector%3Bhttp%3A%2F%2Fwww.w3.o
rg%2F1999%2F02%2F22-rdf-syntax-ns%23type%3B%40lwq.bucket.DistinctValueBu
cketer%3Brhttp%3A%2F%2Fsimile.mit.edu%2F2005%2F04%2Fflair%23Facade&

I also tried setting it to just "longwell" but then the Longwell start
page already doesn't display properly.

BTW, I just tried the Longwell demo at
http://simile.mit.edu/longwell/demo/atom/ (select "Feed Class" - 36
items) and when I select "Graph View", no points are rendered and I get
a very similar error message:

Starting Welkin 1.2-dev
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://simile.mit.edu/longwell/demo/atom/http://simile.mit.edu/longwell/
demo/atom/default?command=export&format=RDFXML&-=%40lwq.project.Property
Projector%3Bhttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23typ
e%3B%40lwq.bucket.DistinctValueBucketer%3Brhttp%3A%2F%2Fbblfish.net%2Fwo
rk%2Fatom-owl%2F2006-06-06%2F%23Feed&

Is there something out-of-sync between Longwell and Welkin in the way
they construct URLs? How do you make Longwell/Welkin work in Tomcat
(especially when it is not running as the ROOT webapp)?

Please Cc me at richardcalmbach at fairisaac.com.

Thanks,
-Richard
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to