Build problem with Weblogic components
Hello,
We have a build problem in our environment. We have two projects(let's say A and B projects). When we send the build request, build system loads those two projects into the server and first build's Project B then project A. A is dependent to B. If we run jbe.exe by using a bat file,build is terminated successfully. The problem is when we set up a Window's Task Scheduler and created a Basic Task to run the same bat file. Build fails. When I looked at the logs I see a missing parameter: Successfull Build: [wlwbuild] Executing 'D:\tools\bea814\jdk142_05\jre\bin\java.exe' with arguments: [wlwbuild] '-XX:-UseThreadPriorities' [wlwbuild] '-client' [wlwbuild] '-Xms64m' [wlwbuild] '-Xss256k' [wlwbuild] '-Xmx128m' [wlwbuild] '-Djava.system.class.loader=workshop.core.AppClassLoader' [wlwbuild] '-classpath' [wlwbuild] 'D:\tools\bea814\weblogic81\workshop\wlw-ide.jar' [wlwbuild] 'workshop.core.Compile' Failed Build: [wlwbuild] Executing 'D:\tools\bea814\jdk142_05\jre\bin\java.exe' with arguments: [wlwbuild] '-XX:-UseThreadPriorities' [wlwbuild] '-client' [wlwbuild] '-Xms64m' [wlwbuild] '-Xss256k' [wlwbuild] '-Xmx128m' [wlwbuild] '-Djava.system.class.loader=workshop.core.AppClassLoader' [wlwbuild] 'workshop.core.Compile' Those two lines are missing in the Failed build's log and that is causing the problem. [wlwbuild] '-classpath' [wlwbuild] 'D:\tools\bea814\weblogic81\workshop\wlw-ide.jar' All the classpath variables are defined in the ant.xml. As I said if I use comman line or a bat file, build is successfull. Does anyone have any idea what might cause this build problem when we use Windows TaskScheduler? |
2 answers
Hi Canberk,
I tested running jbe from a batch file using the windows task scheduler and it started with no problems on Windows 7. This is what I did. 1. Created build engine with ID, test. 2. Tested jbe on command line, C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse>jbe -repository https://vottscowan.ottawa.ibm.com:9443/ccm -userId scowan -pass scowan -engineId test 2013-04-17 09:17:31 [Jazz build engine] Running build loop... 2013-04-17 09:17:31 [Jazz build engine] Waiting for request... 3. Created build.bat to run jbe with the above parameters build.bat --- jbe -repository https://vottscowan.ottawa.ibm.com:9443/ccm -userId scowan -pass scowan -engineId test --- 4. Tested build.bat C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse>build C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse>jbe -repository https:// vottscowan.ottawa.ibm.com:9443/ccm -userId scowan -pass scowan -engineId test 2013-04-17 09:19:04 [Jazz build engine] Running build loop... 2013-04-17 09:19:04 [Jazz build engine] Waiting for request... 5. In Task Scheduler I created a basic task called build to run daily to start the program, "C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse\build.bat" in, C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse 6. After clicking the finish button, rather than waiting for the scheduled daily build, I selected the task and clicked the Run button to run it immediately. It started up a console displaying, C:\Program Files (x86)\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse>jbe -repository https://vottscowan.ottawa.ibm.com:9443/ccm -userId scowan -pass scowan -engineId test 2013-04-17 09:23:26 [Jazz build engine] Running build loop... 2013-04-17 09:23:26 [Jazz build engine] Waiting for request... I wasn't able to reproduce the problem you mentioned above. I also got it to run executing java with the command line, java -jar plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -repository https://vottscowan.ottawa.ibm.com:9443/ccm -userId scowan -pass scowan -engineId test The above is suggested if you choose to run a build engine as a service as described here, https://jazz.net/wiki/bin/view/Main/JbeAsAWindowsService Hope some of this helps, Scott |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.