[jboss-dev-forums] [Design of POJO Server] - Re: A valid empty jboss.xml

alex.loubyansky@jboss.com do-not-reply at jboss.com
Tue Dec 4 05:23:17 EST 2007


This is where the exception is thrown

  | package org.jboss.deployers.vfs.spi.deployer;
  | 
  | public abstract class SchemaResolverDeployer<T> extends AbstractVFSParsingDeployer<T>
  | 
  |    protected T parse(VFSDeploymentUnit unit, VirtualFile file, T root) throws Exception
  |    {
  |       if (file == null)
  |          throw new IllegalArgumentException("Null file");
  | 
  |       log.debug("Parsing file: "+file+" for deploymentType: " + getOutput());
  |       Unmarshaller unmarshaller = factory.newUnmarshaller();
  |       unmarshaller.setSchemaValidation(isUseSchemaValidation());
  |       unmarshaller.setValidation(isUseValidation());
  |       InputStream is = file.openStream();
  |       Object parsed = null;
  |       try
  |       {
  |          parsed = unmarshaller.unmarshal(is, resolver);
  |          log.debug("Parsed file: "+file+" to: "+parsed);
  |       }
  |       finally
  |       {
  |          try
  |          {
  |             is.close();
  |          }
  |          catch (Exception ignored)
  |          {
  |          }
  |       }
  |       if (parsed == null)
  |          throw new DeploymentException("The xml " + file.getPathName() + " is not well formed!");

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

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



More information about the jboss-dev-forums mailing list