1 2 Previous Next 23 Replies Latest reply on Feb 11, 2015 8:21 AM by Kevin Conner

    urgent :: problem with helloworld ::  build failed on deploy

    P K Newbie

      hi
      I am new to jbossesb.
      I m following all step mentioned in PDF for deploying quickstarts's helloworld sample but i get following error.

      Buildfile: C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build.xml
      prepare:
      compile:
      jars:
       [jar] Building jar: C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build\Quickstart_helloworld.jar
      deployToSAR:
       [echo] Deploys the project to the JBoss Application Server ESB SAR
       [copy] Copying 1 file to C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar
       [copy] Copying 1 file to C:\jboss-4.0.5.GA\server\default\conf
       [touch] Creating C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar\META-INF\jboss-service.xml
      
      BUILD FAILED
      C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build.xml:74: Could not create C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar\META-INF\jboss-service.xml
      



      please help it's urgent.

        • 1. Re: urgent :: problem with helloworld ::  build failed on de
          Kevin Conner Master

          You do not say which version you are using but I would guess that you have forgotten to deploy the ESB into the app server before running the quickstarts.

          IIRC it has been a long time since the quickstarts copied anything into the jbossesb.sar deployment, can you update your ESB to a more recent version?

          • 2. Re: urgent :: problem with helloworld ::  build failed on de
            P K Newbie

            I am using jboss-4.0.5.GA.

            from where i have to coppy jbossesb.sar ?

            • 3. Re: urgent :: problem with helloworld ::  build failed on de
              Kevin Conner Master

              Which version of ESB are you using?

              There should be instructions in the GettingStarted guide which explains what is required to deploy the ESB into the app server.

              • 4. Re: urgent :: problem with helloworld ::  build failed on de
                P K Newbie

                i m following these steps.

                
                1. Download JbossIDE-2.0.0-Beta2-Bundle-win32.zip
                
                2. Download jbossesb-4.0GA-bundle.zip
                
                3. Create a c:\tmp directory
                
                4. unzip jbossesb-4.0.GA-bundle.zip in this directory
                
                5. run ant install from the C:\tmp\install directory
                This creates a jboss-4.0.5.GA directory with JBossESB deployed on JBossAS-4.0.5
                6. Unzip the jbossIDE-bundle to C:\ . It should create a C:\eclipse directory
                
                7. Create shortcut to it with target:
                C:\eclipse\eclipse.exe -vmargs -Xms256m -Xmx512m -X:MaxPermSize=128M
                Note that the '-X:MaxPermSize=128M', eclipse used to crash a lot for me without it.
                
                8. Start eclipse from the shortcut. Set your workspace to C:\eclipse\workspace
                
                9. Create a new java project called jbossesb
                
                10. Import the jbossesb sample like this:
                
                In resource perspective it now looks like
                Add the following jars to your classpath
                and add the quickstart/helloworld folder a source folder:
                Now add a server configuration:
                Right click in the 'server view' window and add a new server:
                Set the name to jbossesb, and set the home directory to C:\jboss-4.0.5.GA
                
                Click next, and then finish and see the jbossesb in your server view
                Right click on the jbossesb server and select 'open'
                Click on 'Open Launch Configuration
                Add -Xmx256M in the VM arguments
                Goto to the source tab and click 'add'
                
                Select the jbossesb project
                Now click the little bug to start the server and see the log start scrolling by:
                JBossESB is now up and running :).
                Now we want to deploy helloworld. Let's add the 'ant view'
                Right click in the new 'Ant' panel on the right and select add build file.
                
                Select the helloworld/build.xml
                Also open the same build.xml in your editor and remove line 28:
                <fileset dir="${basedir}/lib" includes="*jar"/>
                There is no such directory.
                In the compile target add: debug=?true? to make sure debugging works
                <target name="compile" depends="prepare">
                <javac srcdir="${src.dir}"
                debug="true"
                destdir="${build.dir}">
                <classpath refid="classpath"/>
                </javac>
                </target>
                
                Now you if you followed the same defaults you can leave the quickstart.properties alone, if not you
                have to edit it.
                
                Next you have to manually copy the quickstarts/esb-quickstart-service.xml to the
                C:\jboss-4.0.5.GA\server\default\deploy directory
                Run 'clean', 'compile' and then 'deployToSar'
                This deploys the helloworld code and configuration to jboss. See the console scroll:
                
                Here i got error.
                
                
                17:41:35,401 INFO [ConfigurationController] loading configuration..
                17:41:35,917 INFO [Generator] Serializing ESB Aware Listener 'ConfigTree'
                configuration to [C:\jboss-4.0.5.GA\server\default\conf\jbossesb-listener.xml].
                17:41:35,932 INFO [Generator] Serializing ESB Gateway 'ConfigTree' configuration
                to [C:\jboss-4.0.5.GA\server\default\conf\jbossesb-gateway.xml].
                17:41:35,948 INFO [ConfigurationController] Parameter reload completed.
                17:41:39,604 INFO [ConfigurationControllerService] shutting down message aware
                listener...
                17:41:41,792 INFO [ConfigurationController] Exiting Config Controller...
                17:41:47,417 INFO [ConfigurationControllerService] starting message configuration
                controller with config file jbossesb.xml
                17:41:47,448 INFO [ConfigurationController] loading configuration..
                17:41:47,714 INFO [ParamFileRepository] Setting parameter repository root dir to
                [C:\jboss-4.0.5.GA\bin\.].
                17:41:48,370 INFO [Generator] Serializing ESB Aware Listener 'ConfigTree'
                configuration to [C:\jboss-4.0.5.GA\server\default\conf\jbossesb-listener.xml].
                17:41:48,385 INFO [Generator] Serializing ESB Gateway 'ConfigTree' configuration
                to [C:\jboss-4.0.5.GA\server\default\conf\jbossesb-gateway.xml].
                17:41:48,401 INFO [ConfigurationController] Parameter reload completed.
                17:41:51,073 INFO [ConfigurationController] Configuration Controller instance
                started.
                
                Now let's set a break point in the MyListenerAction. Double click in left margin and get a blue dot
                Now from the Ant View let's send in a message by double clicking 'runtest'
                And see the following output in the console
                





                thanks for your rapid reply.

                looking forward.

                • 5. Re: urgent :: problem with helloworld ::  build failed on de
                  Kevin Conner Master

                  Okay, I have just downloaded that version and looked at it.

                  First of all, this is an old version, could you update to 4.2MR2 or subversion?

                  The installation you are following creates the AS instance and it should be the same as the file mentioned in your error report. Can you verify that the filename is correct?

                  If the filename is correct then it would suggest that something has the file open (I believe windows will lock open files).

                  Is there anything with the file open? If not, can you stop the app server and try the deploy again?

                  • 7. Re: urgent :: problem with helloworld ::  build failed on de
                    P K Newbie

                    I waiting for Ur reply its very urgent

                    • 8. Re: urgent :: problem with helloworld ::  build failed on de
                      P K Newbie

                      I am waiting for your reply, its very urgent

                      • 9. Re: urgent :: problem with helloworld ::  build failed on de
                        Mark Little Master

                        Please confirm you have updated to either MR2 or the trunk.

                        • 10. Re: urgent :: problem with helloworld ::  build failed on de
                          Kevin Conner Master

                          I gave you a reply earlier http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060685#4060685

                          The only other posting from you stated that everything was okay.

                          What problem are you having now?

                          • 12. Re: urgent :: problem with helloworld ::  build failed on de
                            P K Newbie

                            I followed instruction as given in http://wiki.jboss.org/wiki/attach?page=JBossESBJBossIDE%2FJBossIDE-HelloWorld.pdf

                            problem occurs when i follow this instruction.


                            Run 'clean', 'compile' and then 'deployToSar'





                            Buildfile: C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build.xml
                            prepare:
                            compile:
                            jars:
                             [delete] Deleting: C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build\Quickstart_helloworld.jar
                             [jar] Building jar: C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build\Quickstart_helloworld.jar
                            deployToSAR:
                             [echo] Deploys the project to the JBoss Application Server ESB SAR
                             [copy] Copying 1 file to C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar
                             [copy] Copying 1 file to C:\jboss-4.0.5.GA\server\default\conf
                             [touch] Creating C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar\META-INF\jboss-service.xml
                            
                            BUILD FAILED
                            C:\workspace-ESB\jbossESB\samples\quickstarts\helloworld\build.xml:74: Could not create C:\jboss-4.0.5.GA\server\default\deploy\jbossesb.sar\META-INF\jboss-service.xml
                            
                            Total time: 1 second
                            
                            
                            


                            please go through the link..and tell me where is the problem.


                            thanks for ur reply

                            • 13. Re: urgent :: problem with helloworld ::  build failed on de
                              Kevin Conner Master

                              Have you checked the following from my previous post???

                              The installation you are following creates the AS instance and it should be the same as the file mentioned in your error report. Can you verify that the filename is correct?

                              If the filename is correct then it would suggest that something has the file open (I believe windows will lock open files).

                              Is there anything with the file open? If not, can you stop the app server and try the deploy again?


                              • 14. Re: urgent :: problem with helloworld ::  build failed on de
                                P K Newbie

                                ya i have checked the following from your previous post.

                                1 2 Previous Next