[JBoss JIRA] (JGRP-1877) System.nanoTime() can be negative
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1877?page=com.atlassian.jira.plugin.... ]
Bela Ban edited comment on JGRP-1877 at 9/12/14 9:03 AM:
---------------------------------------------------------
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* TimeScheduler2
* HashedTimingWheel
* ConcurrentLinkedBlockingQueue
* -ResponseCollector-
* CreditMap
* FlowControl
* Locking
* MERGE2
* RELAY2
* StatsCollector
* RATE_LIMITER
* PERF
was (Author: belaban):
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* TimeScheduler3
* -Util.sleep-
* ConcurrentLinkedBlockingQueue
* -ResponseCollector-
* CreditMap
* FlowControl
* Locking
* MERGE2
* RELAY2
* StatsCollector
* RATE_LIMITER
* PERF
> System.nanoTime() can be negative
> ---------------------------------
>
> Key: JGRP-1877
> URL: https://issues.jboss.org/browse/JGRP-1877
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 3.5.1, 3.6
>
>
> According to the javadoc, {{System.nanoTime()}} should only be used to measure _elapsed time_, but not compute a _target time in the future_, as {{nanoTime()}} might return a a time in the future.
> Code like the one below might fail:
> {code:title=Responses.waitFor()|borderStyle=solid}
> public boolean waitFor(long timeout) {
> long wait_time;
> final long target_time=System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); // ns
> lock.lock();
> try {
> while(!done && (wait_time=target_time - System.nanoTime()) > 0) {
> try {
> cond.await(wait_time,TimeUnit.NANOSECONDS);
> }
> catch(InterruptedException e) {
> }
> }
> return done;
> }
> finally {
> lock.unlock();
> }
> }
> {code}
> When computing {{target_time}}, {{System.nanoTime()}} could return a negative value (numeric overflow) or a value in the future. In the first case, {{target_time}} could be negative, so the method would not block at all. In the latter case, {{target_time}} could be huge, so the method would block for a long time.
> Investigate all occurrences where we use {{nanoTime()}} to compute a time in the future, and see what impact a future value value could have. Possibly replace with {{System.currentTimeMillis()}} or the _time service_.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on WFLY-3851:
---------------------------------------
mmh... looks like the ASM library that is shipped in your deployment is causing issues to CXF which is processing your endpoints. I'll have a look and figure out why, but still I believe your deployment should be cleaned up a bit to remove all those libs.
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JAX-WS RI 2.2.8
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 16:10:47,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 16:10:47,829 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 16:10:47,901 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 16:10:47,940 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:10:47,952 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 16:10:47,995 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 16:10:47,996 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 16:35:13,655 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:35:13,662 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017532: Host default-host stopping
> 2014-09-12 16:35:13,664 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment jboss7-ear.ear
> 2014-09-12 16:35:13,673 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
> 2014-09-12 16:35:13,686 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010418: Stopped Driver service with driver-name = h2
> 2014-09-12 16:35:13,714 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017521: Undertow HTTP listener default suspending
> 2014-09-12 16:35:13,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080
> 2014-09-12 16:35:13,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017506: Undertow 1.0.15.Final stopping
> 2014-09-12 16:35:13,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss7-ejb.jar) in 70ms
> 2014-09-12 16:35:13,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: jboss7-war.war) in 199ms
> 2014-09-12 16:35:13,867 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss7-ear.ear (runtime-name: jboss7-ear.ear) in 206ms
> 2014-09-12 16:35:13,870 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015950: WildFly 8.1.0.Final "Kenny" stopped in 188ms
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov updated WFLY-3851:
-------------------------------------
Description:
I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
GitHub: https://github.com/DmitriySh/maven-ws-prototype
If everything ok links might be invoke.
http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
Stack trace:
---------------
2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
2014-09-12 16:10:47,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 13 more
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
... 28 more
2014-09-12 16:10:47,829 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
2014-09-12 16:10:47,901 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
2014-09-12 16:10:47,940 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
2014-09-12 16:10:47,952 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
"jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
]
}
2014-09-12 16:10:47,995 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
2014-09-12 16:10:47,996 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
2014-09-12 16:35:13,655 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
2014-09-12 16:35:13,662 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017532: Host default-host stopping
2014-09-12 16:35:13,664 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment jboss7-ear.ear
2014-09-12 16:35:13,673 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
2014-09-12 16:35:13,686 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010418: Stopped Driver service with driver-name = h2
2014-09-12 16:35:13,714 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017521: Undertow HTTP listener default suspending
2014-09-12 16:35:13,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080
2014-09-12 16:35:13,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017506: Undertow 1.0.15.Final stopping
2014-09-12 16:35:13,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss7-ejb.jar) in 70ms
2014-09-12 16:35:13,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: jboss7-war.war) in 199ms
2014-09-12 16:35:13,867 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss7-ear.ear (runtime-name: jboss7-ear.ear) in 206ms
2014-09-12 16:35:13,870 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015950: WildFly 8.1.0.Final "Kenny" stopped in 188ms
was:
I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
GitHub: https://github.com/DmitriySh/maven-ws-prototype
If everything ok links might be invoke.
http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JAX-WS RI 2.2.8
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 16:10:47,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 16:10:47,829 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 16:10:47,901 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 16:10:47,940 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:10:47,952 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 16:10:47,995 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 16:10:47,996 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 16:35:13,655 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:35:13,662 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017532: Host default-host stopping
> 2014-09-12 16:35:13,664 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment jboss7-ear.ear
> 2014-09-12 16:35:13,673 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
> 2014-09-12 16:35:13,686 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010418: Stopped Driver service with driver-name = h2
> 2014-09-12 16:35:13,714 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017521: Undertow HTTP listener default suspending
> 2014-09-12 16:35:13,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080
> 2014-09-12 16:35:13,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017506: Undertow 1.0.15.Final stopping
> 2014-09-12 16:35:13,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss7-ejb.jar) in 70ms
> 2014-09-12 16:35:13,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: jboss7-war.war) in 199ms
> 2014-09-12 16:35:13,867 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss7-ear.ear (runtime-name: jboss7-ear.ear) in 206ms
> 2014-09-12 16:35:13,870 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015950: WildFly 8.1.0.Final "Kenny" stopped in 188ms
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on WFLY-3851:
---------------------------------------
AFAICS, the ear that's generated by the build contains a bunch of libraries, including the jaxws RI. If that's done on purpose (that is, you don't want to use the jboss webservices stack), you should have a descriptor for disabling the webservices subsystem, unless you have completely disabled it in your server configuration.
In any case, complete this jira description explaining what is not working while it should, which error message you get if any, etc. Thanks.
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JAX-WS RI 2.2.8
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attach Spring dependency
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Alessio Soldano updated WFLY-3851:
----------------------------------
Component/s: Web Services
(was: EE)
> WildFly 8.1 + JAX-WS and attach Spring dependency
> -------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: Web Services
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JAX-WS RI 2.2.8
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attach Spring dependency
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Alessio Soldano reassigned WFLY-3851:
-------------------------------------
Assignee: Alessio Soldano (was: David Lloyd)
> WildFly 8.1 + JAX-WS and attach Spring dependency
> -------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JAX-WS RI 2.2.8
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attach Spring dependency
by Dmitriy Shishmakov (JIRA)
Dmitriy Shishmakov created WFLY-3851:
----------------------------------------
Summary: WildFly 8.1 + JAX-WS and attach Spring dependency
Key: WFLY-3851
URL: https://issues.jboss.org/browse/WFLY-3851
Project: WildFly
Issue Type: Task
Components: EE
Affects Versions: 8.1.0.Final
Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
WildFly 8.1.0 Final
Spring 3.1.1
JAX-WS RI 2.2.8
Windows 7
Reporter: Dmitriy Shishmakov
Assignee: David Lloyd
I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
GitHub: https://github.com/DmitriySh/maven-ws-prototype
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years