Skip to content

Conversation

ikuo
Copy link

@ikuo ikuo commented Dec 29, 2014

I've got the following error on my first access to localhost:8080 :

Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: java.net.MalformedURLException: static/org/graphity/client/xsl/global-xhtml.xsl at org.graphity.client.provider.XSLTBuilderProvider.getXSLTBuilder(XSLTBuilderProvider.java:158) at org.graphity.client.provider.XSLTBuilderProvider.getContext(XSLTBuilderProvider.java:110) at org.graphity.client.provider.XSLTBuilderProvider.getContext(XSLTBuilderProvider.java:54) ... Caused by: java.net.MalformedURLException: static/org/graphity/client/xsl/global-xhtml.xsl at org.eclipse.jetty.webapp.WebAppContext.getResource(WebAppContext.java:354) at org.eclipse.jetty.webapp.WebAppContext$Context.getResource(WebAppContext.java:1451) at org.graphity.client.provider.XSLTBuilderProvider.getSource(XSLTBuilderProvider.java:198) at org.graphity.client.provider.XSLTBuilderProvider.getSource(XSLTBuilderProvider.java:181) at org.graphity.client.provider.XSLTBuilderProvider.getXSLTBuilder(XSLTBuilderProvider.java:137) 

(in Mac OS 10.10.1, Oracle JDK 8)

To resolve this error, I added the code that prefixes "/" to filename before calling getResource(filename).

@namedgraph
Copy link
Member

Hey @ikuo. Thanks for the report!

What I read from the JavaDoc is that the values are expected to start with /, so it's a problem of the input and not the method.

In my latest commit 0aa1ab5 I fixed the default param value in web.xml to start with a slash. Works on Windows and should solve your problem. Can you try the master branch again?

@namedgraph namedgraph self-assigned this Jan 6, 2015
@ikuo
Copy link
Author

ikuo commented Jan 6, 2015

Hi @pumba-lt,

Thank you for the fix!
It worked on the latest version of the master branch.

@ikuo ikuo closed this Jan 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants