• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

java.lang.SecurityException: sealing violation: package com.sun.xml.bind is sealed

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi am getting below error in my simple XML java application.

I have added below jars my project, it seems keeping or removing "jaxb-api-2.0.2" doesn't make any change in the exception.

jaxb-api-2.0.2
jaxb-libs
jaxb-ri
jaxb-xjc

2015/11/19 11:52:59.253 | java.lang.SecurityException: sealing violation: package com.sun.xml.bind is sealed
2015/11/19 11:52:59.253 | at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:399)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader.definePackageInternal(URLClassLoader.java:419)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
2015/11/19 11:52:59.253 | at java.security.AccessController.doPrivileged(Native Method)
2015/11/19 11:52:59.253 | at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
2015/11/19 11:52:59.253 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2015/11/19 11:52:59.253 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
2015/11/19 11:52:59.253 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2015/11/19 11:52:59.253 | at com.sun.xml.bind.DefaultJAXBContextImpl.<init>(DefaultJAXBContextImpl.java:60)
2015/11/19 11:52:59.253 | at com.sun.xml.bind.ContextFactory.createContext(ContextFactory.java:27)
2015/11/19 11:52:59.253 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2015/11/19 11:52:59.253 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2015/11/19 11:52:59.253 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015/11/19 11:52:59.253 | at java.lang.reflect.Method.invoke(Method.java:497)
2015/11/19 11:52:59.253 | at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:181)
2015/11/19 11:52:59.253 | at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131)
2015/11/19 11:52:59.253 | at javax.xml.bind.ContextFinder.find(ContextFinder.java:293)
2015/11/19 11:52:59.253 | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431)
2015/11/19 11:52:59.253 | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:394)
2015/11/19 11:52:59.253 | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:298)
2015/11/19 11:52:59.253 | at com.capgemini.glp.util.clarity.mapper.ProjectPojoXMLMapper.createProjectXML(ProjectPojoXMLMapper.java:79)
2015/11/19 11:52:59.253 | at com.capgemini.glp.job.InterfaceHandler.process(InterfaceHandler.java:257)
2015/11/19 11:52:59.253 | at com.capgemini.glp.job.CJAccessor.scheduledEventFired(CJAccessor.java:59)
2015/11/19 11:52:59.253 | at com.niku.njs.Dispatcher$BGTask.run(Dispatcher.java:395)
2015/11/19 11:52:59.253 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2015/11/19 11:52:59.253 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2015/11/19 11:52:59.253 | at java.lang.Thread.run(Thread.java:745)

what might be the reason for this this error.


thanks in advance...

 
premchand Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i removed the jar "jaxb-impl.jar" from the lib folder and the problem got resolved...
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic