• RELEVANCY SCORE 4.33

    DB:4.33:Web Services With Servicegen I Weblogic 7 pk





    I am trying to create web services with Weblogic's tool servicegen and
    ANT. It works great until I have a web service method that return a PK
    class of an EJB. I get the error "Error: bean property and public
    field found with the same name: id" (full stacktrace below). After
    some investigating I found out that it was my PK class that was the
    bad guy. But my PK class MUST have the field "id" public, otherwise
    ejbc complains...
    Am I doing anything wrong or does anyone have a solution?

    /Weasel

    webservices:
    [servicegen] Generating service "HelloWorldEJB" ...
    [servicegen] Generating XML types and serializers from ejb-jar
    (E:\java\projects\CMP20CMR-xdoclet\build\ejb\weblogic-ejb\samples-ejb.jar)
    ...
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:157)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:100)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:350)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.checkForFieldConflict(JavaInspector.java:384)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToScalar(JavaInspector.java:345)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:152)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:115)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:90)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:121)
    [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:176)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:85)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:113)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:100)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:350)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)

    BUILD FAILED
    E:\java\projects\CMP20CMR-xdoclet\script\build.xml:498:
    weblogic.xml.schema.binding.BindingException: Error: bean property and
    public field found with the same name: id

    DB:4.33:Web Services With Servicegen I Weblogic 7 pk

    I am trying to create web services with Weblogic's tool servicegen and
    ANT. It works great until I have a web service method that return a PK
    class of an EJB. I get the error "Error: bean property and public
    field found with the same name: id" (full stacktrace below). After
    some investigating I found out that it was my PK class that was the
    bad guy. But my PK class MUST have the field "id" public, otherwise
    ejbc complains...
    Am I doing anything wrong or does anyone have a solution?

    /Weasel

    webservices:
    [servicegen] Generating service "HelloWorldEJB" ...
    [servicegen] Generating XML types and serializers from ejb-jar
    (E:\java\projects\CMP20CMR-xdoclet\build\ejb\weblogic-ejb\samples-ejb.jar)
    ...
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:157)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:100)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:350)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property and public field found with the same name: id
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.checkForFieldConflict(JavaInspector.java:384)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToScalar(JavaInspector.java:345)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:152)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:115)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:90)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:121)
    [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:176)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:85)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:113)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:100)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:350)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:248)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:141)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java)

    BUILD FAILED
    E:\java\projects\CMP20CMR-xdoclet\script\build.xml:498:
    weblogic.xml.schema.binding.BindingException: Error: bean property and
    public field found with the same name: id

  • RELEVANCY SCORE 4.05

    DB:4.05:Servicegen And Documentation Of Method And Parameters 99






    Hi All,
    When servicegen generates WSDL for a java class exposed as web service, the methods
    that are exposed have parameters with names like string0, string1, string3 etc..in
    the WSDL. Whereas the real parameter names in the java methods could be firstName,
    lastName, email etc.. So, when someone reads his WSDL how would he know what we
    pass as parameters.

    Is there a way to get real parameter names in WSDL when it is generated through
    servicegen, or is there a better way to document the method and parameter names
    in WSDL (though it is generated by servicegen)

    thanks in advance

    Jagan

    DB:4.05:Servicegen And Documentation Of Method And Parameters 99

    Hello,

    The servicegen routine uses reflection in its code generation process
    and therefore reconstitutes the parameter names. You can use
    source2wsdd [1] to create the proper names from the java source.

    Hope this helps,
    Bruce

    [1]
    http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1080421

    Jaganathan Jeyapaul wrote:

    Hi All,
    When servicegen generates WSDL for a java class exposed as web service, the methods
    that are exposed have parameters with names like string0, string1, string3 etc..in
    the WSDL. Whereas the real parameter names in the java methods could be firstName,
    lastName, email etc.. So, when someone reads his WSDL how would he know what we
    pass as parameters.

    Is there a way to get real parameter names in WSDL when it is generated through
    servicegen, or is there a better way to document the method and parameter names
    in WSDL (though it is generated by servicegen)

    thanks in advance

    Jagan

  • RELEVANCY SCORE 3.95

    DB:3.95:Wl8 Servicegen Not Support Javax...Holders..? zj






    I'm using Weblogic8, trying to expose a common-java-class in which one method return
    a bye[] of java.xml.rpc.hloders.ByteArrayHolder.
    when servicegen working on it, some excpetions were caught:

    Buildfile: servicegen.xml
    servicegen:
    [servicegen] Generating service "ws4Attach" ...
    [servicegen] weblogic.xml.schema.binding.BindingException: JAX-RPC Holder classes
    as class members are not supported. Holder class is javax.xml.rpc.holders.ByteArrayHolder
    [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.runAutoTyper(ServiceGenTask.java:348)
    [servicegen] Caused by: weblogic.xml.schema.binding.BindingException: JAX-RPC
    Holder classes as class members are not supported. Holder class is javax.xml.rpc.holders.ByteArrayHolder

    Can any one figure it out?

    Thanks lots
    John
    Toronto

    DB:3.95:Wl8 Servicegen Not Support Javax...Holders..? zj

    I thought the idea of holders was to support in-out and out parameters,
    i.e. the ability to pass in a value or set of values that could be
    updated by calling a setter on the holder. As such, it is generally
    used as a parameter to a method, not as a return value.

    John wrote:

    Hello Bruce

    Thanks for considering my question:

    Bruce Stephens hbs@nospam.bea.com wrote:

    Hi John,

    The supported holder classes contains implementations of holders for
    all
    the primitive types as defined by the JAX-RPC[1] spec and includes
    ByteArrayHolder.

    Are you saying that you are trying to expose a holder of a holder?

    Could you post a short version of your code?

    To simply it, the following is the segment code which caused the problem

    public javax.xml.rpc.holders.ByteArrayHolder get()
    {
    byte [] array = new byte[]{1,2,3,4};
    javax.xml.rpc.holders.ByteArrayHolder hold = new javax.xml.rpc.holders.ByteArrayHolder
    (array);

    return hold;
    }

    Thanks again

    John
    Toronto
    [att1.html]

  • RELEVANCY SCORE 3.80

    DB:3.80:Servicegen ? 17



    Hi

    I developed several service examples using servicegen. It makes a war and ear.
    Since they were independent example it worked good. Now say i have my exisiting
    application EAR and i want to expose one file as service which would have one
    method. How would my build xml look and how would i organize my exiting war.

    Also pls explain me imp of tmp_build.

    paul

    DB:3.80:Servicegen ? 17

    Hello,

    If I understand your question correctly, you would want to use the
    "excludeEJBs" attribute in servicegen to limit the set of EJBs
    processed. See:
    http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1063540

    Hope this helps,
    Bruce

    paul wrote:

    Hi

    I developed several service examples using servicegen. It makes a war and ear.
    Since they were independent example it worked good. Now say i have my exisiting
    application EAR and i want to expose one file as service which would have one
    method. How would my build xml look and how would i organize my exiting war.

    Also pls explain me imp of tmp_build.

    paul

  • RELEVANCY SCORE 3.80

    DB:3.80:Servicegen : Meaningful Param Names In Wsdl Instead Of Intval zf


    Hi,

    I am creating webservice using servicegen antTask.The WSDL is being created fine but when I look into the few elements, they are being shown as :

    Generated one
    xsd:element name="getAllMerchants"
    xsd:complexType
    xsd:sequence
    *xsd:element type="xsd:string" name="string" /xsd:element*
    xsd:element type="tp:ClientVO" name=" ClientVO " /xsd:element
    *xsd:element type="xsd:int" name="intVal" /xsd:element*
    *xsd:element type="xsd:boolean" name="booleanVal" /xsd:element*
    /xsd:sequence
    /xsd:complexType
    /xsd:element

    MyRequirement:
    xsd:element name="getAllMerchants"
    xsd:complexType
    xsd:sequence
    xsd:element type="xsd:string" name="authkey" /xsd:element
    xsd:element type="tp:ClientVO" name=" ClientVO " /xsd:element
    xsd:element type="xsd:int" name="merchantcount" /xsd:element
    xsd:element type="xsd:boolean" name="consumersonly" /xsd:element
    /xsd:sequence
    /xsd:complexType
    /xsd:element

    Below is my code for the same :

    target name="generate-webservices" description="Generate the webservices" depends="build"
    mkdir dir="${generated.dir.ws}"/
    taskdef
    name="servicegen"
    classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"

    classpath
    pathelement location="${weblogic.lib}/weblogic.jar"/
    pathelement location="${weblogic.lib}/webservices.jar"/
    /classpath
    /taskdef

    servicegen
    destEar="${generated.dir.ws}"
    warname="retriever-ws.war"
    keepgenerated="False"
    overwrite="True"
    contextURI="/"

    classpath
    pathelement location="${weblogic.lib}/weblogic.jar"/
    pathelement location="${weblogic.lib}/webservices.jar"/
    pathelement location="${dest.classes}"/
    pathelement location="${generated.dir.ws}"/
    /classpath

    service
    javaClassComponents="com.charlie.mybill.fetch.facade.SomeServiceImpl"
    targetNamespace="http://www.charlie.com/xmlschema/ebill/v1.0"
    protocol="http"
    serviceName="SomeService"
    serviceURI="/SomeService"
    style="documentwrapped"
    generateTypes="True"
    client packageName="com.charlie.mybill.fetch.facade.webservice" /
    handlerChain handlers="com.charlie.mybill.fetch.util.SOAPMessageHandler" name="SOAPMessageHandler"/
    /service
    /servicegen

    !-- Temporary Hack : replace the created web-services.xml with new web-services.xml which have proper elements
    WSDL for getAllMerchants --
    copy tofile="${dest.build}/temp/webservice/WEB-INF/web-services.xml" file="${source.src}/conf/web-services.xml" overwrite="yes"/
    zip destfile="${generated.dir.ws}/retriever-ws.war" basedir="${dest.build}/temp/webservice" update="false" /
    /target

    I am using java 1.4 and weblogic 8.1.

    How can i give meaningful names for element name generated for WSDL ? Any help will be appreciated.

    Thanks in advance.

    Cha

    DB:3.80:Servicegen : Meaningful Param Names In Wsdl Instead Of Intval zf

    Anybody got clue, how to figure this out?

    Please help.

    Thanks,
    Cha

  • RELEVANCY SCORE 3.63

    DB:3.63:Servicegen: How Can I Output A Wsdl File To The Filesystem xz


    This could be a silly question:

    How do I get a WSDL file out of servicegen? I know that I can access it once
    I deploy the ear, but I want the wsdl as an intermediate step in my build script
    (so I can generate C++ proxies). Have I missed something obvious in the documentation?

    -Nick

    DB:3.63:Servicegen: How Can I Output A Wsdl File To The Filesystem xz

    Ok. Thanks.
    Why not just make it a switch on servicegen?

    -Nick

    "Neal Yin" nyin@bea.com wrote:
    We wills release a tool, wsdlgen, which takes a web service ear file
    and
    generates wsdl from it. Right now you can workaround this issue by running
    clientgen against your ear file, then you can take the wsdl that gets
    stored
    in client jar file.

    -Neal

    "Nick Minutello" NickMinutello@REMOVE-THISccomservices.demon.co.uk
    wrote
    in message news:3d459c5e@newsgroups.bea.com...
    This could be a silly question:

    How do I get a WSDL file out of servicegen? I know that I can accessit
    once
    I deploy the ear, but I want the wsdl as an intermediate step in mybuild
    script
    (so I can generate C++ proxies). Have I missed something obvious inthe
    documentation?
    -Nick

  • RELEVANCY SCORE 3.53

    DB:3.53:Beginner .. Help Required cp



    After some guidance from some Web Service illuminaries !. We have a customer who
    wishes to make all access to the CRM system available via WebServices. So for
    example a web front end may issue a create customer call.

    What I would like to do is to simply expose an existing Java Class we have as
    a service. The class will provide a method to create customer ( and optionally
    some callbacks if we choose to make it asynchronous). Ive read that WS over JMS
    is not particularly efficient?

    However Im not sure as yet how to expose the parameters. I guess the simplest
    is just to have one method which has 10-15 input params all of simple types (strings,
    longs etc) which WLS will easily convert to SOAP and pass via HTTP (The ServiceGen
    Ant tool or WebLogic Workshop creates all the files and the EAR for us as I understand).
    Means the WSDL is easily generated too with no need for serializable classes.
    Not sure if/how there is a better way for the service to accept parameters ( maybe
    accept classes such as customer, account, address etc??? Is this possible? Do
    we need extra code to deserialize .. Does it affect clients?)

    I guess we would then register the service in UDDI somewhere and external clients
    such as the web front end could then declare and call the service, and define
    a callback method which our web service would call. Does the client need to deploy
    a jar file to run the service as the simple example on WLS 8.1 seems to indicate?

    Does this sound right? Is there a better way. Normally we would have done this
    with EJB a technology we understand but the client insists we use SOAP

    Any pointers gratefully recieved !

    DB:3.53:Beginner .. Help Required cp

    Hi Joe,

    I would suggest that you and your customer first start with common
    WSDL. This will define the web service's contract. The contract-first
    approach is probably the most difficult compared to code-first, but in
    general, the results will be better, more usable web services.

    There are several tools that can help. XMLSpy is bundled with WLS 8.1
    for example, another is Omniopera.

    Hope this helps,
    Bruce

    Joe wrote:

    After some guidance from some Web Service illuminaries !. We have a customer who
    wishes to make all access to the CRM system available via WebServices. So for
    example a web front end may issue a create customer call.

    What I would like to do is to simply expose an existing Java Class we have as
    a service. The class will provide a method to create customer ( and optionally
    some callbacks if we choose to make it asynchronous). Ive read that WS over JMS
    is not particularly efficient?

    However Im not sure as yet how to expose the parameters. I guess the simplest
    is just to have one method which has 10-15 input params all of simple types (strings,
    longs etc) which WLS will easily convert to SOAP and pass via HTTP (The ServiceGen
    Ant tool or WebLogic Workshop creates all the files and the EAR for us as I understand).
    Means the WSDL is easily generated too with no need for serializable classes.
    Not sure if/how there is a better way for the service to accept parameters ( maybe
    accept classes such as customer, account, address etc??? Is this possible? Do
    we need extra code to deserialize .. Does it affect clients?)

    I guess we would then register the service in UDDI somewhere and external clients
    such as the web front end could then declare and call the service, and define
    a callback method which our web service would call. Does the client need to deploy
    a jar file to run the service as the simple example on WLS 8.1 seems to indicate?

    Does this sound right? Is there a better way. Normally we would have done this
    with EJB a technology we understand but the client insists we use SOAP

    Any pointers gratefully recieved !

  • RELEVANCY SCORE 3.53

    DB:3.53:Costom Serializers In Weblogic 7.0.1 9k



    I am having a problem preventing the servicegen ant task from attempting to create
    java code for an unsupported type. The class is java.sql.Timestamp. Several
    of my ejbs use the Timestamp class in their interfaces and servicegen complains
    that Timestamp does not have a default ctor. That was expected. I then created
    a custom codec class to serialize and deserialize the Timestamp class. The servicegen
    portion of my build.xml file looks like this:

    servicegen
    destEar="web-services"
    warName="web-services.war"
    contextURI="ws"
    service
    typeMappingFile="typeMaps/wl7.xml"
    ejbJar="myejb.jar"
    targetNamespace="http://www.eoriginal.com/web-services"
    includeEJBs="IndustrySession"
    serviceName="IndustrySession"
    serviceURI="/IndustrySession"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen

    The contents of the type mapping file (wl7.xml) is as follows:

    type-mapping
    type-mapping-entry xmlns:p2="java:java.sql.Timestamp"
    class-name="java.sql.Timestamp"
    type="p2:Timestamp"
    serializer="webservices.TimestampCodec"
    deserializer="webservices.TimestampCodec"
    /type-mapping-entry
    /type-mapping

    The Codec class (ser/deser) is in the classpath. The typeMappingFile element
    of service appears to have no effect on the operation of the servicegen task.
    ??

    If the typeMappingFile element is provided with a path to a type mapping file
    servicegen should not complain about that type (class) since the custom ser/deser
    will handle it.

    Any ideas?

    Thanks,
    Tim Rea

    DB:3.53:Costom Serializers In Weblogic 7.0.1 9k


    Tim,

    I tried this, and it worked.
    My custom type-mapping is following:
    type-mapping
    type-mapping-entry
    xmlns:p1="java:com.eidea.util.structure"
    class-name="com.eidea.util.structure.NameValue"
    type="p1:NameValue"
    serializer="com.eidea.util.ws.NameValueCodec"
    deserializer="com.eidea.util.ws.NameValueCodec"
    /type-mapping-entry
    /type-mapping

    For my case, xmlns:p1 has to be "com.eidea.util.structure" because that's what
    servicegen would generate. Then, in the build.xml,

    servicegen
    destEar="${APPLICATIONS}/${ear_file}"
    warName="${war_file}"
    classpath="${CLASSPATH}"
    overwrite="False"
    service
    typeMappingFile="typeMapping.xml"
    ejbJar="${ejb_jar_file}"
    targetNamespace="${namespace}"
    serviceName="HelloWorldEJB"
    serviceURI="/HelloWorldEJB"
    generateTypes="True"
    expandMethods="True"
    client packageName="examples.webservices.basic.statelessSession"
    clientJarName="${client_jar_file}"
    useServerTypes="True"
    saveWSDL="True"
    /
    /service
    /servicegen

    I set overwrite to be "False".

    I tried to put the definition of complexType in XML Schema format into the typeMappingFile,
    but it won't allow to have two different roots, types and type-mapping.
    If u want to put your schema info, then u would manually edit web-service.xml
    in ear file.

    "Tim Rea" tbrea@eoriginal.com wrote:

    I am having a problem preventing the servicegen ant task from attempting
    to create
    java code for an unsupported type. The class is java.sql.Timestamp.
    Several
    of my ejbs use the Timestamp class in their interfaces and servicegen
    complains
    that Timestamp does not have a default ctor. That was expected. I then
    created
    a custom codec class to serialize and deserialize the Timestamp class.
    The servicegen
    portion of my build.xml file looks like this:

    servicegen
    destEar="web-services"
    warName="web-services.war"
    contextURI="ws"
    service
    typeMappingFile="typeMaps/wl7.xml"
    ejbJar="myejb.jar"
    targetNamespace="http://www.eoriginal.com/web-services"
    includeEJBs="IndustrySession"
    serviceName="IndustrySession"
    serviceURI="/IndustrySession"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen

    The contents of the type mapping file (wl7.xml) is as follows:

    type-mapping
    type-mapping-entry xmlns:p2="java:java.sql.Timestamp"
    class-name="java.sql.Timestamp"
    type="p2:Timestamp"
    serializer="webservices.TimestampCodec"
    deserializer="webservices.TimestampCodec"
    /type-mapping-entry
    /type-mapping

    The Codec class (ser/deser) is in the classpath. The typeMappingFile
    element
    of service appears to have no effect on the operation of the servicegen
    task.
    ??

    If the typeMappingFile element is provided with a path to a type mapping
    file
    servicegen should not complain about that type (class) since the custom
    ser/deser
    will handle it.

    Any ideas?

    Thanks,
    Tim Rea

  • RELEVANCY SCORE 3.46

    DB:3.46:Servicegen Stubs Get Screwed Up If I Delete A Method. 7c


    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!

  • RELEVANCY SCORE 3.37

    DB:3.37:Servicegen Task - Specifying Parameter Names ks



    The WSDL file that is generated using the servicegen task in ant has the parameter
    names as string0, string1, string2 etc for each method call in the webservice.
    I need the parameters to be given meaningful names like addressline, town, city
    etc. Is there a way of doing this using ant ? Can it not pick up the parameter
    names as defined in the method signature of the ejb ?

    Your help would be much appreciated as I have to resolve this quickly, cheers

    DB:3.37:Servicegen Task - Specifying Parameter Names ks

    Servicegen work with the EJB class file. Hence, parameter
    names are not available. You have two options:

    1. edit the web-services.xml DD file to change the
    parameter names.

    2. use source2wsdd instead of servicegen. Here is an
    example of using source2wsdd with EJB:

    http://www.manojc.com/?sample10

    Regards,
    -manoj

    --
    http://manojc.com

    "Rich Shelton" rich.shelton@eds.com wrote in message
    news:3f255321$1@newsgroups.bea.com...

    The WSDL file that is generated using the servicegen task in ant has theparameter
    names as string0, string1, string2 etc for each method call in thewebservice.
    I need the parameters to be given meaningful names like addressline, town,city
    etc. Is there a way of doing this using ant ? Can it not pick up theparameter
    names as defined in the method signature of the ejb ?

    Your help would be much appreciated as I have to resolve this quickly,cheers

  • RELEVANCY SCORE 3.20

    DB:3.20:Servicegen And Web.Xml x9


    I want to implement Basic Authentication for the webservice.
    My problem is servicegen creates the web.xml file. How do I replace the web.xml file created by servicegen with the one created by me.
    Is there any attribute like warfile in servicegen
    Thanks in advance

    DB:3.20:Servicegen And Web.Xml x9

    I want to implement Basic Authentication for the webservice.
    My problem is servicegen creates the web.xml file. How do I replace the web.xml file created by servicegen with the one created by me.
    Is there any attribute like warfile in servicegen
    Thanks in advance

  • RELEVANCY SCORE 3.18

    DB:3.18:Real Method Parameters Instread Of String_1, String_2 In Wsdl 1j


    i'm using the ant wscompile task for my jax-rpc web service. is there a way to make the WSDL use the parameters in my code, like (name, password) instead of (String_1, String_2)?

    also, has anyone found the documentation for the wscompile and wsdeploy ant tasks?

    DB:3.18:Real Method Parameters Instread Of String_1, String_2 In Wsdl 1j

    if you use one single object as parameter
    e.g.
    class Param
    {
    public String name;
    public int age;
    }
    ...
    rpcmethod(Param in)
    {
    ...
    }
    the parameters are defined as "name" and "age" in the WSDL not as String_1 and String_2

  • RELEVANCY SCORE 3.18

    DB:3.18:Wsdlparseexception Using Servicegen fm



    Hello,

    Perhaps you guys have seen this before. I'm running WLS 8.1 and implementing
    a web service through a Java class. One of my API methods throws 2 user-defined
    exceptions, whereas the rest throw only one.

    It appears there is a bug in servicegen when it creates the WSDL for my service.
    In the WSDL under the operation tag for the 2-exception method, it correctly
    lists 2 fault tags pointing to message tags that further define the fault type.
    However, only the first exception listed in my method has a message tag defining
    that type. The other is missing.

    Sure enough when I attempt to create the client JAR in servicegen, I get the following
    exception:

    weblogic.webservice.tools.wsdlp.WSDLParseException: ERROR[WSDL Parser]:message
    not found:tns:DbException

    Any ideas? I don't think I'm running SP1. Did this get fixed? Thanks.

    Tom

    DB:3.18:Wsdlparseexception Using Servicegen fm


    Thanks, Manoj. I upgraded to SP1 and that fixed it. --Tom

    "manoj cheenath" manojc@bea.com wrote:
    WLS 8.1 SP1 did have some fix for exceptions.

    See details here:
    http://e-docs.bea.com/wls/docs81/notes/new.html#1187561

    Please try SP1, it may fix your problem.

    Regards,
    -manoj

    --
    http://manojc.com

    "Tom Hirsch" thomas.hirsch@baesystems.com wrote in message
    news:3f845320$1@newsgroups.bea.com...
    Hello,

    Perhaps you guys have seen this before. I'm running WLS 8.1 andimplementing
    a web service through a Java class. One of my API methods throws 2user-defined
    exceptions, whereas the rest throw only one.

    It appears there is a bug in servicegen when it creates the WSDL formy
    service.
    In the WSDL under the operation tag for the 2-exception method, itcorrectly
    lists 2 fault tags pointing to message tags that further define thefault
    type.
    However, only the first exception listed in my method has a messagetag
    defining
    that type. The other is missing.

    Sure enough when I attempt to create the client JAR in servicegen,I get
    the following
    exception:

    weblogic.webservice.tools.wsdlp.WSDLParseException: ERROR[WSDLParser]:message
    not found:tns:DbException

    Any ideas? I don't think I'm running SP1. Did this get fixed? Thanks.

    Tom

  • RELEVANCY SCORE 3.18

    DB:3.18:Servicegen, Custom Serializers, And Namespaces (Wl 7.0) sa



    Hi,
    I'm trying to generate a web service around a stateless session bean with one
    method. The parameter and return value for this method require custom serializers,
    so I've overridden AbstractCodec and followed all the other instructions. Now,
    the schema that maps to the two parameters does not use a namespace. I wonder
    if that is factoring into the problems I am having. Using the servicegen task,
    I end up with a web-services.xml file that invents namespaces, refers two sets
    of serializers (mine, and newly-generated ones), and maps the generated serializers,
    not mine, to the parameters of the method. Either I'm doing something wrong in
    servicegen, or maybe namespaces are an issue? Note that I have searched thru
    the newsgroup already, finding pieces of the answer but not the whole thing. It
    looks like servicegen will invent namespaces - does that mean I have to use them
    in my schema? Any help is MUCH appreciated.

    Thanks!
    Noah

    Here is the original EJB and method signature:
    import com.lehman.fia.validator.ValidatorDataManager;
    import com.lehman.fia.validator.SecurityIdentifierDataManager;
    public interface Validator extends EJBObject {
    ValidatorDataManager validate
    (SecurityIdentifierDataManager securities)
    throws AppException, RemoteException;
    }

    I cannot put the whole schema in here, but here is
    a summary. It does not use namespaces at all:
    bonds
    ....
    /bonds

    Here is my servicegen task:
    servicegen
    destEar="${outputDir}/${earName}-${targetPlatform}.ear"
    overWrite="False"
    contextURI="FIA/webservices"
    service ejbJar="${outputDir}/${ejbName}.jar"
    targetNamespace=""
    serviceName="validator"
    serviceURI="/validator"
    expandMethods="True"
    generateTypes="True"
    typeMappingFile="${inputDir}/app/packaging/${earName}.ear/ant/typeMapping.xml"
    style="rpc"
    /service

    Here is my typeMapping.xml. I have not yet pasted in my schema. It's true the
    two different classes map to the same schema element, but my implementation of
    AbstractCodec knows this and handles it:
    type-mapping
    type-mapping-entry
    class-name="com.lehman.fia.validator.SecurityIdentifierDataManager"
    type="bonds" serializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    deserializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    /

    type-mapping-entry
    class-name="com.lehman.fia.validator.ValidatorDataManager"
    type="bonds" serializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    deserializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    /
    /type-mapping

    And finally, here is the output web-services.xml. Note the new namespaces, serializers,
    and the mapping of these to the ejb method:
    web-services
    web-service protocol="http" name="validator" uri="/validator" style="rpc"
    typesxsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.lehman.fia.validator"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.lehman.fia.validator"
    xsd:complexType name="ValidatorDataManager"
    /xsd:complexType
    xsd:complexType name="SecurityIdentifierDataManager"
    /xsd:complexType
    /xsd:schema/types
    type-mapping
    type-mapping-entry deserializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    class-name="com.lehman.fia.validator.SecurityIdentifierDataManager" xmlns:="null"
    type="bonds" serializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    /type-mapping-entry
    type-mapping-entry deserializer="com.lehman.fia.validator.ValidatorDataManagerCodec"
    class-name="com.lehman.fia.validator.ValidatorDataManager" xmlns:p1="java:com.lehman.fia.validator"
    type="p1:ValidatorDataManager" serializer="com.lehman.fia.validator.ValidatorDataManagerCodec"
    /type-mapping-entry
    type-mapping-entry deserializer="com.lehman.fia.validator.SecurityIdentifierDataManagerCodec"
    class-name="com.lehman.fia.validator.SecurityIdentifierDataManager" xmlns:p2="java:com.lehman.fia.validator"
    type="p2:SecurityIdentifierDataManager" serializer="com.lehman.fia.validator.SecurityIdentifierDataManagerCodec"
    /type-mapping-entry
    type-mapping-entry deserializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    class-name="com.lehman.fia.validator.ValidatorDataManager" xmlns:="null" type="bonds"
    serializer="com.lehman.fia.validator.webservice.WL700_BondsCodec"
    /type-mapping-entry
    /type-mapping

    components
    stateless-ejb name="ejbcomp0"
    ejb-link path="validatorEJB.jar#ValidatorEJB"
    /ejb-link

    /stateless-ejb
    /components

    operations
    operation method="validate(com.lehman.fia.validator.SecurityIdentifierDataManager)"
    component="ejbcomp0" name="validate"
    params
    param location="body" class-name="com.lehman.fia.validator.SecurityIdentifierDataManager"
    style="in" name="securityIdentifierDataManager" xmlns:p2="java:com.lehman.fia.validator"
    type="p2:SecurityIdentifierDataManager"
    /param
    return-param location="body" class-name="com.lehman.fia.validator.ValidatorDataManager"
    name="result" xmlns:p1="java:com.lehman.fia.validator" type="p1:ValidatorDataManager"
    /return-param

    fault name="AppException" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    type="xsd:string" class-name="com.lehman.fia.arch.AppException"
    /fault
    /params

    /operation
    /operations

    /web-service
    /web-services

    DB:3.18:Servicegen, Custom Serializers, And Namespaces (Wl 7.0) sa

    Thanks for responding. That's right, no targetNamespace, and no use of xmlns attributes
    anywhere. I can't really post the schema details but they shouldn't matter, I
    think, right? Since my serializer/deserializer will handle all the translation.

    Here's what I think a lot of this seems to come down to. The "generateTypes" property
    of service, according to the doc, should be set to "True" if you want Weblogic
    to generate the serializers for you. I don't. But, if I set it to false, no typeMapping
    appears in web-services.xml, even though I have specified a "typeMapping" attribute
    of service. If I set it to true, I get the strange typemapping that I posted:
    two sets of serializers, one that has been generated by Weblogic, and my own.
    Unfortunately the methods are then mapped to Weblogic's types.

    Thanks for any help!
    Noah

    "Scott Ziegler" scott.ziegler@bea.com wrote:
    On Wed, 05 Feb 2003 06:34:45 -0800, Noah Green wrote:
    I cannot put the whole schema in here, but here is
    a summary. It does not use namespaces at all:
    bonds
    ....
    /bondsCan you post a bit more? I don't quite see how it is possible to write
    a
    schema without namespaces. I suspect you mean that the schema has no
    targetNamespace attribute?

    I will try to take some time to look into the rest of your problem but
    it
    might be awhile.

    --Scott

  • RELEVANCY SCORE 3.16

    DB:3.16:Lcg And Generics dm


    Greetings,I've seen uses of LCG to optimize method calls though reflection, but I'm wondering on how can I make it work with generic method calls?I can emit a method using LCG and get a delegate of this type:delegate object MethodCall(object instance, object[] parameters);that emulates this:MethodInfo method;object instance;object[] parameters;method.Invoke(instance, parameters);but only resolving the method once.How can I emit a method like this:delegate object MethodCall(object instance, object[] parameters, Type[] type_parameters);that emulates this:MethodInfo method; object instance;object[] parameters; Type[] type_parameters; method.MakeGenericMethod(type_parameters).Invoke(instance, parameters); ??Best regards,Gustavo Guera

    DB:3.16:Lcg And Generics dm

    Reflection.Emit does not support this.

  • RELEVANCY SCORE 3.16

    DB:3.16:Servicegen Error For Using Absolute Path ks



    Hi,
    servicegen gives an error whenever I pass the destEar with complete DOS path.
    either destEar="C:/webser~1/basic/update" or destEar="C:/webservices/basic/update"
    gives following error.
    any pointers?
    -st
    -------------
    [servicegen] java.io.IOException: The filename, directory name, or volume label
    syntax is incorrect
    [servicegen] at java.io.WinNTFileSystem.canonicalize(Native Method)
    [servicegen] at java.io.File.getCanonicalPath(File.java:513)
    [servicegen] at weblogic.webservice.util.WebServiceJarFile.save(WebServiceJar
    File.java:86)
    [servicegen] at weblogic.webservice.util.WebServiceWarFile.save(WebServiceWar
    File.java:152)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:323)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:177)
    [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)

    DB:3.16:Servicegen Error For Using Absolute Path ks

    Hello,

    This just works for me, for example: destEar="c:\tmp\dom.ear" so I would
    encourage you to work with our support team (http://support.bea.com or
    support@bea.com) to resolve this issue with your environment, platform
    or software version.

    Thanks,
    Bruce

    suresh wrote:

    Hi Bruce,
    I tried that and it didn't work. if I put absolute path no matter what I get
    this error.
    -st

    Bruce Stephens hbs@nospam.bea.com wrote:
    Hello,

    Try just turning the / into \

    If it still fails, post your ant file and tell us what your platform
    and
    WLS version.

    Thanks,
    Bruce

    suresh tipirneni wrote:
    Hi,
    servicegen gives an error whenever I pass the destEar with completeDOS path.
    either destEar="C:/webser~1/basic/update" or destEar="C:/webservices/basic/update"
    gives following error.
    any pointers?
    -st
    -------------
    [servicegen] java.io.IOException: The filename, directory name, orvolume label
    syntax is incorrect
    [servicegen] at java.io.WinNTFileSystem.canonicalize(Native Method)
    [servicegen] at java.io.File.getCanonicalPath(File.java:513)
    [servicegen] at weblogic.webservice.util.WebServiceJarFile.save(WebServiceJar
    File.java:86)
    [servicegen] at weblogic.webservice.util.WebServiceWarFile.save(WebServiceWar
    File.java:152)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:323)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:177)
    [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)

  • RELEVANCY SCORE 3.11

    DB:3.11:Need Help Deploying A Web Service zk



    I'm trying to set up a web service so that a method inside of a session bean can
    be accessed via SOAP. I have a single ejb containing lots of session beans and
    message beans and whatnot. I've finally got the servicegen task going, and now
    I get errors about not having setter methods for certain things. Should I use
    some mechanism other than the servicegen task? I only want to expose a single
    method on a single bean.

    DB:3.11:Need Help Deploying A Web Service zk

    I think the problem is because your EJB contains some
    return type or parameter types that are not proper java
    beans (ie, with getXXX and setXXX) methods.

    --

    regards,
    -manoj

    "Fred Fluharty" fred.fluharty@ps.net wrote in message
    news:3d74e72c$1@newsgroups.bea.com...

    I'm trying to set up a web service so that a method inside of a sessionbean can
    be accessed via SOAP. I have a single ejb containing lots of sessionbeans and
    message beans and whatnot. I've finally got the servicegen task going,and now
    I get errors about not having setter methods for certain things. Should Iuse
    some mechanism other than the servicegen task? I only want to expose asingle
    method on a single bean.

  • RELEVANCY SCORE 3.07

    DB:3.07:Building Bpel Process In Document Style m9



    Hello everone,I'm using hello tutorial example to build and deploy a Bpel process in document style.I'm using generate-service target ("servicegen" task) to generate binding and service wsdl.I'm not able to set attributes in the servicegen task of bpel-build.xml file and to set attributes in the call-wscompile of file ws-build.xml.Can anyone help me?Thanks in advance

    DB:3.07:Building Bpel Process In Document Style m9


    "fiorepaolo" wrote:Hello everone,I'm using hello tutorial example to build and deploy a Bpel process in document style.I'm using generate-service target ("servicegen" task) to generate binding and service wsdl.I'm not able to set attributes in the servicegen task of bpel-build.xml file and to set attributes in the call-wscompile of file ws-build.xml to build BPEL process in document style.Can anyone help me?Thanks in advance

  • RELEVANCY SCORE 3.07

    DB:3.07:Missing Classes From Servicegen Client Jar c8



    If you generate the WSDL, stubs, etc from an EJB jar, not all the required classes
    are copied to the service_client.jar.

    If your EJB method takes a class (say HomeAddressDTO) and that class inherits from
    a base-class, AddressDTO, then the AddressDTO is not included in the client jar.

    Regards,
    Nick

    DB:3.07:Missing Classes From Servicegen Client Jar c8

    if you want to use the same classes on both client and server side
    pls set useservertypes=true in the client element of servicegen.

    It seems wls 7.0ga is not adding base classes for value types to
    the client.jar file. I have filed a CR on this bug. Hope this will be
    fixed for sp1.

    Anyway, it is ok to add more classes to the client.jar manually.
    You may have to do it when reflection cannot find all the required
    classes or if you want to add your client app specific classes.

    regards,
    -manoj

    "Michael Jouravlev" michael_jouravlev@yahoo.com wrote in message
    news:3d0f539a@newsgroups2.bea.com...
    I have the same problem. Do you think it is a bug? AFAIK, the processlooks
    like this: value objects -- WSDL -- client-side stubs for value objects,
    that actually do not have much in common with original ones. As I
    understand, it is possible either to copy manually created value objectsto
    client JAR file (no portability to non-Java clients), or to generate these
    stubs from WSDL. There is a parameter for clientgen task which changes the
    default behaviour. In my case all the parent classes in my value object
    hierarchy are not "mirrored" in client JAR. I think that this is correct,
    because client stubs do not have any hierarchy in them, they are just flat
    structures.

    I added needed classes to client JAR manually, but I think that this is my
    personal design error that I need these classes.

    What do you think?

    Michael.

    "Nick Minutello" NickMinutello@REMOVE-THISccomservices.demon.co.uk wrote
    in message news:3d094c10$1@newsgroups2.bea.com...
    If you generate the WSDL, stubs, etc from an EJB jar, not all therequired
    classes
    are copied to the service_client.jar.

    If your EJB method takes a class (say HomeAddressDTO) and that classinherits from
    a base-class, AddressDTO, then the AddressDTO is not included in theclient jar.
    Regards,
    Nick

  • RELEVANCY SCORE 3.05

    DB:3.05:Bindingexception: No Set Method For Valid In Class Boolean ad



    All,

    Has anyone seen this before?

    [servicegen] weblogic.xml.schema.binding.BindingException: no set method for valid
    in class boolean
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)

    Any insight welcome
    John

    DB:3.05:Bindingexception: No Set Method For Valid In Class Boolean ad


    john,

    i saw this when my exposed method required a Properties object as an input paramater.

    eg

    myMethod(Properties props)

    - ed

    Edward Han
    edwardhhan@yahoo.com

    "John Stehle" jstehle@bea.com wrote:

    All,

    Has anyone seen this before?

    [servicegen] weblogic.xml.schema.binding.BindingException: no set method
    for valid
    in class boolean
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)

    Any insight welcome
    John

  • RELEVANCY SCORE 3.04

    DB:3.04:Servicegen And Web.Xml 8f


    Hi

    I want to secure my web service url by using declarative security in web.xml. As servicegen automatically generates the war file (and hence the web.xml file), does anyone know how to update the war file with my web.xml/weblogic.xml etc.

    Cheers

    MAtt

    DB:3.04:Servicegen And Web.Xml 8f

    Hi Matt,

    You can unzip the ear and then unzip the war produced by servicegen. Then replace the deployement descriptors with your own files and re-zip the whole thing.

    Emmanuel.

  • RELEVANCY SCORE 3.03

    DB:3.03:Creating Synchronous Document Style Web Services? da



    We are trying to build a web service from an existing stateless session ejb.

    It appears that using servicegen results in the creation of WSDL with style=rpc
    web service with use=encoded. How would you pass arguments to servicegen to create
    style=document web service with use=literal?

    Is it possible to create a web service with style=rpc and use=literal?

    DB:3.03:Creating Synchronous Document Style Web Services? da


    Are there any future plans for supporting rpc/literal?

    "manoj cheenath" manojc@bea.com wrote:
    "Doug" doug_hagan3@non.hp.com wrote in message
    news:3d8158db$1@newsgroups.bea.com...
    We are trying to build a web service from an existing stateless sessionejb.
    It appears that using servicegen results in the creation of WSDL withstyle=rpc
    web service with use=encoded. How would you pass arguments to servicegento create
    style=document web service with use=literal?servicegen in sp1 suppots doc/literal

    Is it possible to create a web service with style=rpc and use=literal?
    rpc/literal is not supported

  • RELEVANCY SCORE 2.99

    DB:2.99:Using Updated Tools With Wls 8.1 Sp3 s7


    I'm attempting to take advantage of some ant 1.6 features. However, it appears that the ant XML parsers are getting in the way of the embedded WLS xml parsers:

    [servicegen] java.lang.ClassCastException
    [servicegen] at weblogic.apache.xerces.parsers.SAXParser.init(SAXParser.java:140)
    [servicegen] at weblogic.apache.xerces.parsers.SAXParser.init(SAXParser.java:125)
    [servicegen] at weblogic.apache.xerces.jaxp.SAXParserImpl.init(SAXParserImpl.java:102)
    [servicegen] at weblogic.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:112)
    [servicegen] at weblogic.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:140)
    [servicegen] at weblogic.xml.jaxp.WebLogicSAXParserFactory.setFeature(WebLogicSAXParserFactory.java:56)
    ...
    [servicegen] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot invoke boolean constructor of processor ] - with nested exception:
    [servicegen] [java.lang.reflect.InvocationTargetException - with target exception:
    [servicegen] [weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
    [servicegen] [java.lang.ClassCastException]]]

    Based on some research this appears to be an issue with WLS getting a parser that it cannot handle. Given that the version of ant included with 8.1sp3 is pretty old, is there a way to use newer versions? I'm giving up for now on macrodef's but would, as a general statement, like to keep up with new tools as they become available. I'd like to not be dependent on turning a battleship to incorporate 15 months of development work (the time between now and the release of ant 1.5.3 as included with 8.1sp3).

    Thanks for any information.

    DB:2.99:Using Updated Tools With Wls 8.1 Sp3 s7

    Had some problems like this before. Even thought I cannot offer specific advice as to how to fix this. If you do this, it could help.

    Encountered a problem in eclipse while using WLS servicegen ANT task and, of course, the optional FTP task. I am using Eclipse Version: 3.0.0 Build id: 200406192000. With this comes ANT 1.6.1 standard. In order to get servicegen ANT task working I had to include the weblogic.jar in the ANT Classpath. Ofcourse this had another side effect, the FTP task that used to work earlier quit working. I still havent figured out the root cause of the problem but inorder to get around I did the following. To fix this, I added a new Task called FTP, I picked the c:\....\lib\ant-commons-net.jar in the location. The name I retained it as ftp. In the left page, I nagivated down to the lead of the tree [root]/-org-apache-...-net and in the right pane, I chose FTP. After this step when I ran I ran into an odd error Buildfile: C:\Work\JSSE-EJB.xml BUILD FAILED: java.lang.NoClassDefFoundError: com/oroinc/net/ftp/FTP Total time: 78 milliseconds I was under the impression that this is a legacy component and that the new version of the net component has org.apache....FTP structure. I am really not sure where, but to fix the issue, I had to get the NetComponents.jar from http://www.savarese.org/downloads/NetComponents/ and included it in the classpath. After this step, presto, servicegen task works fine with FTP task. However, I cannot imagine doing this for all the optional tasks. But for now there is a winding work around.

  • RELEVANCY SCORE 2.98

    DB:2.98:'Split' Method Not Working kd


    I've tried compiling a program that uses the split method of a string, and it says 'cannot resolve symbol.' I checked the documentation for the java API on this site, and it says there are split methods, and it doesn't say anything about them not working any more. whats going on? i am calling it on a string and i have the correct parameters.

  • RELEVANCY SCORE 2.95

    DB:2.95:Servicegen Error: The Filename, Directory Name, Or Volume Label Syntax Is Incorrect 1s


    Hi,

    I am also having issues with servicegen. Here are the relevant portions of my build.xml file from ant:

    path id="build.classpath"
    fileset dir="lib" include name="**/*.jar"/ /fileset
    fileset dir="commonlib" include name="**/*.jar"/ /fileset
    /path

    property name="build.dir" location="output"/
    property name="build.classes.dir" location="${build.dir}/classes"/
    property name="build.weblogic.dir" location="${build.dir}/weblogic"/

    target name="weblogicWSGen" depends="war"
    servicegen
    classpath="${build.classes.dir}:${env.WL_HOME}/server/lib/weblogic.jar:${env.WL_HOME}/server/lib/webservices.jar"
    classpathref="build.classpath"
    destEar="${build.weblogic.dir}/ear"
    warName="MPIWebService.war"
    contextURI="MPIWebService"
    service
    javaClassComponents="MPIWebService"
    targetNamespace="http://mpiap001/MPIWebService"
    serviceName="MPIWebService"
    serviceURI="/MPIWebService"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen
    /target

    In short, "weblogicWSGen" depends on "war" -- and the war target completes successfully. I then want to build a webservice
    for a class called MPIWebService -- thats right, no package (I know, I know...) After about 3 seconds of work tho, I get this exception:

    weblogicWSGen:
    [servicegen] Generating service "MPIWebService" ...
    [servicegen] java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    [servicegen] at java.io.WinNTFileSystem.canonicalize(Native Method)
    [servicegen] at java.io.File.getCanonicalPath(File.java:513)
    [servicegen] at weblogic.webservice.util.WebServiceJarFile.save(WebServiceJarFile.java:86)
    [servicegen] at weblogic.webservice.util.WebServiceWarFile.save(WebServiceWarFile.java:152)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:323)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    I have checked and rechecked my CLASSPATH, making sure there are no paths with spaces in them, and I cannot figure out what is wrong. The only odd thing I do at all is run ant from a cygwin bash shell.

    Anyone have any ideas?

    Thanks in advance.

    DB:2.95:Servicegen Error: The Filename, Directory Name, Or Volume Label Syntax Is Incorrect 1s


    Actually, it turned out that it was my misunderstanding as to where the resulting
    war file path ("warName=") was relative to. To be clear it goes INSIDE the ear
    (or earDir). I didnt get that. :)

    What I included in my original message DOES work, but somehow what I was actually
    testing was different. Thanks for the input.

    Bruce Stephens hbs@nospam.bea.com wrote:
    Hi Andrew,

    Just a quick quess, you might try using another name for the destEar,
    instead of the suffix "ear", try first just changing to a different
    name, like below, and second try creating the ear, changing the / to
    a
    dot (.ear).

    destEar="${build.weblogic.dir}/earDir"

    Probably not something that easy, but worth a try...
    Bruce

    Andrew Lawrence wrote:
    Hi,

    I am also having issues with servicegen. Here are the relevant portionsof my build.xml file from ant:
    path id="build.classpath"
    fileset dir="lib" include name="**/*.jar"/ /fileset
    fileset dir="commonlib" include name="**/*.jar"/ /fileset
    /path

    property name="build.dir" location="output"/
    property name="build.classes.dir" location="${build.dir}/classes"/
    property name="build.weblogic.dir" location="${build.dir}/weblogic"/

    target name="weblogicWSGen" depends="war"
    servicegen
    classpath="${build.classes.dir}:${env.WL_HOME}/server/lib/weblogic.jar:${env.WL_HOME}/server/lib/webservices.jar"
    classpathref="build.classpath"
    destEar="${build.weblogic.dir}/ear"
    warName="MPIWebService.war"
    contextURI="MPIWebService"
    service
    javaClassComponents="MPIWebService"
    targetNamespace="http://mpiap001/MPIWebService"
    serviceName="MPIWebService"
    serviceURI="/MPIWebService"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen
    /target

    In short, "weblogicWSGen" depends on "war" -- and the war target completessuccessfully. I then want to build a webservice
    for a class called MPIWebService -- thats right, no package (I know,I know...) After about 3 seconds of work tho, I get this exception:
    weblogicWSGen:
    [servicegen] Generating service "MPIWebService" ...
    [servicegen] java.io.IOException: The filename, directory name, orvolume label syntax is incorrect
    [servicegen] at java.io.WinNTFileSystem.canonicalize(Native Method)
    [servicegen] at java.io.File.getCanonicalPath(File.java:513)
    [servicegen] at weblogic.webservice.util.WebServiceJarFile.save(WebServiceJarFile.java:86)
    [servicegen] at weblogic.webservice.util.WebServiceWarFile.save(WebServiceWarFile.java:152)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:323)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    I have checked and rechecked my CLASSPATH, making sure there are nopaths with spaces in them, and I cannot figure out what is wrong. The
    only odd thing I do at all is run ant from a cygwin bash shell.
    Anyone have any ideas?

    Thanks in advance.

  • RELEVANCY SCORE 2.94

    DB:2.94:Deployment Problem With Web Service 17


    I need a help for exposing a stateless session bean into a web service.

    Here I created a stateless session bean and created a JAR file for that bean.

    After that I want to convert it into a web service by using servicegen task.
    I run the build.xml file to perform servicegen task.
    Here I am facing one exception like:
    BUILD FAILED: C:\eclipse\workspace\webService\build.xml:22: weblogic.xml.schema.binding.BindingException: Invalid class received: interface com.b2.ebp.presentation.factory.EbpConfigPresentationWrapper loaded from file:/C:/eclipse/workspace/ebpWeb/ebpWebJar.jar!/com/b2/ebp/presentation/factory/EbpConfigPresentationWrapper.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor

    This class is there in web project and it is an abstract class. For that web project I created a Jar file and included this JAR file in classpath element of servicegen task in build.xml because I need this web project's classes in bean class. This JAR file contais's all(class,abstract,interface) class files.

    My doubt is we cann't include any abstract class or interface in the bean method which is exposed as a web service? If included please tell me how to include.

    My build.xml file contenta are as follows.....

    project name="WebServiceStatelessSession" default="ear" basedir="."

    property name="source" value="src"/

    property name="build" value="build"/

    property name="ejb_jar_file" value="../eagleEJB/eagleEJB.jar"/

    property name="war_file" value="basic_statelessSession.war"/

    property name="ear_file" value="ws_basic_statelessSession.ear"/

    property name="client_jar_file" value="eagleEJB_client.jar"/

    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="ear"

    servicegen

    destear="${ear_file}" warname="${war_file}"

    service

    ejbjar="${ejb_jar_file}"

    targetnamespace="${namespace}"

    servicename="eagleEJB"

    serviceuri="/eagleEJB"

    generatetypes="True"

    expandmethods="True"

    client

    saveWSDL="True"

    packageName="examples.webservices.basic.statelessSession"

    clientJarName="${client_jar_file}"

    /

    /service

    classpath

    pathelement path="${build}"/

    pathelement path="c:/bea/weblogic81/server/lib/webservices.jar"/

    pathelement path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    pathelement path="c:/eclipse/workspace/eagleWeb/WebRoot/WEB-INF/classes"/

    pathelement path="c:/j2sdk1.4.2_08/lib"/

    pathelement path="c:/j2sdk1.4.2_08/lib/rt.jar"/

    /classpath

    /servicegen

    /target

    taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask"

    classpath path="c:/bea/weblogic81/server/lib/webservices.jar"/

    classpath path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    /taskdef

    target name="client"

    property name="wsdlUrl" value="http://localhost:7001/basic_statelessSession/HelloWorldEJB?WSDL"/

    clientgen wsdl="${wsdlUrl}"

    packagename="examples.webservices.basic.statelessSession"

    clientjar="${client_jar_file}"

    classpath

    pathelement path="c:/bea/weblogic81/server/lib/webservices.jar"/

    pathelement path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    /classpath

    /clientgen

    /target

    /project

    and another error I am facing is
    Buildfile: C:\eclipse\workspace\eagle\build.xml
    ear:
    [servicegen] Generating service "eagleEJB" ...
    [servicegen] weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [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.executeTarget(Project.java:1214)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    [servicegen] Caused by: weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToException(JavaInspector.java:323)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillExceptionDescriptor(JavaInspector.java:251)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:171)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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] ... 11 more
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToException(JavaInspector.java:323)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillExceptionDescriptor(JavaInspector.java:251)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:171)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [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.executeTarget(Project.java:1214)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    BUILD FAILED: C:\eclipse\workspace\eagle\build.xml:22: weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    Total time: 1 second

    DB:2.94:Deployment Problem With Web Service 17

    I need a help for exposing a stateless session bean into a web service.

    Here I created a stateless session bean and created a JAR file for that bean.

    After that I want to convert it into a web service by using servicegen task.
    I run the build.xml file to perform servicegen task.
    Here I am facing one exception like:
    BUILD FAILED: C:\eclipse\workspace\webService\build.xml:22: weblogic.xml.schema.binding.BindingException: Invalid class received: interface com.b2.ebp.presentation.factory.EbpConfigPresentationWrapper loaded from file:/C:/eclipse/workspace/ebpWeb/ebpWebJar.jar!/com/b2/ebp/presentation/factory/EbpConfigPresentationWrapper.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor

    This class is there in web project and it is an abstract class. For that web project I created a Jar file and included this JAR file in classpath element of servicegen task in build.xml because I need this web project's classes in bean class. This JAR file contais's all(class,abstract,interface) class files.

    My doubt is we cann't include any abstract class or interface in the bean method which is exposed as a web service? If included please tell me how to include.

    My build.xml file contenta are as follows.....

    project name="WebServiceStatelessSession" default="ear" basedir="."

    property name="source" value="src"/

    property name="build" value="build"/

    property name="ejb_jar_file" value="../eagleEJB/eagleEJB.jar"/

    property name="war_file" value="basic_statelessSession.war"/

    property name="ear_file" value="ws_basic_statelessSession.ear"/

    property name="client_jar_file" value="eagleEJB_client.jar"/

    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="ear"

    servicegen

    destear="${ear_file}" warname="${war_file}"

    service

    ejbjar="${ejb_jar_file}"

    targetnamespace="${namespace}"

    servicename="eagleEJB"

    serviceuri="/eagleEJB"

    generatetypes="True"

    expandmethods="True"

    client

    saveWSDL="True"

    packageName="examples.webservices.basic.statelessSession"

    clientJarName="${client_jar_file}"

    /

    /service

    classpath

    pathelement path="${build}"/

    pathelement path="c:/bea/weblogic81/server/lib/webservices.jar"/

    pathelement path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    pathelement path="c:/eclipse/workspace/eagleWeb/WebRoot/WEB-INF/classes"/

    pathelement path="c:/j2sdk1.4.2_08/lib"/

    pathelement path="c:/j2sdk1.4.2_08/lib/rt.jar"/

    /classpath

    /servicegen

    /target

    taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask"

    classpath path="c:/bea/weblogic81/server/lib/webservices.jar"/

    classpath path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    /taskdef

    target name="client"

    property name="wsdlUrl" value="http://localhost:7001/basic_statelessSession/HelloWorldEJB?WSDL"/

    clientgen wsdl="${wsdlUrl}"

    packagename="examples.webservices.basic.statelessSession"

    clientjar="${client_jar_file}"

    classpath

    pathelement path="c:/bea/weblogic81/server/lib/webservices.jar"/

    pathelement path="c:/bea/weblogic81/server/lib/weblogic.jar"/

    /classpath

    /clientgen

    /target

    /project

    and another error I am facing is
    Buildfile: C:\eclipse\workspace\eagle\build.xml
    ear:
    [servicegen] Generating service "eagleEJB" ...
    [servicegen] weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [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.executeTarget(Project.java:1214)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    [servicegen] Caused by: weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToException(JavaInspector.java:323)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillExceptionDescriptor(JavaInspector.java:251)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:171)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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] ... 11 more
    [servicegen] --- Nested Exception ---
    [servicegen] weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.addPropertiesToException(JavaInspector.java:323)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillExceptionDescriptor(JavaInspector.java:251)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:171)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [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.executeTarget(Project.java:1214)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    BUILD FAILED: C:\eclipse\workspace\eagle\build.xml:22: weblogic.xml.schema.binding.BindingException: unable to determine valid constructor for exception class java.lang.reflect.InvocationTargetException
    Total time: 1 second

  • RELEVANCY SCORE 2.94

    DB:2.94:Servicegen Issues z8



    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)

    DB:2.94:Servicegen Issues z8

    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)

  • RELEVANCY SCORE 2.93

    DB:2.93:Servicegen Using Generatetypes And Typemappingfile Options dj


    I try to use the servicegen task, like as follows, ( I use a Weblogic702)

    target name="webservices.servicegen" description="assembles a Web Service automatically"
    servicegen destEar="${webservices_stage}" warName="${bc.name}WebService.war" contextURI="${bc.name}"
    classpath refid="srvgen.class.path"/
    service ejbJar="${build}\${bc.name}.jar" targetNamespace="http://www.bea.com/test/${bc.name}" serviceName="${bc.name}" serviceURI="/${bc.name}" generateTypes="True, " expandMethods="True" typeMappingFile="${typeMappingFile}"
    /service
    /servicegen
    /target

    I would like the servicegen task generates the serializer classes for all the non-built-in data types that are not declared in the specified type mapping file.
    But the problem is that "generateType" make all or nothing, there are no the possibility to exclude some non-built-in data types that were eventually described by the typemapping file.

    Apparently using the Weblogic8.1, the problem is fixed, but I'm interested to find a solution for WLS7.0

    DB:2.93:Servicegen Using Generatetypes And Typemappingfile Options dj

    Hi,

    Since this is fixed in 8.1, you can contact support to get a patch for 7.x.

    Thanks,

    -Neal

    "mikit" mihaela_tirnacop@yahoo.com wrote in message
    news:3f000153$1@newsgroups.bea.com...
    I try to use the servicegen task, like as follows, ( I use a Weblogic702)

    target name="webservices.servicegen" description="assembles a Web Serviceautomatically"
    servicegen destEar="${webservices_stage}"warName="${bc.name}WebService.war" contextURI="${bc.name}"
    classpath refid="srvgen.class.path"/
    service ejbJar="${build}\${bc.name}.jar"targetNamespace="http://www.bea.com/test/${bc.name}"
    serviceName="${bc.name}" serviceURI="/${bc.name}" generateTypes="True, "
    expandMethods="True" typeMappingFile="${typeMappingFile}"
    /service
    /servicegen
    /target

    I would like the servicegen task generates the serializer classes for allthe non-built-in data types that are not declared in the specified type
    mapping file.
    But the problem is that "generateType" make all or nothing, there are nothe possibility to exclude some non-built-in data types that were eventually
    described by the typemapping file.

    Apparently using the Weblogic8.1, the problem is fixed, but I'm interestedto find a solution for WLS7.0

  • RELEVANCY SCORE 2.92

    DB:2.92:War Deploys But Ear Doesn't px


    On WLS 8.1 I extended the simple HelloWorld.java web services example to invoke a method in a class in my
    own jar file.

    I modified the build.xml to include the jar file in the classpath for the compile and servicegen tasks.

    I then added a call to wspackage to add the jar file to the EAR created by servicegen under WEB-INF/lib as below:

    wspackage
    warName="${war_file}"
    output="${build}/{ear_file}.ear"
    overwrite="false"
    utilJars="/mypath/myapp.jar"
    /

    When I try to deploy the new EAR file I get a class not found on the class in myapp.jar. If I expand the generated
    WAR I see that myapp.jar has been correctly packaged under
    WEB-INF/lib and I can actually deploy the WAR file itself
    and make calls from the client just fine.

    Am I missing something here ? Also, is there a way of packaging thing correctly from servicegen itself without having to make the additional call to wspackage ? Thanks for any help.

    DB:2.92:War Deploys But Ear Doesn't px

    "StartupServlet" failed to preload on startup in Web application.

    This problem only if we deplyed thr' ear.not in war.

    Regards,
    Selva

  • RELEVANCY SCORE 2.92

    DB:2.92:Bindingexception: Invalid Class Received Error In Servicegen! 7j


    Hello,

    I am trying to run a servicegen to create a web service. I get the following exception every time I run servicegen or autotype. Can somebody explain to me why this happens.

    [servicegen] using classpath C:\bea\jdk142_05\lib\tools.jar;C:\bea\weblogic81\server\lib\ant\optional.jar;
    C:\bea\weblogic81\server\lib\ant\jakarta-oro-2.0.7.jar;C:\bea\weblogic81\server\lib\ant\ant.jar;
    C:\bea\weblogic81\server\lib\ant\ant-contrib-0.5.ar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;
    C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;
    C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\bea\jdk142_05\jre\lib\rt.jar;
    C:\bea\WEBLOG~1\server\lib\webservices.jar;C:\ant\lib\ant.jar;
    C:\CPMT\workspace\build\lib\CITContextService.jar;C:\CPMT\workspace\build\lib\entfilter.jar;
    C:\CPMT\workspace\cpaservice\ft;
    C:\Documents and Settings\Local Settings\Temp\web-services.war-1367687536\WEB-INF\classes
    [servicegen] TypeMapping will use compiler javac
    [servicegen] Running autotyper for javaclass class com.jpmc.cpmt.cpa.service.PAServiceBean
    [servicegen] weblogic.xml.schema.binding.BindingException: Invalid class received: interface javax.ejb.SessionContext loaded from file:/C:/bea/weblogic81/server/lib/weblogic.jar!/javax/ejb/SessionContext.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:145)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.java:81)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    TIA.

    RD.

    DB:2.92:Bindingexception: Invalid Class Received Error In Servicegen! 7j

    Looks like its looking for a class present in webserviceclient.jar. Added it to the class path and it worked fine.

    Example :
    taskdef name="servicegen" classpath="${weblogic.home}/server/lib/webservices.jar;${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/weblogic.jar" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"/
    taskdef name="clientgen" classpath="${weblogic.home}/server/lib/webservices.jar; ${weblogic.home}/server/lib/webserviceclient.jar;${weblogic.home}/server/lib/weblogic.jar" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask"/

  • RELEVANCY SCORE 2.91

    DB:2.91:Ole2: How Do I Call A Method With Key Parameters ? 3k



    Dear fellow developers,

    my ABAP keyword documentation tells me that I can use

    the EXPORTING parameter of CALL METHOD OF only for

    enumerated parameters using #1 = value1 #2 = value2

    and so on.

    I'm trying to call up the "Execute" - method of the

    MS WORD-class "Find", which uses a lot of optional

    named parameters. Does anybody know how I can call

    a method like that.

    thanks in advance for your help

    Andreas

    DB:2.91:Ole2: How Do I Call A Method With Key Parameters ? 3k


    Dear Vara,

    can you make it work this way? Unfortunetaly I don't.

    The parameters don't have fixed positions in the

    parameter list and need to be called with the parameter

    names, in VBA you have to call them like

    WORD.FIND.EXECUTE FindText:="to be replaced", ReplaceWith:="hello", Replace:=wdReplaceAll.

    As I understand you could as well change the order of

    the parameters called like

    WORD.FIND.EXECUTE ReplaceWith:="hello", Replace:=wdReplaceAll, FindText:="to be replaced",

    as long as you provide the parameter values along with

    their names to the function.

    I think that's why using the #1, #2 - notation doesn't

    work. I thought there might possibly be some kind of

    trick like putting the entire parameter list into the first numbered parameter or something like that.

    Thanks a lot

    Andreas

  • RELEVANCY SCORE 2.89

    DB:2.89:Servicegen And Param Names 1j


    currently weblogic servicegen creates the web-services.xml file using param
    names like string, string0, string1 etc...

    is there any way to have servicegen use the input parameter names of the
    exposed method as the param names?

    thanks

    - ed
    --
    :::::::::::::::::::::::::::::::::::::::::

    Edward Han
    edwardhhan@yahoo.com

    DB:2.89:Servicegen And Param Names 1j

    i can't use this. in the e-docs it says:

    Note: You cannot use this Ant task to generate the web-services.xml file for
    an EJB-implemented Web service.

    any other ideas?

    thanks,

    - ed
    "manoj cheenath" manojc@bea.com wrote in message
    news:3d88a152@newsgroups.bea.com...
    Hi,

    Servicegen works on classfiles and it is not possible to get
    the name of the method parameters from a classfile.

    There is another ant task in SP1 (source2wsdd) which can
    generate the web service DD file from the source code and
    it can retain the parameters names.

    Pls checkout the example attached.

    --

    regards,
    -manoj

    "Edward Han" edwardhhan@yahoo.com wrote in message
    news:3d8896ef@newsgroups.bea.com...
    currently weblogic servicegen creates the web-services.xml file usingparam
    names like string, string0, string1 etc...

    is there any way to have servicegen use the input parameter names of the
    exposed method as the param names?

    thanks

    - ed
    --
    :::::::::::::::::::::::::::::::::::::::::

    Edward Han
    edwardhhan@yahoo.com

  • RELEVANCY SCORE 2.89

    DB:2.89:Manual Generation Of Custom Data Type Serializaton Files Etc. sa


    Hi there,

    Pretty simple question I think...I'm trying to find an example where the
    servicegen task does not do the trick for generation of the supporting files
    (serialization classes, etc) for non built-in data type usage. I've been
    trying plenty of different variations with no luck...servicegen always seems
    to generate all the required serialization classes and XML schemas
    correctly.

    Does anyone have a good, yet simple example of when manual generation of all
    these files would be required?

    Mich

    DB:2.89:Manual Generation Of Custom Data Type Serializaton Files Etc. sa

    Try using a type without a default constructor, e.g. java.sql.Date.
    This should generate an exception. You would then have to write your
    own codec to handle this type.

    --Scott

    In article 3d53e160@newsgroups.bea.com,
    Michel Crichton michcric@bea.com wrote:
    Hi there,

    Pretty simple question I think...I'm trying to find an example where the
    servicegen task does not do the trick for generation of the supporting files
    (serialization classes, etc) for non built-in data type usage. I've been
    trying plenty of different variations with no luck...servicegen always seems
    to generate all the required serialization classes and XML schemas
    correctly.

    Does anyone have a good, yet simple example of when manual generation of all
    these files would be required?

    Mich

  • RELEVANCY SCORE 2.87

    DB:2.87:Type Generation Problem 88


    I have a very simple one-to-many relationship setup between two DTO classes
    OrderDTO and OrderLineDTO. The OrderDTO object contains a field of type
    List which hold OrderLineDTO objects. My stateless session bean has a
    single method named captureOrder which takes an OrderDTO object type.

    Here's the problem...

    When running servicegen only the Holder and Codec classes for the OrderDTO
    class is being generated...not the OrderLineDTO class.

    Does anyone have any idea how to get servicegen to examine my OrderDTO class
    to properly generate the OrderLineDTO holder and codec?

    Thanks in advance,

    Steve...

    DB:2.87:Type Generation Problem 88

    I have a very simple one-to-many relationship setup between two DTO classes
    OrderDTO and OrderLineDTO. The OrderDTO object contains a field of type
    List which hold OrderLineDTO objects. My stateless session bean has a
    single method named captureOrder which takes an OrderDTO object type.

    Here's the problem...

    When running servicegen only the Holder and Codec classes for the OrderDTO
    class is being generated...not the OrderLineDTO class.

    Does anyone have any idea how to get servicegen to examine my OrderDTO class
    to properly generate the OrderLineDTO holder and codec?

    Thanks in advance,

    Steve...

  • RELEVANCY SCORE 2.86

    DB:2.86:Servicegen And Inner Class cx



    I try to generate web service using servicegen. I got the error message: No defualt
    constructor was found for class ClassName$InnerClassName. I checked the inner
    class it does have a default constructor taking no parameter. Anyone knows why?

    Thanks

    DB:2.86:Servicegen And Inner Class cx


    I try to generate web service using servicegen. I got the error message: No defualt
    constructor was found for class ClassName$InnerClassName. I checked the inner
    class it does have a default constructor taking no parameter. Anyone knows why?

    Thanks

  • RELEVANCY SCORE 2.86

    DB:2.86:[Servicegen] Weblogic.Xml.Schema.Binding.Bindingexception: No Default Const ac


    Hello all,

    I modified the HelloWorld sample in C:\bea\weblogic81\samples\server\examples\src\examples\webservices\basic\statelessSession directory.
    I added this method to HelloWorld.java -
    String sayHello(HashMap map)
    throws RemoteException;
    and added it's implementation to the bean.
    The build file was not modified.

    Now when I build, I get this exception -
    ear:
    [servicegen] Generating service "HelloWorldEJB" ...
    [servicegen] weblogic.xml.schema.binding.BindingException: No default constructor was found for class java.util.AbstractMap loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/AbstractMap.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor - with nested exception:
    [servicegen] [java.lang.NoSuchMethodException:java.util.AbstractMap.init()]
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

    Message was edited by:
    rdolas

  • RELEVANCY SCORE 2.82

    DB:2.82:Ant Task Fails j3



    Hi,

    I am using weblogic 8.1 to deploy a webservice which accepts String[] as input.
    I have created a build file for deploying this service. When I run the ant task
    it gives the following exception. This was working fine with weblogic 7.0. Any
    idea what am I missing ?

    Thanks in advance
    Kumar Raj

    Buildfile: build.xml

    clean:

    compile:
    [mkdir] Created dir: C:\HelloWorld\build
    [javac] Compiling 1 source file to C:\HelloWorld\build

    ear:
    [servicegen] Generating service "HelloWorld" ...
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\holders\ArrayOfStringHolder.java:13: package weblogic.xml.schema
    .binding does not exist
    [servicegen] implements weblogic.xml.schema.binding.Holder
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:13: package weblogic.xml.schema.binding
    does not exist
    [servicegen] public final class ArrayOfStringCodec extends weblogic.xml.schema.binding.TypedSoap
    ArrayCodecBase
    [servicegen]
    ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:18: package weblogic.xml.schema.binding.
    util.runtime does not exist
    [servicegen] private static final weblogic.xml.schema.binding.util.runtime.PropertyInfo
    _compo
    nentProp =
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:26: package weblogic.xml.schema.binding
    does not exist
    [servicegen] private static final weblogic.xml.schema.binding.ClassContext _classContext
    =
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:29: package weblogic.xml.schema.binding
    does not exist
    [servicegen] private static final weblogic.xml.schema.binding.SchemaContext
    _schemaContext =
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:45: package weblogic.xml.schema.binding.
    util.runtime does not exist
    [servicegen] public weblogic.xml.schema.binding.util.runtime.PropertyInfo getPropertyInfo(int
    idx) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:53: package weblogic.xml.schema.binding.
    util.runtime does not exist
    [servicegen] public weblogic.xml.schema.binding.util.runtime.PropertyInfo getPropertyInfo()
    {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:57: package weblogic.xml.schema.binding
    does not exist
    [servicegen] protected weblogic.xml.schema.binding.ClassContext getClassContext(java.lang.Clas
    s component_class, weblogic.xml.schema.binding.SerializationContext context)
    [servicegen]
    ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:57: package weblogic.xml.schema.binding
    does not exist
    [servicegen] protected weblogic.xml.schema.binding.ClassContext getClassContext(java.lang.Clas
    s component_class, weblogic.xml.schema.binding.SerializationContext context)
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:62: package weblogic.xml.schema.binding
    does not exist
    [servicegen] protected weblogic.xml.schema.binding.SchemaContext getSchemaContext(weblogic.xml
    .stream.XMLName component_type, weblogic.xml.schema.binding.DeserializationContext
    context)
    [servicegen]
    ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:62: package weblogic.xml.schema.binding
    does not exist
    [servicegen] protected weblogic.xml.schema.binding.SchemaContext getSchemaContext(weblogic.xml
    .stream.XMLName component_type, weblogic.xml.schema.binding.DeserializationContext
    context)
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:63: package weblogic.xml.schema.binding
    does not exist
    [servicegen] throws weblogic.xml.schema.binding.DeserializationException
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:19: package weblogic.xml.schema.binding.
    util.runtime does not exist
    [servicegen] new weblogic.xml.schema.binding.util.runtime.PropertyInfo(weblogic.xml.stream.E
    lementFactory.createXMLName( "http://www.w3.org/2001/XMLSchema" , "string" ),
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:27: package weblogic.xml.schema.binding
    does not exist
    [servicegen] weblogic.xml.schema.binding.ClassContextFactory.newInstance().createClassConte
    xt(_componentProp.getXmlType());
    [servicegen] ^
    [servicegen] C:\Documents and Settings\temp\Local Settings\Temp\HelloWorld.war1594574082\WEB-INF
    \classes\language_builtins\lang\ArrayOfStringCodec.java:30: package weblogic.xml.schema.binding
    does not exist
    [servicegen] weblogic.xml.schema.binding.SchemaContextFactory.newInstance().createSchemaCon
    text(_componentProp.getJavaType().getName());
    [servicegen] ^
    [servicegen] 15 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(Co
    mponentAutoTyper.java:142)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(JavaAutoTyper.ja
    va:81)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(Serv
    iceGenTask.java:365)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(S
    erviceGenTask.java:309)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGe
    nTask.java:177)
    [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)

    DB:2.82:Ant Task Fails j3

    hi i did all these steps but i couldn' succeed.
    after define servicegen and wsdlgen anttasks in eclipse it worked properly.
    Window--preferences--Ant-Runtime--Task path

  • RELEVANCY SCORE 2.81

    DB:2.81:Binding Exception as



    I am using WebLogic 7.0 to generate webservice from an ofx schema with complex
    types. I ran into the following error when generating the ear file using ant.
    Apparently all type classes are expected to have a default public constructor.
    Such rule does not seem to be required with other tool (such as websphere). Is
    there any where of getting around this problem ? The java classes were generated
    by the software Castor using the schema.

    Thanks.

    ===================================================
    ear:
    [servicegen] Generating service "demo" ...
    [servicegen] Generating XML types and serializers from java classes (examples.demo.Ofx2)
    ..
    [servicegen] weblogic.xml.schema.binding.BindingException: No default constructor
    was found for class examples.demo.type
    s.AccountEnum loaded from C:/bea2/weblogic700/samples/server/src/examples/demo/build/examples/demo/types/AccountEnum.class.
    All classes that will be serialized or deserialized must be non-interface, non-abstract
    classes that provide a public default constructor - with nested exception:

    DB:2.81:Binding Exception as


    I am using WebLogic 7.0 to generate webservice from an ofx schema with complex
    types. I ran into the following error when generating the ear file using ant.
    Apparently all type classes are expected to have a default public constructor.
    Such rule does not seem to be required with other tool (such as websphere). Is
    there any where of getting around this problem ? The java classes were generated
    by the software Castor using the schema.

    Thanks.

    ===================================================
    ear:
    [servicegen] Generating service "demo" ...
    [servicegen] Generating XML types and serializers from java classes (examples.demo.Ofx2)
    ..
    [servicegen] weblogic.xml.schema.binding.BindingException: No default constructor
    was found for class examples.demo.type
    s.AccountEnum loaded from C:/bea2/weblogic700/samples/server/src/examples/demo/build/examples/demo/types/AccountEnum.class.
    All classes that will be serialized or deserialized must be non-interface, non-abstract
    classes that provide a public default constructor - with nested exception:

  • RELEVANCY SCORE 2.81

    DB:2.81:Problems With Wl7 Webservices kz


    Hi, Im trying WL7 webservices-WL_WS and Im having some problems:
    1) Reading wl docs it says that WL_WS used servicegen and autotype Ant tasks
    can generate
    the serializer class to convert the data between its Java and XML
    representations for ArrayLists, so I problably have to write a serializer
    class to convert back from XML to java. Im newbie to WebServices and need
    suggestions on how to do it.
    Ive tryied like it leaves from the servicegen and autotype Ant tasks and
    everything works well but I get an Object array back from the client side.
    Yes I know that I can use some method such Arrays.asList to get the
    Collection back, but I need to know if theres a better way.

    2) A friend wich works in the same company as I do has developed a security
    component tha is implemented as Filter for the web layer and relies on an
    abstract implementation to be reusable, we choose to implement the interface
    as an component that relies on EJB and I was trying to make it accessible
    using web services and realize that servicegen and autotype cant do it with
    types like Interfaces and abstract classes or even, in this case, with a
    class tha implements an interface. Is there a way do build a SOAP service
    with this kind of implementation.

    any help here will be really appreciated.

    Best regards,
    Marcos Maia.

    DB:2.81:Problems With Wl7 Webservices kz

    Hi Marcos,

    Concerning 1) you might want to take a look at some of the binding
    questions that have been answered in the FAQ:
    http://webservice.bea.com/wswa.html

    About 2) you may need to create a set of wrappers. For a quick
    overview, see: http://dev2dev.bea.com/articles/Meyer.jsp

    You may want to ask your question in the webservice newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xovergroup=weblogic.developer.interest.webservicesutag=

    Bruce

    Marcos Maia wrote:

    Hi, Im trying WL7 webservices-WL_WS and Im having some problems:
    1) Reading wl docs it says that WL_WS used servicegen and autotype Ant tasks
    can generate
    the serializer class to convert the data between its Java and XML
    representations for ArrayLists, so I problably have to write a serializer
    class to convert back from XML to java. Im newbie to WebServices and need
    suggestions on how to do it.
    Ive tryied like it leaves from the servicegen and autotype Ant tasks and
    everything works well but I get an Object array back from the client side.
    Yes I know that I can use some method such Arrays.asList to get the
    Collection back, but I need to know if theres a better way.

    2) A friend wich works in the same company as I do has developed a security
    component tha is implemented as Filter for the web layer and relies on an
    abstract implementation to be reusable, we choose to implement the interface
    as an component that relies on EJB and I was trying to make it accessible
    using web services and realize that servicegen and autotype cant do it with
    types like Interfaces and abstract classes or even, in this case, with a
    class tha implements an interface. Is there a way do build a SOAP service
    with this kind of implementation.

    any help here will be really appreciated.

    Best regards,
    Marcos Maia.

  • RELEVANCY SCORE 2.80

    DB:2.80:Generating Ejb Webservice Using Servicegen d8


    Hello All,

    I am trying to run servicegen to build webservices from my EJB jar file (the EJBs work fine called from a web client). I am trying to webservice enable them now.

    Here is what I did. At the cmd prompt ran setDomainEnv.

    Then under the dir where I have my EJB jar file I created a build file for ant to run.

    The build file looks like this:

    project name="buildWebService" default="ear"
    target name="ear"
    servicegen destEar="test.crap" contextURI="WebServices"
    service ejbJar="CDT_EJB.jar" targetNamespace="http://www.wdc.com/webservices/CDT_EJB" serviceName="CDT_EJB" serviceURI="/CDT_EJB" generateTypes="True" expandMethods="True" style="rpc"
    /service
    /servicegen
    /target
    /project

    When I run ant, I get the following: java.lang.SecurityException: Prohibited pack
    age name: java.util
    :

    Note: Some of the EJB methods return Non-Built-In Data Types which are referenced in POJO classes.

    C:\CDT_EJBStagingant
    Buildfile: build.xml

    ear:
    [servicegen] Generating service "CDT_EJB" ...
    [servicegen] WARNING: ignoring bean property "_grid_name" in class objTedi.objTe
    di_file: no set method found.
    [servicegen] WARNING: ignoring bean property "dtdLocation" in class objTedi.objT
    edi_file: no set method found.
    [servicegen] WARNING: ignoring bean property "structureForDisplay" in class objT
    edi.objTedi_srcfile: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Dictiona
    ry: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Hashtabl
    e: no set method found.
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader
    .java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass
    (GenericClassLoader.java:476)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(Gene
    ricClassLoader.java:181)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(Gene
    ricClassLoader.java:223)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadCla
    ss(Compiler.java:641)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMa
    pping(Compiler.java:450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(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(E
    JBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.r
    unAutoTyper(ServiceGenTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    )
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    BUILD FAILED
    file:C:/CDT_EJBStaging/build.xml:4: java.lang.SecurityException: Prohibited pack
    age name: java.util

    Total time: 7 seconds

    C:\CDT_EJBStaging

    DB:2.80:Generating Ejb Webservice Using Servicegen d8

    Hello All,

    I am trying to run servicegen to build webservices from my EJB jar file (the EJBs work fine called from a web client). I am trying to webservice enable them now.

    Here is what I did. At the cmd prompt ran setDomainEnv.

    Then under the dir where I have my EJB jar file I created a build file for ant to run.

    The build file looks like this:

    project name="buildWebService" default="ear"
    target name="ear"
    servicegen destEar="test.crap" contextURI="WebServices"
    service ejbJar="CDT_EJB.jar" targetNamespace="http://www.wdc.com/webservices/CDT_EJB" serviceName="CDT_EJB" serviceURI="/CDT_EJB" generateTypes="True" expandMethods="True" style="rpc"
    /service
    /servicegen
    /target
    /project

    When I run ant, I get the following: java.lang.SecurityException: Prohibited pack
    age name: java.util
    :

    Note: Some of the EJB methods return Non-Built-In Data Types which are referenced in POJO classes.

    C:\CDT_EJBStagingant
    Buildfile: build.xml

    ear:
    [servicegen] Generating service "CDT_EJB" ...
    [servicegen] WARNING: ignoring bean property "_grid_name" in class objTedi.objTe
    di_file: no set method found.
    [servicegen] WARNING: ignoring bean property "dtdLocation" in class objTedi.objT
    edi_file: no set method found.
    [servicegen] WARNING: ignoring bean property "structureForDisplay" in class objT
    edi.objTedi_srcfile: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Dictiona
    ry: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Hashtabl
    e: no set method found.
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader
    .java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass
    (GenericClassLoader.java:476)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(Gene
    ricClassLoader.java:181)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(Gene
    ricClassLoader.java:223)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadCla
    ss(Compiler.java:641)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMa
    pping(Compiler.java:450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(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(E
    JBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.r
    unAutoTyper(ServiceGenTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    )
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    BUILD FAILED
    file:C:/CDT_EJBStaging/build.xml:4: java.lang.SecurityException: Prohibited pack
    age name: java.util

    Total time: 7 seconds

    C:\CDT_EJBStaging

  • RELEVANCY SCORE 2.78

    DB:2.78:How To See Class/Method Documentation In Object Browser f3


    When I browse methods of almost any class with object browser I see Summary:, Parameters:, Return VAlues: sections in the documentation window.
    When I browse my own classes and methods I see nothing.
    The XML documentation is being generated and it is present along with the dll.
    What's missing?
    Thanks

    DB:2.78:How To See Class/Method Documentation In Object Browser f3

    Well, after rebooting, it showed up. (i.e. this morning I see it.)
    A couple testsmake me suspect that if your XML file isn't present the first time Object Browser loads a particular dll it won't ever look again foran XML file. So adding itafter you notice it missing won't help. This is true
    even if you replace the dll with a new version. On the other hand if the XML is being recognized by Object Browser and you replace the XML file with an updated version it recognizes the updates and displays them.
    I'm not sure that an entire reboot is needed to get it to look againfor an XML doc file but if nothing short of that works, a reboot should.

  • RELEVANCY SCORE 2.78

    DB:2.78:Servicegen Ant Task.... 91


    I am trying to run servicegen and keep on getting a NoClassDefFoundError on a class which is contained in a jar file which is referenced in the javaClassComponent (web service class).

    here is my build.xml...this is absolutely driving me nuts!! I even print out my classpath before hand and sure enough, the jar file I need is in the path. Here is the kicker...if I extract the one class file that it's not finding and have just the class file in my dir structure, it works fine....it's as if the classpath tag is completely being ignored!! please help...thanks!

    taskdef name="servicegen" classpathref="class.path"
    classname="weblogic.ant.taskdefs.webservices.servidegen.ServiceGenTask"/

    target name="whatever"

    servicegen desEar="somewhere.ear" warName=somewhere.war"
    contextURI="whatever"

    classpath redif="class.path"/

    service javaClassComponents="myclass"
    targetNamespace="whatever"
    serviceName="whatever"
    serviceURI="whatever"
    expandMethods="True"
    /service
    /servicegen
    /target

    DB:2.78:Servicegen Ant Task.... 91

    It's because of how BEA WebLogic deals with class paths. It gives preference to its configured pathing which is set by the setEnv.cmd rather than any environment variables that you may or may not have set up in the operating system.

    There are ways to influence the search paths of the application server but the thing to keep in mind is that it gives preference to its own paths.

    JT

    Message was edited by:
    jptryon

  • RELEVANCY SCORE 2.77

    DB:2.77:Servicegen Error jc


    Hi,
    I am trying to generate webservice using servicegen my servicegen throws
    error .

    trace goes like this

    [servicegen] Could not process ejb-jar
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:73)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:337)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:309)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [servicegen] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [servicegen] at java.lang.reflect.Method.invoke(Unknown Source)
    [servicegen] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [servicegen] at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [servicegen] at java.lang.Thread.run(Unknown Source)
    [servicegen] Caused by: java.util.zip.ZipException: The system cannot
    find the path specified
    [servicegen] at java.util.zip.ZipFile.open(Native Method)
    [servicegen] at java.util.zip.ZipFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at
    weblogic.utils.jars.JarFileDelegate.init(JarFileDelegate.java:35)
    [servicegen] at
    weblogic.utils.jars.VirtualJarFactory.createVirtualJar(VirtualJarFactory.java:21)
    [servicegen] at
    weblogic.application.ApplicationFileManager.getVirtualJarFile(ApplicationFileManager.java:170)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:68)
    [servicegen] ... 17 more
    [servicegen] --- Nested Exception ---
    [servicegen] java.util.zip.ZipException: The system cannot find the
    path specified
    [servicegen] at java.util.zip.ZipFile.open(Native Method)
    [servicegen] at java.util.zip.ZipFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at
    weblogic.utils.jars.JarFileDelegate.init(JarFileDelegate.java:35)
    [servicegen] at
    weblogic.utils.jars.VirtualJarFactory.createVirtualJar(VirtualJarFactory.java:21)
    [servicegen] at
    weblogic.application.ApplicationFileManager.getVirtualJarFile(ApplicationFileManager.java:170)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:68)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:337)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:309)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [servicegen] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [servicegen] at java.lang.reflect.Method.invoke(Unknown Source)
    [servicegen] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [servicegen] at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [servicegen] at java.lang.Thread.run(Unknown Source)

    DB:2.77:Servicegen Error jc

    Hi:
    I have fixed it, When I do the ant task alone for Service gen it
    get this problem, but when i try the task along with other task it seems
    working fine.. I could't get the logic behind it anyway..
    my ant task .
    [snip]
    target name="lite" depends="purchaseEjb"
    echo"Generate Webservice"/echo
    servicegen
    destEar="us.ear"
    contextURI="WebServices"
    service
    ejbJar="${dir.dist}/webservice-ejb.jar"
    targetNamespace="http://us.com/Purchase/purchaseWS"
    serviceName="PurchaseWebservice"
    serviceURI="/PurchaseWS"
    generateTypes="True"
    expandMethods="True"
    style="rpc"
    /service
    /servicegen
    /target

    [snip]

    regards

    Boney Jose

    Jacob Anderson wrote:

    If you could attach the ant script, that would help us. The problem with trying
    to build anything using the WL ant tasks OUTSIDE of the WL ant distribution is
    the classpath and system path. You have to make sure the classpath is set perfectly
    otherwise you won't get the correct classes for the build to succeed.

    Did you setup your eclipse to invoke the setEnv.cmd batch file (from the WL installation).
    If not, then there is one problem to fix. Here is the classpath that I have
    had some limited success OUTSIDE of the WL ant distribution:

    path id="weblogic.classpath"
    pathelement path="${weblogic.root}/JDK141_05/lib/tools.jar"/
    fileset dir="${weblogic.server.home}/lib"
    include name="weblogic_sp.jar"/
    include name="weblogic.jar"/
    include name="ojdbc14.jar"/
    include name="webservices.jar"/
    /fileset
    fileset dir="${weblogic.home}/common/eval/pointbase/lib"
    include name="pbserver44.jar"/
    include name="pbclient44.jar"/
    include name="pbtools44.jar"/
    /fileset
    pathelement path="${java.class.path}"/
    /path

    bea.home=d:/bea
    weblogic.home=${bea.home}/weblogic81
    weblogic.server.home=${weblogic.home}/server

    Then when you try to run the WL client, you will need to add:

    pathelement path="${weblogic.server.home}/lib/webserviceclient.jar"/

    to your client script. MAKE SURE THAT OCCURS FIRST in the classpath, otherwise
    you might get some WL system class files that you don't want.

    THEN, you also need to define ALL of the WL task defs in your ANT script. Here
    is what I found:

    taskdef
    name="wlserver"
    classname="weblogic.ant.taskdefs.management.WLServer"
    classpathref="weblogic.classpath"/

    taskdef
    name="wlconfig"
    classname="weblogic.ant.taskdefs.management.WLConfig"
    classpathref="weblogic.classpath"/

    taskdef
    name="wldeploy"
    classname="weblogic.ant.taskdefs.management.WLDeploy"
    classpathref="weblogic.classpath"/

    taskdef
    name="clientgen"
    classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask"
    classpathref="weblogic.classpath"/

    taskdef
    name="autotype"
    classname="weblogic.ant.taskdefs.webservices.javaschema.JavaSchema"
    classpathref="weblogic.classpath"/

    taskdef
    name="wspackage"
    classname="weblogic.ant.taskdefs.webservices.wspackage.WSPackage"
    classpathref="weblogic.classpath"/

    taskdef
    name="source2wsdd"
    classname="weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD"
    classpathref="weblogic.classpath"/

    taskdef
    name="wsdlgen"
    classname="weblogic.ant.taskdefs.webservices.wsdlgen.WSDLGen"
    classpathref="weblogic.classpath"/

    taskdef
    name="servicegen"
    classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"
    classpathref="weblogic.classpath"/

    taskdef
    name="wsdl2service"
    classname="weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service"
    classpathref="weblogic.classpath"/

    taskdef
    name="wsgen"
    classname="weblogic.ant.taskdefs.webservices.wsgen.WSGenTask"
    classpathref="weblogic.classpath"/

    taskdef
    name="wlpath"
    classname="weblogic.ant.taskdefs.WLPath"
    classpathref="weblogic.classpath"/

    taskdef
    name="wsdd-merge"
    classname="weblogic.ant.taskdefs.webservices.autotype.DDMerge"
    classpathref="weblogic.classpath"/
    taskdef
    name="compliance"
    classname="weblogic.ant.taskdefs.webservices.compliance.Compliance"
    classpathref="weblogic.classpath"/
    taskdef
    name="jspc"
    classname="weblogic.ant.taskdefs.j2ee.Jspc"
    classpathref="weblogic.classpath"/
    taskdef
    name="ejbc"
    classname="weblogic.ant.taskdefs.j2ee.Ejbc"
    classpathref="weblogic.classpath"/
    taskdef
    name="rmic"
    classname="weblogic.ant.taskdefs.j2ee.Rmic"
    classpathref="weblogic.classpath"/
    taskdef
    name="createidl"
    classname="weblogic.ant.taskdefs.iiop.CppIdlSetup"
    classpathref="weblogic.classpath"/
    taskdef
    name="wldeploy"
    classname="weblogic.ant.taskdefs.management.WLDeploy"
    classpathref="weblogic.classpath"/
    taskdef
    name="wlserver"
    classname="weblogic.ant.taskdefs.management.WLServer"
    classpathref="weblogic.classpath"/
    taskdef
    name="wlconfig"
    classname="weblogic.ant.taskdefs.management.WLConfig"
    classpathref="weblogic.classpath"/
    taskdef
    name="wlcompile"
    classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpathref="weblogic.classpath"/
    taskdef
    name="wlpackage"
    classname="weblogic.ant.taskdefs.build.WLPackageTask"
    classpathref="weblogic.classpath"/
    taskdef
    name="wlappc"
    classname="weblogic.ant.taskdefs.j2ee.Appc"
    classpathref="weblogic.classpath"/
    taskdef
    name="ddcreate"
    classname="weblogic.ant.taskdefs.build.DDCreateTask"
    classpathref="weblogic.classpath"/

    These were taken from the WL8.1 ant.properties file (at the end of that file).
    If you don't declare all of them, then your ANT script won't be able to find
    some of the secondary tasks used during the ANT build.

    This has only gotten me limited success, though. I've been able to build and
    run client code, and have even been able to start/stop a running WL server ...
    but my applications running in a WL server started by an ANT task have not run
    properly yet.

    Try running your ANT script outside of Eclipse first. Also try "ant -verbose"
    to get a debug output of the classes and JARs ANT is loading.

    Hope that helps.

    -- Jake

    Bruce Stephens hbs@nospam.bea.com wrote:

    Hi,

    Does servicegen work OK outside the IDE? A quick look at the stack
    seems to indicate that eclipse is using a different version of ANT than
    the one that comes with WLS.

    I'm not sure the solution; hopefully an eclipse guru can chime in on
    this thread with the magic.

    Regards,
    Bruce

    Boney Jose wrote:

    Hi,
    I am trying to generate webservice using servicegen my servicegen throws
    error .

    trace goes like this

    [servicegen] Could not process ejb-jar
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:73)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:337)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:309)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [servicegen] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [servicegen] at java.lang.reflect.Method.invoke(UnknownSource)

    [servicegen] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [servicegen] at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [servicegen] at java.lang.Thread.run(Unknown Source)
    [servicegen] Caused by: java.util.zip.ZipException: The system cannot
    find the path specified
    [servicegen] at java.util.zip.ZipFile.open(Native Method)
    [servicegen] at java.util.zip.ZipFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at
    weblogic.utils.jars.JarFileDelegate.init(JarFileDelegate.java:35)
    [servicegen] at
    weblogic.utils.jars.VirtualJarFactory.createVirtualJar(VirtualJarFactory.java:21)
    [servicegen] at
    weblogic.application.ApplicationFileManager.getVirtualJarFile(ApplicationFileManager.java:170)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:68)
    [servicegen] ... 17 more
    [servicegen] --- Nested Exception ---
    [servicegen] java.util.zip.ZipException: The system cannot findthe

    path specified
    [servicegen] at java.util.zip.ZipFile.open(Native Method)
    [servicegen] at java.util.zip.ZipFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at java.util.jar.JarFile.init(Unknown Source)
    [servicegen] at
    weblogic.utils.jars.JarFileDelegate.init(JarFileDelegate.java:35)
    [servicegen] at
    weblogic.utils.jars.VirtualJarFactory.createVirtualJar(VirtualJarFactory.java:21)
    [servicegen] at
    weblogic.application.ApplicationFileManager.getVirtualJarFile(ApplicationFileManager.java:170)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.init(EJBAutoTyper.java:68)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:337)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:309)
    [servicegen] at
    weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
    [servicegen] at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    [servicegen] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [servicegen] at java.lang.reflect.Method.invoke(UnknownSource)

    [servicegen] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
    [servicegen] at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
    [servicegen] at java.lang.Thread.run(Unknown Source)

  • RELEVANCY SCORE 2.76

    DB:2.76:Weblogic 815: Prohibited Package Name: Java.Util xk


    Hi,

    I am trying to use servicegen Ant task for webservice using weblogic 8.15.

    First, the version of my Ant is 1.65. It gives error saying
    the optinal task was build on Ant 1.5.3. So I use the Ant
    which comes with weblogic 8.15. Then I got an error. What
    was wrong?

    Any information would be appreciated. Thanks in advance.

    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.
    java:480)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:
    182)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:
    224)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadClass(Compiler.java:641
    )
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMapping(Compiler.java:
    450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappin
    gBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappin
    gBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappin
    gBuilderBase.java:180)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(Componen
    tAutoTyper.java:88)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Compon
    entAutoTyper.java:141)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115
    )
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceG
    enTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(Servi
    ceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTas
    k.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    DB:2.76:Weblogic 815: Prohibited Package Name: Java.Util xk

    Hi,

    I am trying to use servicegen Ant task for webservice using weblogic 8.15.

    First, the version of my Ant is 1.65. It gives error saying
    the optinal task was build on Ant 1.5.3. So I use the Ant
    which comes with weblogic 8.15. Then I got an error. What
    was wrong?

    Any information would be appreciated. Thanks in advance.

    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.
    java:480)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:
    182)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:
    224)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadClass(Compiler.java:641
    )
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMapping(Compiler.java:
    450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappin
    gBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappin
    gBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappin
    gBuilderBase.java:180)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(Componen
    tAutoTyper.java:88)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Compon
    entAutoTyper.java:141)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115
    )
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceG
    enTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(Servi
    ceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTas
    k.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

  • RELEVANCY SCORE 2.76

    DB:2.76:Rwcgi60 - Parameters jd


    Where I can find a documentation about the RWCGI60 parameters and some examples of how to use it?

    DB:2.76:Rwcgi60 - Parameters jd

    Where I can find a documentation about the RWCGI60 parameters and some examples of how to use it?

  • RELEVANCY SCORE 2.76

    DB:2.76:Typemapping In Weblogic 10.3 d8


    Hi

    We were using Weblogic 8.1 and recently moved to Weblogic 10.3. So the ant build has 8.1 targets and type defs.

    I am creating a webservice

    public ResponseT price(RequestT request) {
    .............................
    ..........
    .....................
    }

    We are using the servicegen ant task to create the webservice.

    When I ran the ant task I got the following error

    weblogic.xml.schema.binding.BindingException: Invalid class received: interface com.qwest.xmlSchema.PriceRequestT loaded from filejarfile!/com/xxx/xmlSchema/RequestT.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor

    1. I was searching for a while and got to know that I need to do typemapping. What is the ant target, parameters and the jar file to do the type mapping in WL 10.3?
    2. If I need to use the target autotype, what is the jar file and the type def to us the target in WL 10.3?
    3. Is thr any way to specifiy the XSDs directly in the wsdl file to avoid such problems??
    4. If I use the jwsc task and annotations instead of servicegen, will it resolve the problem??

    Thanks Regards
    Mukund

    DB:2.76:Typemapping In Weblogic 10.3 d8

    Hi

    We were using Weblogic 8.1 and recently moved to Weblogic 10.3. So the ant build has 8.1 targets and type defs.

    I am creating a webservice

    public ResponseT price(RequestT request) {
    .............................
    ..........
    .....................
    }

    We are using the servicegen ant task to create the webservice.

    When I ran the ant task I got the following error

    weblogic.xml.schema.binding.BindingException: Invalid class received: interface com.qwest.xmlSchema.PriceRequestT loaded from filejarfile!/com/xxx/xmlSchema/RequestT.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor

    1. I was searching for a while and got to know that I need to do typemapping. What is the ant target, parameters and the jar file to do the type mapping in WL 10.3?
    2. If I need to use the target autotype, what is the jar file and the type def to us the target in WL 10.3?
    3. Is thr any way to specifiy the XSDs directly in the wsdl file to avoid such problems??
    4. If I use the jwsc task and annotations instead of servicegen, will it resolve the problem??

    Thanks Regards
    Mukund

  • RELEVANCY SCORE 2.76

    DB:2.76:Webservice Error!!!!!!!! 1c


    can anyone tell me the whole procedure for webservices..

    I created service interface, service class,..After this i tried ant build ..but it gives the following error..
    BUILD FAILED
    C:\diana\dev\Webservice\build.xml:32: Could not create task or type of type: servicegen.

    Ant could not find the task or a class this task relies upon.

    here is my build.xml

    project name="SophWebService" default="all" basedir="."

    !-- set global properties for this build --
    property name="source" value="."/
    property name="build" value="${source}/build"/
    property name="config" value="${source}/config"/
    property name="client" value="${source}/client"/
    property name="war_file" value="HelloWebService.war" /
    property name="ear_file" value="HelloWebService.ear" /

    property name="client_jar_HelloService" value="HelloService.jar"/

    target name="all" depends="clean, compile, ear"/

    target name="clean"
    delete dir="${build}"/
    /target

    !-- compile the WebService class to the ${build} directory where the service
    generator will look for it when it builds the webservice --
    target name="compile"
    mkdir dir="${build}"/
    javac srcdir="${source}" destdir="${build}" includes="*.java"/
    /target

    !-- call the servicegen element within the ear task to generate and build
    the ear --
    target name="ear"

    servicegen
    destEar="${build}/${ear_file}"
    warName="${war_file}"

    service
    javaClassComponents="helloservice.HelloImpl"
    targetNamespace="${namespace}"
    serviceName="HelloService"
    serviceURI="/HelloServiceURI"
    generateTypes="True"
    expandMethods="True"
    client
    packageName="helloservice.basic.javaclass"
    clientJarName="${client_jar_HelloService}"
    /
    /service

    classpath
    pathelement path="${build}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen

    /target

    /project

    But i dont have client jar at this point..is that causing problem??shud i create clents before do ant build?

    help me plzzzzzzzzzzzz

    DB:2.76:Webservice Error!!!!!!!! 1c

    can anyone tell me the whole procedure for webservices..

    I created service interface, service class,..After this i tried ant build ..but it gives the following error..
    BUILD FAILED
    C:\diana\dev\Webservice\build.xml:32: Could not create task or type of type: servicegen.

    Ant could not find the task or a class this task relies upon.

    here is my build.xml

    project name="SophWebService" default="all" basedir="."

    !-- set global properties for this build --
    property name="source" value="."/
    property name="build" value="${source}/build"/
    property name="config" value="${source}/config"/
    property name="client" value="${source}/client"/
    property name="war_file" value="HelloWebService.war" /
    property name="ear_file" value="HelloWebService.ear" /

    property name="client_jar_HelloService" value="HelloService.jar"/

    target name="all" depends="clean, compile, ear"/

    target name="clean"
    delete dir="${build}"/
    /target

    !-- compile the WebService class to the ${build} directory where the service
    generator will look for it when it builds the webservice --
    target name="compile"
    mkdir dir="${build}"/
    javac srcdir="${source}" destdir="${build}" includes="*.java"/
    /target

    !-- call the servicegen element within the ear task to generate and build
    the ear --
    target name="ear"

    servicegen
    destEar="${build}/${ear_file}"
    warName="${war_file}"

    service
    javaClassComponents="helloservice.HelloImpl"
    targetNamespace="${namespace}"
    serviceName="HelloService"
    serviceURI="/HelloServiceURI"
    generateTypes="True"
    expandMethods="True"
    client
    packageName="helloservice.basic.javaclass"
    clientJarName="${client_jar_HelloService}"
    /
    /service

    classpath
    pathelement path="${build}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen

    /target

    /project

    But i dont have client jar at this point..is that causing problem??shud i create clents before do ant build?

    help me plzzzzzzzzzzzz

  • RELEVANCY SCORE 2.76

    DB:2.76:Servicegen Seems To Want To Bind The Webservices.Jar a1


    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.

    DB:2.76:Servicegen Seems To Want To Bind The Webservices.Jar a1

    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.

  • RELEVANCY SCORE 2.76

    DB:2.76:Wrong Varible Name With Servicegen pk


    If I create a method in my Webservice public boolean doTest(String firstname, int id){}. In the web-services.xml it comes out looking like this:
    operations
    operation method="doTest(java.lang.String,int)" component="jcComp0" name="doTest"
    params
    param location="body" class-name="java.lang.String" style="in" name="string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string"
    /param
    param location="body" class-name="int" style="in" name="intVal" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:int"
    /param
    return-param location="body" class-name="boolean" name="result" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:boolean"
    /return-param

    /params

    /operation

    Why does it name the variables "string" and "intValue" instead of the variable name that I put in(firstname and id)? And is there a way to change this?

    DB:2.76:Wrong Varible Name With Servicegen pk

    The servicegen uses reflection on the class file and generated the
    descriptor file. That's the reason it puts the variable names as string and
    intVal.

    Ajay

    "Tom Hennen" thennen@hotmail.com wrote in message
    news:3f9d21c6$1@newsgroups.bea.com...

    I noticed this using servicegen also. It's definitely annoying.

    It doesn't happen when you use the individual ant task source2wsdd. Withthat
    task the variables are correctly named.

    Is there any fix for this problem?

    Steve ssweeney@amadeusboston.com wrote:
    If I create a method in my Webservice public boolean doTest(Stringfirstname,
    int id){}. In the web-services.xml it comes out looking like this:
    operations
    operation method="doTest(java.lang.String,int)"component="jcComp0"
    name="doTest"
    params
    param location="body" class-name="java.lang.String" style="in"
    name="string" xmlns:xsd="http://www.w3.org/2001/XMLSchema"type="xsd:string"
    /param
    param location="body" class-name="int" style="in"name="intVal"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:int"
    /param
    return-param location="body" class-name="boolean"name="result"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:boolean"
    /return-param

    /params

    /operation

    Why does it name the variables "string" and "intValue" instead of the
    variable name that I put in(firstname and id)? And is there a way to
    change this?

  • RELEVANCY SCORE 2.75

    DB:2.75:Documentation For Microsoft.Ruleengine Namespace 7x


    Hi,
    I am looking for the documentation of the Microsoft.RuleEngine Namespace, and this is what I found:http://msdn.microsoft.com/en-us/library/microsoft.ruleengine(v=BTS.70).aspx.
    But this documentation feels like just a draft? Many of the classes/methods aren't document properly. For instance, many methods didn't even document the parameters other than listing the method signature... Does anyone know where can
    I find better documentation for it?
    Thanks in advance,
    Ed

    DB:2.75:Documentation For Microsoft.Ruleengine Namespace 7x

    I have the book and it is written by one of my coworkers (has not written the rule part). A great book ;-)Torben Christiansen www.snatchedmoments.com

  • RELEVANCY SCORE 2.75

    DB:2.75:Servicegen / Clientgen : Really Annoying Lack Of Debug In Compile Code 1a



    WLS7.0 SP1

    Unless I have missed something silly, there seems to be no way to influence the
    compile options of the code compiled by servicegen and clientgen - and by default
    they are not compiled with debug info.

    Its in clientgen that it is a particular pain. Because there is no debug info,
    you get quite poor intelliSense with dev toos and also no line numbers in stack
    traces.

    Is there a way around this?

    -Nick

    DB:2.75:Servicegen / Clientgen : Really Annoying Lack Of Debug In Compile Code 1a


    WLS7.0 SP1

    Unless I have missed something silly, there seems to be no way to influence the
    compile options of the code compiled by servicegen and clientgen - and by default
    they are not compiled with debug info.

    Its in clientgen that it is a particular pain. Because there is no debug info,
    you get quite poor intelliSense with dev toos and also no line numbers in stack
    traces.

    Is there a way around this?

    -Nick

  • RELEVANCY SCORE 2.75

    DB:2.75:Servicegen Issue With Binding Webservice.Jar 79


    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.

    DB:2.75:Servicegen Issue With Binding Webservice.Jar 79

    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.

  • RELEVANCY SCORE 2.73

    DB:2.73:Where Can I Find The Documentation Of Team Foundation Server 2008 Events? 31


    Hi! I cannot find the documentation of the WorkItemChangedEvent to which I would like to subscripe a web service. I'm trying to figure out which signature my web method needs and how I need to interpret the parameters provided by TFS 2008. Best Regards hanappol

    DB:2.73:Where Can I Find The Documentation Of Team Foundation Server 2008 Events? 31

    I have recently posted an article for complete event handling process with TFS 2008 and TFS 2010 at http://www.dotnetcurry.com/ShowArticle.aspx?ID=330.VP, Technology, SEED Infotech Ltd.

  • RELEVANCY SCORE 2.73

    DB:2.73:Testing Page cx


    hi,
    When i use servicegen task to generate the web services, it provide me the testing page, which has all input parameters and where we used to fill the values . i need to know there internally direct assignment happens or internally set method getting called.. i need to call the set method for that attribute, can we do this.

    regards
    akash

    DB:2.73:Testing Page cx

    If the field is private, then the set method is called
    to assign the value.

    --

    regards,
    -manoj

    "akash" akashu@pune.tcs.co.in wrote in message
    news:3da2a17f$1@newsgroups.bea.com...
    hi,
    When i use servicegen task to generate the web services, it provide me thetesting page, which has all input parameters and where we used to fill the
    values . i need to know there internally direct assignment happens or
    internally set method getting called.. i need to call the set method for
    that attribute, can we do this.

    regards
    akash

  • RELEVANCY SCORE 2.71

    DB:2.71:Servicegen pd



    Hi

    When we run servicegen , no where in build xml i give my machine name but still
    it picks the name on which my weblogic is running. Now i understand that i picks
    from config.xml. I say this because when i change listeHost to localhost then
    it serice would work through localhost and if i put in my machine name in listenHost
    and re run servicegen it would work with machine name.

    Am i right in this understanding, and if that is right we have a problem. This
    would mean that whcih ever server i want to deploy ear on i will have to run service
    gen on that box. I lose the capability of ear and deploy anywhere feature. Is
    that i m missing something big ?

    lee

    DB:2.71:Servicegen pd


    Hi manoj

    thanks for reply, it was exactly what i was looking for.

    pranav

    "manoj cheenath" manojc@bea.com wrote:
    The WSDL file is generated dynamically from
    the end component (eg ejb) + the web-services.xml
    dd file at runtime. The host name and port number that
    ends up in the generated wsdl is got from the HTTP
    GET request from the client to retrieve the WSDL.

    So you can do servicegen once and deploy on any
    machine. The service?WSDL will pick up the right
    host and port.

    Regards,
    -manoj

    --
    http://manojc.com

    "zin lee" zinlee@str.com wrote in message
    news:3f12a128$1@newsgroups.bea.com...
    Hi

    When we run servicegen , no where in build xml i give my machine namebut
    still
    it picks the name on which my weblogic is running. Now i understandthat i
    picks
    from config.xml. I say this because when i change listeHost to localhostthen
    it serice would work through localhost and if i put in my machine namein
    listenHost
    and re run servicegen it would work with machine name.

    Am i right in this understanding, and if that is right we have a problem.This
    would mean that whcih ever server i want to deploy ear on i will haveto
    run service
    gen on that box. I lose the capability of ear and deploy anywhere feature.Is
    that i m missing something big ?

    lee

  • RELEVANCY SCORE 2.70

    DB:2.70:Servicegen With Ejb And Editing Wsdl kd


    I've got an EJB, which I've generated a service on.

    The problem I'm having, is with parameter names to methods. By default
    servicegen will create method parameters like ; string, string0, string1
    and so on.

    What I'm trying to do is to make the method parameters companyCode,
    Name, and so on, so that they are readable when the WSDL is pulled into
    an IDE such as .Net

    I'm currently doing this by editing web-services.xml and re-packaging
    the war file, which is working fine, but it's a bit messy.

    Is there another way?

    Pete

    DB:2.70:Servicegen With Ejb And Editing Wsdl kd

    I've got an EJB, which I've generated a service on.

    The problem I'm having, is with parameter names to methods. By default
    servicegen will create method parameters like ; string, string0, string1
    and so on.

    What I'm trying to do is to make the method parameters companyCode,
    Name, and so on, so that they are readable when the WSDL is pulled into
    an IDE such as .Net

    I'm currently doing this by editing web-services.xml and re-packaging
    the war file, which is working fine, but it's a bit messy.

    Is there another way?

    Pete

  • RELEVANCY SCORE 2.70

    DB:2.70:Document Style Problem sx



    We have three issues when trying to implement a document-style service. I will
    document them all but I'd suggest you go through them all before attempting to
    answer any of them.

    We are trying to implement a service that has the following signature:

    public void echoDom(Document doc)

    We want the delivery of our message to be of style ("document"). Therefore, we
    modified our servicegen entry to include the style="document" under the service.
    It looks like the following:

    servicegen
    destEar="${appDir}/dom.ear"
    warName="dom.war"
    service
    javaClassComponents="examples.dom.EchoDom"
    targetNamespace="http://examples.org"
    serviceName="dom"
    serviceURI="/EchoDomService"
    generateTypes="True"
    expandMethods="True"
    style="document"
    client
    packageName="examples.dom"
    clientJarName="client.jar"
    /
    /service
    classpath
    pathelement path="${temp_dir}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen

    1. FIRST PROBLEM:

    The first problem we're having is that it does not compile with the combination
    of our signature being of type void (as shown above) and the style="document"
    in build.xml.

    The error is the following:

    [servicegen] Generating service "dom" ...
    [servicegen] Generating XML types and serializers from java classes (examples.do
    m.EchoDom) ...
    [servicegen] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ void:
    null ]
    [servicegen] at weblogic.utils.Debug.assertion(Debug.java:84)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:111)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:88)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:183)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper
    .mapComponent(ComponentAutoTyper.java:155)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(
    JavaAutoTyper.java:80)
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
    te(AutoTypeTask.java:353)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:251)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:146)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)

    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:153)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:176)

    2. SECOND PROBLEM

    If we change the signature to become:

    public Document echoDom(Document doc)

    then the build works but when we try to test our service, it gives us the following:

    [java] java.rmi.RemoteException: web service invoke failed; nested exceptio
    n is:
    [java] javax.xml.soap.SOAPException: failed to serialize xml:weblogic.
    xml.schema.binding.SerializationException: type mapping lookup failure on class=
    class weblogic.apache.xerces.dom.DocumentImpl TypeMapping=TYPEMAPPING SIZE=6
    [java] ENTRY 1:
    [java] class: org.w3c.dom.Document
    [java] xsd_type: ['http://examples.org']:p3:echoDom
    [java] ser: weblogic.xml.schema.binding.internal.builtin.DocumentCode
    c@5973ea
    [java] deser: weblogic.xml.schema.binding.internal.builtin.DocumentCode
    c@49131c
    [java] ENTRY 2:
    [java] class: java.lang.Object
    [java] xsd_type: ['http://examples.org']:p1:echoDomResponse
    [java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
    5b99f
    [java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@

    3. THIRD PROBLEM:

    Now, when we revert back to style="rpc" and everything works fine and dandy (although
    not as we want it because, as I mentioned above, we want a void signature and
    a document style), we get the following added tag around our body content, which
    we did not add ourselves, nor are we sure yet why it shows up:

    We pass it the following argument:

    those dummy="hi"
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /those

    We get the following (notice the document tag around it):

    env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    env:Body
    m:echoDom xmlns:m="http://examples.org"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    document
    those dummy="hi"
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /those
    /document
    /m:echoDom
    /env:Body
    /env:Envelope

    4. PROBLEM FOUR (just remembered this one):

    If we use the standard test page (provided with WLS), with (3) above, it chops
    off the "those" and it still wraps it within this new document element as show
    below:

    !--REQUEST.................--
    env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    env:Header
    /env:Header
    env:Body
    m:echoDom xmlns:m="http://examples.org"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    document
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /document
    /m:echoDom
    /env:Body
    /env:Envelope

    We're not so worried about the fourth because it seems like a bug but the first
    three (especially the first) are most important. Any ideas would be appreciated.

    Thanks

    sami

    DB:2.70:Document Style Problem sx

    Ok I tried it out, DOM with document style web
    service is not working in WLS 7.0.2. I filed
    CR104719. Please contact support with this case
    number to get a patch.

    Sorry for the trouble.

    --
    http://manojc.com

    "sami titi" samititi2003@hotmail.com wrote in message
    news:3eaebfac$1@newsgroups.bea.com...

    We're using WLS7 SP2, patch: CR102544_70sp2_v2.jar

    thanks

    "manoj cheenath" manojc@bea.com wrote:
    Quick question, before i try this out.

    Which version of WLS? SP?

    --
    http://manojc.com

    "sami titi" samititi2003@hotmail.com wrote in message
    news:3eaeb355$1@newsgroups.bea.com...
    We have three issues when trying to implement a document-style service.I
    will
    document them all but I'd suggest you go through them all beforeattempting to
    answer any of them.

    We are trying to implement a service that has the following signature:

    public void echoDom(Document doc)

    We want the delivery of our message to be of style ("document").Therefore, we
    modified our servicegen entry to include the style="document" underthe
    service.
    It looks like the following:

    servicegen
    destEar="${appDir}/dom.ear"
    warName="dom.war"
    service
    javaClassComponents="examples.dom.EchoDom"
    targetNamespace="http://examples.org"
    serviceName="dom"
    serviceURI="/EchoDomService"
    generateTypes="True"
    expandMethods="True"
    style="document"
    client
    packageName="examples.dom"
    clientJarName="client.jar"
    /
    /service
    classpath
    pathelement path="${temp_dir}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen

    1. FIRST PROBLEM:

    The first problem we're having is that it does not compile with thecombination
    of our signature being of type void (as shown above) and thestyle="document"
    in build.xml.

    The error is the following:

    [servicegen] Generating service "dom" ...
    [servicegen] Generating XML types and serializers from java classes(examples.do
    m.EchoDom) ...
    [servicegen] weblogic.utils.AssertionError: ***** ASSERTION FAILED*****[ void:
    null ]
    [servicegen] at weblogic.utils.Debug.assertion(Debug.java:84)
    [servicegen] atweblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:111)
    [servicegen] atweblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:88)
    [servicegen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:183)
    [servicegen] atweblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper
    mapComponent(ComponentAutoTyper.java:155)
    [servicegen] atweblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(
    JavaAutoTyper.java:80)
    [servicegen] atweblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
    te(AutoTypeTask.java:353)
    [servicegen] atweblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:251)
    [servicegen] atweblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:146)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:217)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:164)
    [servicegen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
    [servicegen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
    [servicegen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:153)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:176)

    2. SECOND PROBLEM

    If we change the signature to become:

    public Document echoDom(Document doc)

    then the build works but when we try to test our service, it givesus the
    following:
    [java] java.rmi.RemoteException: web service invoke failed; nestedexceptio
    n is:
    [java] javax.xml.soap.SOAPException: failed to serializexml:weblogic.
    xml.schema.binding.SerializationException: type mapping lookup failureon
    class=
    class weblogic.apache.xerces.dom.DocumentImpl TypeMapping=TYPEMAPPINGSIZE=6
    [java] ENTRY 1:
    [java] class: org.w3c.dom.Document
    [java] xsd_type: ['http://examples.org']:p3:echoDom
    [java] ser:weblogic.xml.schema.binding.internal.builtin.DocumentCode
    c@5973ea
    [java] deser:weblogic.xml.schema.binding.internal.builtin.DocumentCode
    c@49131c
    [java] ENTRY 2:
    [java] class: java.lang.Object
    [java] xsd_type: ['http://examples.org']:p1:echoDomResponse
    [java] ser:weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
    5b99f
    [java] deser:weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
    3. THIRD PROBLEM:

    Now, when we revert back to style="rpc" and everything works fine anddandy (although
    not as we want it because, as I mentioned above, we want a voidsignature
    and
    a document style), we get the following added tag around our bodycontent,
    which
    we did not add ourselves, nor are we sure yet why it shows up:

    We pass it the following argument:

    those dummy="hi"
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /those

    We get the following (notice the document tag around it):

    env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    env:Body
    m:echoDom xmlns:m="http://examples.org"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    document
    those dummy="hi"
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /those
    /document
    /m:echoDom
    /env:Body
    /env:Envelope

    4. PROBLEM FOUR (just remembered this one):

    If we use the standard test page (provided with WLS), with (3) above,it
    chops
    off the "those" and it still wraps it within this new documentelement
    as show
    below:

    !--REQUEST.................--
    env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    env:Header
    /env:Header
    env:Body
    m:echoDom xmlns:m="http://examples.org"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    document
    this xmlns="mynamespace"
    f:that xmlns:f="yournamespace"
    or a lot of random /or
    f:the
    /f:the
    f:other foo bar blaz/f:other
    /f:that
    /this
    /document
    /m:echoDom
    /env:Body
    /env:Envelope

    We're not so worried about the fourth because it seems like a bug butthe
    first
    three (especially the first) are most important. Any ideas would beappreciated.
    Thanks

    sami

  • RELEVANCY SCORE 2.70

    DB:2.70:Servicegen Is Not Creating The Wsdl File d8



    Hi All,
    I am trying to deploy a basic web service on WL 7 using
    servicegen. However, even though the servicegen packages everything into the EAR,
    the EAR doesn't contain the WSDL file.

    It contains only the foll. application.xml, WAR file manifest.mf. The WAR file
    contains the .class file, web-services.xml, manifest.mf and web.xml.

    Why is the wsdl not created ? I am sticking the servicegen tag below.

    target name="ear" depends="check"
    servicegen
    destEar="${APPLICATIONS}/CurrencyExch.ear"
    warName="${war_file}"
    contextURI="calculatorService"
    service javaClassComponents="com.unisys.osiris.bs.CalculatorServiceBs"
    targetNamespace="${namespace}"
    serviceName="CalculatorServiceBs"
    serviceURI="/CalculatorServiceBs"
    generateTypes="False"
    expandMethods="True"
    /service
    classpath
    pathelement path="${build}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen
    /target

    Many Thanks

    Sanjiv

    DB:2.70:Servicegen Is Not Creating The Wsdl File d8


    Hey Thanks guys. It's finally working. The problem was that I had given the same
    name to contextURI as an exisiting WAR file in Weblogic. This resulted in the
    conflict and probably was the reason for failing to display the WSDL.

    Thanks to all
    Sanjiv

    "Sanjiv" sanjiv@gamcom.com wrote:

    Hi Simon,
    I tried doing
    http://host:port/uricontext/webservice?WSDL
    Still no luck. Can't figure out what's wrong.

    Sanjiv

    Simon Evans evans_simon@hotmail.com wrote:
    the WSDL is generated dynamically.
    you can view it with http://host:port/uricontext/webservice?WSDL

    Sanjiv wrote:
    Hi Bruce,

    First of all, thanks for replying. Bruce, I had opened the EAR fileand found
    that the WSDL file is created in the Client jar file (which in turnis in the
    WAR file) and not under the root of the EAR file.
    I expected the wsdl file in the EAR file. Also, when I try to invokethe wsdl
    file by http://host:port/uricontext/webservice
    it doesn't show up.

    So, first of all am I right in expecting that the WSDL file wouldbe
    in the EAR
    root. Secondly, will the web service stubs etc. be in the root ofEAR
    file or
    only in the Client jar file.

    Thanks
    Sanjiv

    Than
    Bruce Stephens hbs@nospam.bea.com wrote:

    Hi,

    The WSDL is created on the fly from the web-services.xml when theEAR
    is deployed. The
    service, for example, would change depending on where the webservice
    was hosted. You can
    view the WSDL from the generated test page: http://host:port/uri
    context/webservice

    Bruce

    Sanjiv wrote:

    Hi All,
    I am trying to deploy a basic web service on WL 7 using
    servicegen. However, even though the servicegen packages everythinginto the EAR,

    the EAR doesn't contain the WSDL file.

    It contains only the foll. application.xml, WAR file manifest.mf.The WAR file

    contains the .class file, web-services.xml, manifest.mf and web.xml.

    Why is the wsdl not created ? I am sticking the servicegen tag below.

    target name="ear" depends="check"
    servicegen
    destEar="${APPLICATIONS}/CurrencyExch.ear"
    warName="${war_file}"
    contextURI="calculatorService"
    service javaClassComponents="com.unisys.osiris.bs.CalculatorServiceBs"
    targetNamespace="${namespace}"
    serviceName="CalculatorServiceBs"
    serviceURI="/CalculatorServiceBs"
    generateTypes="False"
    expandMethods="True"
    /service
    classpath
    pathelement path="${build}"/
    pathelement path="${java.class.path}"/
    /classpath
    /servicegen
    /target

    Many Thanks

    Sanjiv

  • RELEVANCY SCORE 2.69

    DB:2.69:Servicegentask Not Found 99



    Hello,
    I am using the latest version of ant from http://ant.apache.org and I
    do have the weblogic.jar and webservices.jar in my classpath. I still get the
    following error -
    BUILD FAILED
    file:C:/sviewdev/ad_curr_60_dev/env/src/build.xml:499: taskdef class weblogic.
    ant.taskdefs.webservices.servicegen.ServiceGenTask cannot be found. Should I be
    using the weblogic ant alone ? I am currently using weblogic 8.1
    Here is my build file
    taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"/
    target name="ear" depends="ejbc"
    servicegen
    destEar="aswin.ear"
    classpath="${classpath};{cap.javaWebServicesClassFiles}"
    service
    ejbJar="${tmpclasses}/cap_ssb.jar"
    targetNamespace="http://localhost:7001/L10nWebService"
    serviceName="L10nWebService"
    serviceURI="/L10nWebService"
    generateTypes="True"
    expandMethods="True"
    style="rpc"
    /service
    /servicegen
    /target

    Thanks,
    Aswin.

    DB:2.69:Servicegentask Not Found 99


    Hi,
    Yes the way I solved this is to remove the ant classes out of weblogic.jar
    and rejar the jar file and use the Ant jar that comes with my version of Ant.
    The earlier conflicts were a consequence of my CLASSPATH containing both my version
    of Ant.jar and the ant classes in Weblogic.jar.
    Thanks everyone for their time and suggestions,
    Aswin.
    "Michael Wooten" wooten_michael@hotmail.com wrote:

    Hi Aswin,

    Assuming that weblogic.jar and webservices.jar are in the ${} or ${}
    properties,
    try the following:

    target "run-servicegen"
    delete file="aswin.ear"/
    delete file="${webservice.war.file}"/

    servicegen
    destEar="aswin.ear"
    warName="${webservice.war.file}"

    service
    ejbJar="${tmpclasses}/cap_ssb.jar"
    targetNamespace="http://localhost:7001/L10nWebService"
    serviceName="L10nWebService"
    serviceURI="/L10nWebService"
    generateTypes="True"
    expandMethods="True"
    style="rpc"
    /
    classpath
    pathelement path="${classpath}"/
    pathelement path="{cap.javaWebServicesClassFiles}"/
    /classpath
    /service
    /servicegen
    /target

    If this works, you should create a path element that looks like this:

    path id="compile.classpath"
    fileset dir="${env.JAVA_HOME}"
    include name="lib/tools.jar" /
    /fileset
    fileset dir="${env.WL_HOME}"
    include name="server/lib/weblogic.jar"/
    include name="server/lib/webservices.jar"/
    include name="server/lib/webserviceclient.jar"/
    /fileset
    /path

    Then switch the classpath element to:

    classpath
    path refid="compile.classpath"/
    /classpath

    Regards,
    Mike Wooten

    "Aswin Dinakar" win_ash@hotmail.com wrote:
    Thanks for your reply Michael. I believe the CLASSPATH is set for the

    org.apache.tools.ant.Main class as I did do an "echo" and print outthe
    classpath
    property in the build.xml script. Is there something else other than
    weblogic.jar
    and webservices.jar that I need to use for building my code ?
    Thanks again.

    "Michael Wooten" wooten_michael@hotmail.com wrote:
    Hi Aswin,

    Yes, you can indeed use a different version of Ant than the one that
    comes WLS
    8.1.

    However, weblogic.jar and webservices.jar must be in the CLASSPATHof
    the JVM
    that runs the org.apache.tools.ant.Main class. It is not enough tojust
    put them
    in a path id="" element of your build process' Ant script.

    HTH,
    Mike Wooten

    "Aswin Dinakar" win_ash@hotmail.com wrote:
    Yes if I run that script it works just fine. But unfortunately weare
    looking to
    run this script as part of "our" build process. So setWLSEnv.cmd uses
    a different
    version of ant than we do. Is that the issue ? We use Ant Apache 1.5.4
    whereas
    the one in WLS uses Ant Apache 1.5 built in July 2002. Is it onlypossible
    to
    build using the WebLogic ant ?
    "JD" john.d.smith@aa.com wrote:
    Run the setWLSEnv.cmd script located in

    [installation dir]\server\bin

    before running an ant script that uses the servicegen task.

    "Aswin Dinakar" win_ash@hotmail.com wrote:
    Hello,
    I am using the latest version of ant from http://ant.apache.org
    and I
    do have the weblogic.jar and webservices.jar in my classpath. Istill
    get the
    following error -
    BUILD FAILED
    file:C:/sviewdev/ad_curr_60_dev/env/src/build.xml:499: taskdef class
    weblogic.
    ant.taskdefs.webservices.servicegen.ServiceGenTask cannot be found.Should
    I be
    using the weblogic ant alone ? I am currently using weblogic 8.1
    Here is my build file
    taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"/
    target name="ear" depends="ejbc"
    servicegen
    destEar="aswin.ear"
    classpath="${classpath};{cap.javaWebServicesClassFiles}"
    service
    ejbJar="${tmpclasses}/cap_ssb.jar"
    targetNamespace="http://localhost:7001/L10nWebService"
    serviceName="L10nWebService"
    serviceURI="/L10nWebService"
    generateTypes="True"
    expandMethods="True"
    style="rpc"
    /service
    /servicegen
    /target

    Thanks,
    Aswin.

  • RELEVANCY SCORE 2.68

    DB:2.68:Bindingexception: No Set Method For Valid In Class Boolean kf



    All,

    Has anyone seen this before?

    [servicegen] weblogic.xml.schema.binding.BindingException: no set method for valid
    in class boolean
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)

    Any insight welcome
    John

    DB:2.68:Bindingexception: No Set Method For Valid In Class Boolean kf


    Hi John

    you have used a class which does not follow the rules for bean serialization.
    That means your class has a privat memeber "valid" which does not have a set or
    get member. This happens unfortunatly with some standard java classes like java.util.locale.
    To prevent this, make your own value holder class with your own interfaces followed
    the rules of bean serialzation. There you could use other classes like java.util.locale
    internally.

    Markus
    "John Stehle" jstehle@bea.com wrote:

    All,

    Has anyone seen this before?

    [servicegen] weblogic.xml.schema.binding.BindingException: no set method
    for valid
    in class boolean
    [servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execute(AutoTypeTask.java:356)

    Any insight welcome
    John

  • RELEVANCY SCORE 2.68

    DB:2.68:Also Trouble With Servicegen f3


    I've also had trouble with servicegen...

    I'm running WL7.0SP2 on Win2k.

    I used autotype to generate value objects based on an xsd. I then wrote a stateless session bean that uses those objects as parameters to its methods.

    When I attempted to use servicegen, I could not produce a proper WSDL without hand-editing the web-services.xml file.

    If generateTypes="False" servicegen refused to incorporate the information in typeMappingFile="types.xml". The webservice would not work.

    If generateTypes="True", types.xml would be incorporated, but the value objects generated by autotype were "round-tripped" back into different schema. I could invoke the webservice with the schema that I originally provided to autotype (using a hand coded client), but I could not invoke the webservice from a client generated from the WSDL.

    My only recourse was to hand-code the wsdl, use autotype and wsdl2service to generate the types and type-mapping data, hand edit the web-services.xml generated by servicegen to use that types and type-mapping.

    DB:2.68:Also Trouble With Servicegen f3

    Hi Mike,

    Just a couple of general comments.

    First, it really helps us to know the problems you are seeing and that
    is why we encourage folks to use the excellent support team
    (support@bea.com http://support.bea.com) to resolve these issues and to
    provide feedback into engineering. It would be great if you could
    provide a short reproducer. The support process gets you back on the
    road to solving your business problems and it helps us to provide a
    better product.

    Second, I'd encourage you to give the WLS 8.1 a spin; there have been
    many improvements.

    Last, it is good to hear that you were able to preserver and even though
    it required some hand editing, that it was not impossible, just harder
    than you expected. It is good information to us, knowing your process;
    it helps us build better tools.

    Bruce

    Mike DeAngelo wrote:

    I've also had trouble with servicegen...

    I'm running WL7.0SP2 on Win2k.

    I used autotype to generate value objects based on an xsd. I then wrote a stateless session bean that uses those objects as parameters to its methods.

    When I attempted to use servicegen, I could not produce a proper WSDL without hand-editing the web-services.xml file.

    If generateTypes="False" servicegen refused to incorporate the information in typeMappingFile="types.xml". The webservice would not work.

    If generateTypes="True", types.xml would be incorporated, but the value objects generated by autotype were "round-tripped" back into different schema. I could invoke the webservice with the schema that I originally provided to autotype (using a hand coded client), but I could not invoke the webservice from a client generated from the WSDL.

    My only recourse was to hand-code the wsdl, use autotype and wsdl2service to generate the types and type-mapping data, hand edit the web-services.xml generated by servicegen to use that types and type-mapping.

  • RELEVANCY SCORE 2.68

    DB:2.68:Minoccurs And Maxoccurs pd



    How do I specify minOccurs and maxOccurs constraint when I am generating web services
    using stateless beans, and servicegen task

    DB:2.68:Minoccurs And Maxoccurs pd

    Hi Chand,

    Set the values in the web-services.xml deployment descriptor that is generated by
    servicegen as described in types section of the docs:
    http://e-docs.bea.com/wls/docs70/////webServices/wsp.html#1066343

    Then reassemble the EAR as described in:
    http://e-docs.bea.com/wls/docs70/////webServices/assemble.html#1052126

    Hope this helps,
    Bruce

    Chand wrote:

    How do I specify minOccurs and maxOccurs constraint when I am generating web services
    using stateless beans, and servicegen task

  • RELEVANCY SCORE 2.68

    DB:2.68:Can Use Servicegen Task To Expose A Method By Method Name? jx


    Hi all,
    I have a EJB with alot of methods. Some of those methods, the return datatype is not supported (such as Hashtable).
    For example:
    pre public Hashtable getHashtable(){
    return null;
    }
    /pre
    As I know, servicegen alway expose all public method of EJB. So , the following error occured.
    pre
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    /pre
    So, I have two way to fix this problem:
    1. Change source code: Do not use unsupported datatype.
    This way is not very useful because the code is written at another side and I just use it to deploy to WebLogic
    2. Try to find the way to expose some method by method name (In this method, return datatype is supported).
    But I have not found the way yet.

    Can anybody help me?
    Thank alot for support.

    DB:2.68:Can Use Servicegen Task To Expose A Method By Method Name? jx

    Hi all,
    I have a EJB with alot of methods. Some of those methods, the return datatype is not supported (such as Hashtable).
    For example:
    pre public Hashtable getHashtable(){
    return null;
    }
    /pre
    As I know, servicegen alway expose all public method of EJB. So , the following error occured.
    pre
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    /pre
    So, I have two way to fix this problem:
    1. Change source code: Do not use unsupported datatype.
    This way is not very useful because the code is written at another side and I just use it to deploy to WebLogic
    2. Try to find the way to expose some method by method name (In this method, return datatype is supported).
    But I have not found the way yet.

    Can anybody help me?
    Thank alot for support.

  • RELEVANCY SCORE 2.67

    DB:2.67:Use Of Partnerlinks In Bpel Process Gives Javax.Servlet.Serv c8



    Hello there,I am working with the BPEL graphics designer plugin for eclipse (versio 0.2.0 in JBoss IDE version 2.0.0 (beta2)., jboss-4.0.5.GA and jbpm-bpel-1.1.Beta3I rebuild the hello process succesfully with the graphical designer.However, when I extend this project with a partnerlink based upon the account.wsdl file from the account example there is a problem.I can successfully run targets ant deploy-definition, generate-service, generate-artifacts, deploy and the webservice of the process comes up.When I try to surf to the wsdl link of the service (http://bez2915c:8080/hello/greeter?wsdl) I get the next error:javax.servlet.ServletException: no protocol: REPLACE_WITH_ACTUAL_URI org.jboss.ws.core.server.AbstractServiceEndpointServlet.handleException(AbstractServiceEndpointServlet.java:129) org.jboss.ws.core.server.AbstractServiceEndpointServlet.doGet(AbstractServiceEndpointServlet.java:93) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)root causejava.net.MalformedURLException: no protocol: REPLACE_WITH_ACTUAL_URI java.net.URL.(URL.java:567) java.net.URL.(URL.java:464) java.net.URL.(URL.java:413) org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:159) org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) org.jboss.ws.core.server.WSDLRequestHandler.getDocumentForPath(WSDLRequestHandler.java:95) org.jboss.ws.core.server.ServiceEndpoint.handleWSDLRequest(ServiceEndpoint.java:149) org.jboss.ws.core.server.ServiceEndpointManager.processWSDLRequest(ServiceEndpointManager.java:392) org.jboss.ws.core.server.AbstractServiceEndpointServlet.doGet(AbstractServiceEndpointServlet.java:89) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)The content of my bpel file:--------------------------------?xml version="1.0" encoding="UTF-8"?bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:ns="urn:samples:account" xmlns:tns="http://jbpm.org/examples/hello" exitOnStandardFault="yes" name="HelloWorld" suppressJoinFailure="yes" targetNamespace="http://jbpm.org/examples/hello"bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="hello.wsdl" namespace="http://jbpm.org/examples/hello"/bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="account.wsdl" namespace="urn:samples:account"/bpws:partnerLinksbpws:partnerLink myRole="Greeter" name="caller" partnerLinkType="tns:Greeter-Caller"/bpws:partnerLink myRole="accountRequester" name="accountLink" partnerLinkType="ns:AccountLinkType" partnerRole="accountProvider"//bpws:partnerLinksbpws:variablesbpws:variable messageType="tns:nameMessage" name="request"/bpws:variable messageType="tns:greetingMessage" name="response"/bpws:variable messageType="ns:accessMessage" name="accountLinkResponse"/bpws:variable messageType="ns:customerMessage" name="accountLinkRequest"//bpws:variablesbpws:sequence name="main"bpws:receive createInstance="yes" name="receiveInput" operation="sayHello" partnerLink="caller" portType="tns:Greeter" variable="request"/bpws:assign name="Assign" validate="no"bpws:copybpws:from![CDATA[concat('hello ', $request.name,'!')]]/bpws:frombpws:to part="greeting" variable="response"//bpws:copy/bpws:assignbpws:assign name="copyAccount" validate="no"bpws:copybpws:from part="name" variable="request"/bpws:to part="customerName" variable="accountLinkRequest"//bpws:copy/bpws:assignbpws:invoke inputVariable="accountLinkRequest" name="callAccount" operation="checkAccess" outputVariable="accountLinkResponse" partnerLink="accountLink" portType="ns:AccountSystem"/bpws:reply name="replyOutput" operation="sayHello" partnerLink="caller" portType="tns:Greeter" variable="response"//bpws:sequence/bpws:processContent of the hello.wsdl:-----------------------------?xml version="1.0" encoding="UTF-8"?bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:ns="urn:samples:account" xmlns:tns="http://jbpm.org/examples/hello" exitOnStandardFault="yes" name="HelloWorld" suppressJoinFailure="yes" targetNamespace="http://jbpm.org/examples/hello"bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="hello.wsdl" namespace="http://jbpm.org/examples/hello"/bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="account.wsdl" namespace="urn:samples:account"/bpws:partnerLinksbpws:partnerLink myRole="Greeter" name="caller" partnerLinkType="tns:Greeter-Caller"/bpws:partnerLink myRole="accountRequester" name="accountLink" partnerLinkType="ns:AccountLinkType" partnerRole="accountProvider"//bpws:partnerLinksbpws:variablesbpws:variable messageType="tns:nameMessage" name="request"/bpws:variable messageType="tns:greetingMessage" name="response"/bpws:variable messageType="ns:accessMessage" name="accountLinkResponse"/bpws:variable messageType="ns:customerMessage" name="accountLinkRequest"//bpws:variablesbpws:sequence name="main"bpws:receive createInstance="yes" name="receiveInput" operation="sayHello" partnerLink="caller" portType="tns:Greeter" variable="request"/bpws:assign name="Assign" validate="no"bpws:copybpws:from![CDATA[concat('hello ', $request.name,'!')]]/bpws:frombpws:to part="greeting" variable="response"//bpws:copy/bpws:assignbpws:assign name="copyAccount" validate="no"bpws:copybpws:from part="name" variable="request"/bpws:to part="customerName" variable="accountLinkRequest"//bpws:copy/bpws:assignbpws:invoke inputVariable="accountLinkRequest" name="callAccount" operation="checkAccess" outputVariable="accountLinkResponse" partnerLink="accountLink" portType="ns:AccountSystem"/bpws:reply name="replyOutput" operation="sayHello" partnerLink="caller" portType="tns:Greeter" variable="response"//bpws:sequence/bpws:processOutput of the build process:--------------------------------D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant cleanBuildfile: build.xmlclean: [delete] Deleting directory D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\targetBUILD SUCCESSFULTotal time: 0 secondsD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant deploy-definitionBuildfile: build.xmlpack-definition: [mkdir] Created dir: D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target [zip] Building zip: D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\hello-process.zipdeploy-definition:[deployprocess] target url: http://localhost:8080/jbpm-bpel/deploy?processfile=file%3A%2FD%3A%2Fdevelop%2Feclipse%2FworkspaceBPEL%2FBPEL_PROJ%2Fexamples%2Fhello2account%2Ftarget%2Fhello-process.zip[deployprocess] got response code: 200BUILD SUCCESSFULTotal time: 1 secondD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant generate-serviceBuildfile: build.xmlpack-definition:generate-service:[servicegen] 15:54:32,681 INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'[servicegen] 15:54:32,712 DEBUG JbpmConfiguration : loading defaults in jbpm configuration[servicegen] 15:54:32,853 DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'[servicegen] 15:54:32,853 DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'[servicegen] 15:54:32,868 DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'[servicegen] 15:54:32,868 DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'[servicegen] 15:54:32,868 DEBUG ObjectFactoryImpl : adding object info 'resource.converter'[servicegen] 15:54:32,868 DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host'[servicegen] 15:54:32,884 DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'[servicegen] 15:54:32,899 DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'[servicegen] 15:54:32,899 DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'[servicegen] 15:54:32,915 DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor'[servicegen] 15:54:32,915 DEBUG JbpmConfiguration : loading specific configuration...[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.converter'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'[servicegen] 15:54:32,931 DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.activity.readers'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.catalog.readers'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'resource.endpoint.factories'[servicegen] 15:54:32,946 DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'[servicegen] 15:54:32,962 DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host'[servicegen] 15:54:32,962 DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'[servicegen] 15:54:32,962 DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'[servicegen] 15:54:32,962 DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'[servicegen] 15:54:32,962 DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor'[servicegen] 15:54:32,978 DEBUG ObjectFactoryImpl : adding object info 'jbpm.bpel.soap.fault.writers'[servicegen] 15:54:32,978 DEBUG ObjectFactoryImpl : adding object info 'jbpmConfiguration'[servicegen] 15:54:33,103 DEBUG BpelDefinition : registered module class: org.jbpm.bpel.graph.def.ImportsDefinition[servicegen] 15:54:33,103 DEBUG BpelDefinition : registered module class: org.jbpm.context.def.ContextDefinition[servicegen] 15:54:33,290 DEBUG LocalEntityResolver : system id 'http://jbpm.org/bpel/bpel_definition_1_0.xsd' maps to resource: bpel_definition_1_0.xsd[servicegen] 15:54:33,431 DEBUG BpelReader : registered activity reader: name=receive, class=org.jbpm.bpel.xml.ReceiveReader[servicegen] 15:54:33,431 DEBUG BpelReader : registered activity reader: name=reply, class=org.jbpm.bpel.xml.ReplyReader[servicegen] 15:54:33,431 DEBUG BpelReader : registered activity reader: name=invoke, class=org.jbpm.bpel.xml.InvokeReader[servicegen] 15:54:33,431 DEBUG BpelReader : registered activity reader: name=empty, class=org.jbpm.bpel.xml.EmptyReader[servicegen] 15:54:33,446 DEBUG BpelReader : registered activity reader: name=assign, class=org.jbpm.bpel.xml.AssignReader[servicegen] 15:54:33,462 DEBUG BpelReader : registered activity reader: name=throw, class=org.jbpm.bpel.xml.ThrowReader[servicegen] 15:54:33,462 DEBUG BpelReader : registered activity reader: name=exit, class=org.jbpm.bpel.xml.ExitReader[servicegen] 15:54:33,478 DEBUG BpelReader : registered activity reader: name=wait, class=org.jbpm.bpel.xml.WaitReader[servicegen] 15:54:33,478 DEBUG BpelReader : registered activity reader: name=sequence, class=org.jbpm.bpel.xml.SequenceReader[servicegen] 15:54:33,478 DEBUG BpelReader : registered activity reader: name=if, class=org.jbpm.bpel.xml.IfReader[servicegen] 15:54:33,493 DEBUG BpelReader : registered activity reader: name=switch, class=org.jbpm.bpel.xml.SwitchReader[servicegen] 15:54:33,493 DEBUG BpelReader : registered activity reader: name=while, class=org.jbpm.bpel.xml.WhileReader[servicegen] 15:54:33,493 DEBUG BpelReader : registered activity reader: name=repeatUntil, class=org.jbpm.bpel.xml.RepeatUntilReader[servicegen] 15:54:33,493 DEBUG BpelReader : registered activity reader: name=pick, class=org.jbpm.bpel.xml.PickReader[servicegen] 15:54:33,493 DEBUG BpelReader : registered activity reader: name=flow, class=org.jbpm.bpel.xml.FlowReader[servicegen] 15:54:33,509 DEBUG BpelReader : registered activity reader: name=scope, class=org.jbpm.bpel.xml.ScopeReader[servicegen] 15:54:33,509 DEBUG BpelReader : registered activity reader: name=compensate, class=org.jbpm.bpel.xml.CompensateReader[servicegen] 15:54:33,524 DEBUG BpelReader : registered activity reader: name=validate, class=org.jbpm.bpel.xml.ValidateReader[servicegen] 15:54:33,978 INFO BpelReader : read wsdl definitions: hello.wsdl[servicegen] 15:54:33,993 INFO BpelReader : read wsdl definitions: hello.wsdl[servicegen] 15:54:33,993 INFO BpelReader : read wsdl definitions: account.wsdl[servicegen] 15:54:34,024 DEBUG Scope : looking for fault handler with name '{http://schemas.xmlsoap.org/ws/2004/03/business-process/}forcedTermination' and no variable[servicegen] 15:54:34,118 INFO BpelReader : read bpel process: hello.bpel[servicegen] 15:54:34,149 INFO ServiceGenerator : wrote interface definition: locationURI=hello.wsdl, basePath=D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account/target/resources/web/wsdl[servicegen] 15:54:34,165 INFO ServiceGenerator : wrote interface definition: locationURI=account.wsdl, basePath=D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account/target/resources/web/wsdl[servicegen] 15:54:34,181 INFO ServiceGenerator : wrote binding definition: hello-binding-1.wsdl[servicegen] 15:54:34,181 INFO ServiceGenerator : wrote binding definition: hello-binding-2.wsdl[servicegen] 15:54:34,181 INFO ServiceGenerator : wrote service definition: hello-service.wsdlBUILD SUCCESSFULTotal time: 2 secondsD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant generate-artifactsBuildfile: build.xmldetect-wsgenerator:generate-artifacts: [mkdir] Created dir: D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\javasetup-wstools:setup-wscompile: [mkdir] Created dir: D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\classescall-wscompile:[wscompile] command line: wscompile "C:\Program Files\Java\jdk1.5.0_11\jre\bin\java.exe" -Duser.dir=D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account -classpath "D:\jwsdp-1.6\jaxrpc\lib\jaxrpc-api.jar;D:\jwsdp-1.6\jaxrpc\lib\jaxrpc-impl.jar;D:\jwsdp-1.6\jaxrpc\lib\jaxrpc-spi.jar;C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\src\main\resources" com.sun.xml.rpc.tools.wscompile.Main -d D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\classes -features:norpcstructures,wsi,strict -import -keep -mapping D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\resources\web\jaxrpc-mapping.xml -s D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\java -verbose D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\src\main\resources\wscompile.xml[wscompile] [ServiceInterfaceGenerator: creating service interface: org.jbpm.bpel.tutorial.hello.HelloWorldService][wscompile] [CustomClassGenerator: generating JavaClass for: AccountOperation] [delete] Deleting 2 files from D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\java [delete] Deleting 2 files from D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\classesBUILD SUCCESSFULTotal time: 7 secondsD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant deployBuildfile: build.xmlcompile: [javac] Compiling 1 source file to D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\classespack-web: [war] Building war: D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\target\hello.wardeploy: [copy] Copying 1 file to D:\jboss-4.0.5.GA\server\default\deployBUILD SUCCESSFULTotal time: 3 secondsD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountant cleanBuildfile: build.xmlclean: [delete] Deleting directory D:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2account\targetBUILD SUCCESSFULTotal time: 0 secondsD:\develop\eclipse\workspaceBPEL\BPEL_PROJ\examples\hello2accountoutput of JBoss console:------------------------------15:54:54,915 DEBUG [MainDeployer] Undeployed file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:54,915 DEBUG [MainDeployer] Starting deployment of package: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:54,930 DEBUG [MainDeployer] Starting deployment (init step) of package at: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:54,930 DEBUG [MainDeployer] Copying file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war - D:\jboss-4.0.5.GA\server\default\tmp\deploy\tmp52478hello.war15:54:54,930 DEBUG [MainDeployer] using deployer MBeanProxyExt[jboss.web:service=WebServer]15:54:54,946 DEBUG [Tomcat5] Begin init15:54:54,946 DEBUG [Tomcat5] Unpacking war to: D:\jboss-4.0.5.GA\server\default\tmp\deploy\tmp52478hello-exp.war15:54:54,977 DEBUG [Tomcat5] Replaced war with unpacked contents15:54:54,977 DEBUG [Tomcat5] Was unable to delete war file15:54:54,977 DEBUG [Tomcat5] webContext: null15:54:54,977 DEBUG [Tomcat5] warURL: file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/15:54:54,977 DEBUG [Tomcat5] End init15:54:54,977 DEBUG [DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)15:54:54,993 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@10e3293, cl=org.jboss.mx.loading.UnifiedClassLoader3@18a24e9{ url=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/ ,addedOrder=0}15:54:54,993 DEBUG [RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@10e3293, cl=org.jboss.mx.loading.UnifiedClassLoader3@18a24e9{ url=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/ ,addedOrder=0}15:54:54,993 DEBUG [UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@18a24e9{ url=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/ ,addedOrder=0}15:54:54,993 DEBUG [MainDeployer] found 0 subpackages of file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:54,993 DEBUG [MainDeployer] Watching new file: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:55,008 DEBUG [MainDeployer] create step for deployment file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:55,008 DEBUG [Tomcat5] create, hello.war15:54:55,008 DEBUG [ServiceController] Creating service jboss.web.deployment:war=hello.war,id=-134748692315:54:55,008 DEBUG [ServiceController] adding depends in ServiceController.register: []15:54:55,008 DEBUG [WebModule] Creating jboss.web.deployment:war=hello.war,id=-134748692315:54:55,008 DEBUG [WebModule] Created jboss.web.deployment:war=hello.war,id=-134748692315:54:55,008 DEBUG [ServiceController] Creating dependent components for: jboss.web.deployment:war=hello.war,id=-1347486923 dependents are: []15:54:55,024 DEBUG [DeployerInterceptorJSE] create: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:55,024 DEBUG [ServiceEndpointDeployer] create: hello.war15:54:55,024 DEBUG [JAXRPCServerMetaDataBuilder] START buildMetaData: [name=hello.war]15:54:55,024 DEBUG [WSDLDefinitionsFactory] parse: file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello-service.wsdl15:54:55,040 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello-binding-1.wsdl,sysid=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello-binding-1.wsdl]15:54:55,040 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/account.wsdl,sysid=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/account.wsdl]15:54:55,055 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello-binding-2.wsdl,sysid=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello-binding-2.wsdl]15:54:55,055 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello.wsdl,sysid=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/wsdl/hello.wsdl]15:54:55,071 DEBUG [JavaToXSD] Load schema: urn:samples:account=file:/D:/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_urn_samples_account52479.xsd15:54:55,071 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/D:/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_urn_samples_account52479.xsd]15:54:55,133 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null]15:54:55,165 DEBUG [MetaDataBuilder] Replace service endpoint address 'REPLACE_WITH_ACTUAL_URI' with 'http://bez2915c:8080/hello/greeter'15:54:55,165 DEBUG [JAXRPCServerMetaDataBuilder] END buildMetaData:UnifiedMetaData: implementation: jbossws-1.2.0.GA (build=200703021344) deploymentName: hello.war securityDomain: nullServiceMetaData: qname={http://jbpm.org/examples/hello}HelloWorldService refName=null wsdName=Hello World wsdlFile=WEB-INF/wsdl/hello-service.wsdl wsdlLocation=null jaxrpcMapping=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/WEB-INF/jaxrpc-mapping.xml handlerChain=null publishLocation=null securityConfig=null properties=nullTypesMetaData: [complexType={urn:samples:account}AccountOperation,javaType=org.jbpm.bpel.tutorial.hello.AccountOperation]schema targetNamespace='urn:samples:account' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='urn:samples:account' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'ServerEndpointMetaData: type=JAXRPC qname={http://jbpm.org/examples/hello}GreeterPort id=jboss.ws:context=hello,endpoint=greeterServlet address=http://bez2915c:8080/hello/greeter binding=http://schemas.xmlsoap.org/wsdl/soap/http linkName=greeterServlet implName=org.jbpm.bpel.tutorial.hello.Greeter_Impl seiName=org.jbpm.bpel.tutorial.hello.Greeter serviceMode=null portComponentName=GreeterPort contextRoot=/hello urlPattern=/greeter configFile=META-INF/standard-jaxrpc-endpoint-config.xml configName=Standard Endpoint authMethod=null transportGuarantee=null secureWSDLAccess=true properties=nullOperationMetaData: qname={http://jbpm.org/examples/hello}sayHello javaName=sayHello style=rpc/literal oneWay=false soapAction=http://jbpm.org/examples/sayHelloParameterMetaData: xmlName=name partName=name xmlType={http://www.w3.org/2001/XMLSchema}string javaType=java.lang.String mode=IN inHeader=false index=0ReturnMetaData: xmlName=greeting partName=greeting xmlType={http://www.w3.org/2001/XMLSchema}string javaType=java.lang.String mode=OUT inHeader=false index=-1HandlerMetaDataJAXRPC: type=ENDPOINT name=GreeterHandler class=org.jbpm.bpel.integration.server.SoapHandler params=[[name=partnerLinkHandle,value=caller]] headers=[] roles=[] ports=[]15:54:55,258 DEBUG [EndpointMetaData] Create new config [name=Standard Endpoint,file=META-INF/standard-jaxrpc-endpoint-config.xml]15:54:55,258 DEBUG [JBossWSConfigFactory] getConfig: [name=Standard Endpoint,url=META-INF/standard-jaxrpc-endpoint-config.xml]15:54:55,258 DEBUG [JBossWSConfigFactory] parse: file:/D:/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml15:54:55,524 DEBUG [EndpointMetaData] Configure EndpointMetaData15:54:55,524 DEBUG [EndpointMetaData] Added 0 PRE handlers15:54:55,524 DEBUG [EndpointMetaData] Added 1 ENDPOINT handlers15:54:55,524 DEBUG [EndpointMetaData] Added 0 POST handlers15:54:55,524 DEBUG [EndpointMetaData] Configure SOAPBinding15:54:55,540 DEBUG [ServiceEndpointManager] WebService created: jboss.ws:context=hello,endpoint=greeterServlet15:54:55,540 DEBUG [MainDeployer] Done with create step of deploying hello.war15:54:55,540 DEBUG [MainDeployer] Begin deployment start file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:55,540 DEBUG [ServiceController] starting service jboss.web.deployment:war=hello.war,id=-134748692315:54:55,555 DEBUG [WebModule] Starting jboss.web.deployment:war=hello.war,id=-134748692315:54:55,555 DEBUG [TomcatDeployer] webContext: null15:54:55,555 DEBUG [TomcatDeployer] warURL: file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/15:54:55,555 DEBUG [TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser@e6619b15:54:55,555 DEBUG [WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}15:54:55,587 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deploy/tmp52478hello-exp.war/15:54:55,587 DEBUG [TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin15:54:55,587 DEBUG [TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@1120aa615:54:55,602 DEBUG [TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@18a24e9{ url=file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/ ,addedOrder=66}15:54:55,602 DEBUG [TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoader@5d17315:54:55,602 DEBUG [TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@92e78c15:54:55,602 DEBUG [TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@9fbe9315:54:55,602 DEBUG [TomcatDeployer] Bound java:comp/ORB15:54:55,602 DEBUG [TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction15:54:55,602 DEBUG [TomcatDeployer] addEnvEntries15:54:55,602 DEBUG [TomcatDeployer] linkResourceEnvRefs15:54:55,602 DEBUG [TomcatDeployer] linkResourceRefs15:54:55,602 DEBUG [TomcatDeployer] linkMessageDestinationRefs15:54:55,618 DEBUG [TomcatDeployer] linkEjbRefs15:54:55,618 DEBUG [TomcatDeployer] linkEjbLocalRefs15:54:55,618 DEBUG [TomcatDeployer] linkServiceRefs15:54:55,618 DEBUG [TomcatDeployer] linkSecurityDomain15:54:55,618 DEBUG [TomcatDeployer] No security-domain given, using default: java:/jaas/other15:54:55,618 DEBUG [TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other15:54:55,618 DEBUG [TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End15:54:55,649 DEBUG [TomcatDeployer] Using session cookies default setting15:54:55,712 DEBUG [LocalEntityResolver] system id 'http://jbpm.org/bpel/bpel_application_1_0.xsd' maps to resource: bpel_application_1_0.xsd15:54:55,712 DEBUG [JmsIntegrationServiceFactory] creating integration control:processDefinition=BpelDefinition(HelloWorld)15:54:55,727 DEBUG [IntegrationControl] could not retrieve jms context, fallingback to initial context15:54:55,727 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.def.CompositeActivity - this operation breaks ==15:54:55,743 DEBUG [IntegrationControl] could not retrieve jms context, fallingback to initial context15:54:55,743 DEBUG [IntegrationControl] jms connection factory not found: IntegrationConnectionFactory15:54:55,743 DEBUG [IntegrationControl] falling back to default from integration service factory15:54:55,743 DEBUG [StartListener] opened start listener: process=BpelDefinition(HelloWorld)#46, receiver=org.jbpm.bpel.integration.def.Receiver@c011fe[partnerLink=caller,operation=sayHello,messageExchange=,activity=Receive(receiveInput),id=53]15:54:55,758 INFO [IntegrationConfigurator] Message reception enabled for process: HelloWorld15:54:55,774 DEBUG [ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5'15:54:55,790 DEBUG [TomcatDeployer] Initialized: {WebApplication: /D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/, URL: file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp52478hello-exp.war/, classLoader: java.net.FactoryURLClassLoader@1120aa6:17959590} jboss.web:j2eeType=WebModule,name=//localhost/hello,J2EEApplication=none,J2EEServer=none15:54:55,790 DEBUG [WebModule] Started jboss.web.deployment:war=hello.war,id=-134748692315:54:55,790 DEBUG [ServiceController] Starting dependent components for: jboss.web.deployment:war=hello.war,id=-1347486923 dependent components: []15:54:55,805 DEBUG [DeployerInterceptorJSE] start: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:54:55,805 DEBUG [ServiceEndpointDeployer] start: hello.war15:54:55,805 DEBUG [WSDLFilePublisher] Publish WSDL file: WEB-INF/wsdl/hello-service.wsdl15:54:55,805 INFO [WSDLFilePublisher] WSDL published to: file:/D:/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/hello-service.wsdl15:54:55,821 DEBUG [WSDLFilePublisher] WSDL import published to: file:/D:/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/hello-binding-1.wsdl15:54:55,821 DEBUG [WSDLFilePublisher] WSDL import published to: file:/D:/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/account.wsdl15:54:55,821 DEBUG [WSDLFilePublisher] WSDL import published to: file:/D:/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/hello-binding-2.wsdl15:54:55,821 DEBUG [WSDLFilePublisher] WSDL import published to: file:/D:/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/hello.wsdl15:54:55,837 DEBUG [UnifiedMetaData] Eagerly initialize the meta data model15:54:55,837 DEBUG [OperationMetaData] Found best matching java method: public abstract java.lang.String org.jbpm.bpel.tutorial.hello.Greeter.sayHello(java.lang.String) throws java.rmi.RemoteException15:54:55,837 INFO [ServiceEndpointManager] WebService started: http://bez2915c:8080/hello/greeter15:54:55,852 DEBUG [MainDeployer] End deployment start on package: hello.war15:54:55,852 DEBUG [MainDeployer] Deployed package: file:/D:/jboss-4.0.5.GA/server/default/deploy/hello.war15:55:25,773 DEBUG [ServiceEndpoint] WSDL request, using host: bez2915c15:55:25,773 ERROR [AbstractServiceEndpointServlet] Error processing web service requestjava.net.MalformedURLException: no protocol: REPLACE_WITH_ACTUAL_URI at java.net.URL.(URL.java:567) at java.net.URL.(URL.java:464) at java.net.URL.(URL.java:413) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:159) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) at org.jboss.ws.core.server.WSDLRequestHandler.getDocumentForPath(WSDLRequestHandler.java:95) at org.jboss.ws.core.server.ServiceEndpoint.handleWSDLRequest(ServiceEndpoint.java:149) at org.jboss.ws.core.server.ServiceEndpointManager.processWSDLRequest(ServiceEndpointManager.java:392) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doGet(AbstractServiceEndpointServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)15:55:25,773 ERROR [[greeterServlet]] Servlet.service() for servlet greeterServlet threw exceptionjava.net.MalformedURLException: no protocol: REPLACE_WITH_ACTUAL_URI at java.net.URL.(URL.java:567) at java.net.URL.(URL.java:464) at java.net.URL.(URL.java:413) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:159) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) at org.jboss.ws.core.server.WSDLRequestHandler.modifyAddressReferences(WSDLRequestHandler.java:183) at org.jboss.ws.core.server.WSDLRequestHandler.getDocumentForPath(WSDLRequestHandler.java:95) at org.jboss.ws.core.server.ServiceEndpoint.handleWSDLRequest(ServiceEndpoint.java:149) at org.jboss.ws.core.server.ServiceEndpointManager.processWSDLRequest(ServiceEndpointManager.java:392) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doGet(AbstractServiceEndpointServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)Does anyone have a clue of what might be the problem?[url][list=][/url]

    DB:2.67:Use Of Partnerlinks In Bpel Process Gives Javax.Servlet.Serv c8


    After days of looking at this problem, i found the solution:I mentioned 2 roles in the partner link, andyou should only mention the partner role.

  • RELEVANCY SCORE 2.67

    DB:2.67:Providing Web Services ps



    Hi,

    We have an RMI application that needs to be modified to support Web Services.
    RMI application had a huge class with about 20 different remote methods. Each
    method represented a service in the RMI application. We are thinking of building
    stateless session beans with these 20 different methods as remote methods and
    generating WSDL using servicegen Ant task. If we use a single SLSB, we will end
    up building a huge EJB classes. At the same time, we don't want to build 20 different
    SLSB's. What would be the best approach?

    Any help is appreciated.

    viju

    DB:2.67:Providing Web Services ps

    Hello,

    Limited experience speaking :-) however I would not make the size of the
    classes a major decision factor since modern JVMs such as jRockit [1]
    can work big magic in terms of optimization.

    You might post your question in the EJB [2] newsgroup for their input.

    Regards,
    Bruce

    [1]
    http://www.bea.com/framework.jsp?CNT=index.htmFP=/content/products/jrockit
    [2]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xovergroup=weblogic.developer.interest.ejb

    Vijay Dhillon wrote:

    Hi,

    We have an RMI application that needs to be modified to support Web Services.
    RMI application had a huge class with about 20 different remote methods. Each
    method represented a service in the RMI application. We are thinking of building
    stateless session beans with these 20 different methods as remote methods and
    generating WSDL using servicegen Ant task. If we use a single SLSB, we will end
    up building a huge EJB classes. At the same time, we don't want to build 20 different
    SLSB's. What would be the best approach?

    Any help is appreciated.

    viju

  • RELEVANCY SCORE 2.66

    DB:2.66:Mergewithexistingws s8



    Hello,

    I'm trying to use the mergeWithExistingWS attribute of servicegen and I get the
    following error.

    The servicegen task doesn't support the "mergewithexistingws"

    I've seen from a previous post that this functionality was not part of WL 8 sp1
    release. Does anybody know if it (CR108646) made it to the sp2 release.

    thanks, michael

    DB:2.66:Mergewithexistingws s8

    Hi Michael,

    This has been resolved with WLS 8.1 SP2 [1]

    Thanks,
    Bruce

    [1]
    http://e-docs.bea.com/wls/docs81/notes/resolved.html

    michael wrote:

    Hello,

    I'm trying to use the mergeWithExistingWS attribute of servicegen and I get the
    following error.

    The servicegen task doesn't support the "mergewithexistingws"

    I've seen from a previous post that this functionality was not part of WL 8 sp1
    release. Does anybody know if it (CR108646) made it to the sp2 release.

    thanks, michael

  • RELEVANCY SCORE 2.66

    DB:2.66:Servicegen- Any What To Find What Class Uses A Class? ff



    I'm trying to use the servicegen ant task to make a webservice out of an existing
    Java class. Servicegen is failing, however, with the complaint that something
    is using the PrintWriter class which has no default constructor and, hence, can't
    be made serializable.

    Looking though my code, however, I could only find two places where a System.out.println()
    was used and no other obvious cases of a PrintWriter instance. I've removed both
    of the println() calls and recompiled, but still get the same error from servicegen.

    Unfortunately, the only diagnostic output I can see is the stacktrace from ant
    itself which isn't very helpful. So, I was wondering, does anyone know how I could
    figure out where this PrintWriter class is coming from?

    Thanks...
    John

    --
    John Ruschmeyer
    Viecore FSD

    jruschmeyer@viecorefsd.com

    DB:2.66:Servicegen- Any What To Find What Class Uses A Class? ff

    Hi John,

    You can try adding -v to the ant task, it may provide additional
    information. Concerning servicegen, be sure to remove the ".class" from
    yourjavaClassComponents, e.g. just use the class name without the
    ".class"

    What version of WLS?
    Thanks,
    Bruce

    John Ruschmeyer wrote:

    I'm trying to use the servicegen ant task to make a webservice out of an existing
    Java class. Servicegen is failing, however, with the complaint that something
    is using the PrintWriter class which has no default constructor and, hence, can't
    be made serializable.

    Looking though my code, however, I could only find two places where a System.out.println()
    was used and no other obvious cases of a PrintWriter instance. I've removed both
    of the println() calls and recompiled, but still get the same error from servicegen.

    Unfortunately, the only diagnostic output I can see is the stacktrace from ant
    itself which isn't very helpful. So, I was wondering, does anyone know how I could
    figure out where this PrintWriter class is coming from?

    Thanks...
    John

    --
    John Ruschmeyer
    Viecore FSD

    jruschmeyer@viecorefsd.com

  • RELEVANCY SCORE 2.66

    DB:2.66:Wls 8.1: Servicegen + Mergewithexistingws jp



    Hello,

    I am building Web Services in Weblogic 8.1 using ant tasks. When I use the
    servicegen ant task by default it generates a webApp. I have to publish some ejbs
    located in different jar files as web services. I would like to have only one
    webApp to publish all web services instead of one webApp per ejb. I used the "mergeWithExistingWS"
    option of the servicegen ant task and I got the following error message:

    BUILD FAILED

    file:/test/build.xml:471: The servicegen task doesn't support the "mergewithexistingws"
    attribute.

    What's wrong?

    P.S: I am using exploded directories for ears and wars.

    build.xml
    ------------

    target name="webServiceEJB"
    servicegen
    destEar="/test/webServiceEar"
    warName="webServiceEJBWar"
    mergeWithExistingWS="True"
    service
    ejbJar="/test/HelloEJB"
    targetNamespace="http://www.testing.com/HelloEJB/sayHello"
    serviceName="sayHello"
    serviceURI="/sayHello"
    generateTypes="True"
    expandMethods="True"
    client
    packageName="wsclient"
    clientJarName="HelloEJB_client.jar"
    /
    /service
    classpath
    pathelement path="/bea/weblogic810/server/lib/webserviceclient.jar"/
    pathelement path="/aplic/oscar/exe/saludaEJBWS"/
    /classpath
    /servicegen
    /target

    Thanks in advance for your help,
    Oscar

    DB:2.66:Wls 8.1: Servicegen + Mergewithexistingws jp

    Hi Oscar,

    This is a known issue. It was found in internal testing. Unfoutunally it
    didn't make the sp1 release, please contact support to get a patch (refer
    CR108646)

    Thanks,

    -Neal

    "Oscar" oscar_guadilla@hotmail.com wrote in message
    news:3f0a799a$1@newsgroups.bea.com...

    Hello,

    I am building Web Services in Weblogic 8.1 using ant tasks. When I usethe
    servicegen ant task by default it generates a webApp. I have to publishsome ejbs
    located in different jar files as web services. I would like to have onlyone
    webApp to publish all web services instead of one webApp per ejb. I usedthe "mergeWithExistingWS"
    option of the servicegen ant task and I got the following error message:

    BUILD FAILED

    file:/test/build.xml:471: The servicegen task doesn't support the"mergewithexistingws"
    attribute.

    What's wrong?

    P.S: I am using exploded directories for ears and wars.

    build.xml
    ------------

    target name="webServiceEJB"
    servicegen
    destEar="/test/webServiceEar"
    warName="webServiceEJBWar"
    mergeWithExistingWS="True"
    service
    ejbJar="/test/HelloEJB"
    targetNamespace="http://www.testing.com/HelloEJB/sayHello"
    serviceName="sayHello"
    serviceURI="/sayHello"
    generateTypes="True"
    expandMethods="True"
    client
    packageName="wsclient"
    clientJarName="HelloEJB_client.jar"
    /
    /service
    classpath
    pathelementpath="/bea/weblogic810/server/lib/webserviceclient.jar"/
    pathelement path="/aplic/oscar/exe/saludaEJBWS"/
    /classpath
    /servicegen
    /target

    Thanks in advance for your help,
    Oscar

  • RELEVANCY SCORE 2.66

    DB:2.66:Question On Servicegen, Soap Handler 81



    Hi All,

    I am using servicegen task to generate web-services.xml file, the point is I do
    NOT have direct access to edit the web-services.xml file. In other words our build
    process is very tightly controlled by so-called higher-ups.

    I am using WLS 7.0 sp2.

    The servicegen ant task as per BEA Docs, does not have sub-element for handlerChain
    the way it is in 8.1 WLS.

    When I go through the BEA Docs for WLS 7.0, it is clear that web-services.xml
    must be manually edited to incorporate the handler-chain info into web-services.xml
    and servicegen does not automatically included it into web-services.xml

    Is is my understanding correct.

    In case I am wrong, does someone has a sample build.xml file that show how to
    include handlerChain into servicegen task.

    Thanks for the help
    ---Radhe

    DB:2.66:Question On Servicegen, Soap Handler 81

    Hi Radhe,

    You are right, this was a feature that was added to servicegen in WLS
    8.1

    Regards,
    Bruce

    Radhe wrote:

    Hi All,

    I am using servicegen task to generate web-services.xml file, the point is I do
    NOT have direct access to edit the web-services.xml file. In other words our build
    process is very tightly controlled by so-called higher-ups.

    I am using WLS 7.0 sp2.

    The servicegen ant task as per BEA Docs, does not have sub-element for handlerChain
    the way it is in 8.1 WLS.

    When I go through the BEA Docs for WLS 7.0, it is clear that web-services.xml
    must be manually edited to incorporate the handler-chain info into web-services.xml
    and servicegen does not automatically included it into web-services.xml

    Is is my understanding correct.

    In case I am wrong, does someone has a sample build.xml file that show how to
    include handlerChain into servicegen task.

    Thanks for the help
    ---Radhe

  • RELEVANCY SCORE 2.66

    DB:2.66:How To Specify Application.Xml Elements Using Servicegen? mf



    When you use the servicegen ant task to generate the server-side SOAP implementation,
    it places the ejb.jar etc in an ear.

    However, in doing so, it also creates an application.xml file which does not have
    any application settings (apart from the ejb, war and context URI).

    I need to specify entity cache settings, jdbc pool settings, role-names, etc etc.

    Now, if I pre-create the ear that I want, then servicegen manages to keep the contents
    of the ear (supporting jars, properties files etc)(I set overwrite="False" in the
    servicegen task). However, my application.xml file is always overwritten.

    Is there a different approach I have missed so far?

    Cheers,
    Nick

    DB:2.66:How To Specify Application.Xml Elements Using Servicegen? mf

    Matt wrote:
    It is not fixed in SP1. Servicegen adds another entry in application.xml for the ejb which you are generating the web service.Sorry, I couldn't find the beginning of this thread. I just encountered
    an issue where the application.xml generated by servicegen contains 4
    references to the same ejb.jar that contains the session bean
    implementations. Is this the same issue?

    So, in my build.xml I have something like:

    servicegen
    service
    service
    service
    service
    /servicegen

    I have one jar file containing the session beans which are implementing
    the web services. The output is a single ear file. I am using Weblogic
    7sp2. I could have sworn this used to work when I used 7sp1.

  • RELEVANCY SCORE 2.65

    DB:2.65:Passing Parameters To Workflow Methods jf


    I have created a Java workflow method and I am assigning it to an Auto-Activity. The Java workflow method has a Main function. I would like to pass command line arguments e.g. username, password, workitem id other package details to the "Main" function in the method from the workflow. How do I do that?PS. Which manual in the documentation sheds light on this kind of problem?Thanks a lot in advanceAmmar

  • RELEVANCY SCORE 2.65

    DB:2.65:Ant Task Servicegen Error 3j


    Hi All,

    I am using weblogic 8.1 to deploy webservices. I am getting following error when i try to run ant task.
    Anyone have any idea about this error. I have seen somewhere that it might be classpath error but i have both weblogic.jar and webservice.jar in my classpath.

    Thanks for any help
    Nikitha

    [servicegen] Generating service "ConfigService" ...
    [servicegen] The system is out of resources.
    [servicegen] Consult the following stack trace for details.
    [servicegen] java.lang.OutOfMemoryError
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
    [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:570)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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] ... 12 more
    [servicegen] --- Nested Exception ---
    [servicegen] java.io.IOException: Compiler failed executable.exec
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:564)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java

    DB:2.65:Ant Task Servicegen Error 3j

    Hi All,

    I am using weblogic 8.1 to deploy webservices. I am getting following error when i try to run ant task.
    Anyone have any idea about this error. I have seen somewhere that it might be classpath error but i have both weblogic.jar and webservice.jar in my classpath.

    Thanks for any help
    Nikitha

    [servicegen] Generating service "ConfigService" ...
    [servicegen] The system is out of resources.
    [servicegen] Consult the following stack trace for details.
    [servicegen] java.lang.OutOfMemoryError
    [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:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
    [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:570)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [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] ... 12 more
    [servicegen] --- Nested Exception ---
    [servicegen] java.io.IOException: Compiler failed executable.exec
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:564)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java

  • RELEVANCY SCORE 2.65

    DB:2.65:Webservices: Excluding Some Methods Of Ejb cs


    Hello,

    I am using WLS 8.1sp4 and currently generating the Webservices for our stateless session EJBs using servicegen and clientgen ant tasks.

    We have a requirement for not exposing certain methods of the EJBs as webservice operations.

    I couldn't find a way to do that using servicegen. Have anyone done that using servicegen ?

    I did see the source2wsdd task uses the javadoc tag wlsexclude (not the exact tag name but something similar) in the EJB code to exclude the method.

    I do not want to modify the EJB code to add this tag so I was wondering if there is way in any of the weblogic Ant tasks to do that.

    Thanks,
    Kannan

    DB:2.65:Webservices: Excluding Some Methods Of Ejb cs

    Hello Anil,

    I have read and understood both of those options. But what I am looking for is even more fine-grained.

    For a specific EJB or for all the EJBs in a ejb jar file, I would like to exclude certain methods. I already use the excludeEjb option as part of my service task. The expandMethods doesn't solve my problem.

    Just for comparison, the Apache Axis java2wsdl task has such an attribute (-methods, -exclude) that can be used to include or exclude methods from the generated WSDL.

    Thanks for your reply though.

    Kannan

  • RELEVANCY SCORE 2.65

    DB:2.65:9.0 Runtime Compatibility For 8.1 Style Web Services 8a


    In testing a migration to WebLogic 9.0 I am attempting to use the compatibility mode for running the 8.1 style web services within 9.0 (per the one nugget of documentation that says this is supported). Number of reasons, upgrading to 9.0 style not an option.

    1. Is this supported?

    2. Has anyone made it work?

    I don't get a deployment error when I deploy my ear, but the service is not available at the URL it works with on 8.1. Receive a 404 -- not found.

    Compiling all of application with WL 9.0 and Java 5, just defining servicegen/clientgen ant tasks to use WL 8.1. All other deployment the same.

    DB:2.65:9.0 Runtime Compatibility For 8.1 Style Web Services 8a

    In testing a migration to WebLogic 9.0 I am attempting to use the compatibility mode for running the 8.1 style web services within 9.0 (per the one nugget of documentation that says this is supported). Number of reasons, upgrading to 9.0 style not an option.

    1. Is this supported?

    2. Has anyone made it work?

    I don't get a deployment error when I deploy my ear, but the service is not available at the URL it works with on 8.1. Receive a 404 -- not found.

    Compiling all of application with WL 9.0 and Java 5, just defining servicegen/clientgen ant tasks to use WL 8.1. All other deployment the same.

  • RELEVANCY SCORE 2.64

    DB:2.64:Servicegen Ant Task Not Including Dependent Classes zm


    I am trying to follow the java class example and writing my own webservice using Java classes. The servicegen ant task seems to be executing and creating the ear file which includes my implementation class as well as the non-built in types and some holder classes that seems to have been created. But, I don't see any of the other classes that my webservice implementing class instantiates or calls methods from. What could be wrong? How do I get these other classes included in the war file.

    I am using weblogic server 8.1 with Java 1.4

    Thanks.

    DB:2.64:Servicegen Ant Task Not Including Dependent Classes zm

    I am trying to follow the java class example and writing my own webservice using Java classes. The servicegen ant task seems to be executing and creating the ear file which includes my implementation class as well as the non-built in types and some holder classes that seems to have been created. But, I don't see any of the other classes that my webservice implementing class instantiates or calls methods from. What could be wrong? How do I get these other classes included in the war file.

    I am using weblogic server 8.1 with Java 1.4

    Thanks.

  • RELEVANCY SCORE 2.64

    DB:2.64:Servicegen Error: Jdk5? 7x


    I'm using WLS 8.1 sp4 and I'm trying to use the servicegen ant task to create a webservice from a session bean. The problem seems to be with the parameter to my EJB method, if I use a string array, all is fine, if I try to use a hashmap, I get the following error:
    [servicegen] weblogic.xml.schema.binding.BindingException: No default constructor was found for class java.util.AbstractMap loaded from file:/C:/Installations/bea/jdk142_05/jre/lib/rt.jar!/java/util/AbstractMap.class. All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor - with nested exception:
    [servicegen] [java.lang.NoSuchMethodException: java.util.AbstractMap.init()]
    Now from the form it looks almost like its looking for the JDK 5 version of hashmap, but I'm not using it, and was wondering if there was some way of resolving this?
    tia
    Mike

    DB:2.64:Servicegen Error: Jdk5? 7x

    I am also stuck with same problem.

    Any clues will be very useful.

  • RELEVANCY SCORE 2.64

    DB:2.64:Inconsistency In Jar And War File Classes Inside Ear File s9


    I generate a ear using servicegen tag of ant. I have a jar file and a war file in the ear. The class files of the same object are different in jar and war file, though the war file is generated by using the servicegen tag of the ant script.

    Can anybody tell me why did it happen?and how can I resolve the same?

    I am using weblogic 8.1.4.

    Thanks,
    Nitin

    DB:2.64:Inconsistency In Jar And War File Classes Inside Ear File s9

    I generate a ear using servicegen tag of ant. I have a jar file and a war file in the ear. The class files of the same object are different in jar and war file, though the war file is generated by using the servicegen tag of the ant script.

    Can anybody tell me why did it happen?and how can I resolve the same?

    I am using weblogic 8.1.4.

    Thanks,
    Nitin

  • RELEVANCY SCORE 2.63

    DB:2.63:Javax.Naming.Namenotfoundexception -- Webservice/Ejb 8m


    Hi,

    I'm trying to expose one stateless session EJB in an application as a web service. The stateless session EJB calls another Stateless session EJB to return the values. I was able to create the web service, deploy it and call the exposed service using a client. However, when the first EJB tries to get a reference to the second EJB, it is throwing the NameNotFoundException. The reason it is doing it is because the first EJB is trying to find the reference in the 'ejb-link.jar#firstEJBName' defined in web-services.xml instead of 'ejb-link.jar'.

    Is there any way I can make the first EJB (exposed EJB) to look for the home reference of the second one in 'ejb-link.jar'

    BTW, when I use a servlet (instead of the webservice client) to call the first ejb, everything works fine.

    BTW, I'm using Weblogic 7.

    Here are more details:

    My Servicegen build task is:

    target name="sg" description="creates webservice out of ejb jar"
    servicegen
    destEar="abcd_e.ear"
    warName="abcd_e_war.war"
    contextURI="abcdWar"
    service
    ejbJar="C:\abcd\abcd_ejb.jar\"
    excludeEJBs="Resource"
    targetNamespace="http://localhost/mselms"
    serviceName="SearchService"
    serviceURI="/SearchService"
    generateTypes="True"
    expandMethods="True"

    client
    packageName="abcd.impl"
    clientJarName="SearchService_client.jar"
    /
    /service
    /servicegen
    /target

    The Error msg I'm getting:

    javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/Resource in /app/ejb/abcd_ejb.jar#SearchCourse.; remaining name 'comp/env/ejb/Resource

    As you can see in the error msg above, SearchCourse is the exposed EJB. SearchCourse calls a method from Resource EJB. SearchCourse is trying to find a reference to the Resource EJB in 'abcd_ejb.jar#SearchCourse' instead of 'abcd_ejb.jar'.

    Any help will be highly appreciated.

    DB:2.63:Javax.Naming.Namenotfoundexception -- Webservice/Ejb 8m

    Hi,
    Did you manage to solve this problem? Because I am getting the same problem.

    Rgds
    Gary

  • RELEVANCY SCORE 2.63

    DB:2.63:Imx6 Vpuenc Plugin (Gstreamer) Documentation z8



    I need help to understand the parameters for this plugin, what is the behavior when some of the param are set:

    1. force-framerate : If this is set true, and bitrate is fixed, would it drop bitrate when running behind, or would it drop frames?

    2. seqheader-method : appreciate explanation of what auto does, and each of the options.

    3. timestamp-method : what is GST_CLOCK_TIME_NONE? No GST clock?

    Thanks,

    Norman

    DB:2.63:Imx6 Vpuenc Plugin (Gstreamer) Documentation z8


    Yes, I too would be very interested in documentation for the vpuenc plug-in!

    I wonder why Freescale are so reluctant to supply documentation for this important function?

    Phil

  • RELEVANCY SCORE 2.63

    DB:2.63:Ant Servicegen And Clientgen Error Message About Jikes 13


    When I run the ant servicegen or clientgen tasks, I get the following message printed on the console:

    [servicegen] Generating service "InventoryAvailabilityService" ...
    Unknown compiler jikes, will use javac
    [clientgen] Generating client jar for inventory_services_app.ear ...
    Unknown compiler jikes, will use javac

    I am using WLS 8.1 SP3. My java code is being compiled with jikes version 1.19. Both jikes and javac are available in the windows PATH setting.

    What do I need to do to make it use jikes instead of javac as the rest of my code is being compiled with jikes ?

    Thanks.

    Message was edited by:
    beasukumar

    Message was edited by:
    beasukumar

    DB:2.63:Ant Servicegen And Clientgen Error Message About Jikes 13

    When I run the ant servicegen or clientgen tasks, I get the following message printed on the console:

    [servicegen] Generating service "InventoryAvailabilityService" ...
    Unknown compiler jikes, will use javac
    [clientgen] Generating client jar for inventory_services_app.ear ...
    Unknown compiler jikes, will use javac

    I am using WLS 8.1 SP3. My java code is being compiled with jikes version 1.19. Both jikes and javac are available in the windows PATH setting.

    What do I need to do to make it use jikes instead of javac as the rest of my code is being compiled with jikes ?

    Thanks.

    Message was edited by:
    beasukumar

    Message was edited by:
    beasukumar

  • RELEVANCY SCORE 2.63

    DB:2.63:D2 External Widget D2_Action_Import_From_Url f8



    Hello,

    I'm developing an external widget in order to import content to the repository.

    I use the D2OpenAjaxHub API to connect to the hub and then send a message through the D2_ACTION_IMPORT_FROM_URL method.

    The documentation is not enough explicite concerning the format of the expected parameters.

    Parameters:
    oam_value - Fileurl - Import UrlsisModel - true to make modal

    Does anyone already use this method ?

    I tried so many format without success...

    Many thanks,

    Denis.

    DB:2.63:D2 External Widget D2_Action_Import_From_Url f8


    Hi Denis,

    Any solution you got for above requirement. We are trying a similar solution. Please help if you could.

    Thanks and Regards

    Vivek

  • RELEVANCY SCORE 2.62

    DB:2.62:Xml Bulk Load Question dj


    Is it possible to execute SQLXMLBulkLoad directly in a stored procedure, similar to Bulk Insert?  The documentation says of the Execute method that it Bulk loads the data by using the schema file and data file (or stream) that are provided as parameters. but never really describes what those parameters are.

    DB:2.62:Xml Bulk Load Question dj

    If you want to use the SQLXMLBulkload object to parse a file, then you may be able to run it inside a SQLCLR stored proc. But note that you will have to have access to the schema and data files.
    Best regardsMichael

  • RELEVANCY SCORE 2.62

    DB:2.62:Ant Taskdef 'Servicegen' 93


    I am trying to compile the webservice samples on Weblogic Platform 8.1. I am using
    ant (apache-ant-1.6.1) to comiple the samples. I have included webservices.jar
    file from lib dir of weblogic. When I am compiling I am getting the following
    error.

    Has anybody seen this error before? Can you please help me here. To me it looks
    "servicegen" task is defined in webservices.jar file. But it still doesn't work.

    Please help.
    Thanka a lot.
    Naresh

    Could not create task or type of type: servicegen.

    Ant could not find the task or a class this task relies upon.

    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'servicegen'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and optional.jar is absent
    Fix: look for optional.jar in ANT_HOME/lib, download if needed
    - The task was not built into optional.jar as dependent
    libraries were not found at build time.
    Fix: look in the JAR to verify, then rebuild with the needed
    libraries, or download a release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using taskdef.

    DB:2.62:Ant Taskdef 'Servicegen' 93

    I am trying to compile the webservice samples on Weblogic Platform 8.1. I am using
    ant (apache-ant-1.6.1) to comiple the samples. I have included webservices.jar
    file from lib dir of weblogic. When I am compiling I am getting the following
    error.

    Has anybody seen this error before? Can you please help me here. To me it looks
    "servicegen" task is defined in webservices.jar file. But it still doesn't work.

    Please help.
    Thanka a lot.
    Naresh

    Could not create task or type of type: servicegen.

    Ant could not find the task or a class this task relies upon.

    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'servicegen'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and optional.jar is absent
    Fix: look for optional.jar in ANT_HOME/lib, download if needed
    - The task was not built into optional.jar as dependent
    libraries were not found at build time.
    Fix: look in the JAR to verify, then rebuild with the needed
    libraries, or download a release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using taskdef.

  • RELEVANCY SCORE 2.61

    DB:2.61:Servicegen Generated Parameter Names Do Not Match Wsdl a3


    Given a WSDL we must implement the service, however in using Servicegen, it is generating method parameter names of the same name as the class of the parameter - with the first letter in lower case, e.g. if the classname is SomeFoobar, the parameter name generated will be someFoobar. However the WSDL supplied has a different parameter name. This mismatch causes the WebLogic generated WSDL to have the generated names and we are getting error:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Found SOAPElement [foobar href="#id0"
    /foobar]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement. The name of the element should be one of these[someFoobar].

    In the same way, my 'int status' becomes 'name="intVal"', losing important usage information in the generated WSDL.

    If I hand-edit the web-services.xml to update the methods' parameter names to what is listed in the WSDL, then I get no exception. Problem is, I need to automate the build.

    Anybody know how to fix or get around this problem?

    WebLogic 8.1

    DB:2.61:Servicegen Generated Parameter Names Do Not Match Wsdl a3

    Given a WSDL we must implement the service, however in using Servicegen, it is generating method parameter names of the same name as the class of the parameter - with the first letter in lower case, e.g. if the classname is SomeFoobar, the parameter name generated will be someFoobar. However the WSDL supplied has a different parameter name. This mismatch causes the WebLogic generated WSDL to have the generated names and we are getting error:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Found SOAPElement [foobar href="#id0"
    /foobar]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement. The name of the element should be one of these[someFoobar].

    In the same way, my 'int status' becomes 'name="intVal"', losing important usage information in the generated WSDL.

    If I hand-edit the web-services.xml to update the methods' parameter names to what is listed in the WSDL, then I get no exception. Problem is, I need to automate the build.

    Anybody know how to fix or get around this problem?

    WebLogic 8.1

  • RELEVANCY SCORE 2.61

    DB:2.61:Animation Keydown Help 3p



    As you can see from the documentation, GetKeyDown does not inherit any values, such as GetKeyDown.F. It is a method, and it has to be passed parameters as the following link shows you:


    http://unity3d.com/support/documentation/ScriptReference/Input.GetKeyDown.html


    You can either pass in a string value, which is set in


    Edit = Project Settings = Input


    or you can pass in a KeyCode stated from the documentation as well:


    http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=keycode


    So with that said, you have one of two options:

    Input.GetKeyDown(Fire1), Input.GetKeyDown(Fire2), etc.



    or

    Input.GetKeyDown(KeyCode.F);



    Obviously, you'll most likely want to use the second override.

    DB:2.61:Animation Keydown Help 3p


    As you can see from the documentation, GetKeyDown does not inherit any values, such as GetKeyDown.F. It is a method, and it has to be passed parameters as the following link shows you:


    http://unity3d.com/support/documentation/ScriptReference/Input.GetKeyDown.html


    You can either pass in a string value, which is set in


    Edit = Project Settings = Input


    or you can pass in a KeyCode stated from the documentation as well:


    http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=keycode


    So with that said, you have one of two options:

    Input.GetKeyDown(Fire1), Input.GetKeyDown(Fire2), etc.



    or

    Input.GetKeyDown(KeyCode.F);



    Obviously, you'll most likely want to use the second override.

  • RELEVANCY SCORE 2.61

    DB:2.61:Ear Deployment Order (With Servicegen Task Question) mc


    I ran into this issue while working with the servicegen task. I'm
    cross-posting since it may be a general application deployment issue.

    I have my EAR modules defined in application.xml in this order:

    module: commonEJB
    module: webapp
    module: connector

    The web service is generated by servicegen and merges into the
    application xml. The web service is implemented by an EJB in the
    commonEJB module. The file becomes:

    module: webserviceWebApp
    module: commonEJB
    module: webapp
    module: connector

    However, when I try to deploy the EAR, I get the message:

    BEA-149003 Unable to access application source information in
    /build/app.ear for application app. The specific error is:
    [J2EE:160034]Module commonEJB not Found in path /build/app.ear..

    The module is definitely in there.

    I was able to workaround the issue by putting module: commonEJB before
    module: webserviceWebApp in the application.xml file.

    When I read the J2EE spec, J2EE.8.3.2 number 2, it says that on
    deployment, the server is supposed to open each of the modules
    deployment descriptors and read them. It seems like this implies the
    server should know that a module is in the EAR, and not have the
    ordering problem I'm having here.

    Am I doing something wrong? Or, is there a way to tell servicegen to put
    the module at the bottom of the file instead of the top? Or, do I have
    to continue to manually swap the order of modules?

    Thanks

    DB:2.61:Ear Deployment Order (With Servicegen Task Question) mc

    Hi Steven,

    That sounds like a bug. I would suggest that open a dialog with our
    support group. [1] It would be helpful if you could provide a simple
    test case. Sounds like the workaround is cumbersome but valid for the
    present.

    Regards,
    Bruce

    [1]
    http://support.bea.com
    support@bea.com

    Steven Ostrowski wrote:

    I ran into this issue while working with the servicegen task. I'm
    cross-posting since it may be a general application deployment issue.

    I have my EAR modules defined in application.xml in this order:

    module: commonEJB
    module: webapp
    module: connector

    The web service is generated by servicegen and merges into the
    application xml. The web service is implemented by an EJB in the
    commonEJB module. The file becomes:

    module: webserviceWebApp
    module: commonEJB
    module: webapp
    module: connector

    However, when I try to deploy the EAR, I get the message:

    BEA-149003 Unable to access application source information in
    /build/app.ear for application app. The specific error is:
    [J2EE:160034]Module commonEJB not Found in path /build/app.ear..

    The module is definitely in there.

    I was able to workaround the issue by putting module: commonEJB before
    module: webserviceWebApp in the application.xml file.

    When I read the J2EE spec, J2EE.8.3.2 number 2, it says that on
    deployment, the server is supposed to open each of the modules
    deployment descriptors and read them. It seems like this implies the
    server should know that a module is in the EAR, and not have the
    ordering problem I'm having here.

    Am I doing something wrong? Or, is there a way to tell servicegen to put
    the module at the bottom of the file instead of the top? Or, do I have
    to continue to manually swap the order of modules?

    Thanks

  • RELEVANCY SCORE 2.60

    DB:2.60:Add Cookie With A Client Generated With Clientgen fm


    Hi, I'm trying to add a cookie in my webservice client (generated with clientgen) when I call a weblogic webservice (generated with servicegen).
    But I don't find any methods to perform that.

    The Handler interfaces give me access to the soap headers but the not to the HTTP headers : so it's not rigth method.

    I tried too to add a property via the setProperty method on the Stub but I've an exception if I use something different of the four properties (user, password, sessionmaintain or endpoint_address) and there is no property for cookie...

    How can I do that ??!!!

    DB:2.60:Add Cookie With A Client Generated With Clientgen fm

    Hi, I'm trying to add a cookie in my webservice client (generated with clientgen) when I call a weblogic webservice (generated with servicegen).
    But I don't find any methods to perform that.

    The Handler interfaces give me access to the soap headers but the not to the HTTP headers : so it's not rigth method.

    I tried too to add a property via the setProperty method on the Stub but I've an exception if I use something different of the four properties (user, password, sessionmaintain or endpoint_address) and there is no property for cookie...

    How can I do that ??!!!

  • RELEVANCY SCORE 2.59

    DB:2.59:Servicegen Problem pf


    this is my first try in deploying web services
    i am trying to expose a ststless session bean with one simple void method
    using servicegen ant task...
    i saw bea example
    i am working with weblogic 7.0.02 sp and Ant 1.5.3
    i get an IOException: The filename, directory name or volume label syntax is
    incorrect
    i dont understand the problem becouse i am sure i am giving the coorrect
    names for ear and war

    does any one have ant idea ?

    DB:2.59:Servicegen Problem pf

    Hello,

    Does the example work for you? I would suggest you experiment with this
    example, making sure it works correctly in your environment.

    http://webservice.bea.com/javaclass.zip

    The tutorial may also be helpful:
    http://webservice.bea.com/tutorials.html

    If you are still experiencing problems, then you could post your build
    script and we and take a look; or you can open a dialog with our
    outstanding support team: http://support.bea.com or support@bea.com

    Hope this helps,
    Bruce

    WL wrote:

    this is my first try in deploying web services
    i am trying to expose a ststless session bean with one simple void method
    using servicegen ant task...
    i saw bea example
    i am working with weblogic 7.0.02 sp and Ant 1.5.3
    i get an IOException: The filename, directory name or volume label syntax is
    incorrect
    i dont understand the problem becouse i am sure i am giving the coorrect
    names for ear and war

    does any one have ant idea ?

  • RELEVANCY SCORE 2.59

    DB:2.59:Servicegen Typemappingfile d3


    Hi,

    I am trying to put additional type information into web-services.xml and to
    use my custom serializers. When I added typeMappingFile attribute to service
    element of servicegen Ant task, I received the following error:

    Class weblogic.ant.taskdefs.webservices.servicegen.Service doesn't support
    the "typemappingfile" attribute.

    By the way, I typed in the attribute with capital "M" and "F", like
    typeMappingFile.

    What am I doing wrong? WLS7 GA.

    Thanks,
    Michael Jouravlev.

    DB:2.59:Servicegen Typemappingfile d3

    This is fixed in SP1. Another CR, CR079758, is tracking this.

    -Neal

    "Michael Jouravlev" michael_jouravlev@yahoo.com wrote in message
    news:3d062f73$1@newsgroups2.bea.com...
    OK, just a little search was needed. Looks like it is known issue: CR72519.
    Sorry for bothering. Will this be corrected in SP1?

    "Michael Jouravlev" michael_jouravlev@yahoo.com wrote in message
    news:3d062e02@newsgroups2.bea.com...
    Hi,

    I am trying to put additional type information into web-services.xml andto
    use my custom serializers. When I added typeMappingFile attribute toservice
    element of servicegen Ant task, I received the following error:

    Class weblogic.ant.taskdefs.webservices.servicegen.Service doesn'tsupport
    the "typemappingfile" attribute.

    By the way, I typed in the attribute with capital "M" and "F", like
    typeMappingFile.

    What am I doing wrong? WLS7 GA.

    Thanks,
    Michael Jouravlev.

  • RELEVANCY SCORE 2.59

    DB:2.59:The Parameters Seem To Lose Their Names In The Translation To Wsdl. jk


    I am building a webservice using the weblogic "servicegen" ant task. Everything seems to be working well, but the parameters seem to lose their names in the translation to WSDL.

    I have a method like: saveNewUserData(String emailAddress, String username,String password, String confirmPassword, String firstName,String lastName)this looks like this in the WSDL(the paremeters are converted to string, string0, string1....):
    message name="saveNewUserData"
    part type="partns:string" name="string"/part
    part type="partns:string" name="string0"/part
    part type="partns:string" name="string1"/part
    part type="partns:string" name="string2"/part
    part type="partns:string" name="string3"/part
    part type="partns:string" name="string4"/part
    /message
    operation name="saveNewUserData"
    input message="tns:saveNewUserData"/input
    output message="tns:saveNewUserDataResponse"/output
    fault name="WebServicesException" message="tns:WebServicesException"/fault
    /operationI am trying to fix this and keep the names of the parameters intact, Any suggestions would be greatly appreciated.

    DB:2.59:The Parameters Seem To Lose Their Names In The Translation To Wsdl. jk

    Hmm..

    it turns out "servicegen" uses reflection and cannot get the parameter names. We have to use "source2wsdd" to create proper parameter names.

  • RELEVANCY SCORE 2.59

    DB:2.59:Servicegen Doesn't Support Inheritance? jm


    I have a method in a ejb class which returns class Product. The Product itself inherits class ProductBase. The ejb itself works ok. I then wrap the ejb with webservices, using servicegen to generate serialization class, and clientgen to generate client jar and then test the web services. The problem is that I can get all bean properties defined in the Product class, not in the ProductBase. This leads me wondering if oo inheritance feature is stripped off by using servicegen. Any idea what happens? Is there any way to fix it? Will appreciate your help.

    DB:2.59:Servicegen Doesn't Support Inheritance? jm

    It seems to me that this is a servicegen bug. I found a another thread in the group which discussed pretty mush the same thing.

    http://forums.bea.com/bea/thread.jspa?threadID=200024969tstart=165

  • RELEVANCY SCORE 2.59

    DB:2.59:Xml Documentation With Paramarray zs


    Hello...
    I am trying to use xml documentation tool in my application. one of my methods receives 'ParamArray' as an argument. i want to document this argument elements.
    here is my code
    Public Sub LoadSearch_ByEmployee(ByVal EmployeeID As Integer _
    , ByVal FromDate As Date _
    , ByVal ToDate As Date _
    , ByVal ParamArray Parameters() As String _
    ) Implements ITransactionViewCollection.LoadSearch_ByEmployee
    the 'parameters' argument first element would be the company ID, secondly would be department ID. what i want is to add xml documentation for this method and specify the expected values of each index in the ParamArray, something like this
    ''' param name=Parameters
    ''' params
    ''' param name=Parameters[0]company ID/param
    ''' param name=Parameters[1]Department ID/param
    ''' /params

    any idea to do this
    thanks

    DB:2.59:Xml Documentation With Paramarray zs

    thanks for your reply, i will try it and tell you the results...

  • RELEVANCY SCORE 2.59

    DB:2.59:Support For Document And Documentwrapped Web Services fc



    List,

    Are "document" and "documentwrapped" style web services supported in WSL 8.1 SP1?
    The
    documentation referenced below [1] [2] indicates that these styles are supported,
    but in the
    Unsupported Features section of the Web Services overview [3] states the RPC literal
    style and
    Document encoded style are not supported. It is my understanding that the style
    attribute
    values of the servicegen ant task map to the SOAP encodings as follows:

    RPC - SOAP RPC
    documentwrapped - SOAP RPC-literal
    document - SOAP document-literal

    Is this correct?

    Regards,
    Kent

    [1] http://edocs.bea.com/wls/docs81/webserv/design.html#1038901
    [2] http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1063540
    [3] http://edocs.bea.com/wls/docs81/webserv/overview.html#1074641

    DB:2.59:Support For Document And Documentwrapped Web Services fc


    So is it a true statement that if I use the documentwrapped style, I don't have
    the restriction
    of having only one void method while gaining the scalability and performance benefits
    [1] of
    SOAP document-literal encoding? Does the documentwrapped style have any restrictions

    regarding out and in-out parameters? If so, what is the correct way in Java to
    specify a
    parameter as "IN" only?

    Thanks again,

    --Kent

    [1] http://dev2dev.bea.com/products/wlworkshop/articles/Cohen.jsp

    "manoj cheenath" manojc@bea.com wrote:
    This is correct. In the doc/lit bare case, a
    method with no parameter will have an empty
    soap envelope. If you look at the schema for
    this operation, it will be an empty complexType.

    So in the style, you can only have one void
    method. WLS tools (servicegen/source2wsdd) do
    not enforce this. Which I think is a bug.

    Hope this helps,
    -manoj

    --
    http://manojc.com

    "manoj cheenath" manojc@bea.com wrote in message
    news:402033f8$1@newsgroups.bea.com...
    This is correct. In the doc/lit bare case, a

    method with no parameter will have an empty

    soap envelope. If you look at the schema for

    this operation, it will be an empty complexType.

    So in the style, you can only have one void

    method. WLS tools (servicegen/source2wsdd) do

    not enforce this. Which I think is a bug.

    Hope this helps,
    -manoj

    --
    http://manojc.com

    "Kent Kvarfordt" kvarkb@inel.gov wrote in message
    news:402000c6$1@newsgroups.bea.com...
    Bruce,

    How do the restrictions apply to methods that do not have any paramters?
    I have attached a copy of the weblogic webservice complex example that I
    modified
    to use
    document style encoding and contains two noarg methods, getVersion and
    getAnotherVersion. I also modified the buy and sell methods to take single arguments.
    Following are the results from the test web page for a call to getAnotherVersion.
    !--REQUEST.................--
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Header
    /env:Header
    env:Body
    /env:Body
    /env:Envelope

    !--RESPONSE.................--
    env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    env:Header
    /env:Header
    env:Body
    n1:buy xmlns:n1="http://www.bea.com/examples/Trader"getVersion/n1:buy
    /env:Body
    /env:Envelope

    What am I missing? BTW - I am using Weblogic Server 8.1 SP1.

    Also, how does the weblogic documentwrapped style map to the SOAP encodings
    SOAP RPC, SOAP RPC-literal, and SOAP document-literal? Are the messages encoded
    SOAP doc/lit, but the programming model allows for multiple parameters? Is
    the documentwrapped style specific to weblogic webservices?

    And finally, given Java is a pass by value language, do I need to do
    anything
    special to the webservice method signatures to specify the parameters as
    "IN"
    parameters?

    Thanks for all the help. From looking at the list traffic, your keeping
    busy.
    Regards,
    Kent

    Bruce Stephens hbs@nospam.bea.com wrote:
    Hi Kent,

    There are restrictions on the doc/lit style of encoding, such as the
    methods that implement each operation of the Web Service can have only
    one parameter and the methods that implement each operation cannot use
    out and in-out parameters. The documentwrapped generates a resulting
    Web Service operations that can take any number of parameters, althoughthe parameter values will be wrapped into one complex data type in the
    SOAP messages. Manoj has an example of documentwrapped [1].

    We do not support rpc/lit. You might want to review this note by Yasser
    Shohoud, it explains this in exquisite detail [2]

    Regards,
    Bruce

    [1]
    http://manojc.com/?sample14
    [2] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/html/rpc_literal.asp
    Kent Kvarfordt wrote:
    List,

    Are "document" and "documentwrapped" style web services supported in
    WSL 8.1 SP1?
    The
    documentation referenced below [1] [2] indicates that these styles are supported,
    but in the
    Unsupported Features section of the Web Services overview [3] states
    the RPC literal
    style and
    Document encoded style are not supported. It is my understanding that
    the style
    attribute
    values of the servicegen ant task map to the SOAP encodings as follows:
    RPC - SOAP RPC
    documentwrapped - SOAP RPC-literal
    document - SOAP document-literal

    Is this correct?

    Regards,
    Kent

    [1] http://edocs.bea.com/wls/docs81/webserv/design.html#1038901
    [2] http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1063540
    [3] http://edocs.bea.com/wls/docs81/webserv/overview.html#1074641

  • RELEVANCY SCORE 2.59

    DB:2.59:Servicegen Java.Lang.Outofmemoryerror x3


    Hi

    I'm currently trying to use servicegen to generate webservices for a project.

    However i would like to be able to specify the webservice definitions in a properties file and there by hiding some of the information from the developers when defining webservices.

    However if i setup something like this:

    servicegen
    destEar="${destination}/${ear.filename}.ear"
    mergeWithExistingWS="true" warName="${webservice.war.filename}.war" keepGenerated="true"

    service
    ejbJar="${destination}/${current.EJBJar}"
    includeEJBs="${current.includeEJBs}" serviceName="${current.servicename}"
    serviceURI="${current.serviceuri}"
    targetNamespace="${current.TargetNameSpace}"
    protocol="http" expandMethods="false"
    generateTypes="true" style="${current.Style}" useSoap12="${current.UseSoap12}"
    handlerChain handlers="${webservice.handlerChain}"/
    /service

    and then iterate throw each webservice definition and for each definition calling the above command.

    However when i do this, it consumes a lot of memory and also the end result is a bigger file. I

    any ideas

    DB:2.59:Servicegen Java.Lang.Outofmemoryerror x3

    Hi

    I'm currently trying to use servicegen to generate webservices for a project.

    However i would like to be able to specify the webservice definitions in a properties file and there by hiding some of the information from the developers when defining webservices.

    However if i setup something like this:

    servicegen
    destEar="${destination}/${ear.filename}.ear"
    mergeWithExistingWS="true" warName="${webservice.war.filename}.war" keepGenerated="true"

    service
    ejbJar="${destination}/${current.EJBJar}"
    includeEJBs="${current.includeEJBs}" serviceName="${current.servicename}"
    serviceURI="${current.serviceuri}"
    targetNamespace="${current.TargetNameSpace}"
    protocol="http" expandMethods="false"
    generateTypes="true" style="${current.Style}" useSoap12="${current.UseSoap12}"
    handlerChain handlers="${webservice.handlerChain}"/
    /service

    and then iterate throw each webservice definition and for each definition calling the above command.

    However when i do this, it consumes a lot of memory and also the end result is a bigger file. I

    any ideas

  • RELEVANCY SCORE 2.58

    DB:2.58:Source2wsdd: Servicegen Does Not Contain A Start Method - Help! 1j


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

    DB:2.58:Source2wsdd: Servicegen Does Not Contain A Start Method - Help! 1j

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

  • RELEVANCY SCORE 2.58

    DB:2.58:Handling Cdata In Servicegen Created Web Service zd


    I've just started looking at web services. I've developed a simple web service, which returns a value object, which is then serialized by the web service, and the data elements are returned as strings.

    That's fine, but the problem I have is that some of the data elements in the value object may contain data which should be enclosed in CDATA segments.

    How do I handle that using servicegen?

    Pete

    DB:2.58:Handling Cdata In Servicegen Created Web Service zd

    I've just started looking at web services. I've developed a simple web service, which returns a value object, which is then serialized by the web service, and the data elements are returned as strings.

    That's fine, but the problem I have is that some of the data elements in the value object may contain data which should be enclosed in CDATA segments.

    How do I handle that using servicegen?

    Pete

  • RELEVANCY SCORE 2.58

    DB:2.58:Wls8.1 Ant Servicegen In Eclipse Exceptionininitializererror cd



    I've done quite a bit of searching, but can't seem to find a previous post on this.

    I've created a simple web service ant build script that runs great when I use
    the setEnv.cmd , but I am trying to get it to work in Eclipse 2.1.1 and keep getting
    a java.lang.ExceptionInInitializerError when it gets to the ear task (task which
    uses servicegen). I am using Ant version 1.5.3. Am I missing some environment
    variables?
    [servicegen_eclipse_problem.txt]

    DB:2.58:Wls8.1 Ant Servicegen In Eclipse Exceptionininitializererror cd

    I had the same problem under eclipse 3.0 and the way i fixed it was to change my ANT_HOME in eclipse under preferences to where I have my downloaded jakarta ant 1.5. I also added my user library to the bottom of jars in the ant preferences.

    -peter

  • RELEVANCY SCORE 2.58

    DB:2.58:Autotype And Servicegen as



    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

    DB:2.58:Autotype And Servicegen as

    The problem has not been resolved in 8.1sp4. Is there any open ticket for this defect?

  • RELEVANCY SCORE 2.58

    DB:2.58:Problem Building Application With Weblogic.Jar Placed Out Of Bea Install. m8


    Weblogic version: 10.3

    EJB Version: 2.x

    Method for generating webservices fomr EJBs: servicegen task.

    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejbs in the project using servicegen task. Attached is build.xml for ant.

    Following is the class path :

    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;

    Problem Area:

    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.

    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below

    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-earant
    Buildfile: build.xml

    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.init(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]

    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    DB:2.58:Problem Building Application With Weblogic.Jar Placed Out Of Bea Install. m8

    Weblogic version: 10.3

    EJB Version: 2.x

    Method for generating webservices fomr EJBs: servicegen task.

    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejbs in the project using servicegen task. Attached is build.xml for ant.

    Following is the class path :

    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;

    Problem Area:

    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.

    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below

    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-earant
    Buildfile: build.xml

    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.init(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]

    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • RELEVANCY SCORE 2.58

    DB:2.58:Changing The Wsdl Url In Wls 8.1 Using Servicegen xa


    I am upgrading my wls from 6.1 to 8.1, I have muliple users who log in to my webservices and query information. As it stands right now in 6.1 my wsdl url is:
    http://server:7001/webservices/Customer.CustomerInfoHome/wsdl.jsp

    when I upgrade to 8.1

    http://server:7001/web_services/custuri?WSDL

    I cannot just change the location of the webservices without breaking all the user clients I have out there. I currently build my webservices using servicegen:

    servicegen
    destEar="${build.path}/webservices.ear"
    contextURI="webservices" classpath="${env.WL_HOME}/server/lib/weblogic_sp.jar;${env.WL_HOME}/server/lib/weblogic.jar;${env.WL_HOME}/server/lib/xmlx.jar;${env.WL_HOME}/server/lib/webservices.jar;${evn.WL_HOME}/server/lib/ejbgen.jar"

    service
    includeEJBs="Customer"
    serviceName="Customer"
    serviceURI="/custuri"
    ejbJar="${build.path}/webservices.jar"
    targetNamespace="java:com.nc.webservices.customer"
    /service
    /servicegen

    My question is, how can I change/duplicate the wsdl location so all my client users do not have to change the url?

    any help would be appreciatted,
    thanx,
    -peter

    DB:2.58:Changing The Wsdl Url In Wls 8.1 Using Servicegen xa

    I am upgrading my wls from 6.1 to 8.1, I have muliple users who log in to my webservices and query information. As it stands right now in 6.1 my wsdl url is:
    http://server:7001/webservices/Customer.CustomerInfoHome/wsdl.jsp

    when I upgrade to 8.1

    http://server:7001/web_services/custuri?WSDL

    I cannot just change the location of the webservices without breaking all the user clients I have out there. I currently build my webservices using servicegen:

    servicegen
    destEar="${build.path}/webservices.ear"
    contextURI="webservices" classpath="${env.WL_HOME}/server/lib/weblogic_sp.jar;${env.WL_HOME}/server/lib/weblogic.jar;${env.WL_HOME}/server/lib/xmlx.jar;${env.WL_HOME}/server/lib/webservices.jar;${evn.WL_HOME}/server/lib/ejbgen.jar"

    service
    includeEJBs="Customer"
    serviceName="Customer"
    serviceURI="/custuri"
    ejbJar="${build.path}/webservices.jar"
    targetNamespace="java:com.nc.webservices.customer"
    /service
    /servicegen

    My question is, how can I change/duplicate the wsdl location so all my client users do not have to change the url?

    any help would be appreciatted,
    thanx,
    -peter

  • RELEVANCY SCORE 2.58

    DB:2.58:Generating Ejb Webservice Using Servicegen kz


    Hello All,

    I am trying to run servicegen to build webservices from my EJB jar file (the EJBs work fine called from a web client). I am trying to webservice enable them now.

    Here is what I did. At the cmd prompt ran setDomainEnv.

    Then under the dir where I have my EJB jar file I created a build file for ant to run.

    The build file looks like this:

    project name="buildWebService" default="ear"
    target name="ear"
    servicegen destEar="test.crap" contextURI="WebServices"
    service ejbJar="CDT_EJB.jar" targetNamespace="http://www.wdc.com/webservices/CDT_EJB" serviceName="CDT_EJB" serviceURI="/CDT_EJB" generateTypes="True" expandMethods="True" style="rpc"
    /service
    /servicegen
    /target
    /project

    When I run ant, I get the following: java.lang.SecurityException: Prohibited pack
    age name: java.util
    :

    Note: Some of the EJB methods return Non-Built-In Data Types which are referenced in POJO classes.

    C:\CDT_EJBStagingant
    Buildfile: build.xml

    ear:
    [servicegen] Generating service "CDT_EJB" ...
    [servicegen] WARNING: ignoring bean property "_grid_name" in class objTedi.objTe
    di_file: no set method found.
    [servicegen] WARNING: ignoring bean property "dtdLocation" in class objTedi.objT
    edi_file: no set method found.
    [servicegen] WARNING: ignoring bean property "structureForDisplay" in class objT
    edi.objTedi_srcfile: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Dictiona
    ry: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Hashtabl
    e: no set method found.
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader
    .java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass
    (GenericClassLoader.java:476)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(Gene
    ricClassLoader.java:181)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(Gene
    ricClassLoader.java:223)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadCla
    ss(Compiler.java:641)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMa
    pping(Compiler.java:450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(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(E
    JBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.r
    unAutoTyper(ServiceGenTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    )
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    BUILD FAILED
    file:C:/CDT_EJBStaging/build.xml:4: java.lang.SecurityException: Prohibited pack
    age name: java.util

    Total time: 7 seconds

    C:\CDT_EJBStaging

    DB:2.58:Generating Ejb Webservice Using Servicegen kz

    Hello All,

    I am trying to run servicegen to build webservices from my EJB jar file (the EJBs work fine called from a web client). I am trying to webservice enable them now.

    Here is what I did. At the cmd prompt ran setDomainEnv.

    Then under the dir where I have my EJB jar file I created a build file for ant to run.

    The build file looks like this:

    project name="buildWebService" default="ear"
    target name="ear"
    servicegen destEar="test.crap" contextURI="WebServices"
    service ejbJar="CDT_EJB.jar" targetNamespace="http://www.wdc.com/webservices/CDT_EJB" serviceName="CDT_EJB" serviceURI="/CDT_EJB" generateTypes="True" expandMethods="True" style="rpc"
    /service
    /servicegen
    /target
    /project

    When I run ant, I get the following: java.lang.SecurityException: Prohibited pack
    age name: java.util
    :

    Note: Some of the EJB methods return Non-Built-In Data Types which are referenced in POJO classes.

    C:\CDT_EJBStagingant
    Buildfile: build.xml

    ear:
    [servicegen] Generating service "CDT_EJB" ...
    [servicegen] WARNING: ignoring bean property "_grid_name" in class objTedi.objTe
    di_file: no set method found.
    [servicegen] WARNING: ignoring bean property "dtdLocation" in class objTedi.objT
    edi_file: no set method found.
    [servicegen] WARNING: ignoring bean property "structureForDisplay" in class objT
    edi.objTedi_srcfile: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Dictiona
    ry: no set method found.
    [servicegen] WARNING: ignoring bean property "empty" in class java.util.Hashtabl
    e: no set method found.
    [servicegen] java.lang.SecurityException: Prohibited package name: java.util
    [servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:524)
    [servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader
    .java:123)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass
    (GenericClassLoader.java:476)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(Gene
    ricClassLoader.java:181)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(Gene
    ricClassLoader.java:223)
    [servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    [servicegen] at java.lang.Class.forName0(Native Method)
    [servicegen] at java.lang.Class.forName(Class.java:219)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadCla
    ss(Compiler.java:641)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMa
    pping(Compiler.java:450)
    [servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:175)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(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(E
    JBAutoTyper.java:115)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.r
    unAutoTyper(ServiceGenTask.java:367)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateService(ServiceGenTask.java:313)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:181)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    )
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)

    BUILD FAILED
    file:C:/CDT_EJBStaging/build.xml:4: java.lang.SecurityException: Prohibited pack
    age name: java.util

    Total time: 7 seconds

    C:\CDT_EJBStaging

  • RELEVANCY SCORE 2.57

    DB:2.57:Java.Sql.Timestamp - Weblogic.Xml.Schema.Binding.Bindingexception zm


    Hi,

    I'm trying to make a session EJB bean to a webservice. I followed the documentation and tried to generate the service using servicegen. However, I'm getting a java.sql.TimeStamp error; I'm not using TimeStamp anywhere. Any help will be highly appreciated.

    This is my service gen ant task:

    target name="sg" description="creates webservice out of ejb jar"
    servicegen
    destEar="msa.ear"
    warName="msa_war.war"
    contextURI="msa_war"
    service
    ejbJar="C:\eclipse\workspace\plateau\abc\ws\ear"
    includeEJBs="SearchCourse"
    targetNamespace="http://localhost/elms"
    serviceName="SearchService"
    serviceURI="/SearchService"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen
    /target

    This is the error message I get when ran the servicegen ant task:

    BUILD FAILED
    file:C:/eclipse/workspace/plateau/ms_elms/ws/build.xml:26: weblogic.xml.schema.binding.BindingException: No default constructor was found for class java.sql.Timestamp loaded from file:/C:/bea/jdk131_08/jre/lib/rt.jar!/java/sql/Timestamp.class. All classes that will be serialized or deserialized must be non-interface,
    non-abstract classes that provide a public default constructor - with nested exception:

    [java.lang.NoSuchMethodException]

    DB:2.57:Java.Sql.Timestamp - Weblogic.Xml.Schema.Binding.Bindingexception zm

    Hi,

    I'm trying to make a session EJB bean to a webservice. I followed the documentation and tried to generate the service using servicegen. However, I'm getting a java.sql.TimeStamp error; I'm not using TimeStamp anywhere. Any help will be highly appreciated.

    This is my service gen ant task:

    target name="sg" description="creates webservice out of ejb jar"
    servicegen
    destEar="msa.ear"
    warName="msa_war.war"
    contextURI="msa_war"
    service
    ejbJar="C:\eclipse\workspace\plateau\abc\ws\ear"
    includeEJBs="SearchCourse"
    targetNamespace="http://localhost/elms"
    serviceName="SearchService"
    serviceURI="/SearchService"
    generateTypes="True"
    expandMethods="True"
    /service
    /servicegen
    /target

    This is the error message I get when ran the servicegen ant task:

    BUILD FAILED
    file:C:/eclipse/workspace/plateau/ms_elms/ws/build.xml:26: weblogic.xml.schema.binding.BindingException: No default constructor was found for class java.sql.Timestamp loaded from file:/C:/bea/jdk131_08/jre/lib/rt.jar!/java/sql/Timestamp.class. All classes that will be serialized or deserialized must be non-interface,
    non-abstract classes that provide a public default constructor - with nested exception:

    [java.lang.NoSuchMethodException]