java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]

Atlassian JIRA | Sultan Maiyaki [Atlassian] | 4 years ago
  1. 0

    Once SSO is enabled as per stated in this [document|https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd] the above mentioned components are broken. Please see screenshots below. turn debugging on the package *log4j.category.com.atlassian.crowd* shows the following error in the logs: {noformat} 2012-11-27 16:53:37,267 INFO [qtp1507939013-134] [CrowdAuthenticator] Error while attempting to check if user isAuthenticated with Crowd javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.JAXB._marshal(JAXB.java:549) at javax.xml.bind.JAXB.marshal(JAXB.java:407) at com.atlassian.crowd.integration.rest.service.RestExecutor.setBody(RestExecutor.java:192) at com.atlassian.crowd.integration.rest.service.RestExecutor.post(RestExecutor.java:164) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.validateSSOAuthentication(RestCrowdClient.java:897) at com.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl.isAuthenticated(CrowdHttpAuthenticatorImpl.java:129) at com.atlassian.crowd.integration.http.CacheAwareCrowdHttpAuthenticator.isAuthenticated(CacheAwareCrowdHttpAuthenticator.java:72) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:204) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.getUser(CrowdAuthenticator.java:336) at com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45) at com.atlassian.seraph.auth.AbstractAuthenticator.getRemoteUser(AbstractAuthenticator.java:33) at com.atlassian.sal.bamboo.user.BambooSalUserManager.getRemoteUsername(BambooSalUserManager.java:69) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) {noformat} {noformat} Caused by: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187) at javax.xml.bind.ContextFinder.find(ContextFinder.java:376) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at javax.xml.bind.JAXB$Cache.<init>(JAXB.java:87) at javax.xml.bind.JAXB.getContext(JAXB.java:114) at javax.xml.bind.JAXB._marshal(JAXB.java:538) ... 143 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185) ... 149 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found by com.atlassian.plugins.rest.atlassian-rest-module [43] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:926) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 153 more {noformat} As for the Atlassian Support tools plugin, users will be prompted for authentication which will always fail despite putting the correct credentials.

    Atlassian JIRA | 4 years ago | Sultan Maiyaki [Atlassian]
    java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]
  2. 0

    Once SSO is enabled as per stated in this [document|https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd] the above mentioned components are broken. Please see screenshots below. turn debugging on the package *log4j.category.com.atlassian.crowd* shows the following error in the logs: {noformat} 2012-11-27 16:53:37,267 INFO [qtp1507939013-134] [CrowdAuthenticator] Error while attempting to check if user isAuthenticated with Crowd javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.JAXB._marshal(JAXB.java:549) at javax.xml.bind.JAXB.marshal(JAXB.java:407) at com.atlassian.crowd.integration.rest.service.RestExecutor.setBody(RestExecutor.java:192) at com.atlassian.crowd.integration.rest.service.RestExecutor.post(RestExecutor.java:164) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.validateSSOAuthentication(RestCrowdClient.java:897) at com.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl.isAuthenticated(CrowdHttpAuthenticatorImpl.java:129) at com.atlassian.crowd.integration.http.CacheAwareCrowdHttpAuthenticator.isAuthenticated(CacheAwareCrowdHttpAuthenticator.java:72) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:204) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.getUser(CrowdAuthenticator.java:336) at com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45) at com.atlassian.seraph.auth.AbstractAuthenticator.getRemoteUser(AbstractAuthenticator.java:33) at com.atlassian.sal.bamboo.user.BambooSalUserManager.getRemoteUsername(BambooSalUserManager.java:69) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) {noformat} {noformat} Caused by: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187) at javax.xml.bind.ContextFinder.find(ContextFinder.java:376) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at javax.xml.bind.JAXB$Cache.<init>(JAXB.java:87) at javax.xml.bind.JAXB.getContext(JAXB.java:114) at javax.xml.bind.JAXB._marshal(JAXB.java:538) ... 143 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185) ... 149 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found by com.atlassian.plugins.rest.atlassian-rest-module [43] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:926) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 153 more {noformat} As for the Atlassian Support tools plugin, users will be prompted for authentication which will always fail despite putting the correct credentials.

    Atlassian JIRA | 4 years ago | Sultan Maiyaki [Atlassian]
    java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]
  3. 0

    Once SSO is enabled as per stated in this [document|https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd] the above mentioned components are broken. Please see screenshots below. turn debugging on the package *log4j.category.com.atlassian.crowd* shows the following error in the logs: {noformat} 2012-11-27 16:53:37,267 INFO [qtp1507939013-134] [CrowdAuthenticator] Error while attempting to check if user isAuthenticated with Crowd javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.JAXB._marshal(JAXB.java:549) at javax.xml.bind.JAXB.marshal(JAXB.java:407) at com.atlassian.crowd.integration.rest.service.RestExecutor.setBody(RestExecutor.java:192) at com.atlassian.crowd.integration.rest.service.RestExecutor.post(RestExecutor.java:164) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.validateSSOAuthentication(RestCrowdClient.java:897) at com.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl.isAuthenticated(CrowdHttpAuthenticatorImpl.java:129) at com.atlassian.crowd.integration.http.CacheAwareCrowdHttpAuthenticator.isAuthenticated(CacheAwareCrowdHttpAuthenticator.java:72) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:204) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.getUser(CrowdAuthenticator.java:336) at com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45) at com.atlassian.seraph.auth.AbstractAuthenticator.getRemoteUser(AbstractAuthenticator.java:33) at com.atlassian.sal.bamboo.user.BambooSalUserManager.getRemoteUsername(BambooSalUserManager.java:69) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) {noformat} {noformat} Caused by: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187) at javax.xml.bind.ContextFinder.find(ContextFinder.java:376) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at javax.xml.bind.JAXB$Cache.<init>(JAXB.java:87) at javax.xml.bind.JAXB.getContext(JAXB.java:114) at javax.xml.bind.JAXB._marshal(JAXB.java:538) ... 143 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185) ... 149 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found by com.atlassian.plugins.rest.atlassian-rest-module [43] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:926) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 153 more {noformat} As for the Atlassian Support tools plugin, users will be prompted for authentication which will always fail despite putting the correct credentials.

    Atlassian JIRA | 4 years ago | Sultan Maiyaki [Atlassian]
    java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Once SSO is enabled as per stated in this [document|https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd] the above mentioned components are broken. Please see screenshots below. turn debugging on the package *log4j.category.com.atlassian.crowd* shows the following error in the logs: {noformat} 2012-11-27 16:53:37,267 INFO [qtp1507939013-134] [CrowdAuthenticator] Error while attempting to check if user isAuthenticated with Crowd javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.JAXB._marshal(JAXB.java:549) at javax.xml.bind.JAXB.marshal(JAXB.java:407) at com.atlassian.crowd.integration.rest.service.RestExecutor.setBody(RestExecutor.java:192) at com.atlassian.crowd.integration.rest.service.RestExecutor.post(RestExecutor.java:164) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.validateSSOAuthentication(RestCrowdClient.java:897) at com.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl.isAuthenticated(CrowdHttpAuthenticatorImpl.java:129) at com.atlassian.crowd.integration.http.CacheAwareCrowdHttpAuthenticator.isAuthenticated(CacheAwareCrowdHttpAuthenticator.java:72) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:204) at com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.getUser(CrowdAuthenticator.java:336) at com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45) at com.atlassian.seraph.auth.AbstractAuthenticator.getRemoteUser(AbstractAuthenticator.java:33) at com.atlassian.sal.bamboo.user.BambooSalUserManager.getRemoteUsername(BambooSalUserManager.java:69) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) {noformat} {noformat} Caused by: javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187) at javax.xml.bind.ContextFinder.find(ContextFinder.java:376) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at javax.xml.bind.JAXB$Cache.<init>(JAXB.java:87) at javax.xml.bind.JAXB.getContext(JAXB.java:114) at javax.xml.bind.JAXB._marshal(JAXB.java:538) ... 143 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185) ... 149 more Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found by com.atlassian.plugins.rest.atlassian-rest-module [43] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1723) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:926) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 153 more {noformat} As for the Atlassian Support tools plugin, users will be prompted for authentication which will always fail despite putting the correct credentials.

    Atlassian JIRA | 4 years ago | Sultan Maiyaki [Atlassian]
    java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]
  6. 0

    7月 2011 - るいもの戯れ言

    ruimo.com | 1 year ago
    java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory from [Module "deployment.test.war:main" from Service Module Loader]

    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.ClassNotFoundException

      com.sun.xml.internal.bind.v2.ContextFactory not found from bundle [com.atlassian.plugins.rest.atlassian-rest-module]]

      at javax.xml.bind.JAXB._marshal()
    2. Java RT
      JAXB.marshal
      1. javax.xml.bind.JAXB._marshal(JAXB.java:549)
      2. javax.xml.bind.JAXB.marshal(JAXB.java:407)
      2 frames
    3. com.atlassian.crowd
      CrowdAuthenticator.getUser
      1. com.atlassian.crowd.integration.rest.service.RestExecutor.setBody(RestExecutor.java:192)
      2. com.atlassian.crowd.integration.rest.service.RestExecutor.post(RestExecutor.java:164)
      3. com.atlassian.crowd.integration.rest.service.RestCrowdClient.validateSSOAuthentication(RestCrowdClient.java:897)
      4. com.atlassian.crowd.integration.http.CrowdHttpAuthenticatorImpl.isAuthenticated(CrowdHttpAuthenticatorImpl.java:129)
      5. com.atlassian.crowd.integration.http.CacheAwareCrowdHttpAuthenticator.isAuthenticated(CacheAwareCrowdHttpAuthenticator.java:72)
      6. com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.isAuthenticated(CrowdAuthenticator.java:204)
      7. com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator.getUser(CrowdAuthenticator.java:336)
      7 frames
    4. com.atlassian.seraph
      AbstractAuthenticator.getRemoteUser
      1. com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45)
      2. com.atlassian.seraph.auth.AbstractAuthenticator.getRemoteUser(AbstractAuthenticator.java:33)
      2 frames
    5. com.atlassian.sal
      BambooSalUserManager.getRemoteUsername
      1. com.atlassian.sal.bamboo.user.BambooSalUserManager.getRemoteUsername(BambooSalUserManager.java:69)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      1 frame