2 Replies Latest reply on Sep 20, 2005 9:51 AM by Thomas Diesler

    jboss-client.xml

    Husain Sutarwala Newbie

      In the WSDOCStepByStepClient an artifact with name jboss-client.xml is created. Where does this file end up?
      application-client.xml and jaxrpc-mapping-client.xml are created too, where do these end up?

        • 1. Re: jboss-client.xml
          Husain Sutarwala Newbie

          I am consuming a wsdl using wscompile tool. Stubs and objects are generated fine. I create the application-client.xml and jboss-client.xml and along with jaxrpc-mapping-client.xml, I put them in the META-INF folder. I jar up everything for deployment and this is the error I get:

          2005-09-01 14:19:08,417 ERROR [org.jboss.metadata.XmlFileLoader] Invalid XML: file=META-INF/jboss-client.xml@1:
          org.xml.sax.SAXParseException: Content is not allowed in prolog.
          at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
          at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
          at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:140)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:973)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
          at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy9.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)

          Any help on what I am doing wrong? I am following the WSDocStepByStepClient tutorial.

          • 2. Re: jboss-client.xml
            Thomas Diesler Master

            Have a look at jboss-client.xml with a hex editor. You might see unwanted stuff before <?xml ... ?>