Java error inside Joomla site - not with static html page.

Upload core product.
Post Reply
tecsmarts
Posts: 2
Joined: Sun Oct 04, 2009 6:26 am

Java error inside Joomla site - not with static html page.

Post by tecsmarts »

I'm using the jfileupload with the s3 add-on in a "Client-only" restricted area of my Joomla website. Therefore, I want to include the script in a joomla "article" page.

This is the code I've added:

<!-- JFileUpload Applet : Begin copy/paste -->
<script src="(my path here)/applet_s3.js" /></script>
<!-- JFileUpload Applet : End copy/paste -->

When I add the script reference to a joomla page, it gives me the following error:

load: class jfileupload.upload.client.MApplet.class not found.
java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://tecsmarts.com/jfileupload/upload ... lass.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet.class


When I load an HTML page directly (that is in the same directory as the script) it works like a charm.

By the way ... the path shown above is NOT the path where the script is. The script is actually somewhere else (which I'd rather not publish because it will allow others who read this forum to access my s3 account).

Any ideas?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java error inside Joomla site - not with static html page.

Post by support »

Yes, try to update CODEBASE parameters with the absolute URL to the lib/ folder that includes JAR files. For instance, if your jfileupload.jar is available through :
http://server.com/something/lib/jfileupload.jar
then try to update CODEBASE from CODEBASE="./" to CODEBASE="http://server.com/something/"

Does it help?

tecsmarts
Posts: 2
Joined: Sun Oct 04, 2009 6:26 am

Re: Java error inside Joomla site - not with static html page.

Post by tecsmarts »

That worked!

I also needed to change the reference to the license files.

Thanks!

Post Reply