Hello,
We have a slightly modified configuration for our app, that worked in JBoss 4.0.0, but doesn't in JBoss 5.1.0.
We copied the "web" configuration (under JBoss5.1.0/server/web) to create our own setup.
our war file contains a web.xml that specifies a servlet and a properties file that's a parameter for the servlet at startup.
This properties file is at the top level of our JBoss instance.
e.g.
we have
JBoss5.1.0/server/myConfiguration
|-- myServer.properties
|-- deploy
|-- myWar.war
myWar.war has a web.xml containing the following snippet:
<servlet>
<servlet-name>StartListener</servlet-name>
<servlet-class>com.sabre.common.webservices.server.ServerStartupService</servlet-class>
<init-param>
<param-name>startupFile</param-name>
<param-value>myServer.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
JBoss 4.0.0 had no problems finding the myServer.properties file located in myConfiguration, but JBoss 5.1.0.GA throws a "FileNotFoundException".
Any ideas on what we need to change to get it to work?
I guess the second question would be - what are other (better) ways of doing this?
Thanks,
Nilesh