[JBoss JIRA] (JBWS-4117) testsuite shared-tests tests failing on Windows 10
by R Searls (JIRA)
R Searls created JBWS-4117:
------------------------------
Summary: testsuite shared-tests tests failing on Windows 10
Key: JBWS-4117
URL: https://issues.jboss.org/browse/JBWS-4117
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Affects Versions: jbossws-cxf-5.2.1.Final
Environment:
configuration:
OS: Windows 10
C:\Users\Administrator\Java\jdk-9.0.4
C:\Users\Administrator\maven-3.3.9
C:\Users\Administrator\ant-1.9.11\
C:\Users\Administrator\Echo1security.policy
-Djava.security.policy=C:\Users\Administrator\Echo1security.policy
Echo1security.policy file contents
grant {
permission java.security.AllPermission;
};
---
JAVA_OPTS
-Djava.security.policy=C:\Users\Administrator\Echo1security.policy -Xmx2048m -XX:MaxPermSize=1536m -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
----
CXF: <version>3.2.5-SNAPSHOT</version>
jbossws: <version>5.2.1-SNAPSHOT</version>
<cxf.version>3.2.5-SNAPSHOT</cxf.version> pom change to use CXF version
wildfly: <version>13.0.0.Alpha1-SNAPSHOT</version>
files touched:
component-matrix/pom.xml
<version.org.jboss.ws.cxf>5.2.1-SNAPSHOT</version.org.jboss.ws.cxf> <!-- version change -->
<version.org.apache.cxf>3.2.5-SNAPSHOT</version.org.apache.cxf> <!-- version change -->
feature-pack/pom.xml <!-- exclusions required to be added to -->
<artifactId>jbossws-cxf-transports-udp</artifactId>
<artifactId>jbossws-cxf-transports-undertow</artifactId>
----
* run mvn in "command window"
mvn -Dnodeploy -Pwildfly1300 -Dserver.home=C:\Users\Administrator\IdeaProjects\wildfly\dist\target\wildfly-13.0.0.Alpha1-SNAPSHOT integration-test
Reporter: R Searls
Failing tests
[ERROR] Errors:
[ERROR] EndpointTestCase.org.jboss.test.ws.jaxws.endpoint.EndpointTestCase » Deployment
[ERROR] AddressingStatefulTestCase.org.jboss.test.ws.jaxws.samples.addressing.AddressingStatefulTestCase » Deployment
[ERROR] ServiceRefTestCase.testApplicationClient:189 » Runtime Cannot deploy C:\Users\...
[ERROR] WebServiceRefTestCase.testApplicationClient:177 » Runtime Cannot deploy C:\Use...
[INFO]
[ERROR] Tests run: 424, Failures: 6, Errors: 4, Skipped: 7
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (JBWS-4116) testsuite cxf-tests tests failing on Windows 10
by R Searls (JIRA)
R Searls created JBWS-4116:
------------------------------
Summary: testsuite cxf-tests tests failing on Windows 10
Key: JBWS-4116
URL: https://issues.jboss.org/browse/JBWS-4116
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Affects Versions: jbossws-cxf-5.2.1.Final
Environment:
configuration:
OS: Windows 10
C:\Users\Administrator\Java\jdk-9.0.4
C:\Users\Administrator\maven-3.3.9
C:\Users\Administrator\ant-1.9.11\
C:\Users\Administrator\Echo1security.policy
-Djava.security.policy=C:\Users\Administrator\Echo1security.policy
Echo1security.policy file contents
grant {
permission java.security.AllPermission;
};
---
JAVA_OPTS
-Djava.security.policy=C:\Users\Administrator\Echo1security.policy -Xmx2048m -XX:MaxPermSize=1536m -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
----
CXF: <version>3.2.5-SNAPSHOT</version>
jbossws: <version>5.2.1-SNAPSHOT</version>
<cxf.version>3.2.5-SNAPSHOT</cxf.version> pom change to use CXF version
wildfly: <version>13.0.0.Alpha1-SNAPSHOT</version>
files touched:
component-matrix/pom.xml
<version.org.jboss.ws.cxf>5.2.1-SNAPSHOT</version.org.jboss.ws.cxf> <!-- version change -->
<version.org.apache.cxf>3.2.5-SNAPSHOT</version.org.apache.cxf> <!-- version change -->
feature-pack/pom.xml <!-- exclusions required to be added to -->
<artifactId>jbossws-cxf-transports-udp</artifactId>
<artifactId>jbossws-cxf-transports-undertow</artifactId>
----
* run mvn in "command window"
mvn -Dnodeploy -Pwildfly1300 -Dserver.home=C:\Users\Administrator\IdeaProjects\wildfly\dist\target\wildfly-13.0.0.Alpha1-SNAPSHOT integration-test
Reporter: R Searls
The following tests fail on Windows 10
----
Failing tests
[ERROR] Errors:
[ERROR] EndpointTestCase.testClassLoader:73 » Deployment Cannot deploy: jaxws-cxf-endp...
[ERROR] UDPEndpointAPITestCase.testServerSide:92 » IO Server returned HTTP response co...
[ERROR] AddressingTestCase.testDecoupledEndpointForLongLastingProcessingOfInvocations:153 » SOAPFault
[ERROR] WSDiscoveryTestCase.org.jboss.test.ws.jaxws.samples.wsdd.WSDiscoveryTestCase » Deployment
[ERROR] UsernameAuthorizationDigestEjbTestCase.test:97 » SOAPFault Response was of une...
[ERROR] UsernameAuthorizationDigestEjbTestCase.testConcurrent:116 » Execution javax.xm...
[ERROR] UsernameAuthorizationDigestTestCase.test:86 » SOAPFault Response was of unexpe...
[ERROR] WSSecurityPolicyExamples21xTestCase.test2113:141 » SOAPFault Response was of u...
[ERROR] WSSecurityPolicyExamples21xTestCase.test214:189 » NoSuchMethod org.apache.xml....
[ERROR] WSSecurityPolicyExamples22xTestCase.test223:163 » NoSuchMethod org.apache.xml....
[ERROR] WSSecurityPolicyExamples22xTestCase.test224:188 » NoSuchMethod org.apache.xml....
[ERROR] WSSecurityPolicyExamples23xTestCase.test2324:330 » NoSuchMethod org.apache.xml...
[ERROR] SecureConversationTestCase.test:101 » NoSuchMethod org.apache.xml.security.uti...
[ERROR] WSTrustTestCase.test:285 » NoSuchMethod org.apache.xml.security.utils.XMLUtils...
[ERROR] WSTrustTestCase.testActAs:420 » NoSuchMethod org.apache.xml.security.utils.XML...
[ERROR] WSTrustTestCase.testBearer:539 » NoSuchMethod org.apache.xml.security.utils.XM...
[ERROR] WSTrustTestCase.testHolderOfKey:482 » NoSuchMethod org.apache.xml.security.uti...
[ERROR] WSTrustTestCase.testNoClientCallback:355 » NoSuchMethod org.apache.xml.securit...
[ERROR] WSTrustTestCase.testNoSignatureUsername:388 » NoSuchMethod org.apache.xml.secu...
[ERROR] WSTrustTestCase.testOnBehalfOf:455 » NoSuchMethod org.apache.xml.security.util...
[ERROR] WSTrustTestCase.testPicketLink:512 » NoSuchMethod org.apache.xml.security.util...
[ERROR] WSTrustTestCase.testUsingEPR:320 » NoSuchMethod org.apache.xml.security.utils....
[INFO]
[ERROR] Tests run: 239, Failures: 3, Errors: 22, Skipped: 1
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (JBWS-4095) Cannot register web service, fails with NullPointerException in DelegateClassLoader
by Tom Uijldert (JIRA)
[ https://issues.jboss.org/browse/JBWS-4095?page=com.atlassian.jira.plugin.... ]
Tom Uijldert commented on JBWS-4095:
------------------------------------
Had exactly this problem and solved it by backpatching this solution into 3.1.3.Final version of my deployment.
However, another WAR deployment of mine is not affected by this...
Major difference between the two is that the problematic WAR defines 2 servlets, the other one only 1.
Could that be causing it..?
> Cannot register web service, fails with NullPointerException in DelegateClassLoader
> -----------------------------------------------------------------------------------
>
> Key: JBWS-4095
> URL: https://issues.jboss.org/browse/JBWS-4095
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Antonio Chirizzi
> Assignee: R Searls
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> While deploying a EAR application, which contains a WAR which is trying to register a web service, I get the follwing exception:
> {code}
> 13:53:34,624 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-7) JBWS024074: WSDL published to: file:/home/achirizzi/sandbox/dev/wildfly/wildfly-11.0.0.Final/standalone/data/wsdl/dms-new-ear-services-0.0.8.1.ear/dms-new-war-0.0.7.1.war/BusinessWebServiceService.wsdl
> 13:53:34,658 WARNING [org.apache.cxf.catalog.OASISCatalogManager] (MSC service thread 1-7) Catalog found at jar:file:/home/achirizzi/sandbox/dev/wildfly/wildfly-11.0.0.Final/modules/system/layers/base/org/jboss/ws/jaxws-client/main/jbossws-cxf-client-5.1.9.Final.jar!/META-INF/jax-ws-catalog.xml but no org.apache.xml.resolver.CatalogManager was found. Check the classpatch for an xmlresolver jar.
> 13:53:34,659 WARNING [org.apache.cxf.catalog.OASISCatalogManager] (MSC service thread 1-7) Catalog found at jar:file:/home/achirizzi/sandbox/dev/wildfly/wildfly-11.0.0.Final/modules/system/layers/base/org/apache/cxf/impl/main/cxf-tools-wsdlto-frontend-jaxws-3.1.12.jar!/META-INF/jax-ws-catalog.xml but no org.apache.xml.resolver.CatalogManager was found. Check the classpatch for an xmlresolver jar.
> 13:53:34,659 WARNING [org.apache.cxf.catalog.OASISCatalogManager] (MSC service thread 1-7) Catalog found at jar:file:/home/achirizzi/sandbox/dev/wildfly/wildfly-11.0.0.Final/modules/system/layers/base/org/apache/cxf/impl/main/cxf-services-ws-discovery-api-3.1.12.jar!/META-INF/jax-ws-catalog.xml but no org.apache.xml.resolver.CatalogManager was found. Check the classpatch for an xmlresolver jar.
> 13:53:34,773 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit."dms-new-ear-services-0.0.8.1.ear"."dms-new-war-0.0.7.1.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."dms-new-ear-services-0.0.8.1.ear"."dms-new-war-0.0.7.1.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "dms-new-war-0.0.7.1.war" of deployment "dms-new-ear-services-0.0.8.1.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory could not be instantiated: java.lang.NullPointerException
> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:204)
> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
> at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232)
> at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120)
> at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2180)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2390)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2422)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:238)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
> at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:217)
> at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:160)
> at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:129)
> at org.jboss.wsf.stack.cxf.client.ProviderImpl$JBossWSServiceImpl.<init>(ProviderImpl.java:574)
> at org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate(ProviderImpl.java:258)
> at javax.xml.ws.Service.<init>(Service.java:57)
> at com.tullettprebon.dms.tmmalternativeaddress.ws.TMMMarkitWireService.<init>(TMMMarkitWireService.java:60)
> at com.tullettprebon.dms.webservices.ReferenceWebService.<init>(ReferenceWebService.java:232)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at java.lang.Class.newInstance(Class.java:442)
> at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:322)
> at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:212)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
> ... 5 more
> Caused by: java.lang.NullPointerException
> at org.jboss.ws.common.utils.DelegateClassLoader.getResourceAsStream(DelegateClassLoader.java:132)
> at __redirected.__RedirectedUtils.findProviderClassNames(__RedirectedUtils.java:147)
> at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:102)
> at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:98)
> at __redirected.__DocumentBuilderFactory.<init>(__DocumentBuilderFactory.java:103)
> at sun.reflect.GeneratedConstructorAccessor62.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at java.lang.Class.newInstance(Class.java:442)
> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:192)
> ... 33 more
> {code}
> I wasted 3 days trying to find a solution thinking that the problem was in my dependencies with xerces or any other xml resolver.
> Then I decided to checkout the code near the root cause:
> {code}
> Caused by: java.lang.NullPointerException
> at org.jboss.ws.common.utils.DelegateClassLoader.getResourceAsStream(DelegateClassLoader.java:132)
> at __redirected.__RedirectedUtils.findProviderClassNames(__RedirectedUtils.java:147)
> at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:102)
> at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:98)
> at __redirected.__DocumentBuilderFactory.<init>(__DocumentBuilderFactory.java:103)
> at sun.reflect.GeneratedConstructorAccessor62.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at java.lang.Class.newInstance(Class.java:442)
> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:192)
> ... 33 more
> {code}
> and I think I have fixed a bug in {{jbossws-common-3.1.5}}.
> I have downloaded the latest version of {{jbossws-common-master}} from github (with which the problem was still showing).
> Then I fixed the class {{org/jboss/ws/common/utils/DelegateClassLoader.java}} changing this:
> {code}
> /** {@inheritDoc} */
> @Override
> public InputStream getResourceAsStream(final String name)
> {
> InputStream is = parent.getResourceAsStream(name);
> return (is == null) ? delegate.getResourceAsStream(name) : is;
> }
> {code}
> to this:
> {code}
> /** {@inheritDoc} */
> @Override
> public InputStream getResourceAsStream(final String name)
> {
> InputStream is = null;
> if (parent != null)
> {
> is = parent.getResourceAsStream(name);
> }
> return (is == null) ? delegate.getResourceAsStream(name) : is;
> }
> {code}
> and then built again the jbossws-common jar and replaced the (suspected) faulty one under the WildFly modules. With the new jar the webservice can be registered.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months