1 Reply Latest reply on Aug 21, 2003 11:08 PM by Jon Barnett

    Deployment error on JBOSS 3.2.2

    bbbear Newbie

      Hi,

      I tried to deploy an ear on JBOSS 3.2.2 with JDK 1.4.2 but it gives this error during half way of deployment. Anyone know what this error is??

      15:12:01,896 ERROR [MainDeployer] could not create deployment: file:/C:/JBOSS3/server/test/tmp/deploy/tmp9336test.ear-contents/Testing.jar
      org.jboss.deployment.DeploymentException: Invalid encoding name "Cp1252".; - nested throwable: (org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
      at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:768)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)

      Some light is needed. : ) Thanks...

      Regards,
      Karen

        • 1. Re: Deployment error on JBOSS 3.2.2
          Jon Barnett Master

          Most likely, the SAX parser does not like your XML - in particular the first line with the character encoding:
          <?xml version="1.0" encoding="Cp1252"?>

          Use:
          <?xml version="1.0" encoding="UTF-8"?>

          This will be required to be changed in your EJB deployment descriptors (ejb-jar.xml, jboss.xml, etc). I'm assuming JAR you are deploying is an EJB bundle.