[
https://issues.apache.org/jira/browse/JENA-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446022#comment-13446022
]
Francesco Panico commented on JENA-201:
---------------------------------------
Hi,
Gruppo Imola (http://www.imolinfo.it/)
has developed a solution to deploy fuseki as a webApp in an application server
J2EE.
We used jena-2.7.3.
Fuseki initialize Date Set servlet with own API Jetty. The idea is to remove
Jetty dependencies and create application server indipendent classes for the
initialization.
A ServletContextListener (Servlet 3.0 specification) is used to inizialize Data
Set servlets.
We have created a maven project to package Fuseki as a WAR file. WAR file
contains all "jena-2.7.3 jars and some customized classes.
An other problem is that the base URL used by Jetty is "/" (context path).
Often it is not possible to use that convention in enterprise environmet so we
replaced it
adding the context path (request.getContextPath()). In this way you can set
fuseki WebApp with any URL (ES: http://myCompanyname/fuseki)
src\main\java\org\apache\jena\fuseki\mgt\ActionDataset.java
add use of ContextPath
src\main\java\org\apache\jena\fuseki\servlets\SimpleVelocityServlet.java
add new velocity servlet contructor and init method. They are used by
ServletContextListener (J2EE compliant)
src\main\java\org\apache\jena\fuseki\servlets\SPARQL_ServletBase.java
add use of ContextPath
src\main\java\org\apache\jena\fuseki\mgt\ActionDataset.java
add use of ContextPath
src\main\java\it\imolinfo\fuseki\FusekiConfigurator.java
initialize data set servlet
src\main\webapp\WEB-INF\web.xml
define listener, servlets and servlets url mapping
We tested Fuseki war on tomcat 7 and JBoss 7.1.1 with JDK 7
I attached "GruppoImola_fuseki_war_src.rar" file that contain all customized
classes
> Deliver Fuseki as a WAR file.
> -----------------------------
>
> Key: JENA-201
> URL: https://issues.apache.org/jira/browse/JENA-201
> Project: Apache Jena
> Issue Type: Improvement
> Components: Fuseki
> Reporter: Andy Seaborne
> Priority: Minor
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira