java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

Jenkins JIRA | bhupender singh | 4 years ago
  1. 0

    1) Is it mandatory to configure klockwork installation in jenkin's global configurations? if yes what is the meaning of project port (default 1106)? is it server port that we need to fill here? 2) we have upgraded the klocwork plugin for jenkins to 1.41.1 and if we configure it for "Klocwork v9.6 or later" then it doesn't do anything on klockwork server (i.e updating database for this new build) and also klocwork reports are not available for klocwork 9.6 but only klocwork review is available. 3) As we are using Klocwork version 9.6 and it doesn't generate xml file for reports automatically, manually we have generated report file but when we try to use it, it gives error as below: Starting the klocwork analysis. Processing 1 files with the pattern 'klocwork_result.xml'. FATAL: javax/xml/bind/JAXBException java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:78) at com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:37) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:104) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:711) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 4 years ago | bhupender singh
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
  2. 0

    1) Is it mandatory to configure klockwork installation in jenkin's global configurations? if yes what is the meaning of project port (default 1106)? is it server port that we need to fill here? 2) we have upgraded the klocwork plugin for jenkins to 1.41.1 and if we configure it for "Klocwork v9.6 or later" then it doesn't do anything on klockwork server (i.e updating database for this new build) and also klocwork reports are not available for klocwork 9.6 but only klocwork review is available. 3) As we are using Klocwork version 9.6 and it doesn't generate xml file for reports automatically, manually we have generated report file but when we try to use it, it gives error as below: Starting the klocwork analysis. Processing 1 files with the pattern 'klocwork_result.xml'. FATAL: javax/xml/bind/JAXBException java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:78) at com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:37) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:104) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:711) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633) at hudson.model.Run.run(Run.java:1463) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 4 years ago | bhupender singh
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
  3. 0

    [HHH-4427] Unable to run tests under JDK 5 - JAXB missing - Hibernate JIRA

    atlassian.net | 2 years ago
    org.hibernate.HibernateException: Unable to get the default Bean Validation factory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem wiht class JAXBException not found. After setting JAVA_HOME to jdk1.6.0_20 tomcat startet perfectly Stack trace: 10.06.2010 12:24:00 org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 10.06.2010 12:24:01 org.apache.catalina.core.StandardContext listenerStart SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/conf/spring-beans.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:139) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1330) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:136) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) ... 37 more Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.getDeclaredConstructor(Class.java:1953) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129) ... 43 more 10.06.2010 12:24:01 org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext 10.06.2010 12:24:01 org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() 10.06.2010 12:24:01 org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized()

    Apache's JIRA Issue Tracker | 7 years ago | Aurelius Robert Baier
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/conf/spring-beans.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
  6. 0

    call/execute PL/SQL

    Oracle Community | 10 years ago | 258965
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

    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. java.lang.NoClassDefFoundError

      javax/xml/bind/JAXBException

      at com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke()
    2. com.thalesgroup.hudson
      KloParserResult.invoke
      1. com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:78)
      2. com.thalesgroup.hudson.plugins.klocwork.parser.KloParserResult.invoke(KloParserResult.java:37)
      2 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:842)
      2. hudson.FilePath.act(FilePath.java:824)
      2 frames
    4. com.thalesgroup.hudson
      KloPublisher.perform
      1. com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:104)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:711)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686)
      4. hudson.model.Build$RunnerImpl.post2(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633)
      6. hudson.model.Run.run(Run.java:1463)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:239)
      9 frames