Wls10 jwsc task and XML Bean namespace warning

I would like to thank whomever reads this post in advance for their time and assistance.
We are writing webservices starting from a Java file and using XMLBeans for the databinding. These webservices compile but many generate an internal bind warning. Here is an example of the warning message:
[jwsc] [WARNING] Java2Schema internalBind warning: 'error: src-resolve.a: Could not find type 'SearchFacilityLayer@http://ltfinc.net/ltfeb/facility'. Do you mean to refer to the element named searchFacilityLayer@http://ltfinc.net/ltfebservices?'
The webservices seem to operate fine when using a java client that uses the client jars generated by the clientgen ant task. However, our qa group encounters problems on wsdl validation when importing the generated wsdl.
Here is an example of one of the problematic web services and the schemas.
JWS File: (package and imports omitted for brevity)
@WebService( serviceName = "FacilityService",
targetNamespace = "http://ltfinc.net/ltfebservices" )
@WLHttpTransport( contextPath = "ltfebservices",
serviceUri = "FacilityService",
portName = "FacilityPort" )
@RolesAllowed
@SecurityRole( role = "wsuserrole",
mapToPrincipals = { "AdminGroup" } )
@SOAPBinding( style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED )
@HandlerChain( file = "FacilityServiceConfig.xml",
name = "FacilityServiceChain" )
public class FacilityService
@WebMethod()
@WebResult( name = "result",
targetNamespace = "http://ltfinc.net/ltfeb/facility" )
public
FacilityList
searchFacility(
@WebParam( name = "param",
targetNamespace = "http://ltfinc.net/ltfeb/facility" )
SearchFacility a_message )
throws RemoteException
try
FacilityProxy l_proxy = new FacilityProxy();
return (FacilityList) l_proxy.invoke( a_message );
catch ( Exception l_e )
throw new RemoteException( l_e.getMessage(),
ExceptionUtil.getRootException( l_e ) );
@WebMethod()
@WebResult( name = "result",
targetNamespace = "http://ltfinc.net/ltfeb/facility" )
public
FacilityLayerList
searchFacilityLayer(
@WebParam( name = "param",
targetNamespace = "http://ltfinc.net/ltfeb/facility" )
SearchFacilityLayer a_message)
throws RemoteException
try
FacilityProxy l_proxy = new FacilityProxy();
return (FacilityLayerList) l_proxy.invoke( a_message );
catch ( Exception l_e )
throw new RemoteException( l_e.getMessage(),
ExceptionUtil.getRootException( l_e ) );
SCHEMAS:
FacilityServiceComponents.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:pp="http://ltfinc.net/ltfeb/facility" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ltfinc.net/ltfeb/facility" elementFormDefault="qualified" attributeFormDefault="unqualified">
     <xs:complexType name="Facility">
          <xs:annotation>
               <xs:documentation>Facility details</xs:documentation>
          </xs:annotation>
          <xs:sequence>
               <xs:element name="FacilityType" type="xs:string"/>
               <xs:element name="AddressSpecifiedFlag" type="xs:boolean"/>
               <xs:element name="FacilityName" type="xs:string"/>
               <xs:element name="FacilityDescription" type="xs:string"/>
               <xs:element name="ComponentFacilityID" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
               <xs:element name="ContainerFacilityID" type="xs:int" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation>ID of facility that contains this facility.</xs:documentation>
                    </xs:annotation>
               </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:int"/>
     </xs:complexType>
</xs:schema>
FacilityServiceMessages.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:pp="http://ltfinc.net/ltfeb/facility" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ltfinc.net/ltfeb/facility" elementFormDefault="qualified" attributeFormDefault="unqualified">
     <xs:include schemaLocation="FacilityComponents.xsd"/>
     <xs:complexType name="FacilityList">
          <xs:annotation>
               <xs:documentation>Result message schema for the facility "search" service</xs:documentation>
          </xs:annotation>
          <xs:sequence>
               <xs:element name="Facility" type="pp:Facility" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="SearchFacility">
          <xs:annotation>
               <xs:documentation>Message schema for the facility "search" service</xs:documentation>
          </xs:annotation>
          <xs:sequence>
               <xs:element name="FacilityID" type="xs:int" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                         <xs:documentation>Retrieve facility details by ID value. Overrides all other search criteria.</xs:documentation>
                    </xs:annotation>
               </xs:element>
               <xs:element name="FacilityType" type="xs:string" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                         <xs:documentation>Filter result by facility type</xs:documentation>
                    </xs:annotation>
               </xs:element>
               <xs:element name="CompositeFacilityID" type="xs:int" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation>Retrieve the components of this facility</xs:documentation>
                    </xs:annotation>
               </xs:element>
               <xs:element name="ComponentFacilityID" type="xs:int" minOccurs="0">
                    <xs:annotation>
                         <xs:documentation>Retrieve the root facility that contains this facility.</xs:documentation>
                    </xs:annotation>
               </xs:element>
               <xs:element name="ParentPartyID" type="xs:int" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                         <xs:documentation>Used with RelationshipType for headquarters facility search. ParentPartyID is the starting point of the relationship tree. The search result contains the distinct list of headquarter facilities associated with the parties in the relationship tree.</xs:documentation>
                    </xs:annotation>
               </xs:element>
               <xs:element name="RelationshipType" type="xs:string" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                         <xs:documentation>Array of relationship types used to define the relationship tree for ParentPartyID. Required if ParentPartyID is provided.</xs:documentation>
                    </xs:annotation>
               </xs:element>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="SearchFacilityLayer">
          <xs:annotation>
               <xs:documentation>Retrieve the facility id's in the facility hierarchy for the given set of starting points</xs:documentation>
          </xs:annotation>
          <xs:sequence>
               <xs:element name="FacilityID" type="xs:int" maxOccurs="unbounded"/>
               <xs:element name="Direction">
                    <xs:annotation>
                         <xs:documentation>Direction of tree traversal. PARENT returns all of the containing facilities. CHILD returns all of the component facilities.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                         <xs:restriction base="xs:string">
                              <xs:enumeration value="PARENT"/>
                              <xs:enumeration value="CHILD"/>
                         </xs:restriction>
                    </xs:simpleType>
               </xs:element>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="FacilityLayerList">
          <xs:annotation>
               <xs:documentation>Result message for SearchFacilityLayer</xs:documentation>
          </xs:annotation>
          <xs:sequence>
               <xs:element name="FacilityID" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
     </xs:complexType>
</xs:schema>
The warning is generated for the second method "SearchFacilityLayer" but not generated on the first method. What have I overlooked?

I do not see any change on JWSC and reported issues with specific to JWSC
please open a SR. This would need more time to debug.
Regards,
Sunil P

Similar Messages

  • Create XML dynamically from schema and Java bean

    Hi,
    I'm looking for suggestions on the best approach to create an XML file programatically from a schema and Java bean.
    The schema used is not fixed and may vary with each request so a dynamic way to create the XML is required.
    Is there an API available that allows me to achieve this easily? Any help would be appreciated to point me in the right direction.
    Thanks.

    XMLBeans or JAXB should work for you.
    - Saish

  • XML Beans and Weblogic Server 8.1

    Hi,
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it only part
    of the Weblogic Workshop) ?
    Thanks,
    Arun

    Greg,
    The classes required for running these command line tools are all there, but
    we have not put the script files in the version bundled with WebLogic
    server. Its very likely to be part of the next service pack release.
    Meanwhile, you can always run the classes from the command line, or write
    your own script. For instance, the dumpxsb.cmd has the following:
    set cp=
    set cp=%cp%;%XMLBEANDIR%\xbean.jar
    java -classpath %cp% com.bea.xbean.tool.XsbDumper %*
    So you can always write this on your own, or just run the concerned class
    from the command line.
    Let me know if you have any further queries.
    Regards,
    Anurag
    "Greg" <[email protected]> wrote in message news:1061965730.933286@ns1...
    Hi,
    Is it possible to use the version of xmlbeans bundled with workshop in a
    standalone sense? Are all the command line tools there? If so can yougive
    a pointer to where abouts in the Workshop download to look for this.
    The reason I ask is noting the following I saw -:
    Note: XQuery is currently only available with the version of XMLBeans
    included with WebLogic Platform. We hope to add these capabilities to the
    stand-alone version soon.
    Greg
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]..
    Arun,
    WebLogic Platform 8.1 GA which includes Workshop does contain an
    xmlbeans
    implementation.
    We also have a stand alone implementation which is available on dev2dev.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Arun" <[email protected]> wrote in message
    news:3f38da48$[email protected]..
    Thanks. But what we have found out from BEA is that it does not shipwith Weblogic
    Server. You have to download it separately.
    "Dmitri Colebatch" <[email protected]> wrote:
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it
    only part of the Weblogic Workshop) ?yes, it is shipped in Platform 8.1 (I'm pretty sure its shipping in
    Server
    8.1
    too). Although the version is slightly older than the version
    available
    on the
    dev2dev site.
    cheers
    dim

  • XML Beans and Weblogic 7

    Hi - I am interested to use the XML Beans development kit - but I only have a
    WebLogic 7 app server to work with. Is there a way to get around the requirement
    for xqrl.jar to run the examples such as the easypo example? I found myself getting
    compilation errors for the src files that were generated by the schema compiler
    complaining about not being able to find some com.bea.xquery classes which I am
    assuming reside in this jar (xqrl.jar). Is it required that I download the whole
    WLS 8.1 platform just to get this jar? Thanks for any advice.

    Greg,
    The classes required for running these command line tools are all there, but
    we have not put the script files in the version bundled with WebLogic
    server. Its very likely to be part of the next service pack release.
    Meanwhile, you can always run the classes from the command line, or write
    your own script. For instance, the dumpxsb.cmd has the following:
    set cp=
    set cp=%cp%;%XMLBEANDIR%\xbean.jar
    java -classpath %cp% com.bea.xbean.tool.XsbDumper %*
    So you can always write this on your own, or just run the concerned class
    from the command line.
    Let me know if you have any further queries.
    Regards,
    Anurag
    "Greg" <[email protected]> wrote in message news:1061965730.933286@ns1...
    Hi,
    Is it possible to use the version of xmlbeans bundled with workshop in a
    standalone sense? Are all the command line tools there? If so can yougive
    a pointer to where abouts in the Workshop download to look for this.
    The reason I ask is noting the following I saw -:
    Note: XQuery is currently only available with the version of XMLBeans
    included with WebLogic Platform. We hope to add these capabilities to the
    stand-alone version soon.
    Greg
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]..
    Arun,
    WebLogic Platform 8.1 GA which includes Workshop does contain an
    xmlbeans
    implementation.
    We also have a stand alone implementation which is available on dev2dev.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Arun" <[email protected]> wrote in message
    news:3f38da48$[email protected]..
    Thanks. But what we have found out from BEA is that it does not shipwith Weblogic
    Server. You have to download it separately.
    "Dmitri Colebatch" <[email protected]> wrote:
    Does anyone know if XML beans is shipped with Weblogic 8.x (or is it
    only part of the Weblogic Workshop) ?yes, it is shipped in Platform 8.1 (I'm pretty sure its shipping in
    Server
    8.1
    too). Although the version is slightly older than the version
    available
    on the
    dev2dev site.
    cheers
    dim

  • Unable to locate Spring NamespaceHandler for XML schema namespace

    I am not sure if this is the best practice approach but this is the problem I am ruining into. Below, I explain what I am doing:
    1) What I am doing:
    =============
    Based on the oracle incubator example (http://coherence.oracle.com/display/INCUBATOR/Processing+Pattern+Examples); I am running a server and submitting tasks through a proxy application that submits them to ProcessingPatternConfigurator; let's call my task processReport.
    a) my processReport is using spring and ibatis together, I created a utility static class to obtain a spring context and retrieves beans using the following lines ( see exhibit "A1 and A2" below).
    b) when my task calls the context and that spring loads, it is failing with the error show in exhibit "B".
    I suspect I am missing a lib? I googled the error and searched you site but could find a meaningful discussion on it. I guess my question is if this is not the best approach, how do I integrated with spring initializing beans and setting up ibatis framwork, providing beans and database access through Ibatis for each task ruining on the grid (processReport).
    thanks
    A1) processReport (submitted in the grid) uses this line
    AbstractXmlApplicationContext ctx = (AbstractXmlApplicationContext) AmrContextUtil.getInstance();
              System.out.println("Classpath loaded. Executing Report...");
              ReportProcessor repProcessor = (ReportProcessor) ctx.getBean("reportProcessor");
    A2) Here is the AmrContextUtil:
    import org.springframework.context.support.AbstractApplicationContext;
    import org.springframework.context.support.ClassPathXmlApplicationContext;
    public final class AmrContextUtil {
         private static AbstractApplicationContext ctx = null;
         public AmrContextUtil() {
              super();
         public final static synchronized AbstractApplicationContext getInstance(){
              if (ctx == null){
                   ctx = new ClassPathXmlApplicationContext("classpath:config/applicationContext.xml");
                   setCtx(ctx);
              return ctx;
         public final static synchronized AbstractApplicationContext getCtx() {
              return ctx;
         public final static synchronized void setCtx(AbstractApplicationContext ctx) {
              AmrContextUtil.ctx = ctx;
    B) Here is the error reported by the server:
    2010-02-10 15:42:28.312/57.986 Oracle Coherence GE 3.5.2/463 <Warning> (thread=GridExecutor:Thread-2
    , member=1): TaskRunner - Failed to process 0x00000126B99E5524AC1F007AAB1587BBCFEC5E6637E1DED6CCB984
    03D6AADF4D due to:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/reports-application.xml] Offending resource: class path resource [config/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
    Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: *Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]*
    *Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'*
    -> Property 'resourceMap'
    c)Here is my application-context.xml offending line:
    <bean id="reportSqlMapConfig"
    class="com.xx.report.generator.ReportSqlMapConfig">
    <property name="resourceMap">
    <map>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.FPA"/>
    </key>
    <value>classpath:config/diehardReportSqlMapConfig.xml</value>
    </entry>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.FCN"/>
    </key>
    <value>classpath:config/falconReportSqlMapConfig.xml</value>
    </entry>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.ODS"/>
    </key>
    <value>classpath:config/odsReportSqlMapConfig.xml</value>
    </entry>
    </map>
    </property>
    </bean>

    My guess is that something is broken in the configuration of the cacheServer and its not finding
    all of the dependencies that your process pattern application needs. Probably the best way
    to debug this stuff is to define a static main in your runnable task which will make the call
    to the run() method and invoke it as the main class using the identical settings (classpath,
    run directory) that you are using to launch the Coherence cache server.
    Regards,
    Bob

  • Hide name space of generated xml from xml bean

    Hi,
    how can i hide the namespace of the generated xml from xml bean, cause im having problems with jaxb parses.

    The targetNamespace is for webservice and not for the user defined classes.
    Sorry for the confusion
    Ajay
    "Ajay" <[email protected]> wrote in message
    news:[email protected]..
    There is a targetNamespace attribute in the autotyp ant task. But there
    was a bug in 8.1. Contact the support for a patch.
    The following mail explains that
    This looks like a bug. There is an undocument, not officially
    supported workaround: add the following java doc
    to yours source code -
    * @wlws:webservice targetNamespace="http://foo.bar"
    public class MyService {
    Details here:
    http://www.manojc.com/tutorial/sample3/source2wsdd.html
    Regards,
    -manoj
    http://manojc.com
    "Mark Fine" <[email protected]> wrote in message
    news:[email protected]..
    The attribute targetNamespace (of the autotype task) doesn't seem to putany
    information into the types file and later my deployment descriptor (viathe
    source2wsdd task) contains an invalid targetNamespace attribute with a
    http://tempuri.org:
    eg.
    <web-services>
    <web-service name="IndexService"
    targetNamespace="http://tempuri.org/"
    uri="/IndexWebService">
    I don't think this causes any problems but there should be a way tospecify
    the namespace.
    Has anyone else seen this is WLS8.1?
    "Siva" <[email protected]> wrote in message
    news:[email protected]..
    By default the autotype or the servicegen ant task seem to be creating anamespace
    from the java package name (like java:com.ventaso.external.common) for
    xml
    mapping
    of user defined java classes. Is there a way to change this to name
    space
    I want
    ? Specifying the targetnamespace doesn't seem to help.
    Thanks,
    Siva

  • Missing dependant files in generated WSDL using jwsc task

    Hi,
    I’m using weblogic 12.1 ant task jwsc to generate the artifacts to create weblogic web service. Following is my JWS file
    @WebService(name="HelloWorld", serviceName="HelloWorld",
    targetNamespace="http://example.org")
    @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
                  use=SOAPBinding.Use.LITERAL,
                  parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    @WLHttpTransport(contextPath="HelloWorld", serviceUri="HelloWorldSvc",
                      portName="HelloWorldPort")
    public class HelloWorld{
    @WebMethod()
    public ServiceResponse sayHello(){
    Employee emp=new Employee();
    emp.setName(“Alex”);
    System.out.println(“Hello ”+emp.getName());
    return new ServiceResponse(emp);
    public class ServiceResponse{
    private Object responseObject;
    public ServiceResponse(Object responseObejct){
    this.responseObject=responseObject;
    //getters and setters of response object
    My webMethod sayHello() uses Employee class . After executing jwsc task, the generated WSDL doesn’t contain any reference related to Employee class. If I use clientgen ant task to generate client artifacts from WSDL (generated from jwsc task), client jar will not have Employee class (since WSDL doesn’t have the user-defined class Employee).
    If I try to access the application, it’s throwing NoClassDefFoundError for Employee class.(unknown java type:Employee)
    Ant script :
    <jwsc
           srcdir="src"
           destdir="${dist}">
          <jws file="com/examples/webservices/HelloWorld.java" />
        </jwsc>
    Ant task to generate client artifacts:
    <clientgen
                   wsdl="http://localhost:7001/HelloWorld/HelloWorldSvc?WSDL”
                   destFile="HelloWorld_Client.jar"
                   packageName="com.examples.webservices.client"
                   classpathref="class.path"              
                   type="JAXRPC"/>

    I have some new information. When I generate the project as FlashHelp, I get an error message:
    Error: Fail to update Template file whxdata\whfts.xml
    In the resulting output, we get correctly functional TOC autosync, but non-functional search. (This is the same result as with WebHelp, except that no error message appears in generation.)

  • [jwsc] error: Response wrapper bean names must be unique ?

    I am trying to use wsdlc and jwsc on my existing WSDL file, with "type=JAXWS", I am getting this error
    "[jwsc] error: Response wrapper bean names must be unique and must not clash with other generated classes"
    What does it mean? And how can I resolve this?
    Here is the full stack trace:
    build-service:
    [jwsc] JWS: processing module /com/covergence/ws/callouts/CallOutsServiceImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /com/covergence/ws/callouts/CallOutsServiceImpl
    [jwsc] JWS: C:\source_tree\b3.3\ss\java\ws\sdk\build\weblogic\src\com\covergence\ws\callouts\CallOutsServiceImpl.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    [jwsc] error: Response wrapper bean names must be unique and must not clash with other generated classes. Class: com.covergence.ws.callouts.CallOutsPortType method getConfig(javax.xml.ws.Holder<java.util.List<com.covergence.ws.callouts.ConfigClassesType>>)
    [jwsc] Problem encountered during annotation processing;
    [jwsc] see stacktrace below for more information.
    [jwsc] [failed to localize] modeler.nestedGeneratorError(java.lang.IllegalArgumentException: trying to create the same field twice: config)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:302)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.processMethod(WebServiceWrapperGenerator.java:154)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitMethodDeclaration(WebServiceVisitor.java:449)
    [jwsc] at com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.processMethods(WebServiceVisitor.java:374)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.postProcessWebService(WebServiceVisitor.java:338)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:125)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitInterfaceDeclaration(WebServiceVisitor.java:120)
    [jwsc] at com.sun.tools.apt.mirror.declaration.InterfaceDeclarationImpl.accept(InterfaceDeclarationImpl.java:32)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.inspectEndpointInterface(WebServiceVisitor.java:420)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:141)
    [jwsc] at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:300)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:224)
    [jwsc] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [jwsc] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [jwsc] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [jwsc] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [jwsc] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [jwsc] at com.sun.tools.apt.Main.processing(Main.java:95)
    [jwsc] at com.sun.tools.apt.Main.process(Main.java:43)
    [jwsc] at com.sun.tools.apt.Main.main(Main.java:34)
    [jwsc] Caused by: java.lang.IllegalArgumentException: trying to create thesame field twice: config
    [jwsc] at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:392)
    [jwsc] at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:363)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.writeMembers(WebServiceWrapperGenerator.java:419)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:299)

    I am starting from WSDL and below are the corresponding elements from WSDL
        <message name="getConfig">
            <part name="parameters" element="tns:getConfig"/>
        </message>
        <message name="getConfigResponse">
            <part name="result" element="tns:getConfigResponse"/>
        </message>
        <portType name="CallOutsPortType">
            <operation name="getConfig">
                <input message="tns:getConfig">
                </input>
                <output message="tns:getConfigResponse">
                </output>
                <fault name="callOutFault" message="tns:callOutFault"/>
            </operation>
        <binding name="CallOutsBinding" type="tns:CallOutsPortType">
            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
            <operation name="getConfig">
                <soap:operation soapAction="getConfig"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
                <fault name="callOutFault">
                    <soap:fault name="callOutFault" use="literal"/>
                </fault>
            </operation>

  • Servicegen XML beans

    Is there any good example of using Weblogic web services with XML beans, but without
    using BEA's workshoop ? I've seen that the workshoop is able to handle web service
    + xml beans, but I haven't found the way to do it outside it.
    another question: is there a way to load a XML file from a string/file with the
    autogenerated classes from the autotype task ?
    Any help appreciated.
    Thanks

    Hi Rafael,
    The tenuous answer is yes there is an example, however we ask that you
    contact the fine folks in our support group [1] and reference CR124167.
    Hope this helps,
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Rafael Borges wrote:
    >
    Is there any good example of using Weblogic web services with XML beans, but without
    using BEA's workshoop ? I've seen that the workshoop is able to handle web service
    + xml beans, but I haven't found the way to do it outside it.
    another question: is there a way to load a XML file from a string/file with the
    autogenerated classes from the autotype task ?
    Any help appreciated.
    Thanks

  • XML Beans in Web Services / .xsd compilation

    Hello friends -
    I've been told of many wonderful things that can be accomplished by using XML
    beans in web service style integrations. However, I'm running into trouble actually
    getting anything done and was hoping someone could give me a few pointers. I'm
    trying to work inside Workshop 8.1 with the BEA server (i.e., not platform)
    - Documentation seems to reference the ability to compile an .xsd in order to
    get an XML Bean class representing your XML. However, I cannot find anything
    telling me how to do this. Is this supported in Workshop?
    - I'm only showing some classes referenced in the XML Beans Javadoc area as available
    inside my workshop IDE. For example, com.bea.xml.XmlBeans is not available.
    Is this a result of me using Server as opposed to the more complete Platform
    product?
    - Does anyone have a simple example .jws that utilizes a XML bean as an input
    or output? If so, I'd love to see it.
    Thanks so much.
    CM

    Hi,
    I thought passing XMLs was supported using SOAP. In this case, the XML data in the SOAP body is type "string" and the namespace of the XML inside separates it from the rest of the SOAP package. Can I do the same with...say... Web Dynpro where the WSDL is used to generate proxy classes. How do I add a namespace in the SOAP header so that I can add the XML in the body?
    I propose that life would be much easier if a datatype called XML, or some option before the WSDL is imported to create proxy classes is available which creates a wrapper for adding XML data. Far fetched...but can be done. Whats you opinion?
    Regards,
    Nirav Mehta

  • What is difference between Managed Bean and Backing Bean?

    What is difference between Managed Bean and Backing Bean? Please guide me how to create them and when to use them?
    Please post sample for both beans.

    Hi,
    managed beans and backing beans are quite the same in that the Java object is managed by the JavaServer Faces framework. Manage in this respect means instantiation. The difference is that backing beans contain component "binding" references, which managed beans usually don't. Do backing beans are page specific versions of managed beans.
    Managed beans are configured either in the faces-config.xml file, or using ADF Faces and ADFc, in the adfc-config.xml file
    Frank
    Edited by: Frank Nimphius on Jan 31, 2011 8:49 AM

  • Try to do my first XML Schema in SQL Server 2012 Mangement Studio(SSMS2012)-How to execute the xsd and xml files in SSMS2012?

    Hi all,
    I learmed the basic stuff of XML, DTD, DOM, etc. long time ago. Now, I came back to resume my XML journey and try to learn the XML Schemas, XPath and XQuery. I have Microsoft SQL Server 2012 Management Studio (SSMS2012) in our computer network. From
    Page 221 of the old Book "Beginning XML 2nd Edition" written by David Hunter, et.al., (published by Wrox), I copied the name5.xsd and name5.xml :
    <?xml version="1.0"?>
    <schema xmlns=http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.wrox.com/name" xmlns:target="http://www.wrox.com/name"
    elementFormDefault="qualified">
    <element name="name">
    <complexType>
    <sequence>
    <element name="first" type="string"/>
    <element name="middle" type="string"/>
    <element name="last" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    <?xml version="1.0"?>
    <name
    xmlns=http://www.wrox.com/name"
    xmlns:xsi="http://www.wrox.org/2001XMLSchema-instance"
    xsi:schemaLocation="http://www.wrox.com/name name5.xsd"
    title="Mr.">
    <first>John</first>
    <middle>Frizgerald</middle>
    <last>Doe</last>
    </name>
    How can I execute these two files in my SSMS2012 for doing my first XML Schema trial?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hi Eric Zhang, Thanks for your nice response.
    1) I saw the CREATE XML SCHEMA COLLECTION (Transact-SQL) and tried  its first example "Create XML schema collection in the database" in my SQL Server 2012 Management Studio (SSMS2012):
    -- Create a sample database in which to load the XML schema collection.
    -- Copied this set of code stsments from Microsoft Library (ms176009)
    -- ColesMS12_20a.sql (saved in C:/Documents/SQL Server Management Studio)
    -- 19 March 2015 1145 AM
    CREATE DATABASE SampleDB
    GO
    USE SampleDB
    GO
    CREATE XML SCHEMA COLLECTION ManuInstructionsSchemaCollection AS
    N'<?xml version="1.0" encoding="UTF-16"?>
    <xsd:schema targetNamespace="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
    xmlns ="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <xsd:complexType name="StepType" mixed="true" >
    <xsd:choice minOccurs="0" maxOccurs="unbounded" >
    <xsd:element name="tool" type="xsd:string" />
    <xsd:element name="material" type="xsd:string" />
    <xsd:element name="blueprint" type="xsd:string" />
    <xsd:element name="specs" type="xsd:string" />
    <xsd:element name="diag" type="xsd:string" />
    </xsd:choice>
    </xsd:complexType>
    <xsd:element name="root">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="Location" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="step" type="StepType" minOccurs="1" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attribute name="LocationID" type="xsd:integer" use="required"/>
    <xsd:attribute name="SetupHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="MachineHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="LaborHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="LotSize" type="xsd:decimal" use="optional"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>' ;
    GO
    -- Verify - list of collections in the database.
    select *
    from sys.xml_schema_collections
    -- Verify - list of namespaces in the database.
    select name
    from sys.xml_schema_namespaces
    -- Use it. Create a typed xml variable. Note collection name specified.
    DECLARE @x xml (ManuInstructionsSchemaCollection)
    GO
    --Or create a typed xml column.
    CREATE TABLE T (
    i int primary key,
    x xml (ManuInstructionsSchemaCollection))
    GO
    -- ////The following code statements are not used in order to create SampleDB
    -- Clean up
    ---DROP TABLE T
    ---GO
    ---DROP XML SCHEMA COLLECTION ManuInstructionsSchemaCollection
    ---Go
    ---USE Master
    ---GO
    ---DROP DATABASE SampleDB
    It worked and I got the following results:
    1 4 NULL sys 2009-04-13 12:59:13.390 2012-02-10 20:16:02.097
    65536 1 NULL ManuInstructionsSchemaCollection 2015-03-19 11:47:17.660 2015-03-19 11:47:17.660
    http://www.w3.org/2001/XMLSchema
    http://schemas.microsoft.com/sqlserver/2004/sqltypes
    http://www.w3.org/XML/1998/namespace
    http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions
    But, I don't undertand (i) what SCHEMA COECTION is, (ii) what <xsd:schema targetNamespace=.....</xsd:complexType> are, (iii) How I can specify my "project specific" schema in the Microsoft SCHEMA COLLECTION to check my xml file.
    2) I dived in the XQuery programmimng in SSMS2012 in the last few weeks. I used the examles of Ad-Hoc XML File Query by Seth Delconte (in
    httpS://www.simple-talk.com/content/print.aspx?article=1756) in my SSMS2012. They worked. But I don't understand the (i) Importing XML data using a function, (ii) Using the XQuery contans()
    function to find substrings, (iii)Efficiency comparisons in the article.
    Please kindly help me in enlightening me to resolve the difficulties listed in 1) and 2).
    Thanks,
    Scott Chang

  • Execute SQL Task - FOR XML PATH query error

    I have the following query
    SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.PackageName,
    pl.Computer,
    pl.Operator,
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    ISNULL(ErrorFile,'') as ErrorFile,
    'Not Applicable' as SourceSystem
    FROM etl.PackageLog as pl
    WHERE pl.Processed = 0
    ORDER BY pl.StartTime, pl.PackageName
    FOR XML PATH('Row'), ROOT(N'FieldingCounts')
    in a Execute SQL Task and i get the following error:
    [Execute SQL Task] Error: Executing the query "SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.Package..." failed with the following error: "An invalid character was found in text content.
    ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    The query execute without problem in database and in the ssis package doens't run because of the column
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    Any help to overcome the problem?
    Thanks

    Hi,
    It looks like that you must be trying to set the result of the query to some variable from the Execute SQL Task. If yes, make sure that the target variable is of the correct data type where XML string  can fit into. Considering that in SSIS, we have
    some limit for XML strings.
    Please let me know if it doesn't help.
    Thanks,
    Nimit

  • Servlets and Application Beans

    Hi I'm reviewing some sample code that was originally done as a JSF application. I however will not be doing a JSF application but rather a simple Model 2 architecture using servlets. I'm trying to confirm what the equivalent to an application managed and session beans in JSF would be in a servlet environment. For example the following xml in a JSF app...
    - <managed-bean>
    <managed-bean-name>jpaResourceBean</managed-bean-name>
    <managed-bean-class>oracle.toplink.jpa.example.inventory.services.impl.JPAResourceBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    - <managed-bean>
    <managed-bean-name>inventoryService</managed-bean-name>
    <managed-bean-class>oracle.toplink.jpa.example.inventory.services.impl.ManagedInventoryBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    - <managed-property>
    <property-name>jpaResourceBean</property-name>
    <value>#{jpaResourceBean}</value>
    </managed-propert
    Would that simple be using the servlet context and session variables? Any other tips on the right way to do this?
    Thanks

    fsa3 wrote:
    I'm trying to confirm what the equivalent to an application managed and session beans in JSF would be in a servlet environment.JSF application scoped beans are stored as ServletContext attributes and JSF session scoped beans are stored as HttpSession attributes. So do the same in a servlet and you're fine.

  • JMS Adapter getting xml without namespace

    Hello,
    We're using BPEL 10.1.3.4 and we need to integrate a legacy system with a new one. The legacy system writes in a JMS queue a simple xml message without namespaces (following although a specific schema). When in BPEL I try to get this xml I cannot access its elements and I'm getting errors like the following:
    variable/ expression is empty
    Which seems normal as bpel tries to access the element using namespaces.
    I found this thread which seems to be the same issue Re: writing XML without namespace? but I cannot actually understand the approach.
    Any help will be really usefull!
    Thank you!

    Hi,
    Did the solution mentioned in the other thread worked for you? I am having the exact problem.
    Thanks.

