vinhvo
369 3

I am using Tomcat 6. When I tried to upload an image with FCK Editor : it takes like forever. When I tried to browse server for file :

The server didn't reply with a proper XML data. Please check your configuration.
. Did anybody face same problem ?

delete retag edit

## 6 Replies

mjablonski
1284 3 5
http://www.jease.org/

Hi,

you need to code and configure appropriate servlets for handling uploads / file-browsing via FCKEditor, because these kind of operations depend on your application (e.g. where do you want to store the image? Filesystem? Database?).

Cheers, Maik

vinhvo
369 3

Yes. I was thinking about that . Do you know any instruction to set up FCK EDITOR to do such kind of work on Tomcat ?

mjablonski
1284 3 5
http://www.jease.org/

Have a look at:

http://java.fckeditor.net/connector.html

HTH, Maik

vinhvo
369 3

Demo
It seems to me that the servlet to handling fileupload exist in the jar file. Please have a look at the demo. Try to upload image->Link_>Browse. The view servlet will show up but the problem happens. I have tried your link and deploy their sample. It works : show uploading/browsing servlet. So might be, I have to extract jar file and see what really inside :(.

vinhvo
369 3

Thank you for your valuable hint. I figure it out . I thought I could share for all.
1st : fckeditor-java-demo-2.6.war . Download this war file and what we need are all libs and fckeditor.properties from this war file. the fckeditor.properties we can put it in our src/ folder. All libs are in WEB-INF/lib + Zkoss libs ....
Then :
zul file:

<?page title="Auto Generated index.zul"?>
<window title="Hello World!!" border="normal" width="100%" height="100%">

<label value="You are using: \${desktop.webApp.version}"/>
<fckeditor ></fckeditor>
</window>

  <servlet>
<servlet-name>ConnectorServlet</servlet-name>
<servlet-class>
net.fckeditor.connector.ConnectorServlet
</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ConnectorServlet</servlet-name>
<!-- Do not wrap this line otherwise Glassfish will fail to load this file -->
<url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ConnectorServlet</servlet-name>
<!-- Do not wrap this line otherwise Glassfish will fail to load this file -->
<url-pattern>/zkau/web/js/fckez/ext/FCKeditor/editor/filemanager/connectors/*</url-pattern>
</servlet-mapping>

Now it works perfectly.

sxzhengxj
3

dear vinhvo:

when I config the fckeditor as you do.
it still has the error "The server didn't reply with a proper XML data. Please check your configuration."

would you please send me a simple demo?
to: zhengxiaojun@gmail.com

[hide preview]