Servicegen issue with binding webservices.jar

Hey, I am trying to build a ejb webservice using ant and servicegen. When I run it, it blows up and gives me a ton of binding errors. The problem is the binding errors are on files from the webservices.jar not from my jar. What is wrong with my script?
Script:
<project name="HEOOrdersService" default="build" basedir=".">
<!-- Load the standard properties -->
<loadproperties srcfile="${user.home}/ant_build.properties" />
<!-- Define the project classpath -->
<path id="classpath">
<pathelement location="${bin}" />
<pathelement location="${env10.dev.lib}/epicentric.jar" /> <!-- Example: 'oracle_jdbc_8_1_6.zip' -->
<pathelement location="${env10.dev.lib}/hef.jar" />
<pathelement location="${env10.dev.lib}/weblogic.jar" />
<pathelement location="c:/bea/weblogic81/server/lib/webservices.jar" />
<pathelement location="${env10.dev.libext}/servlet.jar"/>
<pathelement location="${env10.dev.classes}"/> <!-- For un-jared class files on the app server -->
</path>
<!-- Jar and car file names for deployment -->
<property name="jar.file" value="heounsorders.jar" /> <!-- Example: 'mercytransc.car' -or- 'mercyrad.car' -->
<property name="namespace" value="http://www.bea.com/servers/wls70/samples/examples/webservices/basic/statelessSession"/>
<taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask">
<classpath path="c:/bea/weblogic81/server/lib/webservices.jar"/>
<classpath path="c:/bea/weblogic81/server/lib/weblogic.jar"/>
</taskdef>
<target name="clean"
description="Delete all of the compiled classes and documentation">
<delete dir="${bin}" />
<delete dir="${jar}" />
<delete dir="${car}" />
<delete dir="${doc}" />
</target>
<target name="init" depends="clean"
description="Create the build directory structures used by compile, package, and doc">
<mkdir dir="${bin}" />
<mkdir dir="${bin}/classes" />
<mkdir dir="${jar}" />
<mkdir dir="${car}" />
<mkdir dir="${doc}" />
</target>
<target name="compile" depends="init"
description="Compile the java code from ${src} into ${bin}">
<javac srcdir="${src}" destdir="${bin}/classes" >
<classpath refid="classpath" />
</javac>
</target>
<!-- Document when the libraries were created for versioning purposes -->
<target name="create-tstamp">
<tstamp>
<format property="build.time" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
</target>
<!-- Document which developer created the libraries -->
<target name="create-manifest" depends="create-tstamp">
<manifest file="${bin}/MANIFEST.MF">
<attribute name="Built-By" value="${developer.name}" />
<attribute name="Contact" value="${developer.contact}" />
<attribute name="Built-On" value="${build.time}" />
</manifest>
</target>
<target name="jar" depends="compile, create-manifest">
<delete dir="${car.work}" />
<mkdir dir="${car.work}" />
<copy todir="${car.work}">
<fileset dir="${bin}/classes" />
</copy>
<copy todir="${car.work}/META-INF">
<fileset dir="./xml" />
</copy>
<jar destfile="${car}/${jar.file}" manifest="${bin}/MANIFEST.MF">
<fileset dir="${car.work}" />
</jar>
<delete dir="${car.work}" />
</target>
<target name="build" depends="jar" >
<delete dir="build_dir" />
<mkdir dir="build_dir" />
<copy todir="build_dir" file="${car}/${jar.file}"/>
<servicegen
destEar="build_dir/heounsorders.ear"
warName="heounsorders.war"
contextURI="WebService">
<service
ejbJar="build_dir/heounsorders.jar"
targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
serviceName="HEOOrdersService"
serviceURI="/HEOOrdersService"
generateTypes="True"
expandMethods="True" >
</service>
</servicegen>
</target>
</project>
Part of the resulting errors which are in the servicegen:
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:37: package weblogic.xml.stream does not exist
[servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
mckesson.hcsp.heoorders","account",null),
[servicegen] ^
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:38: package weblogic.xml.stream does not exist
[servicegen] weblogic.xml.stream.ElementFactory.createXMLName("http://ww
w.w3.org/2001/XMLSchema","string",null),
[servicegen] ^
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:52: package weblogic.xml.schema.binding.util.runtime does not exist
[servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
mckesson.hcsp.heoorders","count",null),
[servicegen] ^
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:52: package weblogic.xml.stream does not exist
[servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
mckesson.hcsp.heoorders","count",null),
[servicegen] ^
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:53: package weblogic.xml.stream does not exist
[servicegen] weblogic.xml.stream.ElementFactory.createXMLName("http://ww
w.w3.org/2001/XMLSchema","int",null),
[servicegen] ^
[servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
rders\UnsignedOrdersResultCodec.java:158: package weblogic.xml.schema.binding does not exist
[servicegen] return weblogic.xml.schema.binding.ModelGroupCompositor.SEQUENCE ;
[servicegen] ^
[servicegen] 57 errors
[servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:145)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
[servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[servicegen] Caused by: weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:572)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
[servicegen] ... 16 more
[servicegen] --- Nested Exception ---
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:566)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
[servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[servicegen]
nested within:
[servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:572)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
[servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
Please tell me why it is doing this.

Hi Nag,
With little reference to Sir Walter Scott, it would be a very tangled
web we weave in an attempt to factor out the inter-relationships of
javax interfaces that are hindering your effort. All to say, we don't
currently support JSR 110 (javax.wsdl.*) and it is not on the near term
horizon.
Have you considered using autotype [1]?
Regards,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1080062
Nag wrote:
>
Hi,
Here is a very small program, for which i am facing the problem of getting the
types from the wsdl. It works fine, as standalone....You do not have to deploy
the code any where..just have weblogic.jar in the classpath. It does not work.
It works when weblogic.jar is not in the classpath..any help is GREATLY APPRECIATED...
java.wsdl.Types from the java.wsdl.Definition object and the schema in the types
is null ( when weblogic.jar is present in the
I am always getting null in the schema (
import javax.wsdl.Definition;
//import weblogic.soap.wsdl.binding.Definition;
import javax.wsdl.xml.WSDLReader;
import javax.wsdl.factory.WSDLFactory;
public class Test {
Definition definition = null;
public static void main(String args[] ) {
Test test = new Test();
test.parseWSDL(args[0]);
public void parseWSDL(String WSDLName)
try
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
wsdlReader.setFeature("javax.wsdl.verbose",false);
wsdlReader.setFeature("javax.wsdl.importDocuments",true);
definition = wsdlReader.readWSDL(WSDLName);
System.out.println("-----------" + definition.getTypes() );
catch( Exception e ) {
System.out.println("Exception" + e ); }
Thank for your help.
Nag

Similar Messages

  • Servicegen issue with binding webservice.jar

    Hey, I am trying to build a ejb webservice using ant and servicegen. When I run it, it blows up and gives me a ton of binding errors. The problem is the binding errors are on files from the webservices.jar not from my jar. What is wrong with my script?
    Script:
    <project name="HEOOrdersService" default="build" basedir=".">
    <!-- Load the standard properties -->
    <loadproperties srcfile="${user.home}/ant_build.properties" />
    <!-- Define the project classpath -->
    <path id="classpath">
    <pathelement location="${bin}" />
    <pathelement location="${env10.dev.lib}/epicentric.jar" /> <!-- Example: 'oracle_jdbc_8_1_6.zip' -->
    <pathelement location="${env10.dev.lib}/hef.jar" />
    <pathelement location="${env10.dev.lib}/weblogic.jar" />
    <pathelement location="c:/bea/weblogic81/server/lib/webservices.jar" />
    <pathelement location="${env10.dev.libext}/servlet.jar"/>
    <pathelement location="${env10.dev.classes}"/> <!-- For un-jared class files on the app server -->
    </path>
    <!-- Jar and car file names for deployment -->
    <property name="jar.file" value="heounsorders.jar" /> <!-- Example: 'mercytransc.car' -or- 'mercyrad.car' -->
    <property name="namespace" value="http://www.bea.com/servers/wls70/samples/examples/webservices/basic/statelessSession"/>
    <taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask">
    <classpath path="c:/bea/weblogic81/server/lib/webservices.jar"/>
    <classpath path="c:/bea/weblogic81/server/lib/weblogic.jar"/>
    </taskdef>
    <target name="clean"
    description="Delete all of the compiled classes and documentation">
    <delete dir="${bin}" />
    <delete dir="${jar}" />
    <delete dir="${car}" />
    <delete dir="${doc}" />
    </target>
    <target name="init" depends="clean"
    description="Create the build directory structures used by compile, package, and doc">
    <mkdir dir="${bin}" />
    <mkdir dir="${bin}/classes" />
    <mkdir dir="${jar}" />
    <mkdir dir="${car}" />
    <mkdir dir="${doc}" />
    </target>
    <target name="compile" depends="init"
    description="Compile the java code from ${src} into ${bin}">
    <javac srcdir="${src}" destdir="${bin}/classes" >
    <classpath refid="classpath" />
    </javac>
    </target>
    <!-- Document when the libraries were created for versioning purposes -->
    <target name="create-tstamp">
    <tstamp>
    <format property="build.time" pattern="yyyy-MM-dd HH:mm:ss" />
    </tstamp>
    </target>
    <!-- Document which developer created the libraries -->
    <target name="create-manifest" depends="create-tstamp">
    <manifest file="${bin}/MANIFEST.MF">
    <attribute name="Built-By" value="${developer.name}" />
    <attribute name="Contact" value="${developer.contact}" />
    <attribute name="Built-On" value="${build.time}" />
    </manifest>
    </target>
    <target name="jar" depends="compile, create-manifest">
    <delete dir="${car.work}" />
    <mkdir dir="${car.work}" />
    <copy todir="${car.work}">
    <fileset dir="${bin}/classes" />
    </copy>
    <copy todir="${car.work}/META-INF">
    <fileset dir="./xml" />
    </copy>
    <jar destfile="${car}/${jar.file}" manifest="${bin}/MANIFEST.MF">
    <fileset dir="${car.work}" />
    </jar>
    <delete dir="${car.work}" />
    </target>
    <target name="build" depends="jar" >
    <delete dir="build_dir" />
    <mkdir dir="build_dir" />
    <copy todir="build_dir" file="${car}/${jar.file}"/>
    <servicegen
    destEar="build_dir/heounsorders.ear"
    warName="heounsorders.war"
    contextURI="WebService">
    <service
    ejbJar="build_dir/heounsorders.jar"
    targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
    serviceName="HEOOrdersService"
    serviceURI="/HEOOrdersService"
    generateTypes="True"
    expandMethods="True" >
    </service>
    </servicegen>
    </target>
    </project>
    Part of the resulting errors which are in the servicegen:
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:37: package weblogic.xml.stream does not exist
    [servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
    mckesson.hcsp.heoorders","account",null),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:38: package weblogic.xml.stream does not exist
    [servicegen] weblogic.xml.stream.ElementFactory.createXMLName("http://ww
    w.w3.org/2001/XMLSchema","string",null),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:52: package weblogic.xml.schema.binding.util.runtime does not exist
    [servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
    mckesson.hcsp.heoorders","count",null),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:52: package weblogic.xml.stream does not exist
    [servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.ElementFactory.createXMLName("java:com.
    mckesson.hcsp.heoorders","count",null),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:53: package weblogic.xml.stream does not exist
    [servicegen] weblogic.xml.stream.ElementFactory.createXMLName("http://ww
    w.w3.org/2001/XMLSchema","int",null),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\e7nw1fu\Local Settings\Temp\web-services.war-136753285\WEB-INF\classes\com\mckesson\hcsp\heoo
    rders\UnsignedOrdersResultCodec.java:158: package weblogic.xml.schema.binding does not exist
    [servicegen] return weblogic.xml.schema.binding.ModelGroupCompositor.SEQUENCE ;
    [servicegen] ^
    [servicegen] 57 errors
    [servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
    [servicegen] [java.io.IOException: Compiler failed executable.exec]
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:145)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [servicegen] Caused by: weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
    [servicegen] [java.io.IOException: Compiler failed executable.exec]
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:572)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
    [servicegen] ... 16 more
    [servicegen] --- Nested Exception ---
    [servicegen] java.io.IOException: Compiler failed executable.exec
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:566)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [servicegen]
    nested within:
    [servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
    [servicegen] [java.io.IOException: Compiler failed executable.exec]
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:572)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:169)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:91)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:104)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:141)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:377)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:322)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:190)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    Please tell me why it is doing this.

    Hi Nag,
    With little reference to Sir Walter Scott, it would be a very tangled
    web we weave in an attempt to factor out the inter-relationships of
    javax interfaces that are hindering your effort. All to say, we don't
    currently support JSR 110 (javax.wsdl.*) and it is not on the near term
    horizon.
    Have you considered using autotype [1]?
    Regards,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1080062
    Nag wrote:
    >
    Hi,
    Here is a very small program, for which i am facing the problem of getting the
    types from the wsdl. It works fine, as standalone....You do not have to deploy
    the code any where..just have weblogic.jar in the classpath. It does not work.
    It works when weblogic.jar is not in the classpath..any help is GREATLY APPRECIATED...
    java.wsdl.Types from the java.wsdl.Definition object and the schema in the types
    is null ( when weblogic.jar is present in the
    I am always getting null in the schema (
    import javax.wsdl.Definition;
    //import weblogic.soap.wsdl.binding.Definition;
    import javax.wsdl.xml.WSDLReader;
    import javax.wsdl.factory.WSDLFactory;
    public class Test {
    Definition definition = null;
    public static void main(String args[] ) {
    Test test = new Test();
    test.parseWSDL(args[0]);
    public void parseWSDL(String WSDLName)
    try
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
    wsdlReader.setFeature("javax.wsdl.verbose",false);
    wsdlReader.setFeature("javax.wsdl.importDocuments",true);
    definition = wsdlReader.readWSDL(WSDLName);
    System.out.println("-----------" + definition.getTypes() );
    catch( Exception e ) {
    System.out.println("Exception" + e ); }
    Thank for your help.
    Nag

  • How to resolve setPrefix() in SOAP(saaj API) with weblogic/webservices jar?

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

  • Integrated Planning:  Planning Functions in the Web - Issues with Binding

    Hi
    We are on SPS 11 and are having some difficulties getting our Planning Functions to execute corerctly in the web templates.
    I have created a simple planning function that performs a distribution.
    The Planning Function works as expected using the plannning wizard and ristricts the data based on the Filter that I have created on the Aggregation Level as well as the Planning Function Selections.
    I have created a query and web template that contains the same restriction as the filter in my aggregation level. The Agg Level filter / planning function and Query Filter all contain the Hierarchy Node Variable ZN_CC1 for the standard Cost Center Hierarchy.
    I have created the following 4 Planning Buttons to test the execution of the Planning Function in the Web:
    1. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Hierarchy Variable ZN_CC1, Planning Function ZDistrib1.
    2. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Variable Input String Default ZN_CC1, Planning Function ZDistrib1.
    3. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Hierarchy Variable ZN_CC1, Planning Function ZDistrib1. Display variable property selected.
    4. Planning Function Simple. Binding ref to the DP_1 (Query), Cost Center Characteristic Data Provider Selection Default, Planning Function ZDistrib1.
    When the query is executed and a node representing a group in the hierarchy is selected the query is executed and is input ready for the selected group. This is a subset of the hierarchy.
    When the above planning fucntions are executed the following results display.
    1.  The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user.  The planning function is executed for the entrire hierarchy.  It is not restricted by the cost center hierarchy node variable value.
    2. The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user.  The planning function is executed for the entrire hierarchy.  It is not restricted by the cost center hierarchy node variable value.
    3. The variable popup displays and a hierarchy node is selected. The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user.  The planning function is executed for the entrire hierarchy.  It is not restricted by the cost center hierarchy node variable value, that was entered when prompted.
    4.  The planning function is executed however it is not restricted to the cost center selection based on the query DP1. The planning function is not restricted by the cost center selections.
    HOWEVER,
    If I goto to the filter web item and edit the cost center filter by selecting and adding all available cost centers to the filter.  (This list of cost centers is restricted to the cost centers subordinate to the hierarhcy node selected in the variable)
    When the above the planning functions are executed the function is now restricted to the cost centers added to the filter as explained above.
    If anyone has had a similar issue with Planning Functions executing for data outside of the Dataprovider Selections I would be interested to know how you managed to get the planning function to retrict to the DP Selections that include hierarchy node variables.
    If anyone from SAP can comment before I raise this as an OSS issue it would be much appreciated.
    Thanks in advance.
    Ian

    Hi
    Just wondering if this is the correct forum to post BI IP questions?
    Any comments if this the right forum.
    Thanks
    Ian

  • Any Issues with Binding/Home Directories SnowLeopard Client to Tiger Xserve

    Does anyone know if I can bind a Snow Leopard client to a Tiger Server?
    Can I sync Home Directories of a Snow Leopard client to a Tiger Server?
    Are there any major issues with Snow Leopard clients and Tiger Servers?
    Thanks in advance.

    Hi Ron Yochum;
    You might have more luck if you ask over in the Server Froum instead of here.
    Allan

  • Licensing issues with altered tools.jar

    Hello,
    I wanted to know, if it would be permitted if I would ship an edited tools.jar with my application.
    I would not charge my customer for the original Java-source code, I would also include the license-files that come along with the tools.jar and I would even make the affected code available publicly. Would that be enough or is it simply prohibited?

    Hi,
    Note that your version of Ubuntu is beta and we don't support beta software. This means that even if the problem exists and is reproducible we would wait for the open source team to release a production version.
    Frank

  • Issue with calling Webservices with a Java Dynpro

    Dear SDN,
                  While calling a 3rd party webservice via a Dynpro, I get an error while calling the WSDL File, as Service call exception; nested exception is: java.net.UnknownHostException:www.xyz123.com
    Can any one throw some light on this issue?
    Regards,
    Anirban.

    Hi Anirban,
    Seems thats just a connection error....It cannot resolve the host you are calling. Check the adress of the server in the call with the server on which the webservices are deployed.
    regards,
    Hugo

  • Issue with testing webservice using SOAMANAGER.

    Hello,
    I created an RFC and exposed it as a webservice. Everything worked fine.
    I had to enhance the RFC by adding a couple of field, and then I recreated the webservice. When I now test this webservice using the SOAMANAGER I get the following error message.
    Message Envelope not found. Probably empty soap message.
    Any pointers as to what could be going wrong. I have deleted the entire webservice, and recreated the service in the SOAMANAGER. I also restarted the browser so there was no caching issues on the browser with sessions and stuff like that.
    Thank You for your help in advance.
    Sumit.

    An alternative is:
    use txn WSADMIN and open the node for your web-service. Then, press the 'Rench' button or F8 to open the web based test tool.
    You need to provide logon credentials if basic authentication was required for the WS.
    Pls reward points if helpful.

  • Servicegen - Issue with Variable Names - WLS 8.1

    Hi Experts
    I am trying to expose an EJB as a Webservice.. I assembled the ear using SERVICEGEN exposed by Weblogic 8.1
    To my dismay the generated WSDL (even the web-services.xml) are not having the variable names which I gave in my webservice method. Instead I get String, String0, String1 and so on...
    Kindly help me get over this problem.
    Thanks and Regards,
    Gopal.

    your application miight not be using this libraries but there are many shared libraries which are configured could be using. please check whether config.xml file of your domain contains the entries for this library.Problem running simple portal tutorial question

  • Issue with Axis WebService.

    Hi,
    I have written a web service, which accepts two strings as parameter(echoService method). And created WSDD file for the same and it works fine. Then I created a webservice which supports attachments, this code also works fine. When I merge this two WebServices and try to invoke "echoService" from client code, I am getting the following error.
    java.io.IOException: Type {ElementService}DataHandler is referenced but not defined.I assume, its the problem with the wsdd file "typeMapping". Please let me know if I am right or wrong? Also let me know the solution for the same.
    Regards,
    Vaishakh
    Code is below:
    ElementService.java (Web Service Code)
    public class ElementService {
        public String echoService(String command, String data) {
            System.out.println("Echo Service [" + command + "] Data [" + Data + "]");      
            return "Success;
        public Object getDimeData(DataHandler dh) throws InputValidationException, AttachmentServiceException {
            MessageContext msgContext = MessageContext.getCurrentContext();
            Message rspmsg = msgContext.getResponseMessage();
            log.info("org.apache.axis.attachments.Attachments.SEND_TYPE_DIME : " + org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);
            int inputAttachmentType = rspmsg.getAttachmentsImpl().getSendType();
            log.info("inputAttachmentType : " + inputAttachmentType);
            if (inputAttachmentType != Attachments.SEND_TYPE_DIME) {
                String failMsg = "Attachment passed is not a DIME attachment, please check.";
                throw new InputValidationException("Invalid input data error : " + failMsg);
            String inputStr = getInputString(dh);
            //Do some process with the input String and construct an output String.
            //Since the processing is out of context for our disucussion,
            //just an output xml String from a file is returned.
            String result = null;
            try {
                result = "Successfully Read the input file";
            } catch (IOException e) {
                String errorMsg = "Error occured while sending the output xml in DIME format.";
                log.error(errorMsg, e);
                throw new AttachmentServiceException(errorMsg, e);
            log.info("setting the DIME type of attachment as the sender sends it as DIME.");
            rspmsg.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);
            ByteArrayDataSource dataSource = new ByteArrayDataSource(result, "UTF-8");
            dh = new DataHandler(dataSource);
            return dh;
    {code}
    deploy.wsdd file
    {code}
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
                xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"   xmlns:apachesoap="http://xml.apache.org/xml-soap"
                xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ns1="ElementService">
        <service name="ElementService" provider="java:RPC">
            <parameter name="alias" value="ElementService"/>
            <parameter name="className" value="com.ws.ElementService"/>
            <parameter name="allowedMethods" value="*"/>
            <parameter name="scope" value="session"/>
            <operation name="getDimeData" returnQName="returnqname" returnType="ns1:DataHandler">
                <parameter name="dh" type="ns1:DataHandler"/>
            </operation>
            <typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
                         languageSpecificType="java:javax.activation.DataHandler" qname="ns1:DataHandler"
                         serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
                         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </service>
    </deployment>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    this isn't an axis forum, it is a java forum. you're probably better off asking this question in an axis specific forum.
    that said, unless you are required to use axis for this project, i'd look into using JAX-WS. it is integrated into the jdk and much simpler (IMO) to use. plus, you'll get better help in these forums if you are using it.

  • Issues with binding an XML object

    Hi all.
    I'm doing a quick data editor for a game I'm working on using
    AIR and flexbuilder. Anyway, I've stored all the data in an XML
    object and I'm binding various controls to the XML object. But I've
    come across a weird issue when I update the data.
    Basically I create a datagrid thats bound to the XML
    (basically it reads a list of companies from the XML object). I
    also have a MXML form thats bound to the same data (only from a
    single company at the selected index of the datagrid).
    So its all working neatly, apart from one thing. When I
    select different rows from my datagrid, I'm getting strange
    behavior from my update function (which simply sets the XML objects
    values to the values in my form fields). Its as though there is
    some caching going on within the data binding thats essentially
    overriding my text edit fields .text properties.
    Strangely enough, the update works, but not the first time
    you select a new row from the datagrid.
    So I'm wondering if there is some method to use to invalidate
    any caching of data (its almost like the text is being retrieved
    from a cache and stored back into the edit fields text property).
    I'd added the MXML code for the app. Although the app reads
    an XML file in the storage directory so its unlikely you'll be able
    to run it. But if you need the xml, here it is:
    <companies>
    <company>
    <companyname>Ericson</companyname>
    <companydesc>Some kind of description
    here</companydesc>
    </company>
    <company>
    <companyname>Vodaphone</companyname>
    <companydesc>This is another
    description</companydesc>
    </company>
    <company>
    <companyname>Smother</companyname>
    <companydesc>Wingles another
    description</companydesc>
    </company>
    </companies>
    Hope someone can shed some light here.

    You could try the Apache XMLBeans 2.1.0.
    I have the same need to use xs:any datatype and, at least, XMLBeans do not fail in the bean generation process.
    Cheers.

  • Issues  with binding conatiner

    Requirement :
    Lets say my page contains two jsff,dragged and dropped as regions.
    I want to get the binding container of the other jsff while I am in the first jsff.
    The jsff contains form and has few input text components and checkbox component.
    This I have done before but in that case the other jsff had a table component.
    I wrote this code to get the Binding container :
    RichTable deptable = (RichTable)ADFUtil.findComponentInRoot("deptTable");
    CollectionModel model = (CollectionModel)deptable.getValue();
    JUCtrlHierBinding employeesTableBinding =(JUCtrlHierBinding)model.getWrappedData();
    DCBindingContainer dcbindings = employeesTableBinding.getBindingContainer();
    OperationBinding operationBinding =dcbindings.getOperationBinding("ExecuteWithParams");
    How to get the binding container when I dont have a table component but a form layout containing some input texts and checkboxes.

    Hi,
    you cannot get directly to the binding container of a another region. Instead you need to perform region-interaction, which you use contextual events for or other means. See this recording for the options you have
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf-region-interaction/adf-region-interaction.html
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/AdfInsiderContextualEvents/AdfInsiderContextualEvents.html
    and read this
    http://www.oracle.com/technetwork/issue-archive/2013/13-may/o33adf-1920483.html
    Frank

  • Having issues with bind variable refcursor

    Hi,
    I have a procedure which returns just the list of employees from the emp table.
    while executing this package, it gives me an error
    Ex:
    sql> variable cur refcursor;
    sql> exec emp.getemplist(:cur);
    error:
    not all variables bound
    Please let me know what is wrong here.
    Thanks
    Manju

    manjukn wrote:
    package is a simple one..
    Exact Oracle version? Works fine on 10.2.0.4.0:
    SQL> create or replace package body emp_pkg is
      2  PROCEDURE getemplist (result_cursor OUT sys_refcursor)
      3  IS
      4  begin
      5  open result_cursor for select * from emp where deptno=10;
      6  end getemplist;
      7  end emp_pkg;
      8  /
    Package body created.
    SQL> variable cur refcursor;
    SQL> exec emp_pkg.getemplist(:cur);
    PL/SQL procedure successfully completed.
    SQL> print cur
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    SQL> SY.

  • Issues with using utl_http with Oracle Wallet

    Hello Everyone,
    We are experimenting with Oracle wallet and utl_http and are attempting to do an https transfer and we are facing some problems. I will appreciate your help greatly if you can advise on what could be wrong. We are on db version 10.2.0.1 and Unix HP-UX. The intention ping an https url and get a simple 200 response. Future development would include get/post XML documents from that url and other interesting stuff. I understand that utl_http with Oracle wallet can be used for this purpose.
    The wallet has been created and the ewallet.p12 exists. We downloaded the SSL certificate from the url's website and uploaded into the wallet.
    Everything works if I put in a url with plain http. However, it does not work with an HTTP*S* url.
    With HTTPS when I run the below code I get the following error. Again, greatly appreciate your time and help because this is the first time we are using Oracle wallet manager and do not know where to go from here.
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-29268: HTTP client error
    declare
    url varchar2(225);
    req utl_http.req;
    resp utl_http.resp;
    my_proxy BOOLEAN;
    name varchar2(2000);
    value varchar2(2000);
    V_proxy VARCHAR2(2000);
    v_n_proxy varchar2(2000);
    v_msg varchar2(100);
    v_len PLS_INTEGER := 1000;
    BEGIN
    -- Turn off checking of status code.
    utl_http.set_response_error_check(FALSE);
    --Set proxy server
    utl_http.set_proxy('my-proxy');
    utl_http.set_wallet('file:<full Unix path to the wallet on DB server>','wallet998');
    req := utl_http.begin_request('https://service.ariba.com/service/transaction/cxml.asp');
    --Set proxy authentication
    utl_http.set_authentication(req, 'myproxyid', 'myproxypswd','Basic',TRUE); -- Use HTTP Basic
    resp := utl_http.get_response(req);
    FOR i IN 1..utl_http.get_header_count(resp) LOOP
    utl_http.get_header(resp, i, name, value);
    dbms_output.put_line(name || ': ' || value);
    END LOOP;
    utl_http.end_response(resp);
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    END;

    I tried this using plsql ...
    declare
    SOAP_URL constant varchar2(1000) := 'http://125.21.166.27/cordys/com.eibus.web.soap.Gateway.wcp?organization=o=WIPRO,cn=cordys,o=itgi.co.in';
    request      UTL_HTTP.req;
    begin
    dbms_output.put_line('Begin Request');
    request := UTL_HTTP.begin_request(SOAP_URL,'POST',UTL_HTTP.HTTP_VERSION_1_1);
    dbms_output.put_line('After Request');
    exception
    when others then
       dbms_output.put_line('Error : '||sqlerrm);
    end;The output was ...
    Begin Request
    Error : ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-12535: TNS:operation timed outIt seems to be an issue with the webservice, plz check if its available & allowing requests.

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

Maybe you are looking for

  • Ipod 40 gb Classic ='(

    I have an Ipod classic 40gb (love it) Very nostalgic. It is old as you may notice by the 40gb. I try going into disk mode and every once in a while it will go into disk mode. I mean once every 25-30 times. I don't want to trade in for 10% of a new Ip

  • ITunes Library on an External Hard Drive issues

    I've read hundreds of forums, but none of them discuss my problem in a way that's at all related to mine. I have two external hard drives for my iTunes library. I have iTunes set up to read everything from the two external hard drives, and it works f

  • Continuous Kernel Panic and heavy instability for my iMac Mac OSX 10.6.8

    Two or three days after the second upgrade to Mac OSX 10.6.8 my iMac started with instability. Hour after hour the system stability degenerate affecting all the applications, the Finder and at the end with all the user's accounts of my family. The pr

  • IPhone 5 shut down and won't turn back on

    My phones screen turned a blue/greenish color and shut down and will not turn back on :(

  • Parameterized Mapping

    I have an Object that has a one to many collection. It currently is a managed privately owned, lazy initialized (indirection). Is it possible to parameterize this mapping by passing in or calling a method to get the parameters? I'm currently using Ja