[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433943#comment-16433943
 ] 

Peter Dähn commented on OPENMEETINGS-1866:
------------------------------------------

sorry for the late response, but sill not able to compile it, because it 
complains about twice used <xs:simpleType name="type">

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="org.apache.openmeetings.user.type" version="1.0">

  <xs:simpleType name="type">
    <xs:restriction base="xs:string">
      <xs:enumeration value="user"/>
      <xs:enumeration value="ldap"/>
      <xs:enumeration value="oauth"/>
      <xs:enumeration value="external"/>
      <xs:enumeration value="contact"/>
    </xs:restriction>
  </xs:simpleType>

</xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="org.apache.openmeetings.room.type" version="1.0">

  <xs:simpleType name="type">
    <xs:restriction base="xs:string">
      <xs:enumeration value="conference"/>
      <xs:enumeration value="presentation"/>
      <xs:enumeration value="interview"/>
    </xs:restriction>
  </xs:simpleType>

</xs:schema>

 

Error during build:

 

[ERROR] Eine Klasse/Schnittstelle mit demselben Namen 
"org.apache.openmeetings.webservice.CalendarWebService.Type" wird bereits 
verwendet. Verwenden Sie eine Klassenanpassung, um diesen Konflikt zu lösen.
  Zeile 32 von http://server:5080/openmeetings/services/CalendarService?wsdl

[ERROR] eine weitere "Type" wird von hier generiert.
  Zeile 5 von http://server:5080/openmeetings/services/CalendarService?wsdl

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.mojo.jaxws.Invoker.main(Invoker.java:78)
Caused by: com.sun.tools.ws.wscompile.AbortException
        at 
com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:144)
        at 
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2298)
        at 
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:198)
        at 
com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:141)
        at 
com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:444)
        at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
        at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
        ... 5 more

> Entity enums should be annotated with different namespaces
> ----------------------------------------------------------
>
>                 Key: OPENMEETINGS-1866
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-1866
>             Project: Openmeetings
>          Issue Type: Task
>          Components: SOAP/REST API
>    Affects Versions: 4.0.2
>            Reporter: Maxim Solodovnik
>            Assignee: Maxim Solodovnik
>            Priority: Trivial
>             Fix For: 4.0.3
>
>
> Entity enums should be annotated with different namespaces



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to