Hi again,
I am now able to make the registered jars work without the jsapi. This is what I have done:
I created a new webfolder. I first copied the jfileupload files in int (registered) and tested, it worked fine, the applet appears. I have added the batch upload from the package that we bought yesterday and it also worked. After that, I added weakssl.jar and tried accessing using https, and it worked well. Now, I copied the jsapi.jar and its html and js files into the webfolder and this is the error I get:
java.lang.NoClassDefFoundError: jfileupload/transfer/client/core/N
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
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.lang.ClassNotFoundException: jfileupload.transfer.client.core.N
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 19 more
Caused by: java.io.IOException: open HTTP connection failed:
http://localhost/newjfu/jfileupload/tra ... re/N.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)
... 23 more
Exception: java.lang.NoClassDefFoundError: jfileupload/transfer/client/core/N
I don't get it. The exact same files in unregistered mode are working well in another web folder. I copied those files into the new folder that I created and i got the same error. How can the exact same files produce an error in one folder and no error in another folder?? I have checked the size, it's the same to the byte.
thanks,
Talal
talal wrote:Thanks, I was already looking at these files but none of my changes (even small ones, like text change) were not working. I will have a look again at it today maybe it was a problem of cache or something.
I have deployed my website on the test server and I keep getting error 302 after the first upload finishes. I thought it was due to the integration I made of the java control into one of my pages, so I tried using the provided applet_http_aspx.html file, with some modification to user weakssl and jsapi, but still the same problem happens.
Also, we have bought the jfileupload and the jbatchupload. I copied the corresponding jars of each zip file and overwrote the one I was using from the demo project. but I still keep getting "unregistered" in the control. Is there something else I have to do to make this work? we need to release the project onto the client's server and we cannot do so with "unregistered". Weird as it may seem, I am not getting error 302 on the client's server! Only on our test server.
Any quick help is much appreciated.
Thanks,
Talal