javax.xml.ws.WebServiceException: Unable to create JAXBContext

Oracle Community | cwaweru | 5 years ago
  1. 0

    my web service does not deploy on glassfish

    Oracle Community | 5 years ago | cwaweru
    javax.xml.ws.WebServiceException: Unable to create JAXBContext
  2. 0

    my web service does not deploy on glassfish

    Oracle Community | 5 years ago | cwaweru
    javax.xml.ws.WebServiceException: Unable to create JAXBContext
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Standalone server - Exception while start (newbie question)

    terracotta.org | 7 months ago
    javax.xml.ws.WebServiceException: Unable to create JAXBContext

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.xml.bind.v2.runtime.IllegalAnnotationsException

      2 counts of IllegalAnnotationExceptions java.sql.Connection is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.sql.Connection at private java.sql.Connection com.afrisoftech.funsoft.hmis.webservices.jaxws.Connect2DBResponse._return at com.afrisoftech.funsoft.hmis.webservices.jaxws.Connect2DBResponse java.sql.Connection does not have a no-arg default constructor. this problem is related to the following location: at java.sql.Connectionat private java.sql.Connection com.afrisoftech.funsoft.hmis.webservices.jaxws.Connect2DBResponse._returnat com.afrisoftech.funsoft.hmis.webservices.jaxws.Connect2DBResponseat com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)

      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet()
    2. Old JAXB Runtime
      JAXBRIContext.newInstance
      1. com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
      2. com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:298)
      3. com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:141)
      4. com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)
      5. com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)
      6. com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:111)
      6 frames
    3. JAX-WS RI Runtime Bundle
      AbstractSEIModelImpl.createJAXBContext
      1. com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:113)
      2. com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:166)
      3. com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:159)
      4. com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)
      5. com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)
      5 frames
    4. Glassfish Core
      StandardContext.contextListenerStart
      1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
      1 frame
    5. Glassfish
      WebModule.contextListenerStart
      1. com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
      1 frame
    6. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
      1 frame
    7. Glassfish
      WebModule.start
      1. com.sun.enterprise.web.WebModule.start(WebModule.java:498)
      1 frame
    8. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
      2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
      3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
      3 frames
    9. Glassfish
      WebApplication.start
      1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
      2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
      3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
      3 frames
    10. Private APIs of Glassfish
      ApplicationInfo.start
      1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
      3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
      3 frames
    11. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
      2 frames
    12. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
      1 frame
    13. Kernel Classes
      AdminAdapter.service
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
      6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
      7. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
      8. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
      8 frames
    14. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
      1 frame
    15. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
      2 frames
    16. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame