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
Similar Messages
-
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
AnanthaHi 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!
JeffI got around this by unjaring the generated source jar into a "generated/src" directory and put that directory on the build path.
Andy O -
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!
DaveHello,
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 -
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)
--TimTim-
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,
JonJust 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.
-
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,
RichAre 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. -
DAC Preview Functionality to View Tasks and Dependencies
Hello, I'm looking for a way to display or list out all of the DAC tasks for a particular execution plan and for each one of these then display each of their dependencies. I know that when you build a execution plan DAC is generating a dependency list and assigning depth levels behind the scenes, but it would be nice to display this in a graphical format or at least as a text list.
In my research I found the link below to seem to be what I'm looking for and also does a great job of explaining the Task Dependencies. However, the version of DAC I'm running (10.1.3.4.1) does not seem to have this feature, and if so, I'm unable to find it. Any and all help is greatly appreciated. Maybe there is a approach I'm unaware exists.
http://download.oracle.com/docs/cd/E12102_01/books/AnyInstAdm784/AnyInstAdmQuickStart17.html
ThanksYou might check with your apps' developers to see if they support AppleScript, Automator, or other scripting languages that might be used for this. Some programs have built-in macro and scripting options that can be set up in a built-in editor or run in a built-in command-line environment of sorts, while others supply libraries for external scripting with AppleScript and others.
As for live tracing of a program's commands, most that you use will be coded in a low level language like C, C++, Java, or Objective-C, which are compiled and run in binary machine code as opposed to an interpreted language (one that does not need compiling to run), as is the case with most scripting languages (shell scripts, AppleScript, Matlab, etc.).
For the most part, the only options you have for "tracing" a program's functions are to monitor output that it might log to the console. You can see this by opening the console, but the output here is diagnostic in nature and is programmatically limited to what the programmers have intended be output (ie, things like warnings and errors, as opposed to every action the program is taking). You can also use the Terminal to directly launch a program's executable so it is hosted in the Terminal shell. This will give you direct access to all of the program's output, as opposed to that only intended for logging in the Console, but it is still not the same as a full output of the commands and routines the program is performing.
Some of Apple's developer tools can allow you to better monitor a program's functions, but these are intended for developers, and have some requirements, and will not allow you to use any results for productivity 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"/> -
Oracle ant tasks 10.1.3DP3
I use the "assemble" ant task (and ant files provided with oracle sample web services apps in 10.1.3DP3) to generate EAR file in my application. Everything worked well with ant files but I wanted to move to maven as this is our build system. I 'm able to invoke the oracle ant tasks from maven and build the ear file. However when I try to deploy and then generate the proxy from WSDL I ran into some problems.
1. I ''m unable to get deploy to work from maven. Error is:
Unable to create Deployment Manager
followed by
error getting handle to JMX MBean Server
2. Deployment during build is not a requirement for me but ability to generate proxy jars is. So I m trying to find a way to generate the proxy jars without having to get the WSDL remotely from a running OC4J. Is there a way to tell the "assemble" task to leave the WSDL file on the disk or do I need to pull it out of the generated EAR file and then feed it to "genProxy"?Check the 'genWSDL' ant task or equivalent command from the WS user guide [1], page 162. This should do what you are looking for.
For the JMX-deployement integration with maven, try the J2EE forum. You may have more feedback there.
Eric
[1] http://download-west.oracle.com/otn/java/oc4j/1013/doc/web.1013/b14434.pdf -
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
MiniHi,
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
Maybe you are looking for
-
I downloaded a recommended update and since then my ipod touch (3rd gen) is frozen and will not turn on. I try restoring factory settings but the process terminates with a 1604 error. I have researched this problem on the net and think i have tried e
-
hi all, my scenario is that a middleware .net generates xml files which i have to pick up into sap r/3 and then also generate xml files to that middleware. Now my question is 1) Does the xml file need to follow any specifications to be read? 2)What i
-
Select list width and printing output
Hi, Can anyone tell me how to set the width of a SELECT LIST control? I have tried to set but it is always dynamic and depends on the width of the data items of the list which are supposed to be displayed. Can i fix the width, jsut like simple text f
-
Where is the Lightroom database?
I wonder whether it is correct that I have the following folders in my D:/drive: D:/Adobe - Lightroom 1.0 - Adobe Photoshop Lightroom - documentation D:/ My Pictures - Lightroom - Backups - Lightroom CatalogPreviews.Irdata - Lightroom Metadata.Irdata
-
After installing Mavericks, why can I no longer delete junk mail on my iMAC Mail program? Also, mail is sometimes slow to load in mornings on my iMac after it has appeared on my iPhone. I temporarily solved that by shutting down and reopening mail