0

FCKEDitor upload problem

asked 2010-06-02 14:45:13 +0800

vinhvo gravatar image 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 flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2010-06-03 00:35:12 +0800

mjablonski gravatar image 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

link publish delete flag offensive edit

answered 2010-06-03 02:22:31 +0800

vinhvo gravatar image 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 ?

link publish delete flag offensive edit

answered 2010-06-03 03:31:34 +0800

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

Have a look at:

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

HTH, Maik

link publish delete flag offensive edit

answered 2010-06-03 17:08:27 +0800

vinhvo gravatar image 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 :(.

link publish delete flag offensive edit

answered 2010-06-09 16:30:58 +0800

vinhvo gravatar image 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>

web.xml: Add 1 servlet mapping
  <servlet>
		<servlet-name>ConnectorServlet</servlet-name>
		<servlet-class>
			net.fckeditor.connector.ConnectorServlet
		</servlet-class>
		<load-on-startup>1</load-on-startup>
	</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.

link publish delete flag offensive edit

answered 2010-11-18 03:20:52 +0800

sxzhengxj gravatar image 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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-02 14:45:13 +0800

Seen: 1,346 times

Last updated: Nov 18 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More