Hello Everyone,
I am using the Java version of FCK Editor as detailed here:
http://java.fckeditor.net
And am deploying under Tomcat. On my local (test) server, I have everything working properly.
I have the following JAR files in my classpath:
fckeditor-java-core-2.4.jar
slf4j-api-1.5.2.jar
slf4j-log4j12-1.5.2.jar
I have the following in my web.xml file:
<servlet> <servlet-name>Connector</servlet-name> <servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class> <load-on-startup>3</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Connector</servlet-name> <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern> </servlet-mapping>
And the following in fckeditor.properties:
connector.userActionImpl = net.fckeditor.requestcycle.impl.UserActionImpl connector.userFilesPath = /assets/content/fck connector.resourceType.file.path = /file connector.resourceType.image.path = /photo connector.resourceType.flash.path = /flash
And then deploying the editor on a JSP page with:
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %> <FCK:editor instanceName="details"> <jsp:attribute name="value"><%= details %></jsp:attribute> </FCK:editor>
Once again, everything is working normally locally. But if I try to use the Image upload on the production server, it appears that it is trying to find the default PHP connector? Interestingly, if in the Image Properties dialogue box I use the "Upload" tab to "Send it to the server" the file does get uploaded to the correct directory specified in connector.userFilesPath. But not if trying to browse the server to find the photo. I think this is a clue, but I cannot figure out what the problem is!
Any help would be greatly appreaciated!!!
Kind Regards,
John
Re: Java Tomcat Deployment
to answer your first question:
The answer is simply:
Your problem:
Please set the net.fckeditor.* logger hiearchy to log level DEBUG. You should see DEBUG params which the Connector is supplied. Try to check if they really match your invironment. This should help you to surround the problem.
Mike
Re: Java Tomcat Deployment
I encouter the same problem, so I tried to put the log level to DEBUG into log4j.xml :
But it seems to don't give me more informations. I'm pretty begginer at Log4j...
Have you any idea ?
Thanks
Ced
Re: Java Tomcat Deployment
Re: Java Tomcat Deployment
Ced
Re: Java Tomcat Deployment
Well, you made 2 mistakes. It was yes-or-no question and the put it the wrong directory.
I would strongly recommend you to read a tutorial first before doing any webapp development. See www.coreservlets.com
Every lib goes into WEB-INF/lib.