Changing the wldeploy ant task behaviour

wldeploy ant task while deploying the application deploys it under <configured weblogic upload dir>/<application name>/app/ application name.
Is there any way we can change this behaviour as we couldnt find the options in ant task to change it

That is all you should have to do, the ant tasks are sitting inside the
weblogic.jar.
Cheers
mbg
"Shane Witbeck" <[email protected]> wrote in message
news:[email protected]..
Rob Bennett <[email protected]> wrote in message
news:<[email protected]>...
What is required for the wldeploy ant task to function properly? I am
able to use it when I run ant from the command line and use the version
of ant that came with Weblogic 8 (I have the platform beta, not the
release version). When I try to use it inside of eclipse (which uses
its own copy of ant), the task fails.. it looks like it is trying to
generate RMI stubs. If anyone can shed light on what I am missing from
the eclipse environment, I would appreciate it.
-RobI actually just got it to work by adding the weblogic.jar to my
classpath. (Im using WL 8.1).
-Shane

Similar Messages

  • WL8.1 wldeploy Ant Task seems to be fairly slow...

    We currently have a clustered environment with 4 machines. When we try to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploy the ~30mb
    ear file. While this ear is being deployed users can not access the system. Is
    there anything I can do to increase these times?
    Thanks,
    Franz

    Rob,
    Thanks for your reply.
    My build.xml file exits and kills the server instance......do you know any means
    to rsolve it.
    iam not sure if i can use "fork" or something like that ????
    Please advise.
    -sangita
    Rob Woollen <[email protected]> wrote:
    Have a look at the Avitek Medical Records example that ships with WLS
    8.1. It shows you how to use wldeploy.
    -- Rob
    sangita wrote:
    if you don't mind, can you share your build.xml file here on this forum?
    iam trying to do exact same thing, but as my knowledge of ANT is little,iam having
    trouble. if you can share this xml file, then i would learn a littlefaster on
    how to deploy application on wls8.1 using ANT.
    i have read the document though .....but i wanted to see actual xmlfile as yours
    .........thanks !!!!!
    "Franz Garsombke" <[email protected]> wrote:
    We currently have a clustered environment with 4 machines. When we
    try
    to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploythe
    ~30mb
    ear file. While this ear is being deployed users can not access thesystem.
    Is
    there anything I can do to increase these times?
    Thanks,
    Franz

  • Wldeploy Ant task deploys app in 'New' state

    I am trying to deploy a web application in WL 10.0 using the wldeploy Ant task. However, everytime the application is deployed, the consolidated state is 'New' (or deferred deployment). I have to bounce the servers everytime to bring the app in the Active state.
    Here is my code:
    <target name="undeployWeb">
              <!-- Undeploy the existing deployment -->
              <wldeploy action="undeploy" verbose="true" debug="false" name="${deploymentName}" user="${weblogicUsername}" password="${weblogicPassword}" adminurl="${weblogicAdminURL}" targets="${weblogicTargetServers}" failonerror="false" />
    </target>
    <!-- Deploy .WAR to a target server -->
    <target name="deployWeb">
              <!-- Deploy the application remotely -->
              <wldeploy action="deploy" stage="stage" usenonexclusivelock="true" source="${weblogicDeploymentLocation}/${deploymentName}.war" remote="true" name="${deploymentName}" upload="false" user="${weblogicUsername}" password="${weblogicPassword}" verbose="true" adminurl="${weblogicAdminURL}" debug="true" targets="${weblogicTargetServers}" />
    </target>
    Is there any way to avoid the bounce of the target servers? I wish to activate the web app straightaway. Please help.
    ~hartbrekk

    Thanks user10939158, for looking into this.
    Reason I am saying network is not an issue here because the artifact copy to the remote servers and deployment happens fast, it is just at the step of closing DM connection, it is waiting for a long time (>5 mins). I am guessing that the Deployment Manager message exchanges with the server (internally) has something to do with LAN vs WAN. And, I would expect deployment over WAN take a minute extra as opposed to 5-9 minutes extra what we are seeing now.
    Yes, I tried running the wlst script on the remote server and it is fast as well.
    Just to clarify, I do not have a local server. I run the plain simple ant script on a build box(lean linux box) which is in the US.
    Thanks for your help again.
    - Kris
    Edited by: kris_2000 on May 25, 2010 2:08 PM

  • Are the Flex Ant tasks open source? If so, where to find them?

    I took a brief look into Flex SDK source and didn't see the Flex Ant tasks. Is this also open source? Where would I find it?
    I probably won't change anything, just want to take a look. Although, I'm annoyed that the tasks don't work in a similar fashion as the core ant tasks
    Thanks.

    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/antTasks
    Note that the way the tasks are put together ain't exactly pretty--they're just a very thin wrapper on mxmlc / compc / etc. There are some advantages to this approach, but if you're hoping to learn about the compiler options by looking at the task source, it could take some doing.

  • ClassCastException using Subant and wldeploy ant task

    Hi!
    I'm using subant to call all diffrent build.xml files located in subdirectories. The buildfile looks like this:
    <project name="extern.call" default="callall">
         <target name="callall">
              <fileset      id="buildfile.set" dir=".." includes="*2/build.xml">
                   <exclude name="Br*2/*"/>
              </fileset>
              <subant target="deploy-local" inheritall ="false" failonerror="true">
                   <fileset      refid="buildfile.set"/>
              </subant>
         </target>
    </project>
    The first called build.xml files works fine ... but the execution of the second build.xml (it's not important which file is the second one, it's crash always at the second call), stop with a "java.lang.ClassCastException".
    See Stacktrace:
    [subant] weblogic.Deployer -debug -nowait -verbose -upload -noexit -name ClarifyRead -source \build\ClarifyRead\delivery\ClarifyRead.ear -targets myserver -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [subant] dumping Exception stack
    [subant] java.lang.ClassCastException
    [subant] at weblogic.management.deploy.utils.DeployerHelper.uploadSource(DeployerHelper.java:586)
    [subant] at weblogic.Deployer.runBodyWithAuthenticatedSubject(Deployer.java:824)
    [subant] at weblogic.Deployer.runBody(Deployer.java:711)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [subant] at weblogic.Deployer.runMain(Deployer.java:566)
    [subant] at weblogic.Deployer.mainWithExceptions(Deployer.java:576)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [subant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [subant] at java.lang.reflect.Method.invoke(Method.java:324)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:264)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:204)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:182)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:112)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    There is no diffrent between using ant in eclipse environment or as standalone, the result it the same.
    Do someone else have the same problem?
    Kind regards
    Joseph

    Hi
    I got the same message and I couldn't resolve it too, I am wordering if you got the key to the problem?
    Thanks
    Daivd Huang

  • Is wldeploy ANT task just always says "BUILD SUCCESFUL" ?

    Hi All,
    Iam using ANT and my build.xml file looks something like this:
    <target name="deploy-now">
    <echo message="...........This is the developmenet
    box...deploying......"/>
    <wldeploy action="${deploy.utility}" upload="true"
    source="${source}" user="system" password="weblogic" nostage="true" verbo
    se="true" adminurl="${bedlam-t.admin.url}" debug="true"
    targets="${cmApplication.target}"/>
    </target>
    <target name="deploy-cm-testnet">
    <antcall target="deploy-now"> <param name="source"
    value="${cm1Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm2Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm3Application.source}"/>
    </antcall>
    </target>
    So, basically iam calling my target "deploy-now" three times by using
    <antcall>. Now my question is: iam getting BUILD SUCCESFUL although the
    output looks like:
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_TW_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [87] [Deployer:149026]Deploy application
    CMA_TW_333 on UPSCAP. [wldeploy] Application CMA_TW_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_TW_333 failed to transition
    from unprepared to prepared on server upscap_bedlam1t_s1. [wldeploy]
    Application CMA_TW_333 failed on server upscap_bedlam1t_s1. [wldeploy]
    Task 87 failed: [Deployer:149026]Deploy application CMA_TW_333 on UPSCAP.
    [wldeploy] Deployment failed on Cluster UPSCAP [wldeploy] dumping
    ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] dumping ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] Unpexpected Error Initializing Deployer:
    weblogic.Deployer$DeployerException: Deployment exit status=1
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_NO_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [88] [Deployer:149026]Deploy application
    CMA_NO_333 on UPSCAP. [wldeploy] Application CMA_NO_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to prepared
    on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to
    prepared on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333:
    prepared to unprepared on server upscap_bedlam1t_s1. [wldeploy] Module
    CMA_NO_333: prepared to unprepared on server upscap_bedlam1t_s1.
    [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 activating on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to active on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to
    active on server upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333
    activated on server upscap_bedlam1t_s1. [wldeploy] Task 88 completed:
    [Deployer:149026]Deploy application CMA_NO_333 on UPSCAP. [wldeploy]
    Deployment completed on Cluster UPSCAP
    BUILD SUCCESSFUL
    Please advise ......how can i show that the BUILD is NOT succesful as
    there were EXCEPTIONS generated.....is ANT just always says "BUILD
    SUCCESFUL"

    Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the DM connection
    [wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
    [wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
    BUILD SUCCESSFUL
    Total time: 7 minutes 15 seconds
    is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
    Please Help! Thanks!

  • Wldeploy ant task and WLS 7?

    I'm trying to set up an ant task for WLDeploy in WLS 7. To docs reference the class as:
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    But where is that class? It's not in weblogic.jar.
    TIA,
    Jon

    Just a followup: this ant task does not exist in early service packs. I'm not sure where it first shows up, but it does exist in SP 7.

  • How to change the default workspace polling behaviour

    Here are the instructions on how to change the polling interval in workspace:
    The workspace source project is usually under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace)
    The file that needs to be modified is SessionManager.as and is under  (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\foundation\src\lc\fou ndation)
    Set the value in a javascript file and then read this from the Workspace app.  You can see an example of this in the same createChannelSet() method wrt the “enableSmallMessages” variable. To do this:
    1- Add the following lines to the workspace-config.js file right after the enableSmallMessages var definition (the js file is in the sdk under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\ui\html-template\js) – note that my example sets it to 10 seconds:
    1- Then in the createChannelSet() method, define a new var with the same name and type=Number and default it to 3000 (to be consistent with the current behaviour):
                   var pollingInterval:Number = 3000;
    2- Then, in the existing block where ExternalInterface.available is true, add the line to read the new value from the js file like this:
                  pollingInterval = ExternalInterface.call(“pollingInterval”);
    3- Set pollingInterval on the channel with:
                 channel.pollingInterval = pollingInterval;
    4- Add this function to the workspace-config.js file
          // pollingInterval is the channelset polling interval in millisecs   
          function pollingInterval()
                return 10000;
    Compile this code and rebuild the workspace war, making sure the war contents contain the updated js file too, and then the polling interval will be read from the js file, making it much easier to change.
    Here is the doc on how to customize workspace: http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf

    Changing the Workspace Polling intervals just got a whole lot easier.  Go to http://blogs.adobe.com/ADEP/2011/08/workspace-polling-in-adep.html for more info.

  • Compilation of adobe air app that uses ANE fails while using the flex ant tasks.

    The resolution seems to be a hack - which when you rename .ane files to .swc, it works.
    I came across this workaround here: http://stackoverflow.com/questions/11112705/using-ant-mxmlc-task-with-native-extension?rq= 1
    <mxmlc file="${app.root}/app.as" 
                   output="${output.dir}/app.swf"
                   allow-source-path-overlap="true"
                   debug="false"
                   actionscript-file-encoding="UTF-8"
                   swf-version="19" >
                <load-config filename="${framework.root}/air-config.xml"/>
                <source-path path-element="${framework.root}"/>
                <source-path path-element="src"/>
                <source-path path-element="other"/>
                <compiler.library-path dir="libs" append="true">
                    <include name="**/*.swc"/>
                </compiler.library-path>
                <!-- THIS DOES NOT WORK -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.ane"/>
                </compiler.external-library-path>
            </mxmlc>
    However, if I rename all the .ane files in the nativeExtension directory to .swc the following change works..
                <!-- THIS WORKS -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.swc"/>
                </compiler.external-library-path>
    Has this issue been addressed?
    I'm using the following:
    - Adobe AIR SDK & Compiler (version 3.7) for Mac OS X
    - ActionScript Compiler 2.0
    - Apache Ant wrapper located in "AIRSDK_Compiler/ant/lib/flexTasks.jar"
    Let me know if any other details will be helpful.

    I'm using something like this in my build.xml (inapp.purchase.flash.swc is the flash wrapper for the ANE):
                <external-library-path dir="${basedir}/extensions/inapp.purchase/inapp.purchase.flash/bin" append="true">
                    <include name="inapp.purchase.flash.swc" />
                </external-library-path>
    I don't think you need ANE when building swf component of your app. ANE is only required for packaging. By linking with external inapp.purchase.flash.swc you're just telling action script compiler that above symbols will be defined later (in ANE).

  • Wldeploy ant task hangs at [ServerConnectionImpl.close():332] : Closing DM

    Hi All
    I am trying to deploy\undeploy a WAR file on weblogic server 10.3.5 using ANT wldeploy task, but no matter what i do it always hangs at the below and doesn't complete (although deployment and undeployment is successful)
    [wldeploy] [BasicOperation.execute():445] : Initiating deploy operation for app, ABCD, on targets:
    [wldeploy] [BasicOperation.execute():447] : osb_server1
    [wldeploy] Task 38 initiated: [Deployer:149026]deploy application ABCD on osb_server1.
    [wldeploy] Task 38 completed: [Deployer:149026]deploy application ABCD on osb_server1.
    [wldeploy] Target state: deploy completed on Server osb_server1
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + ABCD osb_server1
    [wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
    Below are the targets used in ANT script. Please help!
    <target name="undeploy" depends="buildWar">
    <wldeploy action="undeploy" name="ABCD" user="${username}" password="${password}" debug="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}" failonerror="false"/>
    </target>
    <target name="deploy" depends="undeploy">
    <wldeploy action="deploy" name="ABCD" source="${basedir}/ABCD.war" user="${username}" password="${password}" upload="true" debug="true" stage="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}"/>
    </target>

    Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the DM connection
    [wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
    [wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
    BUILD SUCCESSFUL
    Total time: 7 minutes 15 seconds
    is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
    Please Help! Thanks!

  • Extended Notification for UWL + Change the description of task/workitem

    Hi,
    I have implemented the Extended notification for UWL and I am getting the emails in outlook. Now the requirement is to customize the body of the email completely for the task '12300096'.
    I have tried going to PFTC->Description but it does not have full text which I am getting in the email. I tried SE63 also. But in the email I am getting
    The following work item requires processing in your SAP Workflow inbox in system xxx.
    <Task description>
    Log on to this system and process the work item.
    If you have problems logging on to the system, contact your system administrator.
    Now I want to remove the following lines;
    The following work item requires processing in your SAP Workflow inbox in system xxx.
    Log on to this system and process the work item.
    If you have problems logging on to the system, contact your system administrator.
    I don't find from where it's coming - please let me know how to remove these lines so that I can add my text in SE63.
    Thanks,

    Hi,
    Go to SWNCONFIG -> General settings.
    There you have TEXT_GOTO_INBOX - DTSWN_MSG_GOTO_INBOX. (I am not sure if this was the correct one, but you should check all the texts in general settings, if this was not the correct one.)
    Now open dialog text SWN_MSG_GOTO_INBOX in SE61 (you see that you need to remove the prefix DT from the name). Here is your text. You can make your own Z-version of a dialog text in SE61, and then use that in SWNCONFIG general settings.
    Regards,
    Karri

  • Is it possible to run the flexunit ant task without prompting the browser or anything?

    Every time I run the task the browser prompts out and ask me to unblock the generated "TestRunner.swf", only after which the build continues. I only need the test reports and I don't want to be interupted during the build. What can I do to hide the player behind the scene? Thanks very much.

    @sotestspacetimeriskind - Ideally I'd suggest using the stand-alone (projector) debug flash player rather than a browser to run the tests unless you have a need to use the browser; sounds like you're using IE on Windows currently.  You can find the latest SA Debug FP for Windows @  http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe.  After it's installed, you need to associate files with the SWF extension to be opened by the FP application.  On Windows you can do this by right-clicking on a SWF file and selecting "Open With..." from the context menu, then selecting the FP executable just installed, then selecting the check box on the file dialog choosing to open all future files with the application.  If you require the browser to run your tests due to features only found in Flex running in the browser, I'd suggest using a browser other than IE and the latest FlexUnit 4.1 binaries with the command property (see http://github.com/blegros/flexunit/blob/master/FlexUnit4SampleCIProject/build.custom.xml for an example and http://docs.flexunit.org/index.php?title=Ant_Task).
    If you're having trouble implementing the above, post your build script and environment specs and we'll try to help you out further.
    -Brian

  • Are the WLS 9.1 Web Service Ant Tasks ready for prime time?

    I am trying to create a Proof of Concept (POC) for Enterprise and B2B Services at Wendy's Int'l, Inc.
    As part of this POC, I created a WSDL for an in-house service and then used the wsdlc and jwsc Ant Tasks to translate this WSDL to Java classes and ultimately (I hoped) a deployable services.
    In this document, I describe the issues I encountered setting up what I consider to be a simple POC.
    I'll try to attach my WSDL file and build.xml so you can follow along.
    I'll also try to attach my CSS file so you can compare how the generated WSDL appears in the Browser to the way I want it to appear.
    If attachments are not allowed on these forums, then I will wait and see if there is interest in those documents before I paste them under this topic.
    Some preliminary information about my environment.
    Environment:
         Windows XP Pro SP2
         WebLogic 9.1
         Java 1.5.0_04
    Service Name:
         AppRelease
    Note: If I modify my WSDL (perhaps to add a new Operation or to change the definition of an element) and run wsdlc again, the AppReleaseSOAPPortImpl.java file is overwritten For this reason, I implemented my service logic in a class called AppReleaseServiceImple.java.
    Now, for the issues.
    1.     Bug:
    In the WSDL generated by wsdlc, the wsdl:part child of the wsdl:message tag is erroneously prefixed with a colon.
    This occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    2.     Bug:
    In the WSDL generated by wsdlc, the wsdl:input and wsdl:output children of the wsdl:operation child of wsdl:portType tag are erroneously prefixed with a colon. Like 1 above, this occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    The error message generated by Bugs 1 and 2 is not helpful in diagnosing the problem:
    [jwsc] Error at line:46 col:7 ':' expected [?! -- [CDATA[ ]
    3.     Bug:
    In the WSDL generated by wsdlc, the documentation elements have all of my html elements stripped out, as well as my xhtml and wsdl namespace references. This completely negates one of the best features of the documentation tag, being able to present the WSDL in a browser as a nicely formatted, human friendly document which is also the underlying WSDL that can be viewed when the person views the source document.
    I label this as a bug because it greatly reduces the functionality of the resulting WSDL.
    4.     Annoyance:
    The WSDL generated by wsdlc has all of my comments stripped out, except the comments in the xsd:schema section of the wsdl:types element. I would prefer that all my comments be left in the WSDL, but if comments must be stripped out then I think all of the comments should be stripped out.
    5.     Annoyance:
    The WSDL generated by wsdlc has my CSS specification stripped.
    Work around: I don’t know if adding the CSS back will do any good because I have not yet created a deployable service (see the last issue below).
    6.     Annoyance:
    The WSDL generated by wsdlc has different namespace prefixes than the ones I specified for my application's namespace and for the http://schemas.xmlsoap.org/wsdl/soap/ namespace.
    Work around: Perform a find/replace on namespace prefixes "s0" and "s1" to return them to my prefered values.
    Another thing I can do at this point is simply replace the generated WSDL in the jar file with my original WSDL. This would address issues 1 thru 6 above.
    7.     Annoyance:
    The java source files created by wsdlc are put into a jar file. This makes it annoying when working within a traditional IDE like Eclipse because there is no way to reference the source files within the jar as working source.
    Work around: Extract the source files from the jar and identify the resulting directory structure as part of the source structure of the project.
    8.     Bug:
    The jwsc task complains if the same parameter name is used in multiple operations. I received the following Errors from jwsc:
    [jwsc] C:\IDE\workspace\Acre-WL9.1\AppReleaseSOAPPort.java 0:0
    [jwsc] [ERROR] - Parameter element "{http://acre.services.wendys.com/AppRelease/}garRequest" is not unique across document/literal bare WebService.
    Since the operation names are unique, I see no reason to also require uniqueness in the parameter names used by those operations.
    Work around: Use unique element names for the input parameters of the services operations.
    9.     Bug:
    Once items 1, 2 and 8 above are taken care of, jwsc fails with the following error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    This seems to be due to the weblogic.jar file not being in the System Classpath.
    However, I should note that when I set verbose="on" and debug="on" in the jwsc ant task, there was a message from the task which stated "[jwsc] [search path for class files: [big freakin’ jar list]". In the big freakin’ jar list, I did find weblogic.jar and weblogic.jar has the required ApplicationBeanImpl. This indicates to me that the jwsc task does not fully honor either its classpathref attribute, nor an embedded classpath element.
    Work around: Make sure the weblogic.jar is in the System Classpath.
    10.     Bug:
    I fixed bug #9 by running a setDomainEnv script and then ran my ant task. This time I received the following output:
    ant build-serviceBuildfile: build.xml
    build-service:
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java
    [jwsc] JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java Validated.
    [AntUtil.deleteDir] Deleting directory <some temporary directory>
    BUILD FAILED
    java.lang.ExceptionInInitializerError
    At this point, I am completely stymied about how to proceed.
    I wonder what new issues await once this 10th issue is addressed.
    Really, is this tool set ready for prime time?

    <i>Sorry to hear you are having so many issues with using the WLS 9.1 web service Ant tasks, inside of Eclipse.
    I generally create a User Library for the couple weblogic jars needed, and use it (the User Library) in my Eclipse projects that I create JWSes in.</i><br>
    I also have a separate WebLogic Library in Eclipse (actually 2 libraries since I work with WL 8.1 and now WL 9.1). As you may know, one of the long-standing issues with the Ant integration within Eclipse is the fact that Ant, being an External Tool, does not receive the Project-specific Paths/Libraries. However, since most Java-relevant Ant tasks can take classpath and classpathref attributes, this is usually not an issue. In the case of the BEA-supplied wsdlc Ant task, it is apparent from the verbose/debug console output that wsdlc can see the jars in its classpathref, but it ignores those references when resolving class references and instead only uses the system classpath.
    <p>
    <i>I've only needed the weblogic.jar and xbean.jar, not all the ones you mentioned in an earlier thread of this post.</i><br>
    I have not tried to winnow down exactly which jars are required. I simply included all the jars that exist and were added to the system classpath by the setDomainEnv.bat file created by WebLogic 9.1.
    <p>
    <i>Afterwards, I create an Ant Builder to build the JWS Web Service EAR, as opposed to fiddlin' with Eclipse.</i><br>
    I too use Ant to build my deployable archives. Eclipse is simply my IDE of choice. I validated that all the issues I listed occurred when running Ant from the command line.
    <p>
    <i>If you are interested in how I do it, send me an e-mail (to [email protected]), and I'll send you a zip of one of these JWS projects. The build.xml script for the project, takes care of a lot of the "annoyances" you mentioned, one of which I think is not accurate. I have never had a situation where the wsdlc Ant task "overwrote" my XXXImpl.java file..</i><br>
    Since I'm doing a POC to determine how we want to proceed with developing Web Services and an SOA in general, I tried to perform the same tasks using Axis 2 1.0, the WebLogic 9.1 tools, and XFire 1.1. Overwriting the Impl class is a common failing in the tools which take a WSDL and create Java source files for all three frameworks.
    <p>
    Try my scenario. Add another operation to an existing WSDL, and run the wsdlc Ant Task. The old IMPL class will be over-written.
    <p>
    Because of this, I have a separate Impl class and I make sure that all its methods and annotations match the methods and annotations in the Skeleton Impl class created by wsdlc.
    <p>
    <i>Maybe that's because I use the <exec> Ant task with jar.exe (the xvf options) in my build.xml, to only get what I need out of the .jar/.zip the wsdlc generates. I'm typically only interest in the interface class that my XXXImpl.java file needs to implements, because I use XMLBeans for the input args (and return values) of my web service operations.</i><br>
    Perhaps. I am not using XMLBeans in any of the three frameworks because the resulting service seems to be lighter-weight in all three frameworks if XMLBeans is not used. I'm sure there will be scenarios where XMLBeans is preferred, but I have not encountered that case in this POC.
    <p>
    <i>Regards,
    Mike Wooten</i>
    Thanks for the follow-up.
    Mike McAngus

  • Why wlappc ANT task forces aways the generation of the EJB classes ?

    I've got a problem with the ANT task "wlappc" witch interfaces Weblogic compilator.
    In fact, I would like to execute the ebj compilation only when needed (if the deployment descriptor or a class changed for example).
    It seems that this is the default behavior and the 'forcegeneration' option of the wlappc Ant task can change it (the doc is below).
    forceGeneration :
    Forces generation of EJB and JSP classes. Without this flag, the classes will not be regenerated unless a checksum indicates that it is necessary.
    So I wrote :
    <wlappc source="${descriptors}/CommandeEntities" output="${build}/CommandsEntities.jar" keepgenerated="true" verbose="true" forcegeneration="false">
         <classpath refid="ejb.classpath"/>
    </wlappc>
    but I got the folowing result :
    ejbjar:
    [wlappc] Warning, output location exists H:\devWv2\wv2\build\CommandesEntities.jar
    [wlappc] Created working directory: C:\DOCUME~1\vdoneva\LOCALS~1\Temp\appcgen_1221729775921_CommandesEntities
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [VersionHelper] Recompiling because no previous hashes found
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Compliance Checker said bean was compliant
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating Bean Sources
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating source for ejb WCritereListeMulticritere
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generated the following sources for this EJB: [C:\DOCUME~1\vdoneva\LOCALS~1\Temp\appcgen_1221729775921_CommandesEntities\com\experian\wv2\db\WCritereListeMulticritere_u6449c_LocalHomeImpl.java, C:\DOCUME~1\vdoneva\LOCALS~1\Temp\appcgen_1221729775921_CommandesEntities\com\experian\wv2\db\WCritereListeMulticritere_u6449c_ELOImpl.java]
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating Persistence Sources
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating Bean Sources
    [wlappc] 18 sept. 2008 11:22:59 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating source for ejb Document
    [wlappc] 18 sept. 2008 11:23:00 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generated the following sources for this EJB: [C:\DOCUME~1\vdoneva\LOCALS~1\Temp\appcgen_1221729775921_CommandesEntities\com\experian\wv2\db\Document_6vm6yi_LocalHomeImpl.java, C:\DOCUME~1\vdoneva\LOCALS~1\Temp\appcgen_1221729775921_CommandesEntities\com\experian\wv2\db\Document_6vm6yi_ELOImpl.java]
    [wlappc] 18 sept. 2008 11:23:02 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Generating Persistence Sources
    [wlappc] 18 sept. 2008 11:23:02 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Compiling EJB sources
    [wlappc] Note: Some input files use unchecked or unsafe operations.
    [wlappc] Note: Recompile with -Xlint:unchecked for details.
    [wlappc] 18 sept. 2008 11:23:10 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Recompilation completed
    [wlappc] 18 sept. 2008 11:23:10 weblogic.diagnostics.debug.DebugLogger debug
    [wlappc] FIN: [EJBCompiler] Rmic completed
    [wlappc] Compilation completed successfully.
    [jar] Updating jar: H:\devWv2\wv2\build\CommandesEntities.jar
    BUILD SUCCESSFUL
    All the classes witch hasn't changed has been checked and regenerated. The compliler says "Recompiling because no previous hashes found".
    But why ? It could be besause it creates a different working directory each time I execute this ant task ? Is this working directory configurable ?
    Would you have any idea of what's happening ?
    Thanks.

    You can find this in the 'org\apache\tools\ant\taskdefs\defaults.properties'
    file of %wl-home%\server\lib\ant\ant.jar
    --Sathish
    <Michael Lee> wrote in message news:[email protected]..
    I mean the definition of "wlappc" not the help for wlappc???thx.
    i.e.
    where can i find the sentence list below:
    <taskdef name="wlappc" classname="weblogic.ant.taskdefs.j2ee.Appc"/>
    I mean which files this "taskdef" is being in .

  • Wldeploy/wlserver Ant tasks & cruisecontrol output

    Hi,
    We are using the wlserver and wldeploy Ant tasks with cruisecontrol. We have found that the output from these tasks in included in the cruise email which is sent out, and are looking for a way to redirect this output to a file so that cruise doesn't think that this is warning output from the JVM. Currently, with all the deploy messages weblogic publishes cruise thinks that our code has 500 warnings.
    I would expect that this should be easy, but can't figure out for the life of me how to do it.
    Regards

    I'm coming back a few month later, and don't remember how I solved this problem. Today, I'm sure it is resolved, the task looks like this :
    <wldeploy action="deploy"
    source="${weblogic.deploy.dir}/${module.name}.ear"
    name="${module.name}"
    user="${weblogic.user}"
    password="${weblogic.password}"
    verbose="true"
    adminurl="${weblogic.adminurl}"
    debug="true"
    targets="${weblogic.servers.name}" />
    It should work since I've upgraded from WL 8.1 SP2 to WL 8.1 SP4.
    Regards
    Bernard

Maybe you are looking for

  • SSIS - Using Variables in Execute SQL Task Error

    The following query in my Execute SQL Task throws the following error when run - [Execute SQL Task] Error: Executing the query "SELECT @columnz = COALESCE(@columnz + ',[' + times..." failed with the following error:  "Must declare the scalar variable

  • Valuation grouping Code and Group together valuation area

    Hi,   I wan tto know what is mean by Valuation grouping code  in our system for all valuation  area it is 0001   can we create seperate account determination for different plant to same company code  or for one company we can create only one account

  • Can some GENIUS Please Explain this to Me!

    So I repair my permissions and whatnot regularly. One morning I woke up , run Disk Utility and bam! "*Invalid volume file count*" (should be 456416, instead of 456417) The volume Untitled needs to be repaired, bla bla... Whatever. I boot from disk bu

  • Disable "Overwrite existing files" when upload doument

    Dear team, in document library, when upload document, i don't want the document to overwrite the documents with the same name. there is chekbox in upload page, that is default checked, I searched and some people said that I can update the upload page

  • Add combo in matrix

    How to add combo in system matrix ?  I am adding a column in the matrix of A/R invoice.I am using the following code-   Dim matMatrix As SAPbouiCOM.Matrix         Dim objColumn As SAPbouiCOM.Column         Dim ddlAP As SAPbouiCOM.ComboBox objForm = S