Servicegen issues

I am getting the following error when running service gen. I am trying to run it
on a Redhat Linux machine. The environment has been set using the BEA recommended
shell scripts.
Any pointers what I can do to fix this?
[servicegen] Will use compilerClasspath /apps/opt/weblogic/weblogic810/weblogic81/server/lib/weblogic.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/webservices.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlstream.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlx.jar:/apps/opt/weblogic/weblogic810/jdk141_02/lib/tools.jar:/usr/bdrive/work_area/rphadnis/projects/learnwebservice/build/learnws.jar
[servicegen] Generating service "QuoteService" ...
[servicegen] using classpath /apps/opt/weblogic/weblogic810/weblogic81/server/lib/weblogic.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/webservices.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlstream.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlx.jar:/apps/opt/weblogic/weblogic810/jdk141_02/lib/tools.jar:/usr/bdrive/work_area/rphadnis/projects/learnwebservice/build/learnws.jar:/tmp/web-services.war1185584283/WEB-INF/classes
[servicegen] TypeMapping will use compiler javac
[servicegen] Running autotyper for javaclass class learnws.quote.QuoteService
[servicegen] WARNING: ignoring bean property "quoteRepresentation" in class learnws.quote.Quote:
no set method found.
[servicegen] java.lang.NoSuchMethodException: com.sun.tools.javac.Main does not
define 'public static int compile(String[], java.io.PrintWriter)'
[servicegen] at weblogic.utils.compiler.CompilerInvoker.invokeCompile(CompilerInvoker.java:321)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:448)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:563)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[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:123)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[servicegen] --- Nested Exception ---
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:505)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:563)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[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:569)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

Hi Rahul,
Could you provide a short example demonstrates this issue?
Thanks,
Bruce
Rahul Phadnis wrote:
>
I am getting the following error when running service gen. I am trying to run it
on a Redhat Linux machine. The environment has been set using the BEA recommended
shell scripts.
Any pointers what I can do to fix this?
[servicegen] Will use compilerClasspath /apps/opt/weblogic/weblogic810/weblogic81/server/lib/weblogic.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/webservices.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlstream.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlx.jar:/apps/opt/weblogic/weblogic810/jdk141_02/lib/tools.jar:/usr/bdrive/work_area/rphadnis/projects/learnwebservice/build/learnws.jar
[servicegen] Generating service "QuoteService" ...
[servicegen] using classpath /apps/opt/weblogic/weblogic810/weblogic81/server/lib/weblogic.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/webservices.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlstream.jar:/apps/opt/weblogic/weblogic810/weblogic81/server/lib/xmlx.jar:/apps/opt/weblogic/weblogic810/jdk141_02/lib/tools.jar:/usr/bdrive/work_area/rphadnis/projects/learnwebservice/build/learnws.jar:/tmp/web-services.war1185584283/WEB-INF/classes
[servicegen] TypeMapping will use compiler javac
[servicegen] Running autotyper for javaclass class learnws.quote.QuoteService
[servicegen] WARNING: ignoring bean property "quoteRepresentation" in class learnws.quote.Quote:
no set method found.
[servicegen] java.lang.NoSuchMethodException: com.sun.tools.javac.Main does not
define 'public static int compile(String[], java.io.PrintWriter)'
[servicegen] at weblogic.utils.compiler.CompilerInvoker.invokeCompile(CompilerInvoker.java:321)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:448)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:563)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[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:123)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[servicegen] --- Nested Exception ---
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:505)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:563)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
[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:569)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:166)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:101)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:179)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:119)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:292)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:169)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:317)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

