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.

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

  • 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

  • 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

  • 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!

  • Autotype ant task and java source file having method which  returns hashmap

    Hi Friends,
    I am using autotype ant task to generate types.xml and supporting java classes.
    The task is defined as follows .
    <target name="std">
    <source2wsdd javaSource="HelloWorld.java"
    typesInfo="types.xml"
    ddFile="ddfiles/web-services.xml"
    serviceURI="/HelloWorldService"/>
    </target>
    In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
    C:\test-ws\javaclass>ant auto
    Buildfile: build.xml
    auto:
    [autotype] Autotyping for javaTypes TestBean
    [autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
    : interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
    a/util/Map.class. All classes that will be serialized or deserialized must be n
    on-interface, non-abstract classes that provide a public default constructor
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
    sureValidClass(JavaInspector.java:1050)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:927)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:905)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
    dPropertiesToScalar(JavaInspector.java:834)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:209)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
    peMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
    Java2SchemaImpl.java:167)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
    a2Schema(JavaSchema.java:302)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
    te(JavaSchema.java:184)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
    xception: Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
    class.  All classes that will be serialized or deserialized must be non-interfac
    e, non-abstract classes that provide a public default constructor]
    Can any one provide the solution for this
    Thanks
    Anantha

    Hi Friends,
    I am using autotype ant task to generate types.xml and supporting java classes.
    The task is defined as follows .
    <target name="std">
    <source2wsdd javaSource="HelloWorld.java"
    typesInfo="types.xml"
    ddFile="ddfiles/web-services.xml"
    serviceURI="/HelloWorldService"/>
    </target>
    In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
    C:\test-ws\javaclass>ant auto
    Buildfile: build.xml
    auto:
    [autotype] Autotyping for javaTypes TestBean
    [autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
    : interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
    a/util/Map.class. All classes that will be serialized or deserialized must be n
    on-interface, non-abstract classes that provide a public default constructor
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
    sureValidClass(JavaInspector.java:1050)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:927)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:905)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
    dPropertiesToScalar(JavaInspector.java:834)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:209)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
    peMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
    Java2SchemaImpl.java:167)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
    a2Schema(JavaSchema.java:302)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
    te(JavaSchema.java:184)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
    xception: Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
    class.  All classes that will be serialized or deserialized must be non-interfac
    e, non-abstract classes that provide a public default constructor]
    Can any one provide the solution for this
    Thanks
    Anantha

  • Compc ant task and external framework

    I'm writing an ant task to compile a couple of libraries into
    SWCs and then a shell app (that uses the libraries) into a SWF for
    deployment. If I compile the libraries by hand then run just the
    'mxmlc' part of my ant script it compiles fine. However when I try
    and first compile a library into a SWC with 'compc' it compiles but
    then the shell app complains that the classes from the library are
    missing. One thing that may be causing the problem is my library
    path (through flex builder) has it's framework.swc set to 'Link
    Type: External' and I'm not sure how to define that with 'compc'.
    The weird thing is the flex builder compiled and 'compc' compiled
    SWCs are the same size. Here's my target for 'compc':

        <mxmlc
             file="${project.name}/src/Test.mxml"
             output="${build.mxmlc.dir}/Test.swf"
             static-link-runtime-shared-libraries="true"
        >
              <load-config filename="${air.config}"/>
              <source-path path-element="${project.name}/src" />
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                    <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
        </mxmlc>
    This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

  • Using wsdlc Ant task and Eclipse

    Hi all,
    I'm using the WebLogic Ant Task wsdlc to generate a default implementation of a java web service based on an existing WSDL.
    Everythign generates just fine. I have one little problem though: the classes that represent some of the complex types defined in the WSDL are generated in the compiled WSDL file (the JAR file that wsdlc creates). If I open the java source file for the web service (also created by the wsdlc task, but NOT in the compiled wsdl jar) with Eclipse, Eclipse cannot find the source code for those complex types, and therefore underlines the data types in red to indicate an error.
    My question is this: is there a way to tell Eclipse to look for additional source files inside of the compiled wsdl.jar file?
    Many thanks in advance!
    Jeff

    I got around this by unjaring the generated source jar into a "generated/src" directory and put that directory on the build path.
    Andy O

  • Assemble ant task and dependencies

    We are in a process of moving from wasp 4.5 to OC4J R3.
    We want to be able to assemble (and deploy) a bottom-up java web service using ant.
    I look at the assemble ant task but I couldn't find out how to specify using that task the jars that will be copied to WEB-INF/lib or any other option like using a custom oracle-webservices.xml file to specify the dependencies or specifying a shard library to be used..
    The documentation is really unclear about the subject.

    What's your approach to pack the files?
    Just use the assemble task to create the war structure and then add all the dependencies?
    I'm new to OC4j but it seems a reasonable request to add dependencies with the ant task , just like when you use the input tag to specify which files should be in WEB-INF/classes.
    The oracle-webservices.xml is another way to specify the web service (if i remember correctly) and I gave it as another example of where I looked to solve to problem.
    It shouldn't be that hard to pack to war file myself... it's just annoying that when you come from WASP 4.5 which is over 3 years old and it's so easy and clear how to pack a bottom-up web service.
    Message was edited by:
    user564605

  • Ant tasks and SSL

    Hi-
              I create my domain using the ant tasks (wlserver and wlconfig) but I can't figure out how to tell the domain to enable SSL and use a specific port. Doing this in the console is simple but I can't find any docs showing how to do this with the ant tasks.
              Anyone know how to do this for WL 8.1?
              Thanks!
              Dave

    Hello,
    The OracleAS 10g Web Services Ant tasks are documented in the OracleAS Web Services Developer Guide, these tasks allow you to do the various WS developement operation such as create a service using bottom-up approach, create clients, ...
    Also OracleAS 10g 1.0.1.3 provides Ant tasks for deployment of application to the container, this is documente in the OracleAS Deployment Guide
    Regards
    Tugdual Grall

  • VSS ANT Task and Servlet

    Hi,
    Can any one help me, how to invok vss ant tasks from servlet ?
    i am calling vss ant task 'vsslabel' from struts action class. but i am getting following error .
    Failed executing: ss Label $/ADABuildSystem/ADAInternal -C- -I- -LREQ200600096 -Yada,password With a return code of 1
    at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.execute(MSVSS.java:191)

    @Paul - This would be a feature request for the Ant task, so we won't be able to get this in until 4.2 since we just locked down new features for 4.1 beta.  Fortunately, there is a stop gap that is much simpler than rebuilding the JAR.  At the end of the day, the JAR is just a zip.  Create your own version of the template (using the current one as a basis) and just unzip the jar and replace the flexUnitDescriptor.template file.  From there the new template should be used w/o an issue.  If you could go into JIRA and enter a feature request for user provided descriptor, we'll try to get it into the roadmap for 4.2 (https://bugs.adobe.com/jira/browse/fxu).  Hope this helps.
    -Brian

  • NullPointerException in Schematool ANT-Task and Eclipse-plugin

    Hi,
    When running the Schematool from the Eclipse-plugin or from the ANT-task,
    I get a NullPointerException. The ANT-plugin gives a more-or-less usefull
    exception-traceback, the Eclipse-plugin doesn't give any useful hints.
    The funny thing however is that from the commandline it all works!
    The exception from ANT is:
    [schematool] com.solarmetric.kodo.runtime.FatalException: There was an
    error mapping field "operator" of type "class
    com.unisys.nl.ruleengine.rules.CompoundCondition" to a schema.
    [schematool] NestedThrowables:
    [schematool] java.lang.NullPointerException
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:244)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:131)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:86)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:831)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1166)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1102)
    [schematool]      at
    com.solarmetric.modules.integration.ant.SchemaToolTask.executeOn(SchemaToolTask.java:54)
    [schematool]      at
    com.solarmetric.modules.integration.ant.TaskBase.execute(TaskBase.java:118)
    [schematool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    [schematool]      at org.apache.tools.ant.Task.perform(Task.java:341)
    [schematool]      at org.apache.tools.ant.Target.execute(Target.java:309)
    [schematool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [schematool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [schematool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [schematool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [schematool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [schematool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [schematool]      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [schematool]      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [schematool]      at java.lang.reflect.Method.invoke(Method.java:324)
    [schematool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [schematool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [schematool]      at java.lang.Thread.run(Thread.java:534)
    [schematool] NestedThrowablesStackTrace:
    [schematool] java.lang.NullPointerException
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.findMethod(StringificationMapping.java:215)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.getExternalizer(StringificationMapping.java:123)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.getExternalizer(StringificationMapping.java:112)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.StringificationMapping.install(StringificationMapping.java:105)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:234)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:131)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:86)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:831)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1166)
    [schematool]      at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1102)
    [schematool]      at
    com.solarmetric.modules.integration.ant.SchemaToolTask.executeOn(SchemaToolTask.java:54)
    [schematool]      at
    com.solarmetric.modules.integration.ant.TaskBase.execute(TaskBase.java:118)
    [schematool]      at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    [schematool]      at org.apache.tools.ant.Task.perform(Task.java:341)
    [schematool]      at org.apache.tools.ant.Target.execute(Target.java:309)
    [schematool]      at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [schematool]      at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [schematool]      at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [schematool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [schematool]      at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [schematool]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [schematool]      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [schematool]      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [schematool]      at java.lang.reflect.Method.invoke(Method.java:324)
    [schematool]      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [schematool]      at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [schematool]      at java.lang.Thread.run(Thread.java:534)
    [schematool] BUILD FAILED:
    file:C:/java/eclipse/workspace/EclipseProject/build.xml:84:
    com.solarmetric.kodo.runtime.FatalException: There was an error mapping
    field "operator" of type "class
    com.unisys.nl.ruleengine.rules.CompoundCondition" to a schema.
    NestedThrowables:
    java.lang.NullPointerException
    The .jdo file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <jdo>
    <package name="com.unisys.nl.ruleengine.rules">
    <class name="Condition">
         <extension vendor-name="kodo" key="table" value="condition"/>
         </class>
    <class name="ConditionDummyPlaceHolder"
    persistence-capable-superclass="Condition">
         <field name="m_condition">
    <extension vendor-name="kodo" key="data-column"
    value="condition"/>
              <extension vendor-name="kodo" key="dependent" value="true"/>
         </field>
    </class>
    <class name="AtomicCondition"
    persistence-capable-superclass="Condition">
                   <field name="lefthand">
    <extension vendor-name="kodo" key="dependent"
    value="true"/>
                   </field>
         <field name="operator">
              <extension vendor-name="kodo" key="externalizer"
    value="toString"/>
              <extension vendor-name="kodo" key="factory"
    value="getOperatorWithSymbol"/>
         </field>
                   <field name="righthand">
    <extension vendor-name="kodo" key="dependent"
    value="true"/>
                   </field>
    </class>
    <class name="CompoundCondition"
    persistence-capable-superclass="Condition">
    <field name="subConditions">
    <collection
    element-type="com.unisys.nl.ruleengine.rules.Condition"/>
    <extension vendor-name="kodo" key="element-dependent"
    value="true"/>
    <extension vendor-name="kodo" key="ordered" value="true"/>
    </field>
         <field name="operator">
              <extension vendor-name="kodo" key="externalizer"
    value="toString"/>
              <extension vendor-name="kodo" key="factory"
    value="getOperatorWithSymbol"/>
         </field>
    </class>
    <class name="ConditionValue">
         <extension vendor-name="kodo" key="table"
    value="condition_value"/>
    </class>
    <class name="DerivedValue"
    persistence-capable-superclass="ConditionValue">
         <field name="valueProperty">
              <extension vendor-name="kodo" key="dependent" value="true"/>
         </field>
    </class>
    <class name="SimpleValue"
    persistence-capable-superclass="ConditionValue"/>
    <class name="Rule" persistence-capable-superclass="RuleSetElement">
         <extension vendor-name="kodo" key="table" value="rule"/>
         <field name="context">
              <extension vendor-name="kodo" key="dependent" value="false"/>
         </field>
         <field name="condition">
              <extension vendor-name="kodo" key="dependent" value="true"/>
         </field>
         <field name="comment">
    <extension vendor-name="kodo" key="column-length"
    value="-1"/>
    </field>
         </class>
    <class name="RuleSet"
    persistence-capable-superclass="RuleSetElement">
         <extension vendor-name="kodo" key="table" value="ruleset"/>
    <field name="rules">
    <collection
    element-type="com.unisys.nl.ruleengine.rules.RuleSetElement"/>
    <extension vendor-name="kodo" key="element-dependent"
    value="true"/>
    </field>
    </class>
    <class name="RuleSetElement">
         <extension vendor-name="kodo" key="table"
    value="ruleset_element"/>
    </class>
    </package>
    </jdo>
    Any pointers what I'm doing wrong here?
    (Another data-point: when I moved the sources to the laptop of a collegue,
    and we try to generate the schema there, the plugin complains about not
    having any JDO metadata available for the class RelationOperator - which
    is the type of the field 'operator' that gives the NPE.
    I'm using KODO-JDO 2.5.0RC2)
    --Tim

    Tim-
    This seems to be a problem with ClassLoader interactions; it will be
    fixed for the next 2.5 RC (or final release). Thanks for pointing it
    out.
    In article <bbngrl$j47$[email protected]>, Tim van der Leeuw wrote:
    >
    Hi,
    When running the Schematool from the Eclipse-plugin or from the ANT-task,
    I get a NullPointerException. The ANT-plugin gives a more-or-less usefull
    exception-traceback, the Eclipse-plugin doesn't give any useful hints.
    The funny thing however is that from the commandline it all works!--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • 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!

  • Mxmlc ant task and locales

    Hi,
    I have property files for several locales, for example
    locale/en_US, locale/en_GB, locale/es_ES, and locale/es. Running
    from within FlexBuilder I can see the various locales just fine.
    However when creating the .swf file using ANT and the <mxmlc>
    task, only en_US is available. I've attached a snippet from my ANT
    script.
    Thanks in advance,
    Rich

    Are you using Adobe FlexAnt?
    On this
    page
    , there is a <compiler.library-path> node that seems to
    import a bundle directory that contains locales. I believe
    <compiler.library-path> is from FlexAnt, so you would need to
    enable it if you haven't.
    Also look on the next page from the link I posted, there is
    another example on how to import bundles in an automation.

Maybe you are looking for

  • ISight With Windows?

    I recently sold my iMac G4, and my Uncle had purchased and sent me an iSight for my Mac for my birthday. I am back on my Dell Dimension, and I was wondering if I bought the 6-pin FireWire port card, if iSight will work with Windows as a webcam and a

  • Are not interpreted JSTL tags in a JSP page including in a servlet.

    Hi people, I have a project where una page (index.jsp) includes a servlet (MyServlet), that consult a persistence class and get a List of objects (Users),       then the servlet passes the List to a Request object and includes another JSP page (showU

  • Parrot Hands-free kit and 6300

    Having a bit of trouble with my new Parrot PMK5800 hands-free kit and my 6300. I can connect to the 2 together, but the Parrot asks for a voice tag from the 6300 for hands free dialling. I cannot seem to be able to transfer this. Have tried most thin

  • Purpose of T code ZBCS_SYNC

    Hi, I am basically working on FICO- but due project specific, SEM-BCS aslo came to my umbrella. So slowly we are habitate to learn BCS> I would request the experts ,please suggest me what is the user of ZBCS_SYNC. Is it synchronizing the master data

  • I want to backup my ipod's music on windows without using software. But all I see is DCIM, and I have shown all hidden folders.

    I really would like to backup my ipod onto my computer, but when I go to my Ipod and it's internal storgae, all I see is a file called DCIM I can not download software, PLEASE tell me there is a way to get my songs onto the computer still