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"/>
Similar Messages
-
Creating Execute Queue through WLConfig ANT tasks
We are planning to create a new Execute Queue for a existing server in weblogic 8.1. When we create a new execute queue through the web admin console it add the following line within the Server tag in config.xml.
<?xml version="1.0" encoding="UTF-8"?>
<Domain Name="weblogicdomain">
<Server ListenAddress="" ListenPort="6110" Name="servername">
<ExecuteQueue Name="FileDownloadsExecuteQueue" ThreadCount="1"/>
</Server>
....Other resources....
</Domain>
Now we have to create this execute queue NOT through the web admin console but through wlconfig ANT tasks. How should we create this? There are samples ANT tasks to add a resource (JDBC connection pool etc) directly within the Domain tag of the config.xml but our requirement is to add a new element (ExecuteQueue) within the existing server tag. As the server is already created we cannot create server mbean and nest it with one more create of execute queue. We have to attach the new execute queue to the current existing server.
Can we set a new element (not a attribute) to the server by quering or any other method?
Thanks.I haven't tried this with wlconfig, but I was able to accomplish it by invoking weblogic.Admin from the <java> task:
<!-- Create the ExecuteQueue -->
<java classname="weblogic.Admin" fork="true">
<arg line="-url ${deploy.server.name}:${deploy.server.port}"/>
<arg line="-username ${deploy.username}"/>
<arg line="-password ${deploy.password}"/>
<arg value="CREATE"/>
<arg line="-mbean portal:Type=ExecuteQueue,Name=newRenderQueue,Server=${deploy.target}"/>
<classpath>
<pathelement location="${weblogic.home.dir}/server/lib/weblogic.jar"/>
</classpath>
</java>
<!-- Set the ThreadCount -->
<java classname="weblogic.Admin" fork="true">
<arg line="-url ${deploy.server.name}:${deploy.server.port}"/>
<arg line="-username ${deploy.username}"/>
<arg line="-password ${deploy.password}"/>
<arg value="SET"/>
<arg line="-mbean portal:Type=ExecuteQueue,Name=newRenderQueue,Server=${deploy.target}"/>
<arg line="-property ThreadCount 5"/>
<classpath>
<pathelement location="${weblogic.home.dir}/server/lib/weblogic.jar"/>
</classpath>
</java>
Hope that helps,
George -
Setting UseXADataSourceInterface to false using wlconfig ant task
Is there any way, I can set the UseXADataSourceInterface property to false within the wlconfig ant task.? I am aware that this property can be set using the admin console. But I would like to set this in an ant task. Any pointers?
Thanks in advance,
JacobAccording to document:
Warning: In particular, the wlconfig Ant task uses the deprecated BEA
proprietary API weblogic.management.MBeanHome to access WebLogic MBeans, the
same as it did in Version 8.1 of WebLogic Server. The Ant task does not use
the standard JMX interface (javax.management.MBeanServerConnection) to
discover MBeans.
Warning: This means that the only MBeans that you can access using wlconfig
are those listed under the Deprecated MBeans category in the WebLogic Server
MBean Reference.
Since UseXADataSourceInterface is defined in JDBCDriverParamsBean which is
introduced in WLS 9.0, so I feel this should be impossible.
Maybe you can try WLST, which also can be used in Ant.
<Jacob Marcus> wrote in message news:[email protected]..
Is there any way, I can set the UseXADataSourceInterface property to false
within the wlconfig ant task.? I am aware that this property can be set
using the admin console. But I would like to set this in an >ant task. Any
pointers?
Thanks in advance,
Jacob -
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 -
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 -
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 -
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. -
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
-
My BT TV contract expired in October, and I decided to sign up for another contract primarily in order to get the new G4 box. My understanding was I'd need to pay a £35 activation fee and then have another 12 months subscription. I phone BT on Frida
-
Amount & quantity blank MIRO without MIGO
Hi Experts, When I do PO-MIRO ... No goods receipt yet, the amount and quantity field is blank. Can anyone help me, is there any OSS note that supporting the condition that for MIRO without MIGO, the amount and quantity field will be blank. Thanks, M
-
hi all... i m getting error while testing my abap application.. can anyone pls suggest me, where should i set the proxy settings for that? error is like this: Proxy Encountered Error Host Address Not Found: The proxy could not find an IP address for
-
Javascript API feature request
Just looking at the JS API, I notice the function: $x_Style(pNd, pStyle, pString)source: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDDBBDH Which is used to set the style for a particular element on a page.
-
How escaping "_" in a cond_syntax
Hallo experts, I have a dynamic query like data: c_column(3) type c value 'row'. data: l_condition type string. data: l_help_val type string. I fill for example l_help_val with l_help_vla = 'test_test%'. concatenate c_column 'like l_help_val' in