title: JAXBException on creating JAXB Context
body: <p>When I run application as standalone Java program, it works well. When I run it as an applet, it throws JAXBException with following stacktrace.</p>
  
  <pre><code>javax.xml.bind.JAXBException: jaxb.properties in package com/test/package does not contain the javax.xml.bind.context.factory property.
      at javax.xml.bind.ContextFinder.find(Unknown Source)
      at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
      at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
  </code></pre>
  
  <p>When I add a jaxb.properties, i get the below error -</p>
  
  <pre><code>javax.xml.bind.JAXBException
   - with linked exception:
  [java.lang.NoSuchMethodException: com.sun.xml.internal.ws.developer.JAXBContextFactory.createContext([Ljava.lang.Class;, java.util.Map)]
      at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
      at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
      at javax.xml.bind.ContextFinder.find(Unknown Source)
      at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
      at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
  </code></pre>
  
  <p>I added following jars to classpath -</p>
  
  <ul>
  <li>jaxws-rt-2.2.1</li>
  <li>jsr311-api-1.1.1</li>
  <li>jersey-core-1.2</li>
  <li>jersey-client-1.2</li>
  </ul>
  
  <p>What causes this error. Am I missing any dependencies.</p>
  
  <p>Edit:
  I am using Java 7 u 59 on both browser and development environment.</p>