jfileupload.upload.client.MApplet.class not found

Upload core product.
Post Reply
vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

jfileupload.upload.client.MApplet.class not found

Post by vipulm »

Hello there!

I want to purchase your product- JfileUpload to deploy in our website product.
But,brfore buying it i want to test it by deploying it in our web application.
i downloaded the zip file for the same and run it in Glassfish server on Netbeans 6,
but i am facing problem in deploying as the jfileupload.upload.client.MApplet.class is not
found. Please help me in this regard. How to go about it. Am i doing something wrong here?

regards

Vipulm

The error log generated is pasted below for you to review:-

load: class jfileupload.upload.client.MApplet.class not found.
java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet.class
at sun.applet.AppletClassLoader.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)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

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

Re: jfileupload.upload.client.MApplet.class not found

Post by support »

This error means that Java runtime cannot load the applet. Did you copy lib/ folder into your server ? You should have something like :
applet_ftp.js
applet_ftp.html
applet_http.js
applet_http.html
lib/chttpclient.jar
lib/clogging.jar
lib/cnet.jar
lib/ftpimpl.jar
lib/httpimpl.jar
lib/jfileupload.jar

You have install instructions at:
http://www.jfileupload.com/products/jfi ... ation.html

vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

Re: jfileupload.upload.client.MApplet.class not found

Post by vipulm »

Installing .. really means copying all these files and lib folder in the web-inf folder in my web application..rite? or some other place?...

vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

Re: jfileupload.upload.client.MApplet.class not found

Post by vipulm »

Hi support team,

Thx for the reply..i am now able to run the applet..but when i select file to upload then this error occurs..
Upload started ...Upload failed : javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

Can you please tell me what is it about?...

Regards

vipulm

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

Re: jfileupload.upload.client.MApplet.class not found

Post by support »

First, does it work with HTTP only ?
Second, are you able to open a simple HTML page with HTTPS in your browser ?
If so, then you should try WeakSSL add-on. It allows to disable certificate checks for untrusted SSL certificates.
http://www.jfileupload.com/products/tools/index.html

vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

Re: jfileupload.upload.client.MApplet.class not found

Post by vipulm »

Hello support team,

Thx for the reply, actually, with ftp the applet gets loaded but when i paste a small file in it
it gives the error:
Upload failed : java.net.ConnectException: Connection refused: connect

And when i try to open a simple html page with https it gives the error:
The connection was interrupted
The connection to localhost:8081 was interrupted while the page was loading.

i am using mozilla firefox v2.0.0.12
with ssl enabled.

i tried the weakssl files too ,but still the same errors come.

Regards
vipulm

vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

Re: jfileupload.upload.client.MApplet.class not found

Post by vipulm »

hey support team,

Please look into my problem..i hav not been able to solve it yet..
if you people can give me some hint ..then i would get some direction
to solve it..

regards

vipulm

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

Re: jfileupload.upload.client.MApplet.class not found

Post by support »

If you cannot open an HTML page withing your browser with HTTPS then the applet will have problem too. You need basic HTTPS to work with browser before trying anything else.
Do you have an URL I could check from here ?

vipulm
Posts: 6
Joined: Mon Mar 24, 2008 5:26 pm

Re: jfileupload.upload.client.MApplet.class not found

Post by vipulm »

hello support team!

I am indeed now able to open a simple html page through https on port 8181.
and when i open applet_http.html on the same port using https,the applet gets loaded, but when i
drag n drop or select a file to upload then its unsuccessful...
the following error shows up..

Upload started ...Upload failed : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

So, what should i do now,how should i proceed..?

Regards,
vipulm

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

Re: jfileupload.upload.client.MApplet.class not found

Post by support »

Ok, you're not far from the solution. You have to install WeakSSL add-on and setup the following parameter:
...
param6="weakssl"
value6="dummy"
...
<PARAM NAME="param6" VALUE="weakssl">
<PARAM NAME="value6" VALUE="dummy">

Make sure you've closed all browser windows before testing. Then you're sure that the applet is really reloaded.

If it still fails then drop an email to support(at)jfileupload(dot)com with a testing URL.

Post Reply