Maybe you are looking for

  • INSANELY SUPER SLOW conversion times for MP4 to Quicktime Movie..HELP!!!!!!

    Hi folks... I am frustrated. I am a student in a Film Editing class. I have an assignment where I have to take a classic film and create a movie trailer for it using the original film and editing in FinalCut Pro. I started off by using Handbrake to c

  • Time Machine backup on Mountain Lion not restoring

    I recently upgraded from Lion to Mountain Lion. After the upgrade, I duly take back ups to my two existing time machine back-ups on two external hard disks. I also maintain a separate CCC bootable clone. I recently tried to restore my calendary folde

  • 12GB already used on out-of-the-box refurb MBP?

    Hi- Just a quick question-- My refurbished 15-inch MBP (2.2 Ghz, 120 GB hard disk) just arrived. I took it out of the box, started up and registered, and was planning to shift things from my old Powerbook G4 in Target disk mode, etc, but haven't done

  • IPhone 5: Audio no working

    Okay, now I'm pretty peeved---switched to iPhone 5 after years of bb's being slow and crashing. I figured, well, the 5th gen has to have all the kinks worked out, right? And I'm a surgeon and use it as a pager as well---so it can have absolutely NO f

  • Standard Program that will used to pick up Inbound delivery frm VL32N

    Hi, I am creating one smart form, in that i have to pick up LIKP-VBELN from transaction VL32N (Inbound delivery) to display some fields in the smart form based on the inbound delivery doc(VBELN from VL32N). I am unable to find the standard program wh