Combining POs, HTML pages, Javascript and Applets in a same Enhydra application... (Urgent!!!)

Pascal Bauler <[email protected]>
Newsgroups gmane.comp.java.enhydra.general
Message-ID <OFB1C0B5DB.82CF60AE-ONC1256D91.004387B6-C1256D91.00458474@crpgl.lu>
Dear all,

We are confronted to a major problem....
We have developped a PO which consists of a XMLC based HTML page 
containing 3 frames.
The indidual frames are static HTML pages containg Javascript and 
Applets...... 

The XMLC/HTML page contains some javascript which needs to access applets 
located in a low-level frame.

These constraints have to be maintained... due to some design 
constraints...

Due some security limitations in JAVA; javascript and the applet have to 
be served from a same origin. so let's assume localhost:9000

The problem we are facing now consists that the Enhydra Application 
delivering the PO and accessing the static WEB pages is not able to 
deliver the applet correctly (applet residing on a static HTML page, but 
accessed from Javascript located in the PO).
The following error message is generated...
java.lang.ClassFormatError: HelloWorld (Truncated class file)

        at java.lang.ClassLoader.defineClass0(Native Method)

        at java.lang.ClassLoader.defineClass(Unknown Source)

        at java.security.SecureClassLoader.defineClass(Unknown Source)

        at sun.applet.AppletClassLoader.findClass(Unknown Source)

        at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.applet.AppletClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.applet.AppletClassLoader.loadCode(Unknown Source)

        at sun.applet.AppletPanel.createApplet(Unknown Source)

        at sun.plugin.AppletViewer.createApplet(Unknown Source)

        at sun.applet.AppletPanel.runLoader(Unknown Source)

        at sun.applet.AppletPanel.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Does anyone have an idea how to make same Enhydra application deliver 
embedded
PO, HTML frames with Javascript communicating with Applets...

Till now, we always used the 
org.enhydra.servlet.servlets.FileServerServlet to act as a classical WEB 
server, but in that case we have to use 2 different ports....

Thanks a lot for any help...

Pascal Bauler

The urgency resides in the fact that this developpment is needed for the 
diploma work of a student, and the disploma work has to be submitted by 
today....

--------------------------------------------------------------------------------------------------
Pascal Bauler
Centre de Recherche Public - Gabriel Lippmann
CREDI

Tel: ++352 470261 634
FAX: ++352 470261 389
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.