logo       

Combining POs, HTML pages, Javascript and Applets in a same Enhydra applica: msg#00039

java.enhydra.general

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


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
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise