Opened 17 years ago

Closed 16 years ago

#104 closed Bug (fixed)

Issues with Connector Servlet in Tomcat5.5

Reported by: packs808 Owned by: Michael Osipov
Priority: Normal Milestone: FCKeditor.Java 2.4
Component: Server : Java Version: FCKeditor 2.4
Keywords: Servlet Cc:

Description

For some reason I had problems with the Servlet mapping with the Connector and SimpleUploader Servlets.

The long mapings, e.g: <servlet-mapping> <servlet-name>Connector</servlet-name> <url-pattern>/fck/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern> </servlet-mapping>

Didn't seem to work. The server returned a 404 when trying to access it.

I had to replace it with: <url-pattern>/servlet/connector</url-pattern> and now I could access the Servlet OK.

And then in the fckconfig.js, change the following line: FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/servlet/connector" ;

It seems the relative paths didn't work in my Tomcat setup. I'm using FCK2.4, Tomcat/5.5.20 and Java 1.5.0_07-b03.

Note I'm not using any JSP pages - only Javascript to write the editor code.

Not sure if this is a bug or something I was doing wrong but it now works. I imagine it may be related to Tomcat and those long paths.

Change History (3)

comment:1 Changed 16 years ago by Frederico Caldeira Knabben

Owner: alka13 deleted

comment:2 Changed 16 years ago by Michael Osipov

Owner: set to Michael Osipov

I will investigate that!

comment:3 Changed 16 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.4
Resolution: fixed
Status: newclosed

Servlet mapping in branch 2.4 with FCKeditor 2.5.1 works as expected for the examples with the default fckconig.js.

Sample WAR file will be available soon. Fixed in SVN.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy