Java Mailing List Archive

http://www.junlu.com/

Google Search
Google


Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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 Source code of 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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp; permission java.io.FilePermission Source code of java.io.FilePermission "&lt;&lt;ALL FILES&gt;&gt;",
 "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>&nbsp;</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>&nbsp;</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&nbsp;of my&nbsp;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&nbsp;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>&nbsp;</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>&nbsp;</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.
©2008 junlu.com - Jax Systems, LLC, U.S.A.