2 Replies Latest reply on Jan 3, 2011 1:23 AM by anon137564

    FileNotFoundException, although the XML file should be deployed

    Newbie
      Hello,

      I've got a problem starting my WAR application on a local JBoss. After two EARs are deployed, the TomcatDeployer begins deploying the WAR, but I'm soon getting the following error:

       

      2010-04-28 10:01:56,605 ERROR  [org.jboss.ejb.plugins.LogInterceptor] [] [main] EJBException in method:  public abstract  [return type] [method name]()  throws javax.ejb.CreateException,java.rmi.RemoteException, causedBy:   javax.ejb.EJBException:  org.springframework.beans.factory.access.BootstrapException: Unable to  initialize group definition. Group resource name  [classpath*:[context].xml], factory key [service];  nested exception is  org.springframework.beans.factory.BeanCreationException: Error creating  bean with name 'service' defined in URL  [jar:file:/C:/jboss-4.2.3.GA/server/default/deploy/frontend.war/WEB-INF/lib/modules.jar!/context.xml]:  Instantiation of bean failed; nested exception is  org.springframework.beans.BeanInstantiationException: Could not  instantiate bean class  [org.springframework.context.support.ClassPathXmlApplicationContext]:  Constructor threw exception; nested exception is  org.springframework.beans.factory.BeanDefinitionStoreException:  IOException parsing XML document from class path resource  [package/[basic context].xml]; nested exception is java.io.FileNotFoundException:  class path resource [package/[basic context].xml] cannot be  opened because it does not exist

       

      The strange thing is that the resource package/[basic context].xml actually is placed in a JAR in one of my EAR files which is deployed before the WAR. I even get a message that the deployment of the EAR has been successful. I looked into the JAR with my file archiver and found the [basic context].xml at the right place.

       

      I then copied the EARs and the WAR from my colleague, which are running fine on his JBoss, but at mine I'm still getting the error.
      So maybe there is something wrong with my JBoss configuration, but I don't know where to look. Do you have any clues?
      Thank you.