I am using the Java version of FCK Editor as detailed here:
And am deploying under Tomcat. On my local (test) server, I have everything working properly.
I have the following JAR files in my classpath:
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!!!