I've implemented FCKeditor in my webapp. I'm developing in eclipse and deploying to weblogic. I'm using the editor via javascript and that's working fine. I added the connector to my project as described here http://java.fckeditor.net/connector.html.
<servlet> <servlet-name>Connector</servlet-name> <servlet-class> net.fckeditor.connector.ConnectorServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Connector</servlet-name> <url-pattern> /lib/fckeditor/editor/filemanager/connectors/* </url-pattern> </servlet-mapping>
Re: Problem deploying a webapp with FCKeditor
Are you using FCKeditor.Java 2.4?
Did you intergrate weblogic into Eclipe WTP? If so, please try to reproduce the error.
Try to debug the source. It seems like this string is null http://dev.fckeditor.net/browser/FCKedi ... t.java#L79 for some reason which leads to the NPE in line 82.
Re: Problem deploying a webapp with FCKeditor
Brandon,
I've investigated the issue and found the reason why it really fails. JBoss, WebLogic and maybe other servers do not expand the war file on the local filesystem, the run the webapp directly off the war file. Tomcat e.g. expands them. The specification says about ServletContext#getRealPath:
Re: Problem deploying a webapp with FCKeditor
Re: Problem deploying a webapp with FCKeditor
I am glad, I was able to help you!