3 Replies Latest reply on Dec 25, 2008 12:57 AM by Jiao Yu

    can NOT run ant deploy-jboss500

    Jiao Yu Newbie


      I am new to jbossws, so I am following the installation guide.
      I am using jboss-5.0.0.GA, jbossws-native-3.0.5.GA, j2sdk6.

      Here are the steps I have taken so far,

      1) Copy ant.properties.examples to ant.properties
      2) Modify ant.properties file accordingly. set jbossXYZ.home and jbossws.integration.target.

      3) Copy the following jars to ${JBOSS_HOME}/lib/endorsed from <JBossWS-Dist>/lib for JBossWS since 3.0.2 version:


      4) Run the following: set ANT_OPTS="-Djava.endorsed.dirs=<JBOSS_HOME>\lib\endorsed"

      5) Run "ant deploy-jboss500",

      Then I got following message:

      C:\Java\jbossws-native-bin-dist>ant deploy-jboss500
      Usage: java [-options] class [args...]
      (to execute a class)
      or java [-options] -jar jarfile [args...]
      (to execute a jar file)

      where options include:
      -client to select the "client" VM
      -server to select the "server" VM
      -hotspot is a synonym for the "client" VM [deprecated]
      The default VM is client.

      -cp <class search path of directories and zip/jar files>
      -classpath <class search path of directories and zip/jar files>
      A ; separated list of directories, JAR archives,
      and ZIP archives to search for class files.
      set a system property
      enable verbose output
      -version print product version and exit
      require the specified version to run
      -showversion print product version and continue
      -jre-restrict-search | -jre-no-restrict-search
      include/exclude user private JREs in the version search
      -? -help print this help message
      -X print help on non-standard options
      enable assertions
      disable assertions
      -esa | -enablesystemassertions
      enable system assertions
      -dsa | -disablesystemassertions
      disable system assertions
      load native agent library , e.g. -agentlib:hprof
      see also, -agentlib:jdwp=help and -agentlib:hprof=help
      load native agent library by full pathname
      load Java programming language agent, see java.lang.instrument

      show splash screen with specified image

      Am I missing steps or putting steps in wrong sequence? Any help is really appreciated.

        • 1. Re: can NOT run ant deploy-jboss500
          Peter Johnson Master

          My guess: either JAVA_HOME or JBOSS_HOME contains a space in the path name.

          To verify this, open a command prompt and enter:

          set JBOSS_HOME
          set JAVA_HOME
          set ANT_OPTS

          If any of those setting have spaces in the path name, move the item elsewhere. As an example, my JDK is at c:\apps\java\jdk1.6.0_11 and I have JBoss AS at d:\opt\jboss\jboss-5.0.0.GA. (By the way, you do not have to reinstall the JDK - you can simply move it and reset JAVA_HOME.)

          If that does not show anything, then edit the run.bat script for Ant, run it again, and post the output.

          • 2. Re: can NOT run ant deploy-jboss500
            Peter Johnson Master

            Oh, JBoss AS 5.0.0.GA comes with JBoss WS 3.0.4.SP1. Do you really need to upgrade this to 3.0.5?

            • 3. Re: can NOT run ant deploy-jboss500
              Jiao Yu Newbie


              Thanks a lot for all the tips. The second post really resolved my issue, it seems to JBoss WebService and JBoss AS compatibility is the key. I believe I saw a XREF chart somewhere in the forum, but from the chart, it seems that the original versions I have should be compatible with each other. Anyway, after I change the JBoss WS to native 3.0.4 GA. The ant build file starts to work fine. BTW, I do NOT have any single pass in my JAVA_HOME, JBOSS_HOME or ANT_OPTS.

              But something new and interesting happens aftetwards.

              After I build JBoss WebService into JBoss AS (the build completed successfully), now I would like to bring up the JBoss AS to view the URL for JBoss Web Service: http://localhost:8080/jbossws/
              At this stage, I have the following error to bring up JBoss AS.

              Error occurred during initialization of VM
              java/lang/ClassNotFoundException: error in opening JAR file C:\Java\jboss-5.0.0.
              Press any key to continue . . .
              To keep things moving, I deleted junit-4.5.jar from C:\Java\jboss-5.0.0.
              GA\lib\endorsed, and now JBoss AS is brought up successfully, and I can view the homepage for JBoss WS.

              While my question is:

              In the JBoss WebService Installation Guide, it has: To build the examples you need JUnit. Download junit-4.X.jar from junit.org and copy into ${JBOSS_HOME}/lib/endorsed. I am NOT sure whether my next Ant build will fail because I removed junit-4.5.jar already...

              Do you or anyone know why I receive the error message: java/lang/ClassNotFoundException: error in opening JAR file? Is this another compatibility issue? Junit-4.5.jar is too new for this testing?

              Thanks a lot and have a great Christmas.