You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Maciej Kwiecien <ma...@gmail.com> on 2008/07/25 12:13:11 UTC

[CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Hey All,

I downloaded CXF 2.1.1 sources.
When I run:
mvn -Pfastinstall -Psetup.eclipse


I got:
.....
[INFO] Building Apache CXF Test Utilities
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [antrun:run {execution: validate}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] Registering compile source root
C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
[INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
[INFO] FastInfosetting 0 resource
[INFO] FastInfosetting 0 resource
[INFO] Resource directory does not exist:
C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
[INFO] FastInfosetting 0 resource
[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
[INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1304 source files to
C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service

C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
cannot find symbol
symbol  : method
getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
..........


What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
$JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
regarding  JAXB API version mismatch)


I also tried to get rid temporarly of testutils from build then I got
following error:

[INFO] Building Apache CXF Runtime XML Binding
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
[INFO] FastInfosetting 0 resource
[INFO] FastInfosetting 1 resource
[INFO] Resource directory does not exist:
C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
[INFO] FastInfosetting 0 resource
[INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
[ERROR] src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to
a(n) 'type definition' component.
  line 32 of
file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd

Failed to parse a schema.
org.apache.tools.ant.ExitException: ExitException: status -1
        at
org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
        at java.lang.Runtime.exit(Runtime.java:88)
        at java.lang.System.exit(System.java:906)
        at com.sun.tools.xjc.Driver._main(Driver.java:116)
        at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
        at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] ExitException: status -1


Please let me know how can I make it work....

Regards,
Maciej

Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Glen Mazza <gl...@gmail.com>.
I would try JDK 6.0 update 4 or greater, and see if the problem persists. 
I'm unsure if it is just the API that needs replacing.

Glen


Maciej Kwiecien wrote:
> 
> Hi Freeman,
> 
> Thanks for info. However, I get  compilation errror in Apache CXF Test
> Utilities  with jaxws 2.1 api present in endorsed folder...
> 
> Regards,
> Maciej
> 
> On Fri, Jul 25, 2008 at 12:13 PM, Freeman Fang <fr...@gmail.com>
> wrote:
> 
>> Hi,
>>
>> IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need jaxws 2.1
>> api, this version mismatch can cause this error.
>>
>> I suggest you update your jdk version to jdk 1.6 update 4 or later, which
>> ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse folder as
>> well.
>>
>> Freeman
>>
>>
>> Maciej Kwiecien wrote:
>>
>>> Hey All,
>>>
>>> I downloaded CXF 2.1.1 sources.
>>> When I run:
>>> mvn -Pfastinstall -Psetup.eclipse
>>>
>>>
>>> I got:
>>> .....
>>> [INFO] Building Apache CXF Test Utilities
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>>
>>> ----------------------------------------------------------------------------
>>> [INFO] [antrun:run {execution: validate}]
>>> [INFO] Executing tasks
>>> [INFO] Executed tasks
>>> [INFO] Registering compile source root
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>> xml2fastinfoset}]
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] Resource directory does not exist:
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>> [INFO] [remote-resources:process {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Compiling 1304 source files to
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>> ..........
>>>
>>>
>>> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
>>> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
>>> regarding  JAXB API version mismatch)
>>>
>>>
>>> I also tried to get rid temporarly of testutils from build then I got
>>> following error:
>>>
>>> [INFO] Building Apache CXF Runtime XML Binding
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>>
>>> ----------------------------------------------------------------------------
>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>> xml2fastinfoset}]
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] FastInfosetting 1 resource
>>> [INFO] Resource directory does not exist:
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>> [ERROR] src-resolve: Cannot resolve the name
>>> 'wsdl:tExtensibilityElement'
>>> to
>>> a(n) 'type definition' component.
>>>  line 32 of
>>>
>>> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd
>>>
>>> Failed to parse a schema.
>>> org.apache.tools.ant.ExitException: ExitException: status -1
>>>        at
>>>
>>> org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>>>        at java.lang.Runtime.exit(Runtime.java:88)
>>>        at java.lang.System.exit(System.java:906)
>>>        at com.sun.tools.xjc.Driver._main(Driver.java:116)
>>>        at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>>>        at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] ExitException: status -1
>>>
>>>
>>> Please let me know how can I make it work....
>>>
>>> Regards,
>>> Maciej
>>>
>>>
>>>
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/-CXF-2.1.1--mvn--Pfastinstall--Psetup.eclipse-ends-up-with-compiliation-failure-in-generated-sources-tp18648911p18649371.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Daniel Kulp <dk...@apache.org>.

