ckeditor ckfinder 整合后浏览服务器出错

ckeditor ckfinder 整合后浏览服务器出错

ckeditor ckfinder 整合后浏览服务器出错,怎么解决?用的spring 

404错误么?
找不到正确的路径名
那就是你的web.xml有问题呗

你的配置有问题,ckfinder要配置上传和访问文件的路径,设置的不对就会出现那个问题

<!--ckfinder配置   -->   <servlet>         <servlet-name>ConnectorServlet</servlet-name>         <servlet-class>com.ckfinder.connector.ConnectorServlet</servlet-class>         <init-param>             <param-name>XMLConfig</param-name>             <param-value>/WEB-INF/config.xml</param-value>         </init-param>         <init-param>             <param-name>debug</param-name>             <param-value>false</param-value>         </init-param>         <load-on-startup>1</load-on-startup>     </servlet>     <servlet-mapping>         <servlet-name>ConnectorServlet</servlet-name>         <url-pattern>/ckfinder/core/connector/java/connector.java</url-pattern>     </servlet-mapping>           <filter>         <filter-name>FileUploadFilter</filter-name>         <filter-class>com.ckfinder.connector.FileUploadFilter</filter-class>         <init-param>             <param-name>sessionCookieName</param-name>             <param-value>JSESSIONID</param-value>         </init-param>         <init-param>             <param-name>sessionParameterName</param-name>             <param-value>jsessionid</param-value>         </init-param>     </filter>     <filter-mapping>         <filter-name>FileUploadFilter</filter-name>         <url-pattern>/ckfinder/core/connector/java/connector.java</url-pattern>     </filter-mapping>     <session-config>         <session-timeout>10</session-timeout>     </session-config> 

 

config.xml文件

Plain Text code?1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 <config>     <enabled>true</enabled>     <baseDir></baseDir>     <baseURL>/CKEditor_Finder/userfiles/</baseURL>     <licenseKey></licenseKey>     <licenseName></licenseName>     <imgWidth>1600</imgWidth>     <imgHeight>1200</imgHeight>     <imgQuality>80</imgQuality>     <uriEncoding>UTF-8</uriEncoding>     <forceASCII>false</forceASCII>     <userRoleSessionVar>CKFinder_UserRole</userRoleSessionVar>     <checkDoubleExtension>true</checkDoubleExtension>     <checkSizeAfterScaling>true</checkSizeAfterScaling>     <secureImageUploads>true</secureImageUploads>     <htmlExtensions>html,htm,xml,js</htmlExtensions>     <hideFolders>         <folder>.svn</folder>         <folder>CVS</folder>     </hideFolders>     <hideFiles>         <file>.*</file>     </hideFiles>     <defaultResourceTypes></defaultResourceTypes>     <types>         <type name="Files">             <url>%BASE_URL%files/</url>             <directory>%BASE_DIR%files</directory>             <maxSize>0</maxSize>             <allowedExtensions>7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip             </allowedExtensions>             <deniedExtensions></deniedExtensions>         </type>         <type name="Images">             <url>%BASE_URL%images/</url>             <directory>%BASE_DIR%images</directory>             <maxSize>0</maxSize>             <allowedExtensions>bmp,gif,jpeg,jpg,png</allowedExtensions>             <deniedExtensions></deniedExtensions>         </type>         <type name="Flash">             <url>%BASE_URL%flash/</url>             <directory>%BASE_DIR%flash</directory>             <maxSize>0</maxSize>             <allowedExtensions>swf,flv</allowedExtensions>             <deniedExtensions></deniedExtensions>         </type>     </types>     <accessControls>         <accessControl>             <role>*</role>             <resourceType>*</resourceType>             <folder>/</folder>             <folderView>true</folderView>             <folderCreate>true</folderCreate>             <folderRename>true</folderRename>             <folderDelete>true</folderDelete>             <fileView>true</fileView>             <fileUpload>true</fileUpload>             <fileRename>true</fileRename>             <fileDelete>true</fileDelete>         </accessControl>     </accessControls>     <thumbs>         <enabled>true</enabled>         <url>%BASE_URL%_thumbs/</url>         <directory>%BASE_DIR%_thumbs</directory>         <directAccess>false</directAccess>         <maxHeight>100</maxHeight>         <maxWidth>100</maxWidth>         <quality>80</quality>     </thumbs>     <plugins>         <plugin>             <name>imageresize</name>             <class>com.ckfinder.connector.plugins.ImageResize</class>             <params>                 <param name="smallThumb" value="90x90"></param>                 <param name="mediumThumb" value="120x120"></param>                 <param name="largeThumb" value="180x180"></param>             </params>         </plugin>         <plugin>             <name>fileeditor</name>             <class>com.ckfinder.connector.plugins.FileEditor</class>             <params></params>         </plugin>     </plugins>     <basePathBuilderImpl>com.ckfinder.connector.configuration.ConfigurationPathBuilder     </basePathBuilderImpl> </config> 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有