Posts

Showing posts with the label maven

JaxWsDynamicClientfactory + java.lang.RuntimeException: Cannot create a secure XMLInputFactory

JaxWsDynamicClientfactory + java.lang.RuntimeException: Cannot create a secure XMLInputFactory My CXF JaxWs Endpoint is hosted on a weblogic through a war. I'm trying to access an operation from a Stand-alone JaxWsDynamicClient. The Client is getting created but the following exception is thrown while trying o access the operation. I've pasted the Server Side and Client Side Exception, SEI, client code and the respective Service and Client pom(s). Didn't find any luck researching over this issue, mostly there seems to be no answer. Any help will be appreciated. Server Exception java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314) ~[cxf-core-3.0.0.jar:3.0.0] at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264) ~[cxf-core-3.0.0.jar:3.0.0] at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1443) ~[cxf-core-3.0.0.jar:3.0.0] ...

Why getting error failed to parse pom?

Why getting error failed to parse pom? while building project via jenkins getting below error. Building in workspace C:Program Files (x86)JenkinsworkspaceJenkinProject Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip to C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMaven on Jenkins ERROR: Failed to parse POMs java.io.IOException: Failed to rename C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3 to C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3.__rename at hudson.FilePath$29.invoke(FilePath.java:2107) at hudson.FilePath$29.invoke(FilePath.java:2100) can you check what files are there at C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3 location – Pramod Jun 30 at 14:30 ...

Why is maven-jlink-plugin crashing? What's the illegal argument?

Why is maven-jlink-plugin crashing? What's the illegal argument? After upgrading to Java 10 (from Java 8), I want to test the new linker, so I started using maven-jlink-plugin by adding this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jlink-plugin</artifactId> <version>3.0.0-alpha-1</version> <extensions>true</extensions> </plugin> and specifying: <packaging>jlink</packaging> I don't even know if this should be enough, but it certainly isn't working and the documentation seems to focus on projects with multiple modules. Mine only has one. When I run mvn package I get: mvn package [INFO] --- maven-jlink-plugin:3.0.0-alpha-1:jlink (default-jlink) @ dashmanserver --- [INFO] Toolchain in maven-jlink-plugin: jlink [ C:Program FilesJavajdk-10.0.1binjlink.exe ] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO...