[Biojava-l] Biojava GUI and applets

Schreiber, Mark mark.schreiber at agresearch.co.nz
Sun Sep 21 16:03:47 EDT 2003


Hi -
 
This is cause the applet is trying to read AlphabetManager.xml which applets are not generally allowed to do (read files) due to the sand box. I beleive you will need to change your security policy. Not sure on the details but the Sun java site has some documentation.
 
- Mark
 

	-----Original Message----- 
	From: lach at cantv.net [mailto:lach at cantv.net] 
	Sent: Sat 20/09/2003 2:40 a.m. 
	To: biojava-l at biojava.org 
	Cc: 
	Subject: [Biojava-l] Biojava GUI and applets
	
	

	Hi,
	
	Thanks Mathew!
	I followed your instructions
	
	I tried
	
	   <APPLET code="BioApplet.class"
	        width="600"
	        height="400"
	        archive="biojava.jar, xerces.jar, bytecode.jar" >
	  </APPLET>
	
	And I put .jar files into the same directory as the applet and html page
	
	But now, errors have changed:
	
	java.security.AccessControlException: access denied
	(java.util.ProperyPermission entityExpansionLimit read)
	...
	rethrown as org.biojava.bio.BioError. Unable to initialize AlphabetManager
	     at
	org.biojava.bio.symbol.AlphabetManager.<clinit>(AlphabetManager.java:896)
	     at.org.biojava.bio.seq.DNATools.<clinit>(DNATools.java:54)
	rethrown as org.biojava.bio.BioError: Unable to initialize DNATools
	     at.org.biojava.bio.seq.DNATools.<clinit>(DNATools.java:85)
	     at.org.biojava.bio.seq.io.SeqIOTools.getDNAParser(SeqIOTools.java:181)
	...
	
	
	
	
	Thanks
	
	
	----------- Mensaje Original --------------
	
	De: Matthew Pocock [matthew_pocock at yahoo.co.uk]
	Para: lach at cantv.net [lach at cantv.net]
	Cc: biojava-l at biojava.org [biojava-l at biojava.org]
	Asunto: Re: [Biojava-l] Biojava GUI and Applets
	Fecha: 19/09/2003 06:15:52
	Mensaje:
	
	
	Ah - I think I see potential problems. Firstly, you should have just one
	archive attribute with a list of archives seperated by spaces and
	optional white-space. Secondly, you are using file locations for the
	jars - they need to be URLs that are relative to your html page that
	contains the applet. So - try something more like this:
	
	
	
	and put the three jar files in the same directory as your applet and the
	html page.
	
	Matthew
	
	
	
	
	
	Luis Ch.
	lach at cantv.net                 
	
	_______________________________________________
	Biojava-l mailing list  -  Biojava-l at biojava.org
	http://biojava.org/mailman/listinfo/biojava-l
	


=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================



More information about the Biojava-l mailing list