No subject
Fri Aug 6 17:04:17 PDT 2004
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:=20
policy.url.3=3Dfile:/D:/Testes/Applets/wwwroot/UnifPol
=20
Where UnifPol is configured like that:
grant codeBase " <http://myhost/MyDir/xml/> http://MyHost/MyDir/-" {
permission java.io.FilePermission "<<ALL FILES>>", "read";
};
=20
I have installed the java plugin for Internet Explorer and the applet
tag of the html file have the follow parameters:
codebase=3DMyInitClass.class archive=3DMyJar.jar, jdom.jar
=20
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???
=20
thanks,
=20
Leonardo Klarmann Porto
Analista de Sistemas - GDes
Spin Engenharia de Automa=E7=E3o Ltda
------=_NextPart_000_0001_01C3D927.35E221B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Meddelande</TITLE>
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2>what=20
about the other machines, do they have the same java plugin installed? =
If=20
not,</FONT></SPAN></DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2>then=20
there will be no SAX parser available, and hence your=20
exception.</FONT></SPAN></DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2>/pmn</FONT></SPAN></DIV>
<DIV><SPAN class=3D945460715-12012004><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Dsv dir=3Dltr =
align=3Dleft><FONT face=3DTahoma=20
size=3D2>-----Ursprungligt meddelande-----<BR><B>Fr=E5n:</B>=20
jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org] =
<B>F=F6r=20
</B>Leonardo Porto - Spin<BR><B>Skickat:</B> den 12 januari 2004=20
16:05<BR><B>Till:</B> 'Jdom List'<BR><B>=C4mne:</B> [jdom-interest] =
Applets with=20
JDom<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>hi, =
my name is=20
Leonardo Porto and i'm new in this list.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT face=3DArial =
size=3D2><SPAN=20
class=3D375324714-12012004></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>I am =
here to ask=20
how can i use JDom on an Applet.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D375324714-12012004>I =
have my applet=20
that runs with jdom on my machine. But it doesn't run in other =
machines. The=20
reason is the following exception:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><FONT size=3D+0><SPAN=20
class=3D375324714-12012004></FONT></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#ff0000 =
size=3D2>java.lang.NoClassDefFound=20
org/xml/sax/SAXNotRecognized exception</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT> </DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>This =
is how the=20
applet functions:</FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>From =
a determined=20
time to time, he reads the xml file from the "Xml" host directory(<A=20
href=3D"http://MyHost/MyDir/xml/">http://MyHost/MyDir/xml/</A>) and =
with the=20
information in it he draws or not some controls on the applets=20
panel.</FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>The =
applet runs on=20
the "MyDir" Directory and the images are placed on the "Images" =
directory(<A=20
=
href=3D"http://MyHost/MyDir/images/">http://MyHost/MyDir/images/)</A>.</F=
ONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial size=3D2>On =
my=20
java.security file, i have inserted this following line: =
</FONT></SPAN></DIV>
<DIV><SPAN class=3D375324714-12012004><FONT face=3DArial =
color=3D#ff0000=20
=
size=3D2>policy.url.3=3Dfile:/D:/Testes/Applets/wwwroot/UnifPol</FONT></S=
PAN></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT size=3D+0><FONT size=3D+0><SPAN =
class=3D375324714-12012004><FONT=20
face=3DArial size=3D2>Where UnifPol is configured like=20
that:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT size=3D+0><SPAN =
class=3D375324714-12012004><FONT=20
face=3DArial size=3D2><FONT color=3D#ff0000>grant codeBase "</FONT><A=20
href=3D"http://myhost/MyDir/xml/"><FONT=20
color=3D#ff0000>http://MyHost/MyDir/</FONT></A><FONT =
color=3D#ff0000>-"=20
{<BR> permission java.io.FilePermission "<<ALL =
FILES>>",=20
"read";<BR>};</FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT size=3D+0><SPAN =
class=3D375324714-12012004><FONT=20
face=3DArial color=3D#ff0000 =
size=3D2></FONT></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=3D+0><FONT size=3D+0><SPAN =
class=3D375324714-12012004><FONT=20
face=3DArial size=3D2>I have installed the java plugin for Internet =
Explorer and=20
the applet tag of the html file have the follow=20
parameters:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#ff0000 size=3D2><SPAN =
class=3D375324714-12012004>codebase=3DMyInitClass.class =
archive=3DMyJar.jar,=20
jdom.jar</SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>This works fines on my machine, the same as =
the=20
host(MyHost) but on the other machines of my local network =
shows the=20
error above.</SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>What could it =
be?</SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>What can i do to make it work for all=20
machines???</SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>thanks,</SPAN></FONT></FONT></DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=3D+0><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D375324714-12012004>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Leonardo Klarmann =
Porto</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Analista de Sistemas -=20
GDes</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Spin Engenharia de =
Automa=E7=E3o=20
=
Ltda</FONT></DIV></SPAN></FONT></FONT></SPAN></FONT></DIV></BLOCKQUOTE></=
BODY></HTML>
------=_NextPart_000_0001_01C3D927.35E221B0--
More information about the jdom-interest
mailing list