Tuesday 28 March 2006 1:13:19 am
I've used this extension with success on earlier eZ systems, but on my latest install it just won't work. I'm running eZ 3.6.0 on Apache/1.3.33, PHP/4.3.10. Accessing the select-page works fine, but on the upload-page the java just won't load. I did some testing, and found out that the rewriterules that's distributed with 3.6.0 isn't compatible with the multiplefileupload directory structure:
This is default:
RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
I added this rule:
RewriteRule ^/extension/[^/]+/design/(stylesheets|images|applets|javascripts?)/.* - [L]
The default rule demands a directory between /design/ and /javascripts, /images etc (e.g. /design/<b>base</b>/applets/), but this isn't the case in the multiplefileupload-extension. It doesn't include the applets-dir either, so I added that too. Doing this, I can now access the files from my webbrowser (mysite.com/extension/multiplefileupload/design/applets/jupload.jar). But the Java still won't load. Trying to open the files in Java 2 Platform, I get the following error message: "Failed to load Main-Class manifest attribute from ../jupload.jar". In the upload window, the following is displayed in the Java console:
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_FolderChooser
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
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)
This is repeated for several class files:
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_FiletypeChooser
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_SimpleFileChooser
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_ImagePreview
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUpload/startup
java.lang.ClassFormatError: Incompatible magic value 171712813 in class file JUploadPlugin_ProgressMeter
So, I'm pretty stuck here. What can I do to resolve these issues?
|