Thanks for the quick reply, Dimitris,
I implemented a simple filter that uses DeploymentFilter as default filter and 
excludes .properties itself (code is after the message), and I got rid of the 
'Failed to add deployable jar' message. 
However the bundle still is not on the classpath because I get 
MissingResourceException:

  | 13:00:02,109 ERROR [LogInterceptor] RuntimeException in method: public 
abstract java.lang.String com
  | .nbl.ejb.HalloEJB.sayHallo():
  | java.util.MissingResourceException: Can't find bundle for base name Hallo, 
locale en_US
  |         at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
  |         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
  |         at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
  |         at com.nbl.ejb.HalloEJBBean.sayHallo(HalloEJBBean.java:17)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
I put a log message that tells me the file is excluded and it shows it is 
ignored:


  | 13:03:38,906 INFO  [STDOUT] >>>>Ignore 
URL:file:/F:/newServers/jboss-4.0.1sp1/server/default/deploy/
  | hallo/(Hallo.properties)
  | 

Anyway, thanks for the quick reply. 
I have another question: is 4.0.2 available somewhere or it is scheduled for 
later times, since I didn't see it in the downloads section.

Mike

  | import java.io.*;
  | import org.jboss.deployment.scanner.DeploymentFilter;
  | 
  | public class PropertyExcludeFilter implements FileFilter, 
org.jboss.net.protocol.URLLister.URLFilter{
  |     private DeploymentFilter defaultFilter = new DeploymentFilter();
  | 
  |   public boolean accept(java.net.URL url, String s){
  |     if(s.endsWith("properties")){
  |                     System.out.println(">>>>Ignore URL:" + url + "(" + s + 
")");
  |                     return false;
  |             }
  |             return defaultFilter.accept(url, s);            
  |   }
  |     
  |     public boolean accept(File pathname){
  |             if(pathname.getName().endsWith("properties")){
  |                     System.out.println(">>>>Ignore:" + pathname);
  |                     return false;
  |             }
  |             return defaultFilter.accept(pathname);          
  |     }
  | }
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to