You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Raja Nagendra Kumar <na...@tejasoft.com> on 2014/04/28 16:09:13 UTC
CXF Test Cases failing
Hi,
CXF mvn packaging target fails
Apr 28, 2014 7:34:03 PM
org.apache.cxf.tools.validator.internal.WSDLRefValidator
collectValidationPoints
WARNING: WSDL document
file:/C:/temp/cxf/tools/wsdlto/test/target/test-classes/w
sdl2java_wsdl/no_port_or_service.wsdl does not define any services
Tests run: 69, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 21.323
sec <<<
FAILURE! - in org.apache.cxf.tools.wsdlto.jaxws.CodeGenBugTest
testNamespacePackageMapping3(org.apache.cxf.tools.wsdlto.jaxws.CodeGenBugTest)
Time elapsed: 0.246 sec <<< ERROR!
org.apache.cxf.tools.common.ToolException: FAIL_TO_WRITE_FILE
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at
org.apache.cxf.tools.util.OutputStreamCreator.createOutputStream(Outp
utStreamCreator.java:33)
at
org.apache.cxf.tools.util.FileWriterUtil.getWriter(FileWriterUtil.jav
a:68)
at
org.apache.cxf.tools.util.FileWriterUtil.getWriter(FileWriterUtil.jav
a:75)
at
org.apache.cxf.tools.wsdlto.core.AbstractGenerator.parseOutputName(Ab
stractGenerator.java:88)
at
org.apache.cxf.tools.wsdlto.core.AbstractGenerator.parseOutputName(Ab
stractGenerator.java:105)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.generators.SEIGenerator.ge
nerate(SEIGenerator.java:126)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJav
aContainer.java:299)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
tainer.java:164)
at
org.apache.cxf.tools.wsdlto.jaxws.CodeGenBugTest.testNamespacePackage
Mapping3(CodeGenBugTest.java:202)
Running org.apache.cxf.tools.wsdlto.jaxws.CodeGenOptionTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.249
sec - in
org.apache.cxf.tools.wsdlto.jaxws.CodeGenOptionTest
Running org.apache.cxf.tools.wsdlto.jaxws.CodeGenTest
WSIBP Validator found
<{http://apache.org/xml_http_bare}GreetingPortTypeXMLBindi
ng> is NOT a SOAP binding
WSIBP Validator found
<{http://apache.org/xml_http_wrapped}GreetingPortTypeXMLBi
nding> is NOT a SOAP binding
Apr 28, 2014 7:34:16 PM
org.apache.cxf.tools.validator.internal.WSDLRefValidator
collectValidationPoints
WARNING: WSDL document
file:/C:/temp/cxf/tools/wsdlto/test/target/test-classes/w
sdl2java_wsdl/helloworld-noservice-header.wsdl does not define any services
Apr 28, 2014 7:34:17 PM
org.apache.cxf.tools.validator.internal.WSDLRefValidator
collectValidationPoints
WARNING: WSDL document
file:/C:/temp/cxf/tools/wsdlto/test/target/test-classes/w
sdl2java_wsdl/hello_world_async_noservice.wsdl does not define any services
Apr 28, 2014 7:34:21 PM org.apache.cxf.tools.common.ToolErrorListener
addWarning
WARNING:
file:/C:/temp/cxf/tools/wsdlto/test/target/test-classes/wsdl2java_wsdl/
swa-mime.wsdl [34,25]: An xmime:expectedContentTypes attribute is
present on an
incorrect element
Tests run: 60, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.991
sec <<<
FAILURE! - in org.apache.cxf.tools.wsdlto.jaxws.CodeGenTest
testWrapperWithWildcard(org.apache.cxf.tools.wsdlto.jaxws.CodeGenTest)
Time ela
psed: 0.003 sec <<< ERROR!
java.io.IOException: a folder with the name 'classes' already exists
at
org.junit.rules.TemporaryFolder.newFolder(TemporaryFolder.java:97)
at
org.junit.rules.TemporaryFolder.newFolder(TemporaryFolder.java:84)
at
org.apache.cxf.tools.wsdlto.AbstractCodeGenTest$1.before(AbstractCode
GenTest.java:42)
at
org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
at
org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
r.java:264)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
Provider.java:153)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
.java:124)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
ssLoader(ForkedBooter.java:200)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
edBooter.java:153)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
103)
I am using JDK 6.0 and trunk of cxf code.
Any way to fix it.
Regards,
Nagendra
--
*Raja Nagendra Kumar*
Founder & C.T.O
*Mobile:* +91-9886723872
*Email:* nagendra.raja@tejasoft.com <ma...@tejasoft.com>
*IM:* nagendra.raja (Skype)
*http://in.linkedin.com/in/nagkumar*
*TejaSoft Innovations Pvt Ltd*
<http://www.tejasoft.com>
Factor 4 Results
See who we know in common
<http://www.linkedin.com/e/wwk/5094208/?hs=false&tok=0bfzEZotG8slI1>
Want a signature like this?
<http://www.linkedin.com/e/sig/5094208/?hs=false&tok=0uLVu92uq8slI1>
Re: CXF compile with JDK 8
Posted by Willem Jiang <wi...@gmail.com>.
I managed to work around the new JAXP security setting issue by applying -Djavax.xml.accessExternalSchema=file,http and forcing jaxb maven plugin not to fork when running the mvn clean install.
But I hit the issue of jibx plugin[1], it looks like Dennis need a fund to resolve this issue.
[1]http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg05000.html
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On May 1, 2014 at 1:34:35 AM, Daniel Kulp (dkulp@apache.org) wrote:
>
> At this point, there isn’t a way to build CXF with Java 8. The versions of JAXB available
> in maven central cannot handle having the XML secure processing flag turned on by default.
> Until Oracle releases a new version of JAXB, I’m not sure what we can do. The only option
> available would be to start depending directly on the “internal” versions of JAXB found
> in the JDK, but that has other issues, particularly with IDE’s like Eclipse that restrict
> that as well as on Java6 where the internal version is based on 2.1 instead of 2.2.
>
> Also, a couple other plugins still have issues. For example, the jibx plugin fails on
> java8 as well.
>
> Dan
>
>
>
> On Apr 28, 2014, at 11:35 AM, Raja Nagendra Kumar wrote:
>
> > Hi,
> >
> >
> > I am using mvn package for compiling source code cxf (https://git-wip-us.apache.org/repos/asf/cxf.git)
> >
> > I am using JDK 8 to compile.
> >
> >
> > Source Code compile fails with error
> >
> >
> > [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.0.0-SNAPSHOT:
> > wsdl2java (generate-sources) on project cxf-testutils:
> > [ERROR] Exit code: 1
> > [ERROR] Command line was: d:\Apps\java\jdk\jre\bin\java.exe -jar C:\Users\nagkum
> > ar\AppData\Local\Temp\cxf-tmp-36108\cxf-codegen6570965978496805609.jar
> C:\Users\
> > nagkumar\AppData\Local\Temp\cxf-tmp-36108\cxf-w2j6619711455234741106args
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
> > ch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions, please rea
> > d the following articles:
> > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> > xception
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the command
> >
> > [ERROR] mvn -rf :cxf-testutils
> >
> > Does this not work with JDK 8, compile works fine with JDK 6 & 7.
> > Is there any work around.
> >
> >
> > Raja Nagendra Kumar,
> > C.T.O
> > www.tejasoft.com
> >
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>
Re: CXF compile with JDK 8
Posted by Daniel Kulp <dk...@apache.org>.
At this point, there isn’t a way to build CXF with Java 8. The versions of JAXB available in maven central cannot handle having the XML secure processing flag turned on by default. Until Oracle releases a new version of JAXB, I’m not sure what we can do. The only option available would be to start depending directly on the “internal” versions of JAXB found in the JDK, but that has other issues, particularly with IDE’s like Eclipse that restrict that as well as on Java6 where the internal version is based on 2.1 instead of 2.2.
Also, a couple other plugins still have issues. For example, the jibx plugin fails on java8 as well.
Dan
On Apr 28, 2014, at 11:35 AM, Raja Nagendra Kumar <na...@tejasoft.com> wrote:
> Hi,
>
>
> I am using mvn package for compiling source code cxf (https://git-wip-us.apache.org/repos/asf/cxf.git)
>
> I am using JDK 8 to compile.
>
>
> Source Code compile fails with error
>
>
> [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.0.0-SNAPSHOT:
> wsdl2java (generate-sources) on project cxf-testutils:
> [ERROR] Exit code: 1
> [ERROR] Command line was: d:\Apps\java\jdk\jre\bin\java.exe -jar C:\Users\nagkum
> ar\AppData\Local\Temp\cxf-tmp-36108\cxf-codegen6570965978496805609.jar C:\Users\
> nagkumar\AppData\Local\Temp\cxf-tmp-36108\cxf-w2j6619711455234741106args
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please rea
> d the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> xception
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
>
> [ERROR] mvn <goals> -rf :cxf-testutils
>
> Does this not work with JDK 8, compile works fine with JDK 6 & 7.
> Is there any work around.
>
>
> Raja Nagendra Kumar,
> C.T.O
> www.tejasoft.com
>
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
CXF compile with JDK 8
Posted by Raja Nagendra Kumar <na...@tejasoft.com>.
Hi,
I am using mvn package for compiling source code cxf
(https://git-wip-us.apache.org/repos/asf/cxf.git)
I am using JDK 8 to compile.
Source Code compile fails with error
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:3.0.0-SNAPSHOT:
wsdl2java (generate-sources) on project cxf-testutils:
[ERROR] Exit code: 1
[ERROR] Command line was: d:\Apps\java\jdk\jre\bin\java.exe -jar
C:\Users\nagkum
ar\AppData\Local\Temp\cxf-tmp-36108\cxf-codegen6570965978496805609.jar
C:\Users\
nagkumar\AppData\Local\Temp\cxf-tmp-36108\cxf-w2j6619711455234741106args
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :cxf-testutils
Does this not work with JDK 8, compile works fine with JDK 6 & 7.
Is there any work around.
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com