1 Reply Latest reply on Mar 12, 2002 3:12 AM by Mac Rinehart

    getting this error when i deploy a bean

    abcd abcd Newbie

      [ERROR,AutoDeployer] DeploymentInfo failed:file:/E:/JBoss-2.4.4_Tomcat-4.0.1/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/test.jar
      org.jboss.deployment.J2eeDeploymentException: no deployment descriptor found but file that could be
      ment as: Meta-Inf/ejb-jar.xml <-> META-INF/ejb-jar.xml

      what should i do to rectify this ?.

      the META-INF directory that gets created when the jar/war files created gets created as "Meta-Inf" hence this error, but does not allow me to rename the folder also.

      pls. help.


        • 1. Re: getting this error when i deploy a bean
          Mac Rinehart Newbie

          say you have a project/out directory for your compiled classes. The top level package should be something like com. So create another subdirectory of out called META-INF. In the META-INF directory place you ejb-jar.xml file. Then from out build your jar.

          jar cfv myProject.jar *.*

          That should capture all the contents of the out directory and it's subdirectories and place it in the myProject.jar file. Since META-INF is defined as a subdirectory, it will use that directory for the manifest in the jar, rather than creating a Meta-Inf directory. At least, that's how I do it and I haven't had the problem you describe.

          Hope that helps.