Hi,
I'm playing with D2R Server (0.8.1) to expose as linked data the
content of a PostgreSQL database (9.1).
I've done some tests on a local machine (by writing my mapping file
and creating a war to be deployed in Tomcat) and it seems to work as
expected.
However, I'd love to operate some customizations before deploying it
on the production server and I'd need help because my tries were
unsuccessful.

1. Change name of the webapp in Tomcat (e.g. from d2rq.war to myapp.war)
I tried simply by renaming the war file but it doesn't work.
I also tried recreating the war my changing the name in the build.xml
file, but it doesn't work either.
I additionally modified the d2r:baseURI in the mapping file, again
with no success.
For example, the root_page.vm velocity template gets always
"http://localhost:8080/d2rq/"; as $home_link instead of
"http://localhost:8080/myapp/";. Similarly all the mapped URIs uses
"d2rq" instead of "myapp".
What should I modify where to change the webapp name (and therefore
the base URI)?

2. Customize URI patterns
I would like to modify the patterns used to generate resources' URIs.
Specifically I wanted to change "resource", "page" and "data" patterns
simply by using different strings.
First I tried modifying the web.xml url-pattern, but it raised an exception.
Then I looked into the code and I found that the D2RServer.java class
re-defines them with this (sic) comment: "These service names should
match the mappings in web.xml". (May I say this is a typical bad
programming pattern?)
I modified the service names both in the source java class and in the
web.xml file, but it didn't work either: it always raises the same
exception.
What should I modify where to change the URI patterns?

Thanks in advance for any hint,
Best regards,
Irene


-- 

    " If you understand what you're doing,
           you're not learning anything. "

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to