This discussion is archived
1 2 3 4 5 6 Previous Next 77 Replies Latest reply: Nov 9, 2010 3:05 AM by 410021 Go to original post RSS
  • 45. Re: Dealing with changing service wsdl locations  in the ESB
    571736 Newbie
    Currently Being Moderated
    Hi Frank,

    To add to that: I will post a blog on this subject on the AMIS weblog today evening or tomorrow (http://technology.amis.nl/blog), I am in the process of putting it together.

    Cheers, Sjoerd
  • 46. Re: Dealing with changing service wsdl locations  in the ESB
    589072 Newbie
    Currently Being Moderated
    Thank you Sjoerd,

    I have -

    (1) downloaded and installed jaxb2_20070122.jar

    (2) updated ESBMetadataMigrationTaskdefs.xml with -

    <pathelement location="${imported.lib}/ESBMetadataMigration.jar"/>
    <pathelement location="${imported.lib}/commons-httpclient-3.0.1.jar"/>
    <pathelement location="${imported.lib}/xmlparserv2.jar"/>
    <pathelement location="${imported.lib}/commons-logging.jar"/>
    <pathelement location="${imported.lib}/commons-codec-1.3.jar"/>
    <pathelement location="${imported.lib}/oraesb.jar"/>
    <pathelement location="${imported.lib}/jaxb-impl.jar"/>
    <pathelement location="${imported.lib}/jaxb1-impl.jar"/>
    <pathelement location="${imported.lib}/activation.jar"/>
    <pathelement location="${imported.lib}/jaxb-xjc.jar"/>
    <pathelement location="${imported.lib}/jsr173_1.0_api.jar"/>
    <pathelement location="${imported.lib}/jaxb-api.jar"/>

    (3) removed redundant jaxb.properties as it is not needed for JAXB 2.0.2

    To do -

    (4) I'm about to try upgrading to Ant 1.7

    Problems still remaining -

    (5) extract of deployment plan still fails with -

    [deployESBProjects] Deployment Failed ...Unhandled Exception
    [deployESBProjects] java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:112)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:159)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.ESBProjectTask.deploy(ESBProjectTask.java:107)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeployESBProjectsTask.execute(DeployESBProjectsTask.java:103)
    [deployESBProjects] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [deployESBProjects] at org.apache.tools.ant.Task.perform(Task.java:364)
    [deployESBProjects] at org.apache.tools.ant.Target.execute(Target.java:341)
    [deployESBProjects] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [deployESBProjects] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [deployESBProjects] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [deployESBProjects] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [deployESBProjects] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

    (6) deployment still fails with -

    [deployESBProjects] Deployment Attempt Response :
    [deployESBProjects] <deploymentSummary>
    [deployESBProjects] <message>Entity Deployment Failed</message>
    [deployESBProjects] <errors>
    [deployESBProjects] <error code="1047" severity="5">
    [deployESBProjects] <description>Target of service "AssetRetailComms.RouteToRetail" ServiceOperation "BPELSystem.default.TransactionRatingProcess.TransactionRatingProcess_1_0.rateTransaction"
    doesn't exist </description>
    [deployESBProjects] <fix>Use existing service or service operation as target.Contact Oracle Support if error not fixable.</fix>
    [deployESBProjects] </error>
    [deployESBProjects] <error code="1047" severity="5">
    [deployESBProjects] <description>Target of service "AssetRetailComms.RouteToTrip" ServiceOperation "BPELSystem.default.TripProcess.TripProcess_1_0.onTransactionRated" doesn't exist </descript
    ion>
    [deployESBProjects] <fix>Use existing service or service operation as target.Contact Oracle Support if error not fixable.</fix>
    [deployESBProjects] </error>
    [deployESBProjects] </errors>
    [deployESBProjects] </deploymentSummary>

    - frank
  • 47. Re: Dealing with changing service wsdl locations  in the ESB
    589072 Newbie
    Currently Being Moderated
    Sjoerd,

    Progress!

    I'm now using ant 1.7.0.

    There was a bit of an issue setting up CLASSPATH's so that BPEL projects still compile - load %ORACLE_HOME%\bpel\bin\obsetenv.bat for BPEL stuff
    - then re-set ANT_HOME and add ant.jar to top of CLASSPATH

    The extractESBDeploymentPlan still fails ... BUT ... this time with the error -

    java.lang.NoClassDefFoundError: oracle/tip/esb/console/util/DOMUtil

    This is not in my copy of ESBMetadataMigration.jar that I got from -
    http://www.oracle.com/technology/products/integration/esb/files/esbdeploymentautomation.zip

    There is a oracle.tip.esb.client.tobeintegrated.DOMUtils class, but that doesn't really help.

    The hunt is still on!

    - frank
  • 48. Re: Dealing with changing service wsdl locations  in the ESB
    571736 Newbie
    Currently Being Moderated
    Hi Frank,

    Maybe this will help you to get to the next, and hopefully final, stage in your quest.
    The taskdef entry in ESBMetadataMigrationTaskdefs.xml looks like this:

    <taskdef resource="oracle/tip/esb/client/anttasks/antlib.xml">
    <classpath>
    <pathelement location="${imported.basedir}/ESBMetadataMigration.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/commons-httpclient-3.0.1.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/xmlparserv2.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/commons-logging.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/commons-codec-1.3.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/oraesb.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/activation.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/jaxb-api.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/jsr173_1.0_api.jar"/>
    <pathelement location="${env.SOA_DA_HOME}/lib/jaxb-impl.jar"/>
    </classpath>
    </taskdef>

    Note that we have bundled all libs into one directory.

    Hth,
    Sjoerd
  • 49. Re: Dealing with changing service wsdl locations  in the ESB
    571736 Newbie
    Currently Being Moderated
    Hi,

    Maybe this blog post is of use: http://technology.amis.nl/blog/?p=2371.

    Cheers, Sjoerd
  • 50. Re: Dealing with changing service wsdl locations  in the ESB
    519522 Newbie
    Currently Being Moderated
    Hi Dave. I have opened the SR, but they're giving me a hard time asking for more detail than I've already provided...so I suspect it's going to just get closed.

    ...richard
  • 51. Re: Dealing with changing service wsdl locations  in the ESB
    589072 Newbie
    Currently Being Moderated
    (1) Updated ESBMetadataMigrationTaskdefs.xml with this order and version of JAR's

    I still get the following error when extract deployment plan.

    java.lang.NoClassDefFoundError: oracle/tip/esb/console/util/DOMUtil

    (2) The good news is we found a way to finally overcome our project problems with BPEL's and ESB's We have successfully deployed the ESB projects, using some fancy foot-work. Namely -

    We use JDeveloper to -
    •     created SOAP service,
    •     point WSDL to local copy, and finally,
    •     add the routing rules, transformations or filters to ESB

    Then in ant we overwrite the WSDL location with a decent runtime location -

    <echo message="Setting runtime WSDL location ..."/>(2)
    <xmltask source="Comms_TransactionProcess.esbsvc" todir="build/esb">
    <replace
    path="/service/serviceDefinition/wsdlURL" withXml="<wsdlURL>http://@hostname@:@port@/orabpel/@domain@/Transaction/Transaction?wsdl</wsdlURL>"/>
    </xmltask>

    * This uses the very useful xmltask from http://www.oopsconsultancy.com/software/xmltask/ .

    Then I replace the @tokens@ using the standard ant "replace" task.

    This works!
  • 52. Re: Dealing with changing service wsdl locations  in the ESB
    414854 Newbie
    Currently Being Moderated
    Hi Frank,

    Thanks for this work-around!! We've had similar problems here, I posted a thread for that: esb deployment with ant problem

    There's still two TAR's open for that which are updated very sporadically by Oracle support...

    We're meeting Clemens Utschig tomorrow, and we'll discuss this issue with him. I'll update this thread if I have any new info.

    Cheers,
    Bas
  • 53. Re: Dealing with changing service wsdl locations  in the ESB
    414854 Newbie
    Currently Being Moderated
    Clemens mentioned that this is probably a bug. He suggested trying to switch ESB's WebDAV from using file based persistence to database persistence. You can do this by renaming the Domain_DB.xml file to Domain.xml, and restarting your instance.

    I'm not sure this is a definite fix though, since we're still testing this.

    HTH,
    Bas
  • 54. Re: Dealing with changing service wsdl locations  in the ESB
    579348 Newbie
    Currently Being Moderated
    Hi Sjoerd
    Are jabx jars and commons-httpclient-3.0.1.jar part of SOA 10.1.3.3 ...? Or still we need to download them separately..?

    Extracting & Deploying ESB's deployment plan works only with Ant 1.7 .
    But Oracle SOA comes with Ant 1.6 . So Ant 1.7 is also separate download..?

    All these, because If all of above softwares are separate download apart from Oracle SOA suite then we need to licencing them too. Right.?

    thanks
    /Mishit
  • 55. Re: Dealing with changing service wsdl locations  in the ESB
    130180 Newbie
    Currently Being Moderated
    Hi Mishit/Frank

    I have managed to deploy an ESB project with a deployment plan fine, without having to change the ESBMetadataMigrationTaskdefs.xml

    I just had to ensure my ORACLE_HOME pointed at the SOA Suite install. All the required files are available here.

    The only problem I now have with deployment is that for some services in my ESB, there is a property being extracted called OpaqueSchema which the deployESBSuitcase does not like.

    I have to comment this out of my deploymentPlan as follows:

    <jcaOperation>
    <property value="oracle.tip.adapter.apps.AppsWFBesQueueDequeueActivationSpec" name="ActivationSpec"/>
    <property value="WF_BPEL_Q" name="QueueName"/>
    <property value="APPS" name="DatabaseSchema"/>
    <property value="ORA_8p248c9m88okagq46h13ch9i69" name="Consumer"/>
    <property value="tab.user_data.event_name = 'oracle.apps.ar.hz.OrgBO.update'" name="MessageSelectorRule"/>
    <!-- <property value="false" name="OpaqueSchema"/> -->
    </jcaOperation>

    Apart from that I have deployed a number of projects now.

    Chris
  • 56. Re: Dealing with changing service wsdl locations  in the ESB
    579348 Newbie
    Currently Being Moderated
    Hi Chris
    Can you plz paste the snippet of ur ESBMetadataMigrationTaskdefs.xml..?
    I have managed to deploy ESB projects with DeploymentPlan too , but
    all I need is jaxb jars,common-http-client.jar and ANT 1.7 which don't come with oracle SOA.

    thanks
    /Mishit
  • 57. Re: Dealing with changing service wsdl locations  in the ESB
    571736 Newbie
    Currently Being Moderated
    Hi Mishit, Chris, Frank et al,

    The jaxb.jar lib is required by Doug's ESB deployment package.
    In stead of the commons-http-client.jar the oracle_http_client.jar that is delivered with App Server / SOA Suite may also work fine.
    With respect to Ant 1.7: we did not manage to get it working without that version; see similar posts in this forum.

    Cheers,
    Sjoerd
  • 58. Re: Dealing with changing service wsdl locations  in the ESB
    130180 Newbie
    Currently Being Moderated
    All

    I concur with Sjoerd, ant 1.7 is required

    Mishit: You can download the commons stuff, jaxb and ant for free!


    <property name="commons.httpclient.home" value="./lib/commonshttpclient"/>
    <property name="jaxb.v2.0.2.home" value="./lib/jaxb"/>
    <property name="soa.suite.home" value="${ORACLE_HOME}"/>

    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Custom ant task definitions, to enable import.
    - This section should be treated as immutable upon installation.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <dirname property="imported.basedir" file="${ant.file.ESBMetadataMigrationTaskdefs}"/>

    <taskdef resource="oracle/tip/esb/client/anttasks/antlib.xml">
    <classpath>
    <pathelement location="${imported.basedir}/ESBMetadataMigration.jar"/>
    <pathelement location="${commons.httpclient.home}/commons-httpclient-3.0.1.jar"/>
    <pathelement location="${soa.suite.home}/lib/xmlparserv2.jar"/>
         <pathelement location="${soa.suite.home}/integration/esb/lib/commons-logging.jar"/>
    <pathelement location="${soa.suite.home}/integration/esb/lib/commons-codec-1.3.jar"/>
    <pathelement location="${soa.suite.home}/integration/esb/lib/oraesb.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/activation.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-api.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jsr173_1.0_api.jar"/>
    <pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-impl.jar"/>
    </classpath>
    </taskdef>


    As you can see, it's vanilla....

    C
  • 59. Re: Dealing with changing service wsdl locations  in the ESB
    579348 Newbie
    Currently Being Moderated
    Thanks Chiris,Sjoerd.
    This confirms my understanding that we need to download jaxb jars , common-http-client jar(can be replaced with oracle_http_client) and Ant 1.7 apart from SOA 10.1.3.3.

    cheers
    /Mishit