Thursday 11 July 2013

ant-sca-compile.xml:158: C:\Program\lib does not exist.



Issue: ant-sca-compile.xml:158: C:\Program\lib does not exist.



Building in workspace C:\Dump\Vinodfusion
[Vinodfusion] $ cmd.exe /C '"c:\ant\bin\ant.bat -file DeploymentScripts -Dproperties="" -DOutput="" -DMDS="" -Dwn.bea.home=C:/Oracle/Middleware -DTemp="" -Dserver.user=weblogic -DoutputRootDir="" -Ddeployment.plan.environment=dev -Ddev.port=8001 -Dmds.enabled=true -Dtmp.output.dir=logs -DApplications/Projects="" -DFiles/Java/jdk1.6.0_34="" -DChoose="" -Ddev="" -Dwl_home=${wn.bea.home}/wlserver_10.3 -Doracle.home=C:/oracle/JdevMWHome/jdeveloper -Dmds.undeploy=false -DDeployment="" -DC=/builds/Vinodfusion -DbuildVersion="" -DProperties="" -Ddev.overwrite=true -Dmds.applications=true -Dapplications.home=../VinodfusionServices -Ddev.serverURL=http://vinodfusion:8001 -Dneed="" -D${outputRootDir}/${buildVersion}="" -DRevision="" -DGlobal="" -Dserver.password=welcome1-D1.0.0.1="" -Dservers="" -Djava.passed.home=C:/Program -Ddev.forceDefault=true -Dwhich="" -Dthe="" -D-------------------------="" -Drev=1.0 -DGeneral="" -Dlogs="" -Dapplication=Vinodfusion -Dserver="" -DDevelopment="" -DApplication="" -Ddev.password=octagon8 -DDetails="" -DServices="" -Dfor="" -DDirectory="" -DSpecific="" -DoutputDir="" -Denvironment="" -DEnvironment="" -Ddeployed="" -Dinformation="" -Ddev.server.host=vinodfusion -Dweblogic="" -Ddeployment="" -DSOA="" -D-----------------------------------------------------------------------="" -Ddev.user=weblogic -DProject="" -Dbe="" -Dcredential="" -Dto="" -Dmds.local.seed=../VinodfusionMDS/Seed -D= -Dbuild.properties="" buildAll && exit %%ERRORLEVEL%%"'
Buildfile: C:\Dump\Vinodfusion\DeploymentScripts\build.xml
     [echo] basedir C:\Dump\Vinodfusion\DeploymentScripts
     [echo] Ant: Apache Ant(TM) version 1.8.3 compiled on February 26 2012 Java: 1.6
    [input] skipping input as property server.password has already been set.
     [echo] oracle.home = C:/oracle/JdevMWHome/jdeveloper

BUILD FAILED
C:\Dump\Vinodfusion\DeploymentScripts\build.xml:14: The following error occurred while executing this line:
C:\Dump\Vinodfusion\DeploymentScripts\buildofmservices.xml:14: The following error occurred while executing this line:
C:\Dump\Vinodfusion\DeploymentScripts\ant-sca-compile.xml:158: C:\Program\lib does not exist.

Total time: 3 seconds
Build step 'Invoke Ant' marked build as failure
[WeblogicDeploymentPlugin] - build didn't finished successfully. The plugin execution is disabled.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT FAILURE
[INFO] ------------------------------------------------------------------------
Sending e-mails to: vinodreddy14@gmail.com
Notifying upstream projects of job completion
Finished: FAILURE


Resolution:

We noticed that values in  build.properties in jenkins are word wrapped( Means values are not completed in one line). Removed the word wrapp and Re-initiated in deployment and we are able to overcome the issue.

Issue: Java compilation failed.Failed to compile file(s) Method getVersions(java.lang.String, java.lang.String, java.lang.String) not found in class



Java compilation failed.Failed to compile file(s) Method getVersions(java.lang.String, java.lang.String, java.lang.String) not found in class

 



BUILD FAILED

Java compilation failed.
Failed to compile file(s) "Helloworld.bpel".
Exception reported is: Helloworld.bpel:710: Method getVersions(java.lang.String, java.lang.String, java.
lang.String) not found in class com.vinodfusionresearch. bpel.Helloword.HelloworldBPEL.
        String outputFileVersion = HelloworldBPEL.getVersions(taskID,userID);



Resolution:

Developer forget to promote Helloworld.java file.

Error ORABPEL-10903]: failed to read wsdl



    [bpelc] BPEL validation failed.
    [bpelc] BPEL source validation failed, the errors are:
    [bpelc]
    [bpelc]  [Error ORABPEL-10903]: failed to read wsdl
    [bpelc]  [Description]: in "bpel.xml", Failed to read wsdl.
    [bpelc] Failed to read wsdl at "
http://vinodsoa.fusion.com:7778/orabpel/default/Helloworld/Helloworld?wsdl", because
 "Failed to read WSDL from http://vinodsoa.fusion.com:7778/orabpel/default/Helloworld/Helloworld?wsdl: HTTP connection error code is 403".
    [bpelc] Make sure wsdl is valid. You may need to start the OraBPEL server, or make sure the related bpel proce
ss is deployed correctly.
    [bpelc] .
    [bpelc]  [Potential fix]: If your site has a proxy server, then you may need to configure your BPEL Server, de
signer and browser with your proxy server configuration settings (see tech note on http://otn.oracle.com/bpel for
instructions).
    [bpelc] .
    [bpelc]

BUILD FAILED



Resolution:


Verified bpel.xml in the Service, there partner links are pointing to <hostname> (say vinodsoa.fusion.com)  instead of localhost.

Open the service with Jdeveloper and replace the vinodsoa.fusion.com with localhost in url.
Save the changes and promote it.
Taken a new snapshot and build, build successful.

[Error ORABPEL-10902]: compilation failed in "bpel.xml", XML parsing failed because "undefined part element.



Issue: [Error ORABPEL-10902]: compilation failed in "bpel.xml", XML parsing failed because "undefined part element.


compile:
     [echo]
     [echo] --------------------------------------------------------------
     [echo] | Compiling bpel process HelloDocument, revision 1.0
     [echo] --------------------------------------------------------------
     [echo]
    [bpelc] home directory is: C:\Services Code\Build-Scripts/bpel
[GC 104194K->95700K(145728K), 0.0403118 secs]
[Full GC[Unloading class com.vinodfusionresearch..bpel.utils.ant.BPELUndeployTask]
 100308K->81394K(145728K), 1.2544363 secs]

    [bpelc]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [bpelc]     at org.apache.tools.ant.Main.runBuild(Main.java:811)
    [bpelc]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [bpelc]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    [bpelc]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    [bpelc] ORABPEL-01501
    [bpelc]
    [bpelc] undefined part element.
    [bpelc] In WSDL at "http://vinodsoa.fusion.com:7778/esb/slide/ESB_Projects/temp_ESB_Hello_Manager_localhost.or
st.com/Hello_ManagerInterface.wsdl", message part element "{http://xmlns.vinodfusionresearch.com// Hello_Manager Service}checkUserPrivilege" is not defined in any of the schemas.
    [bpelc] Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    [bpelc]
    [bpelc] ORABPEL-01021
    [bpelc]
    [bpelc] BPEL validation failed.
    [bpelc] BPEL source validation failed, the errors are:
    [bpelc]
    [bpelc]  [Error ORABPEL-10902]: compilation failed
    [bpelc]  [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
    [bpelc] In WSDL at "http://vinodsoa.fusion.com:7778/esb/slide/ESB_Projects/temp_ESB_Hello_Manager_localhost.fusion.com/Hello_ManagerInterface.wsdl", message part element "{http://xmlns.vinodfusionresearch.com//author
izationManagerService}checkUserPrivilege" is not defined in any of the schemas.
    [bpelc] Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    [bpelc] ".
    [bpelc]  [Potential fix]: n/a.
    [bpelc] .
    [bpelc]
    [bpelc]     at com.collaxa.cube.lang.compiler.CubeProcessor.validateClientSide(CubeProcessor.java:1133)
    [bpelc]     at com.collaxa.cube.lang.compiler.CubeProcessor.transformClientSide(CubeProcessor.java:449)
    [bpelc]     at com.collaxa.cube.lang.compiler.CubeParserHelper.compileClientSide(CubeParserHelper.java:83)
    [bpelc]     at com.collaxa.cube.ant.taskdefs.Bpelc.execute(Bpelc.java:626)
    [bpelc]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [bpelc]     at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
    [bpelc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [bpelc]     at java.lang.reflect.Method.invoke(Method.java:585)
    [bpelc]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [bpelc]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [bpelc]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [bpelc]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [bpelc]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [bpelc]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [bpelc]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [bpelc]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [bpelc]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [bpelc]     at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
    [bpelc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [bpelc]     at java.lang.reflect.Method.invoke(Method.java:585)
    [bpelc]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [bpelc]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [bpelc]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [bpelc]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [bpelc]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [bpelc]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[GC 92289K->83027K(145900K), 0.0387964 secs]
    [bpelc]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
   
    [bpelc]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [bpelc]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [bpelc]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [bpelc]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [bpelc]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [bpelc]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [bpelc]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [bpelc]     at org.apache.tools.ant.Main.runBuild(Main.java:811)
    [bpelc]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [bpelc]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    [bpelc]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    [bpelc] BPEL validation failed.
    [bpelc] BPEL source validation failed, the errors are:
    [bpelc]
    [bpelc]  [Error ORABPEL-10902]: compilation failed
    [bpelc]  [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
    [bpelc] In WSDL at "
            http://vinodsoa.fusion.com:7778/esb/slide/ESB_Projects/temp_ESB_Hello_Manager_vinodsoa.fusion.com/Hello_Manager.wsdl", message part element "{
http://xmlns.vinodfusionresearch.com//Hello_ManagerService}checkUserPrivilege" is not defined in any of the schemas.
    [bpelc] Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    [bpelc] ".
    [bpelc]  [Potential fix]: n/a.
    [bpelc] .
    [bpelc]

BUILD FAILED
C:\Services Code\Build-Scripts\buildservices.xml:33: The following error occurred while executing this line:
C:\Services Code\Build-Scripts\buildservices.xml:293: The following error occurred while executing this line:
C:\Services Code\Build-Scripts\buildscripts\Helloword\buildHellowordService.xml:84: The
following error occurred while executing this line:
C:\Services Code\Build-Scripts\buildscripts\Helloword\buildHello.xml:54: Validation
error

Total time: 9 minutes 6 seconds

Resolution:


Verified the schema, wsdl and bpel.
When i tried to open the BPEL and ESB Consoles. ESB console is opened with DT server error, then verified the opmn log in that ” oracle DB is not available” error is displaying.

DB is in down state.

DB is restored from DB crash build and deployment went successful.