|
RE: reading config file from war: msg#00077java.enhydra.general
yes, I believe that would be the right way to do it for the config file. As for the resources, I think the path specified in the .conf file should be added to the context classpath, and not replace it. perhaps we can hope to see these changes in 5.1 ? thanks Ricardo Trindade -----Original Message----- From: enhydra-admin@xxxxxxxxxxx [mailto:enhydra-admin@xxxxxxxxxxx]On Behalf Of Terry Steichen Sent: domingo, 20 de Outubro de 2002 15:11 To: enhydra@xxxxxxxxxxx Subject: Re: Enhydra: reading config file from war Hi Ricardo, I ran into this issue a long time ago and what I did was modify the HttpPresentationServlet source (ugh!) to rely on context.getRealPath() to build the actual path. I think there's a better way (which I've not yet looked into) which uses context.getResourceAsStream(). Regards, Terry ----- Original Message ----- From: "Ricardo Trindade" <Ricardo.Trindade@xxxxxxxxxxxxx> To: <enhydra@xxxxxxxxxxx> Sent: Sunday, October 20, 2002 8:38 AM Subject: Enhydra: reading config file from war > Hi, > > regarding my previous post, I've looked at the source > (HttpPresentationServlet.java:235), and confirmed that the file is only read > from the filesystem, not from the classpath. I don't think this is right, as > it makes deployment from .war files impossible. can anyone comment on this ? > > thanks > Ricardo > > _______________________________________________ > Enhydra mailing list > Enhydra@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/enhydra > _______________________________________________ Enhydra mailing list Enhydra@xxxxxxxxxxx http://www.enhydra.org/mailman/listinfo.cgi/enhydra
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: reading config file from war, Terry Steichen |
|---|---|
| Next by Date: | Re: use <TABLE> within presentation folder, David Li |
| Previous by Thread: | Re: reading config file from war, Terry Steichen |
| Next by Thread: | contenttype text/plain, Achim Weßling |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |