BaseX as web application in servlet container
Wednesday, 6 February 2013 · 3 messages
MF
marco fregonese6 Feb 2013 09:57 #
Hello,
Is anyone there who can explain to me why in BaseX76.war (or previous versions) there are two WEB-INF directories each with a web.xml file inside?
~/BaseX76/WEB-INF/classes/WEB-INF/
Which web.xml file needs to be edited to configure BaseX as web application in Tomcat properly?
Thanks.
PS: I deployed BaseX75.war and 76 in Tomcat and they work after editing web.xml but I had to edit index.html and restxq.xqm as well to see style.css and basex.svg. Maybe it depends on my OS (Ubuntu) or my browser (Firefox), I don't know.
Thank you.
CG
Christian Grün6 Feb 2013 10:25 #
Hi Marco,
what modifications have you done to the files, and which web server are you using?
Thanks,
Christian
Quoted text · marco fregonese · 28 lines
Am 06.02.2013 09:58 schrieb "marco fregonese" <marcofregonese at gmail.com>: > Hello, > > Is anyone there who can explain to me why in BaseX76.war (or previous > versions) there are two WEB-INF directories each with a web.xml file inside? > > ~/BaseX76/WEB-INF/classes/WEB-INF/ > > Which web.xml file needs to be edited to configure BaseX as web > application in Tomcat properly? > > Thanks. > > PS: I deployed BaseX75.war and 76 in Tomcat and they work after editing > web.xml but I had to edit index.html and restxq.xqm as well to see > style.css and basex.svg. Maybe it depends on my OS (Ubuntu) or my browser > (Firefox), I don't know. > > Thank you. > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
CG
Hi Marco,
the WEB-INF files in the classes subdirectory are required for creating a default webapp directory in the BaseXHTTP standalone mode. There may be some ways to exclude those files in the maven packaging mechanism, but this would need to checked first.
Hope this helps,
Christian
Quoted text · marco fregonese · 28 lines
On Wed, Feb 6, 2013 at 9:57 AM, marco fregonese <marcofregonese at gmail.com> wrote: > Hello, > > Is anyone there who can explain to me why in BaseX76.war (or previous > versions) there are two WEB-INF directories each with a web.xml file inside? > > ~/BaseX76/WEB-INF/classes/WEB-INF/ > > Which web.xml file needs to be edited to configure BaseX as web application > in Tomcat properly? > > Thanks. > > PS: I deployed BaseX75.war and 76 in Tomcat and they work after editing > web.xml but I had to edit index.html and restxq.xqm as well to see style.css > and basex.svg. Maybe it depends on my OS (Ubuntu) or my browser (Firefox), I > don't know. > > Thank you. > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery