   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | SV: [jdom-interest] Applets with JDom | SV: [jdom-interest] Applets with JDom 2004-01-12 - By Per Norrman
Back Hi, what about the other machines, do they have the same java plugin installed? If not, then there will be no SAX parser available, and hence your exception. /pmn
-- --Ursprungligt meddelande-- -- Fr?n: jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] F?r Leonardo Porto - Spin Skickat: den 12 januari 2004 16:05 Till: 'Jdom List' ?mne: [jdom-interest] Applets with JDom
hi, my name is Leonardo Porto and i'm new in this list. I am here to ask how can i use JDom on an Applet. I have my applet that runs with jdom on my machine. But it doesn't run in other machines. The reason is the following exception: java.lang.NoClassDefFound org/xml/sax/SAXNotRecognized exception This is how the applet functions: >From a determined time to time, he reads the xml file from the "Xml" host directory(http://MyHost/MyDir/xml/) and with the information in it he draws or not some controls on the applets panel. The applet runs on the "MyDir" Directory and the images are placed on the "Images" directory(http://MyHost/MyDir/images/) <http://MyHost/MyDir/images/> . On my java.security file, i have inserted this following line: policy.url.3=file:/D:/Testes/Applets/wwwroot/UnifPol Where UnifPol is configured like that: grant codeBase " <http://myhost/MyDir/xml/> http://MyHost/MyDir/-" { permission java.io.FilePermission "<<ALL FILES>>", "read"; }; I have installed the java plugin for Internet Explorer and the applet tag of the html file have the follow parameters: codebase=MyInitClass.class archive=MyJar.jar, jdom.jar This works fines on my machine, the same as the host(MyHost) but on the other machines of my local network shows the error above. What could it be? What can i do to make it work for all machines??? thanks,
Leonardo Klarmann Porto Analista de Sistemas - GDes Spin Engenharia de Automa??o Ltda
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Meddelande</TITLE>
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2>what about the other machines, do they have the same java plugin installed? If not,</FONT></SPAN></DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2>then there will be no SAX parser available, and hence your exception.</FONT></SPAN></DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2>/pmn</FONT></SPAN></DIV> <DIV><SPAN class=945460715-12012004><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=sv dir=ltr align=left><FONT face=Tahoma size=2>-- --Ursprungligt meddelande-- --<BR><B>Fr?n:</B> jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] <B>F?r </B>Leonardo Porto - Spin<BR><B>Skickat:</B> den 12 januari 2004 16:05<BR><B>Till:</B> 'Jdom List'<BR><B>?mne:</B> [jdom-interest] Applets with JDom<BR><BR></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=375324714-12012004>hi, my name is Leonardo Porto and i'm new in this list.</SPAN></FONT></DIV> <DIV><FONT face=Arial><FONT size=2><FONT face=Arial size=2><SPAN class=375324714-12012004></SPAN></FONT></FONT></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=375324714-12012004>I am here to ask how can i use JDom on an Applet.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=375324714-12012004>I have my applet that runs with jdom on my machine. But it doesn't run in other machines. The reason is the following exception:</SPAN></FONT></DIV> <DIV><FONT face=Arial><FONT size=2><FONT size=+0><SPAN class=375324714-12012004></FONT></FONT> </DIV> <DIV><FONT face=Arial color=#ff0000 size=2>java.lang.NoClassDefFound org/xml/sax/SAXNotRecognized exception</FONT></DIV> <DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV> <DIV><SPAN class=375324714-12012004><FONT face=Arial size=2>This is how the applet functions:</FONT></SPAN></DIV> <DIV><SPAN class=375324714-12012004><FONT face=Arial size=2>From a determined time to time, he reads the xml file from the "Xml" host directory(<A href="http://MyHost/MyDir/xml/">http://MyHost/MyDir/xml/</A>) and with the information in it he draws or not some controls on the applets panel.</FONT></SPAN></DIV> <DIV><SPAN class=375324714-12012004><FONT face=Arial size=2>The applet runs on the "MyDir" Directory and the images are placed on the "Images" directory(<A href="http://MyHost/MyDir/images/">http://MyHost/MyDir/images/)</A>.</FONT>< /SPAN></DIV> <DIV><SPAN class=375324714-12012004><FONT face=Arial size=2>On my java.security file, i have inserted this following line: </FONT></SPAN></DIV> <DIV><SPAN class=375324714-12012004><FONT face=Arial color=#ff0000 size=2>policy.url.3=file:/D:/Testes/Applets/wwwroot/UnifPol</FONT></SPAN>< /DIV> <DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV> <DIV><FONT size=+0><FONT size=+0><SPAN class=375324714-12012004><FONT face=Arial size=2>Where UnifPol is configured like that:</FONT></SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT size=+0><SPAN class=375324714-12012004><FONT face=Arial size=2><FONT color=#ff0000>grant codeBase "</FONT><A href="http://myhost/MyDir/xml/"><FONT color=#ff0000>http://MyHost/MyDir/</FONT></A><FONT color=#ff0000>-" {<BR> permission java.io.FilePermission "<<ALL FILES>>", "read";<BR>};</FONT></FONT></SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT size=+0><SPAN class=375324714-12012004><FONT face=Arial color=#ff0000 size=2></FONT></SPAN></FONT></FONT> </DIV> <DIV><FONT size=+0><FONT size=+0><SPAN class=375324714-12012004><FONT face=Arial size=2>I have installed the java plugin for Internet Explorer and the applet tag of the html file have the follow parameters:</FONT></SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#ff0000 size=2><SPAN class=375324714-12012004>codebase=MyInitClass.class archive=MyJar.jar, jdom.jar</SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004></SPAN></FONT></FONT> </DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004>This works fines on my machine, the same as the host(MyHost) but on the other machines of my local network shows the error above.</SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004>What could it be?</SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004>What can i do to make it work for all machines???</SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004></SPAN></FONT></FONT> </DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004>thanks,</SPAN></FONT></FONT></DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004></SPAN></FONT></FONT> </DIV> <DIV><FONT size=+0><FONT face=Arial color=#000000 size=2><SPAN class=375324714-12012004> <DIV align=left><FONT face=Arial size=2>Leonardo Klarmann Porto</FONT></DIV> <DIV align=left><FONT face=Arial size=2>Analista de Sistemas - GDes</FONT></DIV> <DIV align=left><FONT face=Arial size=2>Spin Engenharia de Automa??o Ltda</FONT></DIV></SPAN></FONT></FONT></SPAN></FONT></DIV></BLOCKQUOTE></BODY ></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |