Sorry if this is a frequently asked question, but my search withih the forums 
and google did not return results to help me completely answer the question 
myself.
I am upgrading from JBoss 3.2 to 4.0 and I am facing some difficulties with 
property files. We used to deploy our applications using the following 
structure which worked fine in 3.2:
...\deploy
........|-app1  <-A directory
........|......|-app.ear
........|......|-config1.properties
........|......|-config2.properties
........|-app2  <-A directory

The properties are accessed using ResourceBundle.getBundle("config1"),
so they must be  on the classpath main level.
This gave us way to reconfigure some properties without repacking the ear file. 

Using the same structure in JBoss 4.0 results in the following upon startup:

11:00:27,359 WARN  [JARDeployer] Failed to add deployable jar: 
file:/F:/newServers/jboss-4.0.1sp1/server/default/tmp/deploy/tmp14870bubu.properties
  | java.util.zip.ZipException: error in opening zip file
  |         at java.util.zip.ZipFile.open(Native Method)
And the property file is not accessible by the application anymore.
After putting the property files into a jar file that resides on the same level 
as the ear the application accessed them and I had no deployment warning.

So my question is what structure of the deployment should be used in order to 
provide the same effect of property files outside the ear file.

Or if this is no longer possible can you please point me to some documentation 
where the structure of the application and the file locations are described.

Thanks for your attention and time

Mike

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872828#3872828

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872828


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to