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"  ??

Similar Messages

  • Swf, swc and the mxmlc, compc ant tasks

    I'm a bit confused on the end result of the mxmlc / compc ant
    tasks, or maybe the difference between swf and swc files. I have a
    library of 60 or so AS3 files used for
    serialization/deserialization of my Java backend (using GDS for
    serialization of data between java serverside and my flex front
    end). I first use the compc ant task on these AS3 files to create a
    swc file. This swc is 453316 bytes. With this flash library, I use
    the mxmlc ant task on my mxml file, which produces a 201,492-byte
    swf file.
    I have a couple questions related to the procedure above.
    Shouldn't the swf file include the swc file, and hence be bigger
    than the swc? I'm just wondering if I deploy the swf file, will it
    have all it needs in the swc file to perform the functions
    correctly?
    My second question relates to setting the
    keep-generated-actionscript="true" in the mxmlc task. When
    doing this, I see all the AS3 code generated. However, it does not
    include 55 of the 60 AS3 classes compiled in the swc. It only
    generated AS3 code for those AS3 classes explicitly declared in the
    mxml code (via import and actual declaration). Am I doing something
    wrong here or is this the way flex does its thing?
    The reason why I'm concerned about this is that I'm getting a
    "ArgumentError: Error #2004: One of the parameters is
    invalid" issue am I'm think its happening in the AS3 code (not
    the Java server side) and I don't know how to debug this.
    Any help would be appreciated. Thanks in advanced!
    -los

    I am also facing with the same problem.....
    Is there any resolution for this problem.?
    Not sure where i am going wrong.
    Any help will be appreciated.
    Thanks in advance.

  • 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

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

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

  • Wlconfig ant task and JTA unde 8.1sp5

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

  • Ant tasks getDestinations and getDataSourcesDescriptor conflict

    I have a simple target that calls the getDestinations oracle ant task and then calls the getDataSourcesDescriptor ant task. Only the first task run ever returns data. If getDestinations is first, JMS info is returned but no data sources info. If getDataSourcesDescriptor is first, data sources info is returned but no jms info. If you have two tasks of the same type, same story; only the first task returns data.
    Anyone have any ideas?

    cfr wrote:
    @lahwaacz,
    Could you point me to documentation regarding bugs/problems with laptop-mode tools? I'm using that right now and it has always worked pretty well but I'm currently seeing higher temperatures (~10C higher on average) and trying to figure out why.
    My fan operates continually but not, I think, very aggressively. But it has always done that so I assume it is normal for this laptop. (Have no idea really but it doesn't seem out of the way - it is a laptop, after all...)
    I don't know anything about fan control, my laptop controls fan speed automatically, I can't even get current fan speed.
    The main problem with laptop-mode-tools is that it's very huge, and the bigger the program is, the slower is the execution. Another problem is that it's connected to both battery and AC adapter ACPI events (see /etc/acpi/events/lm_{ac_adapter,battery}). On my laptop, those events are sent at the same time, resulting in running laptop-mode-tools twice. Most people once configure laptop-mode-tools to their liking and their hardware, so I think there is no need for such an extensive software like laptop-mode-tools, if something simpler does the same (or better) job.
    Also laptop-mode-tools can conflict with pm-utils (which are installed on many systems as dependency for some packages):
    https://wiki.archlinux.org/index.php/La … able_on_AC
    https://bbs.archlinux.org/viewtopic.php?id=106989

  • ANT task wsgen error while deploying RPC style web service

    Hi
    I am trying to assemble/deploy an rpc style weblogic web service using the 'wsgen'
    Ant task and the build.xml scripts provided with the samples. I get this error:
    Please help
    Thanks,
    Praveen
    C:\test>ant
    Buildfile: build.xml
    webservice:
    clean:
    [delete] Deleting directory C:\test\build
    init:
    [mkdir] Created dir: C:\test\build
    [mkdir] Created dir: C:\test\build\META-INF
    [copy] Copying 5 files to C:\test\build\META-INF
    compile_ejb:
    [javac] Compiling 5 source files to C:\test\build
    jar_ejb:
    [jar] Building jar: C:\test\a_statelessSession.jar
    ejbc:
    all:
    wsgen:
    Error at line:8 col:12 ':' Already got a ':' in name
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    on(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    EventStream.java:28)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    :1125)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    a:1415)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    BUILD SUCCESSFUL
    Total time: 34 seconds
    C:\test>

    WLS6.1, service pack 2? I didn't know there were any service packs for 6.1 and
    6.0 didn't support wsgen and web services??
    simon.
    manoj cheenath <[email protected]> wrote:
    >
    >
    This is a known bug which is fixed in WLS 6.1 SP2.
    The workaround is to change the complex data types
    to have more than one level package names.
    for eg: change ....
    package foo;
    class Data{}
    to :
    package foo.bar;
    class Data{}
    -manoj
    Praveen wrote:
    Hi
    I am trying to assemble/deploy an rpc style weblogic web service usingthe 'wsgen'
    Ant task and the build.xml scripts provided with the samples. I getthis error:
    Please help
    Thanks,
    Praveen
    C:\test>ant
    Buildfile: build.xml
    webservice:
    clean:
    [delete] Deleting directory C:\test\build
    init:
    [mkdir] Created dir: C:\test\build
    [mkdir] Created dir: C:\test\build\META-INF
    [copy] Copying 5 files to C:\test\build\META-INF
    compile_ejb:
    [javac] Compiling 5 source files to C:\test\build
    jar_ejb:
    [jar] Building jar: C:\test\a_statelessSession.jar
    ejbc:
    all:
    wsgen:
    Error at line:8 col:12 ':' Already got a ':' in name
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    on(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    EventStream.java:28)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    :1125)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    a:1415)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    BUILD SUCCESSFUL
    Total time: 34 seconds
    C:\test>
    -----------------------------------------------------------------<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    This is a known bug which is fixed in WLS 6.1 SP2.
    <p>The workaround is to change the complex data types
    <br>to have more than one level package names.
    <p>for eg: change ....
    <p><font color="#3366FF">package foo;</font>
    <br>class Data{}
    <p>to :
    <p><font color="#3333FF">package foo.bar;</font>
    <br>class Data{}
    <p>-manoj
    <p>Praveen wrote:
    <blockquote TYPE=CITE>Hi
    <br>I am trying to assemble/deploy an rpc style weblogic web service
    using
    the 'wsgen'
    <br>Ant task and the build.xml scripts provided with the samples. I get
    this error:
    <br>Please help
    <br>Thanks,
    <br>Praveen
    <br>-----------------------------------------------------------------
    <br>C:\test>ant
    <br>Buildfile: build.xml
    <p>webservice:
    <p>clean:
    <br>   [delete] Deleting directory C:\test\build
    <p>init:
    <br>    [mkdir] Created dir: C:\test\build
    <br>    [mkdir] Created dir: C:\test\build\META-INF
    <br>     [copy] Copying 5 files to C:\test\build\META-INF
    <p>compile_ejb:
    <br>    [javac] Compiling 5 source files to C:\test\build
    <p>jar_ejb:
    <br>      [jar] Building jar: C:\test\a_statelessSession.jar
    <p>ejbc:
    <p>all:
    <p>wsgen:
    <br>Error at line:8 col:12  ':' Already got a ':' in name
    <br>        at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    <br>on(SAXElementFactory.java:60)
    <br>        at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    <br>        at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    <br>EventStream.java:28)
    <br>        at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    <br>        at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    <br>        at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    <br>)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    <br>:1125)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    <br>)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    <br>a:1415)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    <br>        at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    <br>        at org.apache.tools.ant.Target.execute(Target.java:153)
    <br>        at org.apache.tools.ant.Project.runTarget(Project.java:898)
    <br>        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    <br>        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    <br>        at org.apache.tools.ant.Target.execute(Target.java:153)
    <br>        at org.apache.tools.ant.Project.runTarget(Project.java:898)
    <br>        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    <br>        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    <br>        at org.apache.tools.ant.Main.runBuild(Main.java:421)
    <br>        at org.apache.tools.ant.Main.main(Main.java:149)
    <p>BUILD SUCCESSFUL
    <p>Total time: 34 seconds
    <p>C:\test>
    <br>-----------------------------------------------------------------</blockquote>
    </html>

  • Ant tasks to migrate BPM organisation 5.7.3 to BPM10g

    We are migrating from BPM 5.7.3 to BPM 10g.
    We are referring to this article to do this task. http://www.oracle.com/technetwork/middleware/bpm/migrationinstructionsfromalbpm5-133430.pdf
    In preconditions it is mentioned -
    It is necessary to replicate the same exact Organization from ALBPM 5.7 to
    OBPM 10gR3. This can be accomplished in different ways using the Organization
    Export/Import, Ant Tasks and/or even a custom Organization replication mechanism
    Does anyone have samples on how to accomplish this?
    Thanks
    Mini

    Hi,
    Look at
    http://docs.oracle.com/cd/E13154_01/bpm/docs65/anttasks/index.html
    and you have a task called directory that is to export and import the organization.
    HTH

  • Wlappc ANT task "runtimeFlags" attribute doesn't take effect

    I am intermittently counter "java.lang.OutOfMemoryError" error while I am running wlappc ANT task to compile jsp pages. I have lots of jsp files (about 500). According to weblogic's document, I set runtimeFlags="-J-ms512m -J-mx1024m". So my ant task looks like this:
              <wlappc source="${websrc}" output="${output}" runtimeFlags="-J-ms1024m -J-mx1024m">
              </wlappc>
              But it doesn't work. It still complains out of memory error. I tried various approach including "-J-Xms1024m -J-Xmx1024m". But not helpful at all.
              So I gave up and ended up using weblogic.appc class to build my jsp pages. So I have fully control of jvm options. I set up -Xms1024m -Xmx1024m as JVM parameters and works well.
              It looks to me that wlappc ANT task ignore runtimeFlags at all. It doesn't take any effect.
              Is it a known bug? anyone succeeded solving OutOfMemoryError by setting runtimeFlags attribute of wlappc ANT task?

    I was having the same issue.
              Try using the maxmemory argument for the standard java ant task and calling weblogic.appc:
              <java classname="weblogic.appc" fork="yes" failonerror="true" maxmemory="256m">
              <classpath>
              <fileset dir="${weblogic.home}/server/lib" includes="weblogic.jar,webservices.jar" />
              </classpath>
              <arg value="${ear.dir}" />
              <arg value="-verbose" />
              </java>

