Tuesday 28 March 2006 11: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?
Modified on Tuesday 28 March 2006 11:13:42 am by Eivind Marienborg
Tuesday 28 March 2006 11:29:46 am
I've added "jar" to my virtual host config.
Like this:
RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/extension/.*/design|^/kernel/setup/packages|^/share/icons|^/s hare/smilies).*\.(gif|css|jpg|png|jar|js|ico|pdf)$ /<yourpathhere>/index.php
hm, the Java problem...
maybe you can try to get the newest version of JUpload from http://www.jupload.biz/
cheer, Patrizio
Modified on Tuesday 28 March 2006 11:30:47 am by Patrizio Bekerle
Tuesday 28 March 2006 12:03:38 pm
You only need Java on your client. Are there some online demos on http://www.jupload.biz/ ? Maybe you can try them to see if they work for you...
Saturday 01 April 2006 1:21:36 pm
i need a solution to upload lots of photos and directly extract exif/iptc data from the images and store them as attributes of the uploaded objects. would this be possible with your solution. or would this require big changes in the code?
i haven't even installed your extension yet, but will do so soon. looks great!
Monday 03 April 2006 10:16:54 am
Hi!
I resolved the problems some days ago. I fixed the virtual host setup, downloaded the newest JUpload, and deleted all old versions of it on my local computer.
To troubleshoot:
Try accessing the jsr-file directly. If you get a ez-module error screen you have to change the virtual host settings. If you are able to access it, try deleting the local versions of JUpload, and try the extension again. If neither of this works, try downloading the newest JUpload.
![]()
Thursday 16 November 2006 3:32:09 pm
I see nobody has posted here for a long time but I'm hoping there is still somebody around who can help.
I have installed the extension but the java applet doesn't display.
I guess that this is because the jar file is being blocked by EZP (I had a similar problem with files types with the sjsd editor extension)
However, I have tried the same solution (added the jar to the .htaccess file) but it still doesn't display the java.
The error trace is below
load: class JUpload.startup not found. java.lang.ClassNotFoundException: JUpload.startup 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 load: class JUploadPlugin_ImagePreview not found. java.lang.ClassNotFoundException: JUploadPlugin_ImagePreview 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
Can anybody help?
Thanks
Modified on Thursday 16 November 2006 3:32:59 pm by David Jones
Thursday 28 December 2006 7:31:45 pm
Hi
Is it possible to setup this extension to overwrite files based on the content object name ?
If the extension encounter the image in destination directorie then it would overwrite it instead of creating a new node with another name.
Martin
Thursday 27 November 2008 6:10:07 pm
Hi,
I know this extension was published 3 years ago but I'm trying to make it works with ezp 4.0.1.
It stucks on :
Fatal error: Call to a member function instantiate() on a non-object in /var/www/photo.studiotmedia.com/extension/multiplefileupload/modules/multiplefileupload/upload_process.php on line 132
// Create object by user id in the section of the parent object
$contentObject =& $class->instantiate( $userID, $object->attribute( 'section_id' ) );
It's just in case there is still someone who works on it and to add a warning for futur users.
Regards.
Laurent
Modified on Thursday 27 November 2008 6:31:17 pm by laurent le cadet
Thursday 27 November 2008 8:01:30 pm
Tried this one?
http://projects.ez.no/ezmultiupload
You must be logged in to post messages in this topic!