You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by ranbaab <el...@gmail.com> on 2011/06/13 14:38:25 UTC
accessing jar information
Hi all,
I have a web application which is hot deploy in the Geronimo tomcat
little-G.
There is a feature where the information of my application jar version and
build date is display to the user. I have tried to read the jar information
from manifest file which is inside the application jar file.
The jar file is inside the web-inf/lib folder of my web application.
The file was access in tomcat by using below
JAR_PATH = "tomcat/webapps/bhm/WEB-INF/lib";
PRODUCTION_JAR = "production.jar";
WEB_ROOT + JAR_PATH + "/" + PRODUCTION_JAR
How can I access the jar or How can I get the folder path in Geronimo?
Thanks,
Ranjan
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/accessing-jar-information-tp3058494p3058494.html
Sent from the Development mailing list archive at Nabble.com.
Re: accessing jar information
Posted by ranbaab <el...@gmail.com>.
Hi jeff,
Thanks for your reply, sorry If I didn't ask the question correctly.
My requirement is to get the jar file path which is inside the deploy
folder, I have got it by using the below concept.
final String SERVER_DIR_SYS_PROP = "org.apache.geronimo.server.dir";
final String serverDir = System.getProperty(SERVER_DIR_SYS_PROP);
System.out.println("The value of serverDir "+ serverDir);
The String print the absolute path of the geronimo server directory.
The value of serverDir
D:\geronimo-tomcat6-minimal-2.2.1-bin\geronimo-tomcat6-minimal-2.2.1
The below link has the explanation.
https://cwiki.apache.org/GMOxDOC21/locating-your-application-specific-configuration-files.html
Thanks,
Ranjan
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/accessing-jar-information-tp3058494p3058889.html
Sent from the Development mailing list archive at Nabble.com.
Re: accessing jar information
Posted by chi runhua <ch...@gmail.com>.
1. install production.jar into Geronimo server repository, you can use
deploy install-library in little-G if you don't have the admin console.
2. define a dependency to production.jar in the geronimo-web.xml of your
application
See
https://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html
https://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Installlibrary
HTH.
Jeff
On Mon, Jun 13, 2011 at 8:38 PM, ranbaab <el...@gmail.com> wrote:
> Hi all,
>
> I have a web application which is hot deploy in the Geronimo tomcat
> little-G.
> There is a feature where the information of my application jar version and
> build date is display to the user. I have tried to read the jar information
> from manifest file which is inside the application jar file.
> The jar file is inside the web-inf/lib folder of my web application.
> The file was access in tomcat by using below
> JAR_PATH = "tomcat/webapps/bhm/WEB-INF/lib";
> PRODUCTION_JAR = "production.jar";
> WEB_ROOT + JAR_PATH + "/" + PRODUCTION_JAR
>
> How can I access the jar or How can I get the folder path in Geronimo?
>
> Thanks,
> Ranjan
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/accessing-jar-information-tp3058494p3058494.html
> Sent from the Development mailing list archive at Nabble.com.
>