• Post Reply Bookmark Topic Watch Topic
  • New Topic

Property file substitute for a web app

 
Dima Riabin
Greenhorn
Posts: 18
MyEclipse IDE Windows Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am working on a web aplication, redesigning the front end ..
I don't have full access to server where it actually runs, so I use my own tom cat installation.
I am looking for some help with this problem i see ...
Web app uses a jar file .. "configFramework.jar" in a classpath ... some classes in this jar file make a call to System.getProperty (...someString..)
Some of the properties are directories where the configuration files are expected to be .. some other are some config parameters.

I can't help but use this jar, and now get excepitons about some properties not fould, etc ... Can someone point me to where to look, and what to provide for the configs ...

thanks
 
Pawan Kr Gupta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the web.xml file of this web application.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that the java.lang.System class has the setProperties method which allows a program to change the values returned by getProperty for the current instance of the JVM.

Bill
 
Dima Riabin
Greenhorn
Posts: 18
MyEclipse IDE Windows Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys. Yes, I know that somewhere on the server (weblogic in this case) some server settings override those properties. I am trying to find out where to look on weblogic so to copy / carry over such settings to the tomcat where I work.


@Pawar.
Yes, I have an idea that the properties will have to somehow utilize web.xml and possibly context.xml
However, for that web application, the web.xml file is practically blank. It just has teh definition tag for <webap> and that's it

<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5"
>
<description>The tittle</description>
<display-name>display title</display-name>
</web-ap>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!