4 Replies Latest reply on Jan 21, 2004 10:34 AM by n2

    Error reading project file: unknown protocol: resource

    mcgee

      Hello all,

      I got the above error message when trying to build JBoss 3.0 according to the Quick Start guide. I'm using Java 2 SDK 1.4.1 and ant 1.6 alpha. This sounds like a missing content handler problem, but I have no idea how to address it, or who's at fault: the JBoss build.xml file, ant, or something else.

      Thanks,
      McGee

        • 1. Re: Error reading project file: unknown protocol: resource

          Try using ant1.5 rather than the alpha.

          Regards,
          Adrian

          • 2. Re: Error reading project file: unknown protocol: resource
            mcgee

            Thanks Adrian. I just tried it using Ant 1.5, and had the exact same error message.

            - McGee

            • 3. Re: Error reading project file: unknown protocol: resource

              > Thanks Adrian. I just tried it using Ant 1.5, and had
              > the exact same error message.

              That is because you shouldn't use ant....
              If i understand it correctly, jboss uses its own version of ant, that is not compatible with the standard ant. The build scripts do a rather good job of hiding this, except for one little nasty detail: the 'jboss ant' script still checks your home dir for an .antrc file and executes it. In my case, this set an enviroment variable ANT_HOME, pointing (of course) to a normal ant distribution, which does not understand the build.xml files in the jboss sources. I think (hope) that your problems are caused by something similar, so try to disable (de-install?) the normal ant.

              I noticed that a lot people run into this kind of trouble. The point is that the quick-start guide _does_ warn that you should always use the build script to build; not just ant. However, it does not say explicitly that jboss use a different version of ant. I completely misinterpreted the warning; i assumed the scripts set all kind of variables, before calling ant. It never came into my mind there could be a different ant version in the jboss source.
              Therefore, my suggestion would be to add paragraph to the quickstart guide, to make clear that the jboss build uses it's own version of ant, and does not work with a standard ant version.

              Hope this helps.
              Regards,
              Peter.

              • 4. Re: Error reading project file: unknown protocol: resource
                n2