| Use xsd library in java applet [message #49200] | 
Wed, 21 July 2004 03:04   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: babytoys.mail.ru 
 
Can I use xsd parser in applet transferred via net?  If I start my applet 
from browser I receive the following exception: 
 
 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission setContextClassLoader) 
 
	at java.security.AccessControlContext.checkPermission(Unknown Source) 
 
	at java.security.AccessController.checkPermission(Unknown Source) 
 
	at java.lang.SecurityManager.checkPermission(Unknown Source) 
 
	at java.lang.Thread.setContextClassLoader(Unknown Source) 
 
	at org.eclipse.xsd.util.XSDParser.<init>(XSDParser.java:408) 
 
	at  org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:321) 
 
	at 
 org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881) 
 
	at 
 org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755) 
 
	at 
 org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:220) 
 
	at 
 org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:286) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:553) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:631) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaInstance(XSDSche maImpl.java:708) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2040) 
 
	at  org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1485) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2241) 
 
	at 
 org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1205) 
 
	at 
 org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842) 
 
	at  org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410) 
 
	at 
 org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(ResourceImpl.java:326) 
 
	at 
 org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:233) 
 
	at  org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 88)
 |  
 |  
  | 
| Re: Use xsd library in java applet [message #49407 is a reply to message #49200] | 
Mon, 26 July 2004 08:27   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: merks.ca.ibm.com 
 
Vladimir, 
 
In the past, we needed to play classloader games for Xerces/JAXP to work  
properly, but I have a feeling we don't need to do that now that it's  
part of the JDK.  If you open a bugzilla, with a test case and  
instructions for how to reproduce this failure, I'll investigate whether  
we can remove/improve that code. 
 
 
Vladimir wrote: 
 
>Can I use xsd parser in applet transferred via net?  If I start my applet 
>from browser I receive the following exception: 
> 
> 
>java.security.AccessControlException: access denied 
>(java.lang.RuntimePermission setContextClassLoader) 
> 
>	at java.security.AccessControlContext.checkPermission(Unknown Source) 
> 
>	at java.security.AccessController.checkPermission(Unknown Source) 
> 
>	at java.lang.SecurityManager.checkPermission(Unknown Source) 
> 
>	at java.lang.Thread.setContextClassLoader(Unknown Source) 
> 
>	at org.eclipse.xsd.util.XSDParser.<init>(XSDParser.java:408) 
> 
>	at  org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:321) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:220) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:286) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:553) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:631) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaInstance(XSDSche maImpl.java:708) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2040) 
> 
>	at  org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1485) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2241) 
> 
>	at 
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1205) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842) 
> 
>	at  org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(ResourceImpl.java:326) 
> 
>	at 
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:233) 
> 
>	at  org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 88) 
> 
> 
> 
>   
>
 |  
 |  
  | 
| Re: Use xsd library in java applet [message #589857 is a reply to message #49200] | 
Mon, 26 July 2004 08:27   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Vladimir, 
 
In the past, we needed to play classloader games for Xerces/JAXP to work  
properly, but I have a feeling we don't need to do that now that it's  
part of the JDK.  If you open a bugzilla, with a test case and  
instructions for how to reproduce this failure, I'll investigate whether  
we can remove/improve that code. 
 
 
Vladimir wrote: 
 
>Can I use xsd parser in applet transferred via net?  If I start my applet 
>from browser I receive the following exception: 
> 
> 
>java.security.AccessControlException: access denied 
>(java.lang.RuntimePermission setContextClassLoader) 
> 
>	at java.security.AccessControlContext.checkPermission(Unknown Source) 
> 
>	at java.security.AccessController.checkPermission(Unknown Source) 
> 
>	at java.lang.SecurityManager.checkPermission(Unknown Source) 
> 
>	at java.lang.Thread.setContextClassLoader(Unknown Source) 
> 
>	at org.eclipse.xsd.util.XSDParser.<init>(XSDParser.java:408) 
> 
>	at  org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:321) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:881) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:755) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:220) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:286) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.java:553) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:631) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaInstance(XSDSche maImpl.java:708) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaIm pl.java:2040) 
> 
>	at  org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1485) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2241) 
> 
>	at 
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1205) 
> 
>	at 
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:842) 
> 
>	at  org.eclipse.xsd.util.XSDResourceImpl.attached(XSDResourceImp l.java:410) 
> 
>	at 
> org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(ResourceImpl.java:326) 
> 
>	at 
> org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:233) 
> 
>	at  org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:5 88) 
> 
> 
> 
>   
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03610 seconds