2015-04-02 14:01 GMT+03:00 Thusitha Thilina Dayaratne <thusit...@wso2.com>:
> Hi,
>
> I'm using embedded-tomcat 8.0.20 in my project. In that I'm parsing a
> custom server.xml file. After the parsing CatalinaBase value of the Server
> is set to null.
> Could someone tell me why would be the reason?
> Before parsing the file it is set to the correct path.
>
> Here is the code segment
> ExtendedCatalina catalina = new ExtendedCatalina();
>
> Digester digester = catalina.createStartDigester();
> digester.push(this); /* Here this refers to an instance of the
> extended Tomcat class*/
> digester.parse(inputStream); /*After this line get executed
> getServer().getCatalinaBase() is null */
>
> class ExtendedCatalina extends Catalina {
>     @Override
>     public Digester createStartDigester() {
>         return super.createStartDigester();
>     }
> }
>

You have not called the setter method for that property
(StandardServer.setCatalinaHome(), StandardServer.setCatalinaBase()).

E.g. Catalina.load() calls it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to