perfsonar-dev - Re: [pS-dev] Service (un)Initialization implementation
Subject: perfsonar development work
List archive
- From: Uros Juvan <>
- To:
- Subject: Re: [pS-dev] Service (un)Initialization implementation
- Date: Fri, 13 Oct 2006 11:20:05 +0200
- Organization: Arnes
Roman Lapacz wrote:
Uros Juvan wrote:
It looks reasonable to me. I just have to check if Tomcat is shipped with classes, which already implement some kind of web.xml handling, which I am almost sure it does. I then need to evaluate if it seems reasonable potentially adding another Tomcat/Servlet jar file to our jar-repository, or does it seem easier to XML parse web.xml by myself and insert new <listener> if necessary.
Answering my own mail :)
Tomcat uses org.apache.catalina.startup.ContextConfig class located inside server/lib/catalina.jar library to parse web.xml. Internally it looks like it uses SAX parser, but also some kind of validator. I'm not sure whether it would be reasonable to use this solution, since it is too specific container-centric. I think it would be better writing our own class, without validation.
What do you think?
Maciej, Loukik, Roman, ... ?
You could create new web.xml file with the same content plus new listener, put it in $PERFSONAR/conf/ directory as web-axis-1.4.xml, and alter deploy action to copy web-axis.xml file to $TOMCAT/webapps/axis/WEB-INF/ as web.xml.
True, but that would break if user for example added some content on her own, or when we switch to other version of AXIS. What I am suggesting is make very flexible modifier class, inserting our <listener> at appropriate location if necessary (i.e. one does not exist already).
Roman
Regards,
Regards,
--
Uroš Juvan
Arnes
- Service (un)Initialization implementation, Uros Juvan, 10/11/2006
- Re: [pS-dev] Service (un)Initialization implementation, Roman Lapacz, 10/12/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Roman Lapacz, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Roman Lapacz, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Roman Lapacz, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Uros Juvan, 10/13/2006
- Re: [pS-dev] Service (un)Initialization implementation, Roman Lapacz, 10/12/2006
Archive powered by MHonArc 2.6.16.