title: Jar dependency exceptions on weblogic servers for an application
body: <p>I am getting an exception while deploying on Weblogic Server:</p>
  
  <pre><code>[2012-01-13 01:17:11,496] ERROR [org.springframework.web.servlet.DispatcherServlet] Context
  initialization failed
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name
  'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method
  failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
  at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.at
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.at
  org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  at
  org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  at
  org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  at
  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  at
  org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.at
  org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.
  </code></pre>
  
  <p>I have some jars as below:</p>
  
  <pre><code>log4j-1.2.14.jar
  spring-asm-3.0.3.RELEASE.jar
  spring-beans-3.0.3.RELEASE.jar
  spring-context-3.0.3.RELEASE.jar
  spring-core-3.0.3.RELEASE.jar
  spring-expression-3.0.3.RELEASE.jar
  spring-web-3.0.3.RELEASE.jar
  spring-webmvc-3.0.3.RELEASE.jar
  servlet-2.3.jar
  validation-api-1.0.0.GA.jar
  commons-logging-1.1.1.jar
  hibernate-validator-4.0.2.GA.jar
  slf4j-api-1.5.6.jar
  slf4j-log4j12-1.5.6.jar
  standard.jar
  commons-fileupload-1.1.1.jar
  ESAPI-1.4.4.jar
  </code></pre>
  
  <p>I am guessing the issues can be but need guidance to solve it:</p>
  
  <p>After researching the issue, 2 likely scenarios came to the forefront:
  Hibernate Validator Library has a bug resulting in a dependency on JDK 6
  Hibernate Validator has a dependency on the JAXBException Class, and the class is not present in the existing Weblogic Environment
  Upon further research, the hibernate-validator-4.0.2.jar build states a clear dependency on JDK 5. 
  Digging deeper into the Hibernate Validator code, it appears that version 4.0.2 relies on JAXB API 2.1.</p>
  
  <p>Weblogic servers are on java 1.5 and code is also compiled on java 1.5 then why the exceptions seems to pop up??</p>