1 Reply Latest reply on Jul 18, 2009 11:51 PM by Clebert Suconic

    5.1.0 CA and jboss messaging 2.0.0  beta 3 ---J2EE examples-

    Jim Stoll Newbie

      All,

      Please tell me what i am doing wrong. All tries against J2EE MDB examples gave these ant messages. i am executing in a windows 2000 XP pro service pack 3 environment.


      C:\Java\jboss-messaging-2.0.0.BETA3\examples\javaee\mdb>ant deploy
      Buildfile: build.xml

      validate-jboss:

      profile.check:

      copy-profile:
      [mkdir] Created dir: C:\Java\jboss-5.1.0.GA\server\mdb-example-profile
      [copy] Copying 798 files to C:\Java\jboss-5.1.0.GA\server\mdb-example-profi
      le
      [copy] Copied 201 empty directories to 18 empty directories under C:\Java\j
      boss-5.1.0.GA\server\mdb-example-profile

      copy-resources:

      init:

      compile:

      jar:

      war:

      ear:

      deploy:
      [copy] Copying 3 files to C:\Java\jboss-5.1.0.GA\server\mdb-example-profile
      \deploy\messaging.sar
      [copy] Copying 1 file to C:\Java\jboss-5.1.0.GA\server\mdb-example-profile\
      deploy

      BUILD FAILED
      C:\Java\jboss-messaging-2.0.0.BETA3\examples\javaee\common\build.xml:140: Execut
      e failed: java.io.IOException: Cannot run program "sh" (in directory "C:\Java\jb
      oss-5.1.0.GA\bin"): CreateProcess error=2, The system cannot find the file speci
      fied


        • 1. Re: 5.1.0 CA and jboss messaging 2.0.0  beta 3 ---J2EE examp
          Clebert Suconic Master

          Please, take a look at docs/README.html:


          Running the Java EE examples on Windows
          
          The Java EE examples run by default with JBoss AS on Linux. To run them on Windows, you will have to replace the reference to run.sh by run.bat everywhere JBoss AS server is started (in /examples/javaee/common/build.xml, /examples/javaee/jca-config/build.xml, and /examples/javaee/xarecovery/build.xml)
          For example, in /examples/javaee/common/build.xml, replace:
          
          
           <exec dir="${jboss.home}/bin" executable="sh">
           <arg line="run.sh -c ${example.name}-example-profile"/>
           </exec>
          
          by
          
          
           <exec dir="${jboss.home}/bin" executable="cmd">
           <arg line="/c run.bat -c ${example.name}-example-profile"/>
           </exec>