Hi,
I have included the Java FCKeditor in my webapp, but there is a problem when I try to upload a file.
I think I have done the installation correctley, I tried to study all the docs in java.fckeditor.net
I am using the following config file (I am testing in Eclipse):
I can see the editor and it works fine except to the upload functionality. In fact, the folder creation through resource browser works fine, i.e. I can create subfolders through the resource browser and I can see the created folders in the filesystem.
However when I try to upload a file (image or anything else), I get the following error in the logs:
When the upload is made through the full resource browser interface, there is also this message above the upload box:
Any ideas?
Thanks in advance
I have included the Java FCKeditor in my webapp, but there is a problem when I try to upload a file.
I think I have done the installation correctley, I tried to study all the docs in java.fckeditor.net
I am using the following config file (I am testing in Eclipse):
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction connector.impl=net.fckeditor.connector.impl.LocalConnector connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder connector.userFilesPath=/myCMS/userfiles connector.userFilesAbsolutePath=/media/data/Documents/code/java/myworkspace/myCMS/WebContent/userfiles
I can see the editor and it works fine except to the upload functionality. In fact, the folder creation through resource browser works fine, i.e. I can create subfolders through the resource browser and I can see the created folders in the filesystem.
However when I try to upload a file (image or anything else), I get the following error in the logs:
18:08:40,758 DEBUG Dispatcher:230 - Entering Dispatcher#doPost 18:08:40,759 DEBUG Dispatcher:137 - Parameter Command: FileUpload 18:08:40,760 DEBUG Dispatcher:138 - Parameter Type: Image 18:08:40,760 DEBUG Dispatcher:139 - Parameter CurrentFolder: /lalakis/test/ May 18, 2010 6:08:40 PM org.apache.catalina.core.ApplicationContext log INFO: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
When the upload is made through the full resource browser interface, there is also this message above the upload box:
Upload a new file in this folder (Upload in progress, please wait...)that never ends
Any ideas?
Thanks in advance
Re: Java FCKeditor 2.6 upload problem IndexOutOfBoundsExcept
Re: Java FCKeditor 2.6 upload problem IndexOutOfBoundsExcept
Hi and thanks for your answer.
I am using the latest Java and the latest Tomcat.
As libraries, I am using
fckeditor-java-core-2.6.jar
log4j-1.2.15.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
I am testing the editor with one of your sample JSPs. First I create a subfolder (newfolder) and then I browse to that subfolder and try to upload a file on it.
Re: Java FCKeditor 2.6 upload problem IndexOutOfBoundsExcept
We are using struts2 in our webapp and in the web.xml there ws the following configuration:
We changed it to
And everything works fine now! Thanks for your help anyway!