1 Reply Latest reply: Apr 19, 2012 12:43 PM by Daniel Nenkov RSS

Problems when deploying jar file that uses tritonus and Java Sound API

Daniel Nenkov Newbie

Hi all,

 

I am migrating from JBoss 5 (Java 1.5) to JBoss 7 (Java 1.6) and I am having a problem while deploying one of the modules. The module has some classes that use Java Sound API. I am using tritonus (version 0.3.7) as Java Sound API implementation. The full stack trace is below.

18:08:09,330 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."appollo-1.0.0.ear"."audio-1.0.0.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."appollo-1.0.0.ear"."audio-1.0.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "audio-1.0.0.jar" of deployment "appollo-1.0.0.ear"
     at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_31]
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_31]
     at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_31]
Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
     at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
     at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
     at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
     at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113)
     at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66)
     at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
     at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
     ... 5 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
     at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:293)
     at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:444)
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:507)
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
     at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
     at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
     at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:203)
     at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
     at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
     ... 13 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
javax.sound.sampled.AudioInputStream does not have a no-arg default constructor.
     this problem is related to the following location:
          at javax.sound.sampled.AudioInputStream
          at private javax.sound.sampled.AudioInputStream com.becognitive.appollo.audio.mgr.jaxws_asm.GetConvertedStream.arg0
          at com.becognitive.appollo.audio.mgr.jaxws_asm.GetConvertedStream
javax.sound.sampled.AudioFormat$Encoding does not have a no-arg default constructor.
     this problem is related to the following location:
          at javax.sound.sampled.AudioFormat$Encoding
          at private javax.sound.sampled.AudioFormat$Encoding com.becognitive.appollo.audio.mgr.jaxws_asm.GetConvertedStream.arg1
          at com.becognitive.appollo.audio.mgr.jaxws_asm.GetConvertedStream

     at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:298)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:141)
     at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)
     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_31]
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_31]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_31]
     at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_31]
     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211) [classes.jar:1.6.0_31]
     at javax.xml.bind.ContextFinder.find(ContextFinder.java:392) [classes.jar:1.6.0_31]
     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618) [classes.jar:1.6.0_31]
     at org.apache.cxf.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:260)
     at org.apache.cxf.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:169)
     at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:423)
     at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:291)
     ... 24 more

I think the problem is related to Tritonus and Java 1.6 but I might be wrong.   Any suggestions?  Thanks,  Daniel