You need to also add the jaxws api/spec jar to the endorsed dir.   The  
classes in the list of errors are all from the jaxws-api jar.    
1.6.0_03 has 2.0 built in, but CXF 2.1 requires the 2.1 version.


Dan



On Jul 25, 2008, at 7:11 AM, Maciej Kwiecien wrote:

> Willem
>
> I have jaxb api 2.1 and jabx impl 2.1.3 endorsed - stil no luck -I  
> get the
> same error.
> Unfortunatelly, I can't update JRE ...
>
> Maciej
>
> On Fri, Jul 25, 2008 at 12:57 PM, Willem Jiang  
> <wi...@gmail.com>
> wrote:
>
>> Oh, you also need endorse the jaxb api 2.1 and jaxb impl 2.1.
>>
>> Willem
>>
>> Maciej Kwiecien wrote:
>>
>>> Hi Freeman,
>>>
>>> Thanks for info. However, I get  compilation errror in Apache CXF  
>>> Test
>>> Utilities  with jaxws 2.1 api present in endorsed folder...
>>>
>>> Regards,
>>> Maciej
>>>
>>> On Fri, Jul 25, 2008 at 12:13 PM, Freeman Fang <freeman.fang@gmail.com 
>>> >
>>> wrote:
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need  
>>>> jaxws 2.1
>>>> api, this version mismatch can cause this error.
>>>>
>>>> I suggest you update your jdk version to jdk 1.6 update 4 or  
>>>> later, which
>>>> ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse  
>>>> folder as
>>>> well.
>>>>
>>>> Freeman
>>>>
>>>>
>>>> Maciej Kwiecien wrote:
>>>>
>>>>
>>>>
>>>>> Hey All,
>>>>>
>>>>> I downloaded CXF 2.1.1 sources.
>>>>> When I run:
>>>>> mvn -Pfastinstall -Psetup.eclipse
>>>>>
>>>>>
>>>>> I got:
>>>>> .....
>>>>> [INFO] Building Apache CXF Test Utilities
>>>>> [INFO]    task-segment: [install]
>>>>> [INFO]
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------------
>>>>> [INFO] [antrun:run {execution: validate}]
>>>>> [INFO] Executing tasks
>>>>> [INFO] Executed tasks
>>>>> [INFO] Registering compile source root
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java
>>>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>>>> xml2fastinfoset}]
>>>>> [INFO] FastInfosetting 0 resource
>>>>> [INFO] FastInfosetting 0 resource
>>>>> [INFO] Resource directory does not exist:
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources- 
>>>>> filtered
>>>>> [INFO] FastInfosetting 0 resource
>>>>> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
>>>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>>>> [INFO] [remote-resources:process {execution: default}]
>>>>> [INFO] [resources:resources]
>>>>> [INFO] Using default encoding to copy filtered resources.
>>>>> [INFO] [compiler:compile]
>>>>> [INFO] Compiling 1304 source files to
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Compilation failure
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\cxf\greeter_control 
>>>>> \BasicGreeterService.java:[77,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\schema_validation 
>>>>> \SchemaValidationService.java:[77,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .schema_validation 
>>>>> .SchemaValidation>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\cxf\test\TestService.java:[77,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\hello_world_soap_http_secure 
>>>>> \SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .hello_world_soap_http_secure 
>>>>> .Greeter>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\hello_world_soap_http 
>>>>> \SOAPServiceMultiPortTypeTest.java:[78,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .hello_world_soap_http 
>>>>> .DocLitBare>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>>
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src 
>>>>> \main\java\org\apache\hello_world_soap_http 
>>>>> \SOAPServiceMultiPortTypeTest.java:[99,20]
>>>>> cannot find symbol
>>>>> symbol  : method
>>>>>
>>>>>
>>>>> getPort 
>>>>> (javax 
>>>>> .xml 
>>>>> .namespace 
>>>>> .QName 
>>>>> ,java 
>>>>> .lang 
>>>>> .Class 
>>>>> < 
>>>>> org 
>>>>> .apache 
>>>>> .hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>> ..........
>>>>>
>>>>>
>>>>> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API  
>>>>> jar in
>>>>> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got  
>>>>> error
>>>>> regarding  JAXB API version mismatch)
>>>>>
>>>>>
>>>>> I also tried to get rid temporarly of testutils from build then  
>>>>> I got
>>>>> following error:
>>>>>
>>>>> [INFO] Building Apache CXF Runtime XML Binding
>>>>> [INFO]    task-segment: [install]
>>>>> [INFO]
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------------
>>>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>>>> xml2fastinfoset}]
>>>>> [INFO] FastInfosetting 0 resource
>>>>> [INFO] FastInfosetting 1 resource
>>>>> [INFO] Resource directory does not exist:
>>>>>
>>>>>
>>>>> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main 
>>>>> \resources-filtered
>>>>> [INFO] FastInfosetting 0 resource
>>>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>>>> [ERROR] src-resolve: Cannot resolve the name
>>>>> 'wsdl:tExtensibilityElement'
>>>>> to
>>>>> a(n) 'type definition' component.
>>>>> line 32 of
>>>>>
>>>>>
>>>>> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/ 
>>>>> resources/schemas/wsdl/xml-binding.xsd
>>>>>
>>>>> Failed to parse a schema.
>>>>> org.apache.tools.ant.ExitException: ExitException: status -1
>>>>>      at
>>>>>
>>>>>
>>>>> org 
>>>>> .apache 
>>>>> .tools 
>>>>> .ant 
>>>>> .util 
>>>>> .optional 
>>>>> .NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>>>>>      at java.lang.Runtime.exit(Runtime.java:88)
>>>>>      at java.lang.System.exit(System.java:906)
>>>>>      at com.sun.tools.xjc.Driver._main(Driver.java:116)
>>>>>      at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>>>>>      at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] ExitException: status -1
>>>>>
>>>>>
>>>>> Please let me know how can I make it work....
>>>>>
>>>>> Regards,
>>>>> Maciej
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog





Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Maciej Kwiecien <ma...@gmail.com>.
 Willem

I have jaxb api 2.1 and jabx impl 2.1.3 endorsed - stil no luck -I get the
same error.
Unfortunatelly, I can't update JRE ...

Maciej

On Fri, Jul 25, 2008 at 12:57 PM, Willem Jiang <wi...@gmail.com>
wrote:

> Oh, you also need endorse the jaxb api 2.1 and jaxb impl 2.1.
>
> Willem
>
> Maciej Kwiecien wrote:
>
>> Hi Freeman,
>>
>> Thanks for info. However, I get  compilation errror in Apache CXF Test
>> Utilities  with jaxws 2.1 api present in endorsed folder...
>>
>> Regards,
>> Maciej
>>
>> On Fri, Jul 25, 2008 at 12:13 PM, Freeman Fang <fr...@gmail.com>
>> wrote:
>>
>>
>>
>>> Hi,
>>>
>>> IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need jaxws 2.1
>>> api, this version mismatch can cause this error.
>>>
>>> I suggest you update your jdk version to jdk 1.6 update 4 or later, which
>>> ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse folder as
>>> well.
>>>
>>> Freeman
>>>
>>>
>>> Maciej Kwiecien wrote:
>>>
>>>
>>>
>>>> Hey All,
>>>>
>>>> I downloaded CXF 2.1.1 sources.
>>>> When I run:
>>>> mvn -Pfastinstall -Psetup.eclipse
>>>>
>>>>
>>>> I got:
>>>> .....
>>>> [INFO] Building Apache CXF Test Utilities
>>>> [INFO]    task-segment: [install]
>>>> [INFO]
>>>>
>>>>
>>>> ----------------------------------------------------------------------------
>>>> [INFO] [antrun:run {execution: validate}]
>>>> [INFO] Executing tasks
>>>> [INFO] Executed tasks
>>>> [INFO] Registering compile source root
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
>>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>>> xml2fastinfoset}]
>>>> [INFO] FastInfosetting 0 resource
>>>> [INFO] FastInfosetting 0 resource
>>>> [INFO] Resource directory does not exist:
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
>>>> [INFO] FastInfosetting 0 resource
>>>> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
>>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>>> [INFO] [remote-resources:process {execution: default}]
>>>> [INFO] [resources:resources]
>>>> [INFO] Using default encoding to copy filtered resources.
>>>> [INFO] [compiler:compile]
>>>> [INFO] Compiling 1304 source files to
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Compilation failure
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>>
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
>>>> cannot find symbol
>>>> symbol  : method
>>>>
>>>>
>>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
>>>> location: class javax.xml.ws.Service
>>>> ..........
>>>>
>>>>
>>>> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
>>>> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
>>>> regarding  JAXB API version mismatch)
>>>>
>>>>
>>>> I also tried to get rid temporarly of testutils from build then I got
>>>> following error:
>>>>
>>>> [INFO] Building Apache CXF Runtime XML Binding
>>>> [INFO]    task-segment: [install]
>>>> [INFO]
>>>>
>>>>
>>>> ----------------------------------------------------------------------------
>>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution:
>>>> xml2fastinfoset}]
>>>> [INFO] FastInfosetting 0 resource
>>>> [INFO] FastInfosetting 1 resource
>>>> [INFO] Resource directory does not exist:
>>>>
>>>>
>>>> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
>>>> [INFO] FastInfosetting 0 resource
>>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>>> [ERROR] src-resolve: Cannot resolve the name
>>>> 'wsdl:tExtensibilityElement'
>>>> to
>>>> a(n) 'type definition' component.
>>>>  line 32 of
>>>>
>>>>
>>>> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd
>>>>
>>>> Failed to parse a schema.
>>>> org.apache.tools.ant.ExitException: ExitException: status -1
>>>>       at
>>>>
>>>>
>>>> org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>>>>       at java.lang.Runtime.exit(Runtime.java:88)
>>>>       at java.lang.System.exit(System.java:906)
>>>>       at com.sun.tools.xjc.Driver._main(Driver.java:116)
>>>>       at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>>>>       at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] ExitException: status -1
>>>>
>>>>
>>>> Please let me know how can I make it work....
>>>>
>>>> Regards,
>>>> Maciej
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>

Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Willem Jiang <wi...@gmail.com>.
Oh, you also need endorse the jaxb api 2.1 and jaxb impl 2.1.

Willem
Maciej Kwiecien wrote:
> Hi Freeman,
>
> Thanks for info. However, I get  compilation errror in Apache CXF Test
> Utilities  with jaxws 2.1 api present in endorsed folder...
>
> Regards,
> Maciej
>
> On Fri, Jul 25, 2008 at 12:13 PM, Freeman Fang <fr...@gmail.com>
> wrote:
>
>   
>> Hi,
>>
>> IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need jaxws 2.1
>> api, this version mismatch can cause this error.
>>
>> I suggest you update your jdk version to jdk 1.6 update 4 or later, which
>> ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse folder as well.
>>
>> Freeman
>>
>>
>> Maciej Kwiecien wrote:
>>
>>     
>>> Hey All,
>>>
>>> I downloaded CXF 2.1.1 sources.
>>> When I run:
>>> mvn -Pfastinstall -Psetup.eclipse
>>>
>>>
>>> I got:
>>> .....
>>> [INFO] Building Apache CXF Test Utilities
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>>
>>> ----------------------------------------------------------------------------
>>> [INFO] [antrun:run {execution: validate}]
>>> [INFO] Executing tasks
>>> [INFO] Executed tasks
>>> [INFO] Registering compile source root
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] Resource directory does not exist:
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>> [INFO] [remote-resources:process {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Compiling 1304 source files to
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>>
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
>>> cannot find symbol
>>> symbol  : method
>>>
>>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>> ..........
>>>
>>>
>>> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
>>> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
>>> regarding  JAXB API version mismatch)
>>>
>>>
>>> I also tried to get rid temporarly of testutils from build then I got
>>> following error:
>>>
>>> [INFO] Building Apache CXF Runtime XML Binding
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>>
>>> ----------------------------------------------------------------------------
>>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] FastInfosetting 1 resource
>>> [INFO] Resource directory does not exist:
>>>
>>> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
>>> [INFO] FastInfosetting 0 resource
>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>> [ERROR] src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement'
>>> to
>>> a(n) 'type definition' component.
>>>  line 32 of
>>>
>>> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd
>>>
>>> Failed to parse a schema.
>>> org.apache.tools.ant.ExitException: ExitException: status -1
>>>        at
>>>
>>> org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>>>        at java.lang.Runtime.exit(Runtime.java:88)
>>>        at java.lang.System.exit(System.java:906)
>>>        at com.sun.tools.xjc.Driver._main(Driver.java:116)
>>>        at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>>>        at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] ExitException: status -1
>>>
>>>
>>> Please let me know how can I make it work....
>>>
>>> Regards,
>>> Maciej
>>>
>>>
>>>
>>>       
>>     
>
>   


Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Maciej Kwiecien <ma...@gmail.com>.
Hi Freeman,

Thanks for info. However, I get  compilation errror in Apache CXF Test
Utilities  with jaxws 2.1 api present in endorsed folder...

Regards,
Maciej

On Fri, Jul 25, 2008 at 12:13 PM, Freeman Fang <fr...@gmail.com>
wrote:

> Hi,
>
> IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need jaxws 2.1
> api, this version mismatch can cause this error.
>
> I suggest you update your jdk version to jdk 1.6 update 4 or later, which
> ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse folder as well.
>
> Freeman
>
>
> Maciej Kwiecien wrote:
>
>> Hey All,
>>
>> I downloaded CXF 2.1.1 sources.
>> When I run:
>> mvn -Pfastinstall -Psetup.eclipse
>>
>>
>> I got:
>> .....
>> [INFO] Building Apache CXF Test Utilities
>> [INFO]    task-segment: [install]
>> [INFO]
>>
>> ----------------------------------------------------------------------------
>> [INFO] [antrun:run {execution: validate}]
>> [INFO] Executing tasks
>> [INFO] Executed tasks
>> [INFO] Registering compile source root
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
>> [INFO] FastInfosetting 0 resource
>> [INFO] FastInfosetting 0 resource
>> [INFO] Resource directory does not exist:
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
>> [INFO] FastInfosetting 0 resource
>> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Compiling 1304 source files to
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>>
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
>> cannot find symbol
>> symbol  : method
>>
>> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
>> location: class javax.xml.ws.Service
>> ..........
>>
>>
>> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
>> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
>> regarding  JAXB API version mismatch)
>>
>>
>> I also tried to get rid temporarly of testutils from build then I got
>> following error:
>>
>> [INFO] Building Apache CXF Runtime XML Binding
>> [INFO]    task-segment: [install]
>> [INFO]
>>
>> ----------------------------------------------------------------------------
>> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
>> [INFO] FastInfosetting 0 resource
>> [INFO] FastInfosetting 1 resource
>> [INFO] Resource directory does not exist:
>>
>> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
>> [INFO] FastInfosetting 0 resource
>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>> [ERROR] src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement'
>> to
>> a(n) 'type definition' component.
>>  line 32 of
>>
>> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd
>>
>> Failed to parse a schema.
>> org.apache.tools.ant.ExitException: ExitException: status -1
>>        at
>>
>> org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>>        at java.lang.Runtime.exit(Runtime.java:88)
>>        at java.lang.System.exit(System.java:906)
>>        at com.sun.tools.xjc.Driver._main(Driver.java:116)
>>        at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>>        at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] ExitException: status -1
>>
>>
>> Please let me know how can I make it work....
>>
>> Regards,
>> Maciej
>>
>>
>>
>
>

Re: [CXF 2.1.1] mvn -Pfastinstall -Psetup.eclipse ends up with compiliation failure in generated sources

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

IIRC jdk 1.6.0_03  also ship jaxws 2.0 api, but cxf 2.1.1 need jaxws 2.1 
api, this version mismatch can cause this error.

I suggest you update your jdk version to jdk 1.6 update 4 or later, 
which ship jaxws 2.1 api. Or you need put jaxws 2.1 api in endorse 
folder as well.

Freeman

Maciej Kwiecien wrote:
> Hey All,
>
> I downloaded CXF 2.1.1 sources.
> When I run:
> mvn -Pfastinstall -Psetup.eclipse
>
>
> I got:
> .....
> [INFO] Building Apache CXF Test Utilities
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [antrun:run {execution: validate}]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] Registering compile source root
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java
> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
> [INFO] FastInfosetting 0 resource
> [INFO] FastInfosetting 0 resource
> [INFO] Resource directory does not exist:
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\src\main\resources-filtered
> [INFO] FastInfosetting 0 resource
> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 1304 source files to
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\greeter_control\BasicGreeterService.java:[77,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.greeter_control.Greeter>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\schema_validation\SchemaValidationService.java:[77,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.schema_validation.SchemaValidation>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\cxf\test\TestService.java:[77,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.cxf.test.TestInterfacePort>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http_secure\SecureSOAPServiceServerConfiguredByBadProvider.java:[77,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http_secure.Greeter>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[78,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.DocLitBare>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
>
> C:\App\cxf\apache-cxf-2.1.1-src\testutils\target\generated\src\main\java\org\apache\hello_world_soap_http\SOAPServiceMultiPortTypeTest.java:[99,20]
> cannot find symbol
> symbol  : method
> getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.hello_world_soap_http.Greeter>,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> ..........
>
>
> What is more, I am using jdk 1.6.0_03  and I have JAXB 2.1 API jar in
> $JAVA_HOME/jre/lib/endorsed directory (without this jar I got error
> regarding  JAXB API version mismatch)
>
>
> I also tried to get rid temporarly of testutils from build then I got
> following error:
>
> [INFO] Building Apache CXF Runtime XML Binding
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
> [INFO] FastInfosetting 0 resource
> [INFO] FastInfosetting 1 resource
> [INFO] Resource directory does not exist:
> C:\App\cxf\apache-cxf-2.1.1-src\rt\bindings\xml\src\main\resources-filtered
> [INFO] FastInfosetting 0 resource
> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
> [ERROR] src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to
> a(n) 'type definition' component.
>   line 32 of
> file:/C:/App/cxf/apache-cxf-2.1.1-src/rt/bindings/xml/src/main/resources/schemas/wsdl/xml-binding.xsd
>
> Failed to parse a schema.
> org.apache.tools.ant.ExitException: ExitException: status -1
>         at
> org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(NoExitSecurityManager.java:38)
>         at java.lang.Runtime.exit(Runtime.java:88)
>         at java.lang.System.exit(System.java:906)
>         at com.sun.tools.xjc.Driver._main(Driver.java:116)
>         at com.sun.tools.xjc.Driver.access$000(Driver.java:74)
>         at com.sun.tools.xjc.Driver$1.run(Driver.java:96)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] ExitException: status -1
>
>
> Please let me know how can I make it work....
>
> Regards,
> Maciej
>
>