tags:

views:

18

answers:

0

I'm using an XML Catalog with a CatalogManager.properties file which is in a JAR containing all schema files.

Normally, this works well, and the schema file can be resolved using the XML catalog and the system ID. At least it does when I work with Eclipse locally.

However, when I deploy that JAR to JBoss (within an EAR), the CatalogManager.properties can't be found on the classpath.

17:59:18,977 ERROR [STDERR] Cannot find CatalogManager.properties

This is the part of my class where I initialize everything:

private static final String CATALOG_MANAGER_PROPERTIES = "CatalogManager.properties";

private static final CatalogManager CATALOG_MANAGER;

private static final CatalogResolver CATALOG_RESOLVER;

private static final ErrorHandler DEFAULT_ERROR_HANDLER = new DefaultErrorHandler();

static {
  System.setProperty(SAX_DRIVER, XERCES_SAX_PARSER);
  CATALOG_MANAGER = new CatalogManager(CATALOG_MANAGER_PROPERTIES);
  CATALOG_RESOLVER = new CatalogResolver(CATALOG_MANAGER);
}

I'm using the Apache xml-commons resolver

Any hints? :-) Thanks!