Maybe you are looking for

  • Issue with table index

    Hi All, Hope you are all well. Strange issue here: We have a Custom ABAP program that reads from mainly Table EKKO. On My QAS system the program works 100%, when i do a SQL Trace (ST05) i can see in the execution plan that it is using the correct ind

  • How to get Transfer rules or Transformations from SRM Datasources to Infoso

    Hi We are in SRM 7.0 and BI 7.0. We have all the datasources activates from SRM and replicated in BI side. Now we have all of the content in Dataflow ,, from Datasources to DSOs, Cubes and Multiproviders,,, Except Transdormations from Datasources 0SR

  • CTS Mgmt in SolMan for an Implementation Project?

    Hi, In an Implementation Project, if we need to use Solution Manager for CTS, is there any pre-requisites? To be more clear, the project is still in the development stage and has not gone-live. The SolMan project type will be "Implementation" project

  • How to use CompositeData for mbean operations

    Hi all, I am trying to register a mbean whose operations have a composite data type interface something like below, any ideas how to achieve this? /**MXBean**/ public interface someXXXXxxxMXBean {     public ReturnCompositeDataInterface doSomething(P

  • VM 1.4.2 running on Windows 2000

    Hi, I'm running a java program on a Windows 2000 (Service Pack 4) machine using the JRE 1.4.2_06. After a while the app. stops running and displays the message : "javaw.exe has generated errors and will be closed by Windows. You will need to restart