Hi,

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.
Thanks for response. I manually set the CatalinaBase after parsing the
InputStream. I couldn't figure out why already setted CatalinaBase value
set to null just after parsing the server.xml.

Thanks
Best Regards


On Tue, Apr 7, 2015 at 3:18 AM, Konstantin Kolinko <knst.koli...@gmail.com>
wrote:

> 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
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina

Reply via email to