[JBoss JIRA] (JBWS-3911) Validate value of wsdl-path-rewrite-rule when setting it
by Jan Blizňák (JIRA)
Jan Blizňák created JBWS-3911:
---------------------------------
Summary: Validate value of wsdl-path-rewrite-rule when setting it
Key: JBWS-3911
URL: https://issues.jboss.org/browse/JBWS-3911
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-integration
Affects Versions: jbossws-cxf-5.0.0.Final
Reporter: Jan Blizňák
There should be some validation when setting value of {{wsdl-path-rewrite-rule}}.
Possible solution is to call org.jboss.wsf.stack.cxf.addressRewrite.SEDProcessor#newInstance and check for exception.
Also documentation (and description in management model) could mention both (and the only ones) allowed formats: for substitution s/x/y/ and transliteration y/abc/bca/.
Example of failing scenario with typo in SED command:
CLI:
{code}
[standalone@localhost:9990 /] /subsystem=webservices:write-attribute(name=wsdl-path-rewrite-rule, value="ss/replace/me/g")
{"outcome" => "success"}
[standalone@localhost:9990 /] deploy /home/dev/ws/stack-cxf/modules/testsuite/cxf-tests/target/test-libs/jaxws-samples-wsdd.war
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"jaxws-samples-wsdd.war\"
Caused by: java.lang.IllegalArgumentException: invalid script for sed command: ss/replace/me/g"}}}}
{code}
SERVER log:
{code}
16:46:38,272 INFO [org.jboss.as.repository] (management-handler-thread - 4) WFLYDR0001: Content added at location /home/dev/ws/wildfly-9.0.0.CR1-SNAPSHOT/standalone/data/content/22/3b58818f8424a1bc34020aa14a9e44c9abdeae/content
16:46:38,277 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "jaxws-samples-wsdd.war" (runtime-name: "jaxws-samples-wsdd.war")
16:46:38,331 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."jaxws-samples-wsdd.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jaxws-samples-wsdd.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "jaxws-samples-wsdd.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: invalid script for sed command: ss/replace/me/g
at org.jboss.wsf.stack.cxf.addressRewrite.SEDProcessor.deriveArgs(SEDProcessor.java:126)
at org.jboss.wsf.stack.cxf.addressRewrite.SEDProcessor.<init>(SEDProcessor.java:46)
at org.jboss.wsf.stack.cxf.addressRewrite.SEDProcessor.newInstance(SEDProcessor.java:426)
at org.jboss.wsf.stack.cxf.addressRewrite.SoapAddressRewriteHelper.getRewrittenPublishedEndpointUrl(SoapAddressRewriteHelper.java:92)
at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.processAddressRewrite(MetadataBuilder.java:316)
at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.build(MetadataBuilder.java:91)
at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.generateMetadataFromDeployment(DescriptorDeploymentAspect.java:129)
at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.start(DescriptorDeploymentAspect.java:65)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)
... 5 more
16:46:38,332 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) WFLYCTL0013: Operation ("deploy") failed - address: ({"deployment" => "jaxws-samples-wsdd.war"}) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"jaxws-samples-wsdd.war\"
Caused by: java.lang.IllegalArgumentException: invalid script for sed command: ss/replace/me/g"}}
16:46:38,333 ERROR [org.jboss.as.server] (management-handler-thread - 4) WFLYSRV0021: Deploy of deployment "jaxws-samples-wsdd.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jaxws-samples-wsdd.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"jaxws-samples-wsdd.war\"
Caused by: java.lang.IllegalArgumentException: invalid script for sed command: ss/replace/me/g"}}
16:46:38,339 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment jaxws-samples-wsdd.war (runtime-name: jaxws-samples-wsdd.war) in 5ms
16:46:38,339 INFO [org.jboss.as.controller] (management-handler-thread - 4) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."jaxws-samples-wsdd.war".INSTALL
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3910) Maven archetype jaxws-codefirst has problems on JDK8
by Rostislav Svoboda (JIRA)
[ https://issues.jboss.org/browse/JBWS-3910?page=com.atlassian.jira.plugin.... ]
Rostislav Svoboda updated JBWS-3910:
------------------------------------
Comment: was deleted
(was: Seems like JDK 8 feature
* http://stackoverflow.com/questions/23011547/webservice-client-generation-...
* http://wiki.netbeans.org/FaqWSDLExternalSchema)
> Maven archetype jaxws-codefirst has problems on JDK8
> ----------------------------------------------------
>
> Key: JBWS-3910
> URL: https://issues.jboss.org/browse/JBWS-3910
> Project: JBoss Web Services
> Issue Type: Bug
> Affects Versions: jbossws-cxf-5.0.0.Final
> Environment: Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Maven home: /opt/maven
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: /opt/jdk1.8.0_40/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.19.4-200.fc21.x86_64", arch: "amd64", family: "unix"
> Reporter: Rostislav Svoboda
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.1
>
>
> Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.
> Exception thrown during "mvn clean package"
> {code}
> JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
> java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
> jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference:
> Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3910) Maven archetype jaxws-codefirst has problems on JDK8
by Rostislav Svoboda (JIRA)
[ https://issues.jboss.org/browse/JBWS-3910?page=com.atlassian.jira.plugin.... ]
Rostislav Svoboda commented on JBWS-3910:
-----------------------------------------
Seems like JDK 8 feature
* http://stackoverflow.com/questions/23011547/webservice-client-generation-...
* http://wiki.netbeans.org/FaqWSDLExternalSchema
> Maven archetype jaxws-codefirst has problems on JDK8
> ----------------------------------------------------
>
> Key: JBWS-3910
> URL: https://issues.jboss.org/browse/JBWS-3910
> Project: JBoss Web Services
> Issue Type: Bug
> Affects Versions: jbossws-cxf-5.0.0.Final
> Environment: Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Maven home: /opt/maven
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: /opt/jdk1.8.0_40/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.19.4-200.fc21.x86_64", arch: "amd64", family: "unix"
> Reporter: Rostislav Svoboda
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.1
>
>
> Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.
> Exception thrown during "mvn clean package"
> {code}
> JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
> java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
> jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference:
> Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3910) Maven archetype jaxws-codefirst has problems on JDK8
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3910?page=com.atlassian.jira.plugin.... ]
Alessio Soldano updated JBWS-3910:
----------------------------------
Fix Version/s: jbossws-cxf-5.1
> Maven archetype jaxws-codefirst has problems on JDK8
> ----------------------------------------------------
>
> Key: JBWS-3910
> URL: https://issues.jboss.org/browse/JBWS-3910
> Project: JBoss Web Services
> Issue Type: Bug
> Affects Versions: jbossws-cxf-5.0.0.Final
> Environment: Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Maven home: /opt/maven
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: /opt/jdk1.8.0_40/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.19.4-200.fc21.x86_64", arch: "amd64", family: "unix"
> Reporter: Rostislav Svoboda
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.1
>
>
> Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.
> Exception thrown during "mvn clean package"
> {code}
> JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
> java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
> jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference:
> Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3910) Maven archetype jaxws-codefirst has problems on JDK8
by Rostislav Svoboda (JIRA)
[ https://issues.jboss.org/browse/JBWS-3910?page=com.atlassian.jira.plugin.... ]
Rostislav Svoboda updated JBWS-3910:
------------------------------------
Steps to Reproduce:
ensure you have JDK 8 on the PATH
mvn archetype:generate -Dfilter=org.jboss.ws.plugins.archetypes:
{code}
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: jaxws-codefirst:1.1.0.Final
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.rsvoboda
[INFO] Parameter: artifactId, Value: ws-experiment
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.rsvoboda
[INFO] Parameter: packageInPathFormat, Value: org/rsvoboda
[INFO] Parameter: package, Value: org.rsvoboda
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: org.rsvoboda
[INFO] Parameter: jbosswscxf, Value: 5.0.0.Final
[INFO] Parameter: artifactId, Value: ws-experiment
[INFO] project created from Archetype in dir: /home/rsvoboda/tmp/ws-experiment
[INFO] ------------------------------------------------------------------------
{code}
cd ws-experiment
mvn clean package
was:
## ensure you have JDK 8 on the PATH
mvn archetype:generate -Dfilter=org.jboss.ws.plugins.archetypes:
{code}
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: jaxws-codefirst:1.1.0.Final
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.rsvoboda
[INFO] Parameter: artifactId, Value: ws-experiment
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.rsvoboda
[INFO] Parameter: packageInPathFormat, Value: org/rsvoboda
[INFO] Parameter: package, Value: org.rsvoboda
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: org.rsvoboda
[INFO] Parameter: jbosswscxf, Value: 5.0.0.Final
[INFO] Parameter: artifactId, Value: ws-experiment
[INFO] project created from Archetype in dir: /home/rsvoboda/tmp/ws-experiment
[INFO] ------------------------------------------------------------------------
{code}
cd ws-experiment
mvn clean package
> Maven archetype jaxws-codefirst has problems on JDK8
> ----------------------------------------------------
>
> Key: JBWS-3910
> URL: https://issues.jboss.org/browse/JBWS-3910
> Project: JBoss Web Services
> Issue Type: Bug
> Affects Versions: jbossws-cxf-5.0.0.Final
> Environment: Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
> Maven home: /opt/maven
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: /opt/jdk1.8.0_40/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.19.4-200.fc21.x86_64", arch: "amd64", family: "unix"
> Reporter: Rostislav Svoboda
> Assignee: Alessio Soldano
>
> Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.
> Exception thrown during "mvn clean package"
> {code}
> JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
> java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
> jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference:
> Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3910) Maven archetype jaxws-codefirst has problems on JDK8
by Rostislav Svoboda (JIRA)
Rostislav Svoboda created JBWS-3910:
---------------------------------------
Summary: Maven archetype jaxws-codefirst has problems on JDK8
Key: JBWS-3910
URL: https://issues.jboss.org/browse/JBWS-3910
Project: JBoss Web Services
Issue Type: Bug
Affects Versions: jbossws-cxf-5.0.0.Final
Environment: Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
Maven home: /opt/maven
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /opt/jdk1.8.0_40/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.4-200.fc21.x86_64", arch: "amd64", family: "unix"
Reporter: Rostislav Svoboda
Assignee: Alessio Soldano
Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.
Exception thrown during "mvn clean package"
{code}
JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference:
Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3873) Web Services can't inherit a JDK8 default method
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3873?page=com.atlassian.jira.plugin.... ]
Alessio Soldano updated JBWS-3873:
----------------------------------
Fix Version/s: jbossws-cxf-5.1
(was: jbossws-cxf-5.0)
> Web Services can't inherit a JDK8 default method
> ------------------------------------------------
>
> Key: JBWS-3873
> URL: https://issues.jboss.org/browse/JBWS-3873
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf, jbossws-integration
> Affects Versions: jbossws-cxf-4.3.2, jbossws-cxf-5.0.0.Beta3
> Environment: JDK8
> Reporter: Jan Blizňák
> Assignee: Jim Ma
> Fix For: jbossws-cxf-5.1
>
> Attachments: jdk8-ws-defaultmethod.zip
>
>
> Having simple SEI and POJO webservice with JDK8 feature - default method for interface:
> {code}
> @WebService
> public interface GreeterSEI {
> default public String sayHello() {
> return "Hello, Default";
> }
> }
>
> //----------------------------------------------------------
>
> @WebService
> public class GreeterImpl implements GreeterSEI {}
> {code}
> When you try to execute sayHello method:
> {code}
> Service greeterService = Service.create(...);
> GreeterSEI g = greeterService.getPort(GreeterSEI.class);
>
> Assert.assertEquals("JBoss", greeter.sayHello());
> {code}
> You will get a message-less IllegalStateException on server.
> Expected results:
> no exception, default implementation of method is invoked.
> Or if this is considered unsupported usage, the exception should be more descriptive (ie.: "Method xx not found on implementation class")
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3909) JBossWS 5.0.0.Final errata
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3909?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on JBWS-3909:
---------------------------------------
WildFly 8.0.0.Final
* [JBWS-2074] Resource injection in jaxws endpoints and handlers
* [JBWS-3845] Injection not working in JAX-WS handlers from predefined configurations
* FIXME: [JBWS-3846] Refactor creation process of jaxws handlers from predefined configurations
* FIXME: [CXF-2531] Wrong \"transport\" attribute in soap12:binding
* FIXME: [CXF-4600] Exception inheritance not working over SOAP protocol
* FIXME: [CXF-1519] Explicitely set the namespace of a WebFault
* [JBWS-3702] FIXME: Add support for https protocol
* [JBWS-2561] XOP request not properly inlined
* [JBWS-2480] Soap attachments are dropped on server response
* [JBWS-3620] Authentication failures w/ Undertow
WildFly 8.1.0.Final & WildFly 8.2.0.Final
* FIXME: [CXF-2531] Wrong \"transport\" attribute in soap12:binding
* FIXME: [CXF-4600] Exception inheritance not working over SOAP protocol
* FIXME: [CXF-1519] Explicitely set the namespace of a WebFault
* [JBWS-3702] FIXME: Add support for https protocol
* [JBWS-2561] XOP request not properly inlined
* [JBWS-2480] Soap attachments are dropped on server response
* [JBWS-3620] Authentication failures w/ Undertow
> JBossWS 5.0.0.Final errata
> --------------------------
>
> Key: JBWS-3909
> URL: https://issues.jboss.org/browse/JBWS-3909
> Project: JBoss Web Services
> Issue Type: Task
> Reporter: Alessio Soldano
> Fix For: jbossws-cxf-5.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months
[JBoss JIRA] (JBWS-3908) Restore automatic errata file generation
by Alessio Soldano (JIRA)
Alessio Soldano created JBWS-3908:
-------------------------------------
Summary: Restore automatic errata file generation
Key: JBWS-3908
URL: https://issues.jboss.org/browse/JBWS-3908
Project: JBoss Web Services
Issue Type: Task
Components: productization
Reporter: Alessio Soldano
Fix For: jbossws-cxf-5.1
With the new build in 5 and the system.out prints redirected to log file, the errata / fixme files are not generated anymore by Hudson. We need to fix the scripts in there for generating them again (for instance, for the fixmes we can grep in the -output.log files)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 5 months