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 <[EMAIL PROTECTED]>
> 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.

Reply via email to