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