Similar Messages

  • 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

  • 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

  • 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

  • Source2wsdd: ServiceGen does not contain a start method - help!

    Hello all Weblogic Users!
    I would greatly appreciate any help with this problem.
    I am getting this error when I do my build on Linux.
    [source2wsdd] source2wsdd: Doclet class weblogic.webservice.tools.ddgen.ServiceGen does not contain a start method.
    Previously I was getting an error where the ServiceGen class could not be found. This was occuring both in Windows and Linux.
    For Windows, this can be fixed in two ways. 1) Run setWLSEnv.cmd first (in weblogic81/server/bin. 2) (Unconfirmed but try it) Add the tools.jar, weblogic.jar, and webservices.jar to the ant runtimes lib in Eclipse (see preferences/ant/runtimes/global entries. - This will let you run the task inside Eclipse)
    In Linux, I added the webloigc.jar and webservices.jar to the user's special ~/'.ant/lib directory (see ant documentation). This too fixed the problem of being unable to find the ServiceGen class. But now I am getting the error above. I am ripping my hair out trying to fix it.
    Any help would be appreciated.
    Thanks to all....

    Hi bkshn,
    This error is caused by the missing "Main" method in your project. it is the entry point of your project.
    If you want to create a EF project, you could follow the way in the aricle below.
    https://msdn.microsoft.com/en-us/data/ee712907#codefirst
    The Main method is like below.
    class Program
    static void Main(string[] args)
    using (var db = new BloggingContext())
    // Create and save a new Blog
    Console.Write("Enter a name for a new Blog: ");
    var name = Console.ReadLine();
    var blog = new Blog { Name = name };
    db.Blogs.Add(blog);
    db.SaveChanges();
    // Display all Blogs from the database
    var query = from b in db.Blogs
    orderby b.Name
    select b;
    Console.WriteLine("All blogs in the database:");
    foreach (var item in query)
    Console.WriteLine(item.Name);
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey();
    And you could start to learn the EF from the following MSDN blogs.
    https://msdn.microsoft.com/en-us/data/ee712907
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WSDL, custom datatypes, fault element name issues

    Hello all,
    I am having a LOT of problems with BEAs webservices. I am posting
    this here in the hope that someone can help me and tell me what I am
    doing incorrectly. I am running
    WebLogic Server 7.0 SP1 Mon Sep 9 22:46:58 PDT 2002 206753
    WebLogic XMLX Module 7.0 SP1 Mon Sep 9 22:54:41 PDT 2002 206753
    Background:
    My goal is to make my company's product web services aware. I take an
    EJB, try to run it through the standard ant tasks and generate a web
    services accessible EJB. Sounds pretty easy, but complex types seem
    to make this quite difficult.
    I have been able to create a web service accessible EJB (only since
    7.0.1), but I am quite unhappy with the quality of what I am able to
    produce.
    I have a datatype which acts as a key, but it does not follow the
    javabeans idiom - i.e. it does not have a default constructor or
    accessor methods and I am not in the position to change it. I have
    created a codec for this class which works and an xml schema (both by
    hand). Its name is AgentKey. I have also had to use the autotyper to
    create codecs and typemapping entries for java.util.Properties,
    I can connect using the WebLogic classes and I am now trying to
    interact using MS Excel and Apache's Axis as my test clients.
    Issues:
    My first question deals with generating a client. There seem to be
    two ways to generate a client. Firstly via the <client> subtask of
    <servicegen><service>, the second way via <clientgen> task. Since I
    am using a custom data type (AgentKey) I have to manually insert the
    AgentKey schema into the web-services.xml file generated by
    servicegen. When I try to generate a client via the
    servicegen/service/client task there is no opportunity for me to
    insert this datatype schema information and I therefore get the
    following messages (lots of them, but I'm only including one):
    [servicegen] WARNINIG: Unable to find a javaType for the xmlType:['java:net.agentis.apml.runtime']:AgentKey.
    Make sure that you have registered this xml type in the type mapping
    [servicegen] Using SOAPElement instead
    BTW: I am also receiving the same problem with java.util.Properties.
    BTW: WARNING is misspelt
    If I attempt to generate a client class via the <clientgen> task, I
    need to supply either a wsdl or ear file as a parameter. I cannot
    supply a wsdl file because I haven't deployed the EAR yet (and I don't
    want to until the EAR has the client classes in it), and I can't
    supply the EAR because I want the ear to include the client classes.
    It is a bit of a catch 22 situation. Is there a solution I can't see?
    NOTE: it would be very, very nice if you added a schemaMapping
    attribute to the <servicegen/service> task so the web-services.xml
    file didn't have to be manually hacked. Something similar to the
    typemapping attribute already in the servicegen/service task would do
    it.
    My next problem deals with the validity of the WSDL. I am seeing that
    the WSDL created has exceptions defined multiple times. I saw a
    message from Manjo saying that it looked like a bug. I agree and
    would like to get a copy of the patch. On a more significant note,
    when is either SP2 or 7.1 due for release?
    Another problem with the WSDL (once you have cleansed the multiple
    exception messages) is that the fault elements of the
    binding/operation elements require names and they don't have any. For
    example, this is straight from the deployed EJB WSDL file:
    <binding name="ExampleAgentPortSoapBinding" type="tns:ExampleAgentPort">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="serviceWithPrimitiveDatatypes">
    <soap:operation soapAction="" style="rpc"/>
    <input>
    <soap:body use="encoded" namespace="http://sillyurl.com/reallysilly"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output>
    <soap:body use="encoded" namespace="http://sillyurl.com/reallysilly"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    <fault>
    <soap:body use="encoded" namespace="http://sillyurl.com/reallysilly"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </fault>
    </operation>
    <operation ...
    The schema definition at http://schemas.xmlsoap.org/wsdl/ says the
    fault element require a name attribute:
    <complexType name =" tBindingOperationFault">
    <complexContent>
    <extension base="wsdl:tExtensibleDocumented">
    <attribute name="name" type="NCName" use="required"/>
    </extension>
    </complexContent>
    </complexType>
    The name of the fault should be the same name as the fault in the
    portType definition. In my example the name is "AgentisException" as
    evidenced by this snippet:
    <portType name="ExampleAgentPort">
    <operation name="serviceWithPrimitiveDatatypes">
    <input message="tns:serviceWithPrimitiveDatatypes"/>
    <output message="tns:serviceWithPrimitiveDatatypesResponse"/>
    <fault name="AgentisException" message="tns:AgentisException"/>
    </operation>
    Once these changes have been made then the WSDL will validate. Are
    there plans to fix these bugs?
    On a different note, when I try to interact with a method that uses a
    custom data type, such as AgentKey, via the "WebLogic Webservice
    standard testing home page" the custom data type without a default
    constructor cannot be rendered correctly. For instance, the AgentKey
    value is:
    <!-- Do not know how to create a sample instance for this part due to the following
    exception:java.lang.InstantiationException: net.agentis.apml.runtime.AgentKey.
    Pls replace this with the correct XML before invoking the service. --->
    <agentKey/>
    Since I can't deploy a valid WSDL, I can't get either Axis or Excel to
    connect to my web services.
    When I attempt to invoke Axis' (beta 1.1) wsdl2java I recieve the
    following message.
    java.io.IOException: ERROR: Fault is missing a name= attribute in operation
    "serviceWithPrimitiveDatatypes", in binding {http://sillyurl.com/reallysilly}ExampleAgentPortSoapBinding.
    This seems understandable considering the issues I mentioned earlier.
    Unfortunately Excel doesn't really give me anything to go with. If I
    type in the WSDL URI then it will give me a list of methods I can
    invoke, but if I try to add the service I get the very unhelpful "The
    Web Service References Tool could not generate the requested code.
    Any changes that were made to your project have been rolled back."
    Any help with those two issues would be greatly appreciated also.
    One final issue is that I cannot seem to fix is taskdef'ing
    <servicegen> properly from Ant. I can do the actual taskdef but then
    it cannot find classes from within the weblogic.jar. If I run the
    setExamplesEnv.cmd first the I don't need to do the taskdef and
    everything works fine. Has anyone else had this issue? (we can't run
    that command on our clients desktops before we build our build scripts
    - anyway, I've put it down to one of those weird Ant classpath
    issues.)
    In summary:
    Problems I can see and would like some help on are:
    - multiple exception messages
    - fault operations with no name
    - the ability to generate client code with complex data types before
    the EAR is deployed.
    Could the product team add
    - a clean way to add in schema datatypes without having to manually
    hack the web-services.xml file.
    I know this has been quite a long email, but it has been months in the
    making. Anyone's time would be greatly appreciated.
    Mark Mansour
    Agentis Software
    [email protected]

    Hi Mark,
    From your base post:
    My next problem deals with the validity of the WSDL. I am seeing that
    the WSDL created has exceptions defined multiple times. I saw a
    message from Manjo saying that it looked like a bug. I agree and
    would like to get a copy of the patch. On a more significant note,
    when is either SP2 or 7.1 due for release?I would recommend starting here with support since getting valid WSDL seems to be the root of most of
    your issues.
    Concerning the upcoming release, I believe it is scheduled for late this quarter; contact Michael
    ([email protected]) for more information.
    Also, at the bottom of this post:
    I would just like to see an automated way to do this (I've had to write my own
    utility to do this for me :(Does the autotype ant task help in this situation? Have you taken a look at this?
    http://e-docs.bea.com/wls/docs70/webserv/anttasks.html#1080062
    Thanks,
    Bruce
    Mark Mansour wrote:
    Hiya Bruce,
    I will try and get some time to follow this up with the support people too.
    In response:
    Problems I can see and would like some help on are:
    - multiple exception messages
    In your client code, you can set the following property to avoid the exceptionmessages so that the typemapping
    registry can be setup.
    //dont parse wsdl till we set the typemapping
    System.setProperty( "weblogic.webservice.servicenamechecking","false" );
    This is not a client issue. The WSDL is generating incorrect WSDL. Here is a
    little snippet :
    <message name="AgentisException" >
    <part name="AgentisException" xmlns:partns="http://www.w3.org/2001/XMLSchema"
    type="partns:string" />
    </message>
    <message name="setTraceLevel" >
    <part name="agentKey" xmlns:partns="java:net.agentis.apml.runtime" type="partns:AgentKey"
    />
    <part name="intVal" xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int"
    />
    </message>
    <message name="AgentisException" >
    <part name="AgentisException" xmlns:partns="http://www.w3.org/2001/XMLSchema"
    type="partns:string" />
    </message>
    As you can see the AgentisException is defined twice (in my real WSDL it is redefined
    every time a method has the AgentisException in its interface (which in my case
    is 5 times))
    - fault operations with no nameI believe the fault issues that you have raised have been addressed in the upcomingrelease that will be
    available for beta testing shortly. Contact [email protected] if you
    want to participate in the beta.
    great. Is there any ETA on the final release date?
    - the ability to generate client code with complex data types before
    the EAR is deployed.
    There is an example to show how to do this: http://dev2dev.bea.com/direct/webservice/dyncmplx.zip
    Unfortunately this doesn't solve my problem. I still don't have an EAR or WSDL
    file from which I can generate a client to be included in the final EAR file that
    gets deployed to the server. My original post explains this a bit better.
    Could the product team add
    - a clean way to add in schema datatypes without having to manually
    hack the web-services.xml file.
    Take a look at http://dev2dev.bea.com/direct/webservice/wswa.html#qz50 and others
    in this area.
    This was more in reference to the building of the web services in the first place
    rather than registering custom datatypes at runtime. The manual procedure is
    documented at http://edocs.bea.com/wls/docs70/webserv/customdata.html#1058102,
    I would just like to see an automated way to do this (I've had to write my own
    utility to do this for me :(
    Hope this helps,
    Bruce
    Thanks Bruce.
    Mark

  • Servicegen for sub-class inside vector variable of Super

    java.lang.NoSuchMethodError
    at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
    ec.java:87)
    at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
    va:56)
    at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
    e.java:295)
    at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
    3)
    at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:184)loop
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:170)
    QueryItem {
    private Vector airItiners;
    public Vector getAirItiners() {
    return airItiners;
    public class AirItinerary implements Serializable{}
    QueryItem is my return class. The return result will include sub class AirItinerary
    in QueryItem's Vector. I notice servicegen will only generate stub and web.xml
    for QueryItem.
    I get above error, when the result return to client. How to generate necessary
    sub-class inside a vector variable of Super class?
    Stephen

    Hi Stephen,
    write my own ser/deser? Any other quick way?Our excellent support group ([email protected]) may be able to help with
    an alternative solution. If you could create a small reproducer, then
    this will help them with a clear picture of your goal.
    One more problem, wls deloy my WSBE.ear as a war correctly. But error show noDouble check the console log for any messages. Also try:
    http://[host]:[port]/[contextURI]/[serviceURI]
    See: http://edocs.bea.com/wls/docs70/webserv/client.html#1051033 and
    also check the console to verify the app is or is not deployed. See:
    http://edocs.bea.com/wls/docs70/programming/deploying.html
    HTHs,
    Bruce
    Stephen Zeng wrote:
    >
    Hi Bruce:
    Our company use wsl7.0. We are not able to update to wls8 in this project. Do
    I have to
    write my own ser/deser? Any other quick way?
    sub class variable:
    public class AirItinerary implements Serializable{
    private String air;
    private Vector flightItem; //sub class of AirItineray
    One more problem, wls deloy my WSBE.ear as a war correctly. But error show no
    deloyment found. web-services.xml has been generated by servicegen under web-inf
    path. Thanks Bruce.
    Stephen
    Bruce Stephens <[email protected]> wrote:
    Hi Stephen,
    The java.util.vector should be converted to a SOAP Array, see:
    http://edocs.bea.com/wls/docs81/webserv/assemble.html#1060696 however
    the issue of the sub-class is most likely the problem. Can you simplify
    the data types? You may just have to write your own ser/deser, see:
    http://edocs.bea.com/wls/docs81/webserv/customdata.html#1060764
    This is with WLS 8.1, right?
    Thanks,
    Bruce
    Stephen Zeng wrote:
    java.lang.NoSuchMethodError
    at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
    ec.java:87)
    at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
    va:56)
    at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
    e.java:295)
    at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
    3)
    at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:184)loop
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
    ls.java:170)
    QueryItem {
    private Vector airItiners;
    public Vector getAirItiners() {
    return airItiners;
    public class AirItinerary implements Serializable{}
    QueryItem is my return class. The return result will include sub classAirItinerary
    in QueryItem's Vector. I notice servicegen will only generate stuband web.xml
    for QueryItem.
    I get above error, when the result return to client. How to generatenecessary
    sub-class inside a vector variable of Super class?
    Stephen

  • ServiceGen stubs get screwed up if i delete a method.

    Environment
    Weblogic 8.1 SP6
    Java 142_11
    I'm using ServiceGen to create a client library for several applications,
    The problem i am having is this....
    If i have method A, B and C in my client library and i distribute it to 10 clients, and then i delete method A on the server (without them having updated), they all have issues calling ANY method not just the one i deleted, (even B and C).
    Its like there is an initialization which checks to see if old methods are still there, before you call anything.
    The last time i didstributed a client library, it was a library generated using wsdl2java, and these libraries never had these problems, they kept going no matter what methods you deleted or changed (so long as you didn't delete something it was using)
    This is causing me problems, as i don't want to have to update 10 clients if i change a method for just 1 of them.
    Any comments?
    Thanks!

    repost - sorry - site was slow responding.
    Edited by: Kwikksilva on Aug 25, 2008 6:11 AM

  • Problems generating multiple services from the same EAR using servicegen

    I have a single EJB JAR that contains multiple stateless session beans. I
    want to expose each of these individually as a service. So I have defined
    the following in my build file:
    <servicegen destEar="${ear.file}" warName="${war.file.name}"
    contextURI="web_services">
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="AService"
    serviceURI="/AService" includeEJBs="AService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="BService"
    serviceURI="/BService" includeEJBs="BService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="CService"
    serviceURI="/CService" includeEJBs="CService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="DService"
    serviceURI="/DService" includeEJBs="DService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="EService"
    serviceURI="/EService" includeEJBs="EService" generateTypes="True"
    expandMethods="True"/>
    </servicegen>
    I execute the task and it runs without issue. However, when I attempt to
    deploy the EAR I get some odd results (there are multiple jars listed all
    with my original name and then a number appended, for example MyApp.ear2).
    The deployment fails because each of these JARs contains the same session
    beans.
    So, I'm wondering if my only option is to package each session bean in a
    separate EJB JAR or if there is another way I could get this to work.
    Thanks,
    Rob

    Thanks, Neal. I'll do as you suggest.
    Just a little feature enhancement request, as well. It would be nice if the
    option existed to break out the webservices for all the session beans in a
    ejb rather than creating one all-encompassing interface of all the methods.
    I think this would be a useful feature.
    Thanks, again,
    Rob
    "Neal Yin" <[email protected]> wrote in message
    news:[email protected]...
    I am not sure what can cause this. But I will make servicegen check for
    duplicate.
    For now, in order to make sure your automatic build process, you can use
    ant's build in task "jar" to update your application.xml with a correctone
    after servicegen.
    -Neal
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]...
    Neal,
    After discussing this issue with a coworker, I found that when he buildsthe
    ear on his machine using the servicegen entries I specified previously,the
    application.xml is generated correctly. Mine, as you guessed, puts in
    multiple module entries all containing references to the same jar. I'm
    puzzled because we are apparently running in the same environment. Anyidea
    what might be causing it?
    Thanks,
    Rob
    "Neal Yin" <[email protected]> wrote in message
    news:[email protected]...
    Hi Rob,
    There is something wrong during generating application.xml for the
    ear.
    After servicegen, if you open generated application.xml, you probablycan
    see duplicate entries for one module. Please go ahead delete thoseredundant
    entries. Let me know if this works.
    -Neal
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]...
    I have a single EJB JAR that contains multiple stateless session
    beans.
    I
    want to expose each of these individually as a service. So I havedefined
    the following in my build file:
    <servicegen destEar="${ear.file}" warName="${war.file.name}"
    contextURI="web_services">
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="AService"
    serviceURI="/AService" includeEJBs="AService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="BService"
    serviceURI="/BService" includeEJBs="BService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="CService"
    serviceURI="/CService" includeEJBs="CService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="DService"
    serviceURI="/DService" includeEJBs="DService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="EService"
    serviceURI="/EService" includeEJBs="EService" generateTypes="True"
    expandMethods="True"/>
    </servicegen>
    I execute the task and it runs without issue. However, when I
    attempt
    to
    deploy the EAR I get some odd results (there are multiple jars
    listed
    all
    with my original name and then a number appended, for exampleMyApp.ear2).
    The deployment fails because each of these JARs contains the samesession
    beans.
    So, I'm wondering if my only option is to package each session bean
    in
    a
    separate EJB JAR or if there is another way I could get this to
    work.
    >>>>
    Thanks,
    Rob

  • Autotype and servicegen

    When the servicegen ant task is used to generate the serialization classes, the
    classes do not include the members in the super type. If the autotype ant task
    is used the serialization classes include the members in the super type. Does
    servicegen use autotype to create the serialization classes? Is there a option
    for service gen that I am missing?
    The servicegen WSDL contains the members from the super class, but the serialization
    class does not. Is this a known issue with servicegen?
    Thanks in advance
    C

    The only solution to this we have found is using only one session bean. Once a
    second session bean is added to the build, the codec's get produced incorrectly.
    "C Privet" <[email protected]> wrote:
    >
    Yes, the exact same classes. The codec's that end up in the client-ejb.jar
    are
    fine. The ones in the webservices war are not right (except for one).
    We can use
    the client-ejb.jar to chat with the EJB's but we can not use our webservices.
    I tried to make a small exampe, but cannot get it to break with a small
    example.
    Also, we cannot figure out why one codec works and the rest don't.
    We are still looking.
    C
    Bruce Stephens <[email protected]> wrote:
    Hello,
    Are exactly the same set of classes being given each tool? If so they
    should produce equivalent results. If not, it could be a bug. If you
    have a short example that shows the issue, could you post it and wecan
    take a look.
    Thanks,
    Bruce
    C Privet wrote:
    When the servicegen ant task is used to generate the serializationclasses, the
    classes do not include the members in the super type. If the autotypeant task
    is used the serialization classes include the members in the supertype. Does
    servicegen use autotype to create the serialization classes? Is therea option
    for service gen that I am missing?
    The servicegen WSDL contains the members from the super class, butthe serialization
    class does not. Is this a known issue with servicegen?
    Thanks in advance
    C

  • New DVR Issues (First Run, Channel Switching, etc.)

    I've spent the last 30 minutes trying to find answers through the search with no luck, so sorry if I missed something.
    I recently switched to FIOS from RCN cable in New York.  I've gone through trying to setup my DVR and am running into issues and was hoping for some answers.
    1.  I setup two programs to record at 8PM, I was watching another channel at the time and only half paying attention.  Around 8:02 I noticed a message had popped up asking if I would like to switch channels to start recording.  I was expecting it to force it to switch like my old DVR, but in this case it didn't switch and I missed the first two minutes of one of the shows.  I typically leave my DVR on all day and just turn off the TV, this dual show handling will cause issues with that if I forget to turn off the DVR.  Is there a setting I can change that will force the DVR to choose one of the recording channels?
    2.  I setup all my recordings for "First Run" because I only want to see the new episodes.  One show I setup was The Daily Show on comedy central, which is shown weeknights at 11pm and repeated 3-4 times throughout the day.  My scheduled recordings is showing all these as planned recordings even though only the 11pm show is really "new".  Most of the shows I've setup are once a week so they aren't a problem, but this seems like it will quickly fill my DVR.  Any fixes?
    Thanks for the help.
    Solved!
    Go to Solution.

    I came from RCN about a year ago.  Fios is different in several ways, not all of them desirable.  Here are several ways to get--and fix--unwanted recordings from a series recording setup.
    Some general principles. 
    Saving changes.  When you originally create a series with options, or if you go back to edit the options for an existing series, You MUST save the Series Options changes.  Pretty much everywhere else in the user interface, when you change an option, the change takes effect immediately--but not in Series Options.  Look at the Series Options window.  Look at the far right side.  There is a vertical "Save" bar, which you must navigate to and click OK on to actually save your changes.  Exiting the Series Options window without having first saved your changes loses all your attempted changes--immediately.
    Default Series Options.  This is accessed  from [Menu]--DVR--Settings--Default Series Options.  This will bring up the series options that will automatically be applied to the creation of a NEW series. The options for every previously created series will not be affected by a subsequent modification of the Default Series Options.  You should set these options to the way you would like them to be for the majority of series recordings that you are likely to create.  Be sure to SAVE your changes.  This is what you will get when you select "Create Series Recording" from the Guide.  When creating a new series recording where you think that you may want options different from the default, select "Create Series with Options" instead.  Series Options can always be changed for any individual series set up later--but not for all series at once.
    Non-series recordings.  With Fios you have no directly available options for these.  With RCN and most other DVRs, you can change the start and end times for individual episodes, including individual episodes that are also in a series.  With Fios, your workarounds are to create a series with options for a single program, then delete the series later;  change the series options if the program is already in a series, then undo the changes you made to the series options later; or schedule recordings of the preceding and/or following shows as needed.
    And now, to the unwanted repeats. 
    First, make sure your series options for the specific series in question--and not just the series default options--include "First Run Only".  If not, fix that and SAVE.  Then check you results by viewing the current options using the Series Manager app under the DVR menu.
    Second, and most annoying, the Guide can have repeat programs on your channel tagged as "New".  It happens.  Set the series option "Air Time" to "Selected Time".  To make this work correctly, you must have set up the original series recording after selecting the program in the Guide at the exact time of a first run showing (11pm, in your case), and not on a repeat entry in the Guide.  Then, even it The Daily Show is tagged as New for repeat showings, these will be ignored. 
    Third, another channel may air reruns of the program in your series recording, and the first showing of a rerun episode on the other channel may be tagged as "New".  These can be ignored in your series if you set the series option "Channel" to "Selected Channel".  Related to this, if there is both an SD and HD channel broadcasting you series program, you will record them both if the series option "Duplicates" is set to "Yes".  However, when the Channel option is set to "Selected Channel", the Duplicates Option is always effectively "No", regardless of what shows up on the options screen.  
    As for you missing two minutes,  I have sereral instances in which two programs start recording at the same time.  To the best of my recollection, whenever the warning message has appeared, ignoring it has not caused a loss of recording time.  You might have an older software version.  Newest is v.1.8.  Look at Menu--Settings--System Info.  Or, I might not have noticed the loss of minutes.  I regularly see up to a minute of previous programming at the start of a recording, or a few missing seconds at the beginning or end of a recording.  There are a lot of possibilities for that, but the DVR clock being incorrect is not one of them.  With RCN, the DVR clocks occasionally drifted off by as much as a minute and a half.

  • Pension issue Mid Month Leaving

    Dear All,
    As per rule sustem should deduct mid month joining/leaving/absences or transfer scenarios, the Pension/PF Basis will be correspondingly prorated. But our system is not doing this. In RT table i have found 3FC Pension Basis for Er c 01/2010                    0.00           6,500.00.
    Employee leaving date is 14.04.2010. system is picking pension amout as 541. Last year it was coming right.
    Please suggest.
    Ashwani

    Dear Jayanti,
    We required prorata basis pension in case of left employees and system is not doing this. This is the issue. As per our PF experts Pension amount should come on prorata basis for left employees in case they left mid of month.System is doing prorata basis last year but from this year it is deducting 541. I am giving two RT cases of different years.
    RT table for year 2010. DOL 26.04.2010
    /111 EPF Basis              01/2010                    0.00           8,750.00 
    /139 VPF Basis              01/2010                    0.00           8,750.00 
    /3F1 Ee PF contribution     01/2010                    0.00           1,050.00 
    /3F3 Er PF contribution     01/2010                    0.00             509.00 
    /3F5 Ee Mon PF contribution 01/2010                    0.00           1,050.00 
    /3F6 Ee Ann PF contribution 01/2010                    0.00          12,600.00 
    /3F9 PF adm chrgs * 1,00,00 01/2010                    0.00              96.25 
    /3FA PF basis for Ee contri 01/2010                    0.00           8,750.00 
    /3FB PF Basis for Er Contri 01/2010                    0.00           8,750.00 
    /3FJ VPF basis for Ee contr 01/2010                    0.00           8,750.00 
    /3FL PF Basis for Er Contri 01/2010                    0.00           6,500.00 
    /3F4 Er Pension contributio 01/2010                    0.00             541.00
    /3FC Pension Basis for Er c 01/2010                    0.00           6,500.00
    /3FB PF Basis for Er Contri 01/2010                    0.00           8,750.00
    /3FC Pension Basis for Er c 01/2010                    0.00           6,500.00
    /3FJ VPF basis for Ee contr 01/2010                    0.00           8,750.00
    /3FL PF Basis for Er Contri 01/2010                    0.00           6,500.00
    /3R3 Metro HRA Basis Amount 01/2010                    0.00           8,750.00
    1BAS Basic Salary           01/2010                    0.00           8,750.00
    RT table for year 2009. DOL 27.10.2009
                                                                                    /111 EPF Basis              07/2009                    0.00           9,016.13
    /139 VPF Basis              07/2009                    0.00           9,016.13
    /3F1 Ee PF contribution     07/2009                    0.00           1,082.00
    /3F3 Er PF contribution     07/2009                    0.00             628.00
    /3F5 Ee Mon PF contribution 07/2009                    0.00           1,082.00
    /3F6 Ee Ann PF contribution 07/2009                    0.00           8,822.00
    /3F9 PF adm chrgs * 1,00,00 07/2009                    0.00              99.18
    /3FA PF basis for Ee contri 07/2009                    0.00           9,016.00
    /3FB PF Basis for Er Contri 07/2009                    0.00           9,016.00
    /3FJ VPF basis for Ee contr 07/2009                    0.00           9,016.00
    /3FL PF Basis for Er Contri 07/2009                    0.00           5,452.00
    /3FB PF Basis for Er Contri 07/2009                    0.00           9,016.00 
    /3FC Pension Basis for Er c 07/2009                    0.00           5,452.00 
    /3FJ VPF basis for Ee contr 07/2009                    0.00           9,016.00 
    /3FL PF Basis for Er Contri 07/2009                    0.00           5,452.00 
    /3R4 Non-metro HRA Basis Am 07/2009                    0.00           9,016.13 
    1BAS Basic Salary           07/2009                    0.00           9,016.13 
    Now please suggest what to do. where is the problem  ? If have also checked EXIT_HINCALC0_002 but nothing written in it.
    With Regards
    Ashwani

  • Open PO Analysis - BW report issue

    Hello Friends
    I constructed a query in BW in order to show Open Purchase Orders. We have custom DSO populated with standard
    datasource 2lis_02_itm (Purcahse Order Item). In this DSO we mapped the field ELIKZ to the infoobject 0COMP_DEL
    (Delivery completed).
    We loaded the data from ECC system for all POs and found the following issue for Stock Transport Purchase orders (DocType = UB).
    We have a PO with 4 line items. For line items 10 and 20, Goods issued, Goods received and both the flags "Delivery
    complete" and "Final delivery" checked. For line items 30 and 40, only delivery indicator note is issued for zero
    quantity and Delivery complete flag is checked (Final delivery flag is not checked) in ECC system. For this PO, the
    delivery completion indicator is not properly updated in the DSO for line items 30 and 40. The data looks like the
    following:
    DOC_NUM     DOC_ITEM       DOCTYPE     COMP_DEL
    650000001       10     UB        X
    650000001       20     UB        X
    650000001       30     UB
    650000001       40     UB      
    When we run the Open PO analysis report on BW side this PO is appearing in the report but the same is closed in ECC
    system.
    Any help is appreciated in this regard.
    Thanks and Regards
    sampath

    Hi Priya and Reddy
       Thanks for your response.
                         Yes the indicator is checked in EKPO table for items 30 and 40 and delta is running regularly for more than 1 year and no issues with other POs. This is happening only for few POs of type Stock Transport (UB).
                        I already checked the changes in ME23N and the Delivery completed indicator was changed and it reflected in EKPO table. Further, i checked the PSA records for this PO and i am getting the records with the Delivery completed flag but when i update from PSA to DSO the delivery completed indicator is not updating properly.
                       In PSA, for item 30 i have the following entries. Record number 42 is capturing the value X for ELIKZ but after that i am getting two more records 43 and 44 with process key 10 and without X for ELIKZ. I think this is causing the problem.
    Record No.    Doc.No.                    Item              Processkey         Rocancel     Elikz
        41               6500000001            30                    11                            X           ---    
        42               6500000001            30                    11                            ---           X
        43               6500000001            30                    10                            X           ---
        44               6500000001            30                    10                            ---         ---
    (Here --- means blank)        
    Thanks and Regards
    sampath

  • HP LaserJet Enterprise 600 M602 driver issue

    Hello,
    I've got issue with 600-series printers. We use the latest UPD drivrer ver. 61.175.1.18849 and print from XenApp 6.5. The error occurs every time when users try to print jpg files from XenApp session. It only happens with 600 series printers and UPD.
    Also I've tried to assign native 600-series driver ver. 6.3.9600.16384 and it works good. But with that driver system says that it's color printer and it brokes our printing reports. These reports are very important for us. So we can't use printer and that driver as well.
    Printer installed on Windows Server 2012 R2. All clients are Windows 7 x64. XenApp Servers are Server 2008R2.
    Is it possible to get fixed UPD driver or correct native driver for Server 2012 R2?
    Regards,
    Anatoly

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at Printers - LaserJet.
    Click on New Post.
    I hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Windows 7 displays error message when exiting +cursor issue

    Two issues here. CS5 Phoshop on Wind 7 64 bit.
    Physical processor count: 8
    Processor speed: 3073 MHz
    Built-in memory: 12279 MB
    Free memory: 9577 MB
    Memory available to Photoshop: 10934 MB
    Memory used by Photoshop: 80 %
    Image tile size: 128K
    First issue is since the latest automatic Adobe update (why fix what isn't broken?) Every time I now exit Photoshop I get the message "Adobe QT Server has stoped working" and occasionally it happens when I exit bridge. Indesign is also behaving badly. I can no longer start a previous document from file manager without ID crashing out.
    The other is the cursors in Clone and erase lose their edge (become invisable) for no reason - well not quite. Noise Ninja crashed Photoshop when I tried to use it. I reinstalled it and all is well. The cursor issue seems to be intermittant but came back (for no reason) after I reinstalled NN. I can't seem to change the cursor, no matter what I do. The problem is now seriously affecting how I work. Almost enough to go back to Win XP which ran CS5 Photoshop flawlessly.
    Any help will be gratefully accepted.
    Doug

    function(){return A.apply(null,[this].concat($A(arguments)))}
    doug87510 wrote:
    The recent problem is the entire outline of the cursor (including the crosshair in the middle) was missing at any size of cursor. All I had was exactly what I'd get if I used a real spraygun.
    Well, that issue is simply a matter of hitting the Caps Lock key.  When Caps Lock is on, you'll see the cursor outline, and when it is off you'll see a crosshair.  That's a feature, not a bug.
    Glad to hear the 11.1 drivers are out.  I will download them and try them now myself.
    Regarding "Adobe QT" crashing...  QT brings to mind QuickTime, though that is Apple, not Adobe.  Do you have Apple QuickTime installed?
    Regarding memory usage, with 12 GB of installed RAM, you should be able to set Photoshop to use 90% or more in Edit - Preferences - Performance.
    -Noel

Maybe you are looking for

  • Cross Join in ABAP Open SQL

    Hi guys! I need to implement a CROSS JOIN (cartesian product) based on two tables. To my understanding there is no construct to implement a cross join in OPEN SQL. So the question is first is this correct? And secondly in which way would you then imp

  • My iPod won't sync with Photoshoo Album

    I'm using the new bug-fixed iTunes 5.0.1. and just downloaded Adobe Photoshop Album Starter Edition 3.0 for better photo syncing, but iTunes doesn't display under the Sync from... menu in Settings>iPod>Photos Am I doing something wrong? Are doesn't i

  • Detecting images affected by Transparency

    A few months ago, i've posted a topic to help me detecting image flattening during print process.<br /><br />For that and to detect images affected by transparency, i'm using <br />Utils<IXPUtils>()->GetGraphicsAffectedByTransparency(spreadRef)<br />

  • I want to update my credit card info.  I have moved to a new country and can not process the payment.  PLEASE HELP

    i want to update my credit card info.  I have moved to a new country and can not process the payment.  PLEASE HELP

  • How to check for cookies on user machine?

    Hi there, what is the correct method to check for cookies on user machine? I've tried the following: Cookie[] cookies; boolean cookiesFound = false; if (request.getCookies() != null) { cookiesFound = true; String name=null, birthMonth=null, birthDay=