1 Reply Latest reply on Jun 29, 2009 6:30 PM by peterj

    Referencing ${catalina.base}

    juanavelez

      I am a newbie to JBoss and the reason for using JBoss is that we have a tomcat-based application which our customer wants to run in JBoss. Our app is also a spring-based application and we have some properties file needed by spring referenced by some spring-configuration files by

      ${catalina.base}/properties/someproperty.file

      The above was a requirement from our customer which was using JBossAS as their AS instead of Tomcat. According to our customer this is what they do inside JBoss to reference a property file out of a WAR file (They have centralized the location of properties files out of WAR files for better managing).

      I downloaded 5.1.0GA and installed it. Using the "default" server, I copied my war file onto %JBOSS_HOME%/server/default/deploy but when it runs, it complains that ${catalina.base} can not be resolved.

      I am using JBossAS 5.1.0 GA, WinXP, jdk 1.5.0_15.

      Any help will be gladly appreciated.

        • 1. Re: Referencing ${catalina.base}
          peterj

          I see catalina.base in 4.2.3, but not in 5.1.0. But 5.1.0 does have catalina.home. You can check out all of the available system properties using the jmx-console, looking at the jboss:type=Service,name=SystemPrtoperties MBean.

          You could either change the config file to use another system property, or add the system property to the command line, or configure the system property service (see the server/xxx/deploy/properties-service.xml file)