<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J.swiderski</id>
		<title>CKSource Docs - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J.swiderski"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/Special:Contributions/J.swiderski"/>
		<updated>2026-06-07T11:26:51Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Drupal_OS_CKFinder&amp;diff=7406</id>
		<title>Template:Drupal OS CKFinder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Drupal_OS_CKFinder&amp;diff=7406"/>
				<updated>2018-09-19T12:08:22Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CKFinder is an Ajax-based file manager created by CKEditor developers: http://ckfinder.com/. CKFinder support is already built into the CKEditor for Drupal module, but due to licensing issues you need to buy it separately, add the files to your Drupal site and then enable the file browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;The instructions below are valid for '''CKFinder 2.x only'''.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;If you are looking for a simplified solution, try the [http://ckeditor.com/ckeditor-for-drupal Enterprise version of the module] that comes with a CKFinder license and the file browser already included in the module and working out-of-the-box. The Enterprise version of the component also includes professional assistance from the original CKEditor development team in the form of a '''dedicated e-mail support channel'''.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to install CKFinder on your Drupal {{{version}}} site, follow the steps described below.&lt;br /&gt;
&lt;br /&gt;
First of all, download '''CKFinder for PHP''' from the [http://ckfinder.com/download official CKFinder website].&lt;br /&gt;
&lt;br /&gt;
Unpack the contents of the installation package into the directory that contains the CKEditor module and place it in the &amp;lt;code&amp;gt;sites/all/modules/ckeditor/ckfinder&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;sites/all/libraries/ckfinder&amp;lt;/code&amp;gt;) folder. . When the files are unpacked, you should see the following file structure inside the &amp;lt;code&amp;gt;drupal/sites/all/modules&amp;lt;/code&amp;gt; directory:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
modules               &amp;lt;dir&amp;gt;&lt;br /&gt;
   ckeditor           &amp;lt;dir&amp;gt;&lt;br /&gt;
      ckeditor.css&lt;br /&gt;
      ckeditor.info&lt;br /&gt;
      ...&lt;br /&gt;
      ckeditor        &amp;lt;dir&amp;gt;&lt;br /&gt;
         _samples     &amp;lt;dir&amp;gt;&lt;br /&gt;
         _source      &amp;lt;dir&amp;gt;&lt;br /&gt;
         adapters     &amp;lt;dir&amp;gt;&lt;br /&gt;
         images       &amp;lt;dir&amp;gt;&lt;br /&gt;
         ...&lt;br /&gt;
         ckeditor.js&lt;br /&gt;
         ...&lt;br /&gt;
      ckfinder        &amp;lt;dir&amp;gt;&lt;br /&gt;
         _samples     &amp;lt;dir&amp;gt;&lt;br /&gt;
         core         &amp;lt;dir&amp;gt;&lt;br /&gt;
         ...&lt;br /&gt;
         ckfinder.js&lt;br /&gt;
         ckfinder.php&lt;br /&gt;
         ...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will now need to grant the '''&amp;quot;{{{permission}}}&amp;quot;''' permission in the '''Administration panel''' &amp;gt; '''{{{path1}}}''' &amp;gt; '''Permissions''' section. Note: if you do not see this permission, it means that CKEditor did not find CKFinder and you have probably uploaded CKFinder into a wrong directory.&lt;br /&gt;
&lt;br /&gt;
[[Image:Drupal_{{{version}}}_Enterprise_CKFinder_permission.png|frame|center|Granting CKFinder access permission in the Drupal Administration panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now open the CKFinder configuration file (&amp;lt;code&amp;gt;ckfinder/config.php&amp;lt;/code&amp;gt;) and introduce the code changes described below.&lt;br /&gt;
&lt;br /&gt;
Firstly, remove the &amp;lt;code&amp;gt;CheckAuthentication()&amp;lt;/code&amp;gt; function (do not worry, this function is defined in &amp;lt;code&amp;gt;filemanager.config.php&amp;lt;/code&amp;gt;, see below):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function CheckAuthentication()       &amp;lt;- remove it&lt;br /&gt;
{                                    &amp;lt;- remove it&lt;br /&gt;
   //WARNING : DO NOT simply...      &amp;lt;- remove it&lt;br /&gt;
   ...                               &amp;lt;- remove it&lt;br /&gt;
   return false;                     &amp;lt;- remove it&lt;br /&gt;
}                                    &amp;lt;- remove it&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
For CKFinder installed in the &amp;lt;code&amp;gt;sites/all/modules/ckeditor/ckfinder&amp;lt;/code&amp;gt; directory add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
require_once '../../../../includes/filemanager.config.php';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
straight below the following line:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$baseDir = resolveUrl($baseUrl);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
For CKFinder installed in the &amp;lt;code&amp;gt;sites/all/libraries/ckfinder&amp;lt;/code&amp;gt; directory add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
straight below the following line:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$baseDir = resolveUrl($baseUrl);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now open the Drupal settings file (&amp;lt;code&amp;gt;sites/default/settings.php&amp;lt;/code&amp;gt;) and do the following:&lt;br /&gt;
* Uncomment the &amp;lt;code&amp;gt;$base_url&amp;lt;/code&amp;gt; variable and set the base URL of your website (without the trailing slash).&lt;br /&gt;
* Uncomment the &amp;lt;code&amp;gt;$cookie_domain&amp;lt;/code&amp;gt; variable and set the domain name of your website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select CKFinder as a preferred file browser in the '''Administration panel''' &amp;gt; '''{{{path2}}}''' &amp;gt; '''CKEditor''' section (for a selected CKEditor profile scroll down to the '''File browser settings''' section).&lt;br /&gt;
&lt;br /&gt;
[[Image:Drupal_{{{version}}}_OS_enable_CKFinder.png|frame|center|Selecting CKFinder as a preferred file browser in the Drupal Administration panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now [[CKEditor_for_Drupal/Open Source/Drupal_{{{version}}}/Configuration|configure]] CKFinder settings in the '''File browser settings''' section for the CKEditor profile that you want to use. You may also change destination folders for files uploaded with CKFinder.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Troubleshooting&amp;diff=7405</id>
		<title>CKFinder 2.x/Developers Guide/ASP/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Troubleshooting&amp;diff=7405"/>
				<updated>2018-08-27T10:32:31Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you are unable to quickly setup CKFinder for ASP, you can use a [http://cksource.com/forums/viewtopic.php?f=10&amp;amp;t=13604 wizard script] as explained in the community forums (the wizard can also be found on [https://gitlab.com/AlfonsoML/ckfinder-for-asp-wizard Github]). This script should be able to tell you exactly the steps to follow in your configuration or your server and get CKFinder working in just a matter of minutes.&lt;br /&gt;
&lt;br /&gt;
The script might point you to this pages in order to get extended information about some common problems. This is a list of articles aimed to help you fix any problems while setting up your CKFinder for ASP installation.&lt;br /&gt;
&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ASP/Troubleshooting/ParentPath|&amp;quot;ASP 0131&amp;quot; Error &amp;amp;ndash; not being able to use relative paths]] &lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ASP/Troubleshooting/UploadSize|Adjusting maximum upload size]]&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ASP/Troubleshooting/Windows_Authentication|Using CKFinder with Windows Authentication]]&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7389</id>
		<title>CKFinder 2.x/Developers Guide/Java/System Requirements</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7389"/>
				<updated>2015-12-04T11:07:57Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Requirements Description}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
Minimum CKFinder requirements for Java:&lt;br /&gt;
* JRE 1.6 and a Servlet 2.5/JSP 2.1 compliant server.&lt;br /&gt;
&amp;lt;note&amp;gt;The requirement of JDK or JRE is dependent on the particular application server itself. Some servers like Apache Tomcat require JRE and others like GlassFish or JBOSS require JDK. While JRE is the minimum requirement that will work with some servers, &amp;lt;strong&amp;gt;JDK is the recommended requirement&amp;lt;/strong&amp;gt; which will work with all the servers.&amp;lt;/note&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7388</id>
		<title>CKFinder 2.x/Developers Guide/Java/System Requirements</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7388"/>
				<updated>2015-12-04T10:47:13Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Requirements Description}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
Minimum CKFinder requirements for Java:&lt;br /&gt;
* JRE 1.6 and a Servlet 2.5/JSP 2.1 compliant server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7387</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7387"/>
				<updated>2015-11-29T20:54:06Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== BaseDir and BaseUrl best practice ==&lt;br /&gt;
&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of an application directory.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on  the &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; property.  You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;br /&gt;
Let’s have a look at few examples:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;!--or--&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,  CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;br /&gt;
&lt;br /&gt;
Let’s take a look at another example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;br /&gt;
&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;&lt;br /&gt;
First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. Second, you should &amp;lt;strong&amp;gt;set these properties to point to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;br /&gt;
&lt;br /&gt;
Another solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; a folder which can be located even outside of the server. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;, in WildFly by &amp;lt;strong&amp;gt;adding extra entries to &amp;lt;code&amp;gt;urn:jboss:domain:undertow&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;subsystem&amp;lt;/code&amp;gt; element&amp;lt;/strong&amp;gt; in one of configuration files e.g.  standalone.xml  and in JBOSS EAP by &amp;lt;strong&amp;gt;allowing symlinks&amp;lt;/strong&amp;gt; for particular external folder in &amp;lt;code&amp;gt;jboss-web.xml&amp;lt;/code&amp;gt; file and then &amp;lt;strong&amp;gt;making that symlink&amp;lt;/strong&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;br /&gt;
&lt;br /&gt;
CKFinder config.xml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:/myimages&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CKFinderJava/META-INF/context.xaml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;/CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;Resources&amp;gt;&lt;br /&gt;
       &amp;lt;PreResources base=&amp;quot;C://myimages&amp;quot; className=&amp;quot;org.apache.catalina.webresources.DirResourceSet&amp;quot; webAppMount=&amp;quot;/userfiles&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/Resources&amp;gt;&lt;br /&gt;
   &amp;lt;Valve className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;  allow=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
With the help of the server and two configuration changes, you can have your files being saved to &amp;lt;code&amp;gt;C:/myimages&amp;lt;/code&amp;gt; folder. It’s also worth mentioning that &amp;lt;code&amp;gt;myimages&amp;lt;/code&amp;gt; directory is invisible to end user and Tomcat serves files as if they really were located inside &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7386</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7386"/>
				<updated>2015-11-19T22:51:36Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===WildFly===&lt;br /&gt;
The WildFly belongs to the group of servers which use UTF-8 encoding for handling request parameters. Configuration setting responsible for the encoding is [https://docs.jboss.org/author/display/WFLY9/Undertow+%28web%29+subsystem+configuration#Undertow%28web%29subsystemconfiguration-Commonsettings url-charset]. In order to use international file names in CKFinder, one must leave &amp;lt;code&amp;gt;url-charset&amp;lt;/code&amp;gt; setting with its default value and use [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses in the application. CKFinder is using the mentioned methods however since request parameters sent in the request body (occurs with an HTTP POST request) are parsed only once, it is very important that proper encoding is set as early as possible (best in a filter), before any reading of the parameters is performed.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7385</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7385"/>
				<updated>2015-11-19T22:26:16Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===WildFly===&lt;br /&gt;
The WildFly belongs to the group of servers which use UTF-8 encoding for handling request parameters. Configuration setting responsible for the encoding is [https://docs.jboss.org/author/display/WFLY9/Undertow+%28web%29+subsystem+configuration#Undertow%28web%29subsystemconfiguration-Commonsettings url-charset]. In order to use international file names in CKFinder, one must leave &amp;lt;code&amp;gt;url-charset&amp;lt;/code&amp;gt; setting with its default value and use [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses in the application.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7384</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7384"/>
				<updated>2015-11-19T06:50:13Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===WildFly===&lt;br /&gt;
The WildFly belongs to the group of servers which use UTF-8 for handling request parameters. Configuration setting responsible for the encoding is [https://docs.jboss.org/author/display/WFLY9/Undertow+%28web%29+subsystem+configuration#Undertow%28web%29subsystemconfiguration-Commonsettings url-charset]. In order to have parameters properly encoded, one must leave &amp;lt;code&amp;gt;url-charset&amp;lt;/code&amp;gt; setting with its default value and use [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses in the application.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7383</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7383"/>
				<updated>2015-11-18T23:32:39Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===WildFly===&lt;br /&gt;
The WildFly belongs to the group of servers which by default use UTF-8 for handling request parameters. Configuration setting responsible for the encoding is [https://docs.jboss.org/author/display/WFLY9/Undertow+%28web%29+subsystem+configuration#Undertow%28web%29subsystemconfiguration-Commonsettings url-charset]. In order to have parameters properly encoded, one must leave &amp;lt;code&amp;gt;url-charset&amp;lt;/code&amp;gt; setting with its default value and use [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses in the application.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7382</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7382"/>
				<updated>2015-11-18T21:47:31Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7380</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7380"/>
				<updated>2015-11-15T23:34:28Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===JBOSS EAP 6===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS EAP can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; node has to be placed directly under the &amp;lt;code&amp;gt;extensions&amp;lt;/code&amp;gt; node, in standalone.xml file, or you will get parse errors.&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7379</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7379"/>
				<updated>2015-11-05T15:55:40Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===JBOSS 7===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS 7 can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], Tomcat 5-7 by default use the ISO-8859-1 encoding for handling HTTP request parameters.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Tomcat 8 the default value of &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; attribute depends on &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; [https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Specifications system property]. When &amp;quot;strict servlet compliance&amp;quot; is off (default value), &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is now UTF-8. If &amp;quot;strict servlet compliance&amp;quot; is enabled, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; is ISO-8859-1.&amp;lt;br /&amp;gt;&lt;br /&gt;
In other words, the &amp;lt;code&amp;gt;URIEncoding&amp;lt;/code&amp;gt; in Tomcat 8+ is now optional but if you are getting encoding problems (e.g. because &amp;lt;code&amp;gt;org.apache.catalina.STRICT_SERVLET_COMPLIANCE&amp;lt;/code&amp;gt; was enabled) you can set this attribute explicitly to UTF-8 in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7378</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7378"/>
				<updated>2015-11-05T14:58:54Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 in Tomcat.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in &amp;lt;code&amp;gt;JBOSS_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 in WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Getting Started] and [https://docs.jboss.org/author/display/WFLY9/Admin+Guide Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss EAP 6 ===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss Enterprise Application Platform (EAP) &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss EAP can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss configurations [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-Configuration_Files here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBoss Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the &amp;lt;code&amp;gt;EAP_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-The_Management_CLI link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBoss can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files under this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#Reference_for_Deployment_Scanner_Marker_Files1 link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBoss EAP allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behaviour, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss EAP port. If you changed this value while configuring your EAP installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 in JBOSS EAP.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss EAP [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Getting_Started_Guide/ Getting Started] and [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/ Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7377</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7377"/>
				<updated>2015-11-04T22:51:54Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===JBOSS 7===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS 7 can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or above, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], for handling HTTP requests by default Tomcat uses  the ISO-8859-1 encoding.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7376</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7376"/>
				<updated>2015-11-04T08:30:25Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in &amp;lt;code&amp;gt;JBOSS_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Getting Started] and [https://docs.jboss.org/author/display/WFLY9/Admin+Guide Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss EAP 6 ===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss Enterprise Application Platform (EAP) &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss EAP can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss configurations [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-Configuration_Files here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBoss Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the &amp;lt;code&amp;gt;EAP_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-The_Management_CLI link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBoss can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files under this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#Reference_for_Deployment_Scanner_Marker_Files1 link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBoss EAP allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behaviour, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss EAP port. If you changed this value while configuring your EAP installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS EAP.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss EAP [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Getting_Started_Guide/ Getting Started] and [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/ Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7375</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7375"/>
				<updated>2015-11-04T08:23:23Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== BaseDir and BaseUrl best practice ==&lt;br /&gt;
&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of an application directory.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on  the &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; property.  You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;br /&gt;
Let’s have a look at few examples:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;!--or--&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,  CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;br /&gt;
&lt;br /&gt;
Let’s take a look at another example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;br /&gt;
&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;&lt;br /&gt;
First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. Second, you should &amp;lt;strong&amp;gt;set these properties to point to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;br /&gt;
&lt;br /&gt;
Another solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; a folder which can be located even outside of the server. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;br /&gt;
&lt;br /&gt;
CKFinder config.xml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:/myimages&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CKFinderJava/META-INF/context.xaml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;/CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;Resources&amp;gt;&lt;br /&gt;
       &amp;lt;PreResources base=&amp;quot;C://myimages&amp;quot; className=&amp;quot;org.apache.catalina.webresources.DirResourceSet&amp;quot; webAppMount=&amp;quot;/userfiles&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/Resources&amp;gt;&lt;br /&gt;
   &amp;lt;Valve className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;  allow=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
With the help of the server and two configuration changes, you can have your files being saved to &amp;lt;code&amp;gt;C:/myimages&amp;lt;/code&amp;gt; folder. It’s also worth mentioning that &amp;lt;code&amp;gt;myimages&amp;lt;/code&amp;gt; directory is invisible to end user and Tomcat serves files as if they really were located inside &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7374</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7374"/>
				<updated>2015-11-03T22:44:36Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== BaseDir and BaseUrl best practice ==&lt;br /&gt;
&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of application directory.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on  &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt;.  You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;br /&gt;
Let’s have a look at few examples:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;!--or--&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,  CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt;application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;br /&gt;
&lt;br /&gt;
Let’s take a look at another example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;br /&gt;
&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;&lt;br /&gt;
First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. Second, you should &amp;lt;strong&amp;gt;set these properties to point to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;br /&gt;
&lt;br /&gt;
Another and better one solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;br /&gt;
&lt;br /&gt;
CKFinder config.xml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:/myimages&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CKFinderJava/META-INF/context.xaml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;/CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;Resources&amp;gt;&lt;br /&gt;
       &amp;lt;PreResources base=&amp;quot;C://myimages&amp;quot; className=&amp;quot;org.apache.catalina.webresources.DirResourceSet&amp;quot; webAppMount=&amp;quot;/userfiles&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/Resources&amp;gt;&lt;br /&gt;
   &amp;lt;Valve className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;  allow=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
With the help of the server and two configuration changes, you can have your files being saved to &amp;lt;code&amp;gt;C:/myimages&amp;lt;/code&amp;gt; folder. It’s also worth mentioning that &amp;lt;code&amp;gt;myimages&amp;lt;/code&amp;gt; directory is invisible to end user and Tomcat serves files as if they really were located inside &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7373</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7373"/>
				<updated>2015-11-03T22:25:50Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== BaseDir and BaseUrl best practice ==&lt;br /&gt;
&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of application directory.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on  &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt;.  You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;br /&gt;
Let’s have a look at few examples:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;!--or--&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,  CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt;application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;br /&gt;
&lt;br /&gt;
Let’s take a look at another example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;br /&gt;
&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;&lt;br /&gt;
First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. Second, you should &amp;lt;strong&amp;gt;set these properties to point to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;br /&gt;
&lt;br /&gt;
Another and better one solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;br /&gt;
&lt;br /&gt;
CKFinder config.xml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:/myimages&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CKFinderJava/META-INF/context.xaml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;/CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;Resources&amp;gt;&lt;br /&gt;
       &amp;lt;PreResources base=&amp;quot;C://myimages&amp;quot; className=&amp;quot;org.apache.catalina.webresources.DirResourceSet&amp;quot; webAppMount=&amp;quot;/userfiles&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/Resources&amp;gt;&lt;br /&gt;
   &amp;lt;Valve className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;  allow=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7372</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7372"/>
				<updated>2015-11-03T21:45:54Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== BaseDir and BaseUrl best practice ==&lt;br /&gt;
&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of application directory.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on  &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt;.  You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;br /&gt;
Let’s have a look at few examples:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;!--or--&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,  CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt;application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;br /&gt;
&lt;br /&gt;
Let’s take a look at another example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;br /&gt;
&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;Second, you should set these properties to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;. Here is where server itself might be helpful as most of the servers provide “virtual directories”. A “Virtual Directory” allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let’s have a look at an example for Tomcat 8 server. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; folder, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;br /&gt;
&lt;br /&gt;
CKFinder config.xml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:/myimages&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CKFinderJava/META-INF/context.xaml settings:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;/CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
    &amp;lt;Resources&amp;gt;&lt;br /&gt;
       &amp;lt;PreResources base=&amp;quot;C://myimages&amp;quot; className=&amp;quot;org.apache.catalina.webresources.DirResourceSet&amp;quot; webAppMount=&amp;quot;/userfiles&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/Resources&amp;gt;&lt;br /&gt;
   &amp;lt;Valve className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;  allow=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/Context&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7371</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7371"/>
				<updated>2015-11-03T17:17:29Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in &amp;lt;code&amp;gt;JBOSS_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss EAP [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Getting Started] and [https://docs.jboss.org/author/display/WFLY9/Admin+Guide Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss EAP 6 ===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss Enterprise Application Platform (EAP) &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss EAP can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss configurations [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-Configuration_Files here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name and check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBoss Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the &amp;lt;code&amp;gt;EAP_HOME/bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-The_Management_CLI link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBoss can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files under this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#Reference_for_Deployment_Scanner_Marker_Files1 link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the &amp;lt;code&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/code&amp;gt; directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBoss EAP allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behaviour, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss EAP port. If you changed this value while configuring your EAP installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS EAP.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss EAP [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Getting_Started_Guide/ Getting Started] and [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/ Administration Guide] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7370</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7370"/>
				<updated>2015-11-03T15:46:44Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Documentation] site for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss EAP 6 ===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss Enterprise Application Platform (EAP) &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss EAP can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss configurations [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-Configuration_Files here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBoss Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the JBoss EAP &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#sect-The_Management_CLI link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBoss can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files under this [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/#Reference_for_Deployment_Scanner_Marker_Files1 link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBoss EAP allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behaviour, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;EAP_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBOSS EAP port. If you changed this value while configuring your EAP installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS EAP.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss EAP [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Getting_Started_Guide/ Getting Started] and [https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/ Administration] sites for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7369</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7369"/>
				<updated>2015-11-03T15:33:43Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; with specified server groups must be used.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Documentation] site for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7368</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7368"/>
				<updated>2015-11-02T22:43:59Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly ===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Once this is done, you can deploy applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; must be specified.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Documentation] site for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7367</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7367"/>
				<updated>2015-11-02T22:37:01Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly (former JBoss AS)===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' radio button, click '''Next''' and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Next you can deply applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; must be specified.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Documentation] site for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7366</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7366"/>
				<updated>2015-11-02T22:32:35Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== WildFly (former JBoss AS)===&lt;br /&gt;
The server can be started from the command line. Go to the WildFly bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WildFly Application Server can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start server with its default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available WildFly configurations [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide#GettingStartedGuide-WildFly8Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, click '''Deployments''' link, next click the '''Add''' button, select '''Upload a new deployment''' checkbox and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, verify its runtime name, check the '''Enable''' checkbox. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using WildFly Command Line Interface (CLI). It has to be first launched using the &amp;lt;code&amp;gt;jboss-cli.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;jboss-cli.bat&amp;lt;/code&amp;gt; script located in the WildFly &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; directory. Next you can deply applications as in the example given below:&lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups&amp;lt;/code&amp;gt; must be specified.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, WildFly can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/WFLY8/Application+deployment link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default WildFly allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default WildFly port. If you changed this value while configuring your WildFly installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on WildFly.&lt;br /&gt;
&lt;br /&gt;
Go to the WildFly [https://docs.jboss.org/author/display/WFLY9/Getting+Started+Guide Documentation] site for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7365</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7365"/>
				<updated>2015-11-02T21:22:30Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6,&lt;br /&gt;
* GlassFish 3-4,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7364</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7364"/>
				<updated>2015-11-02T16:43:46Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===JBOSS 7===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS 7 can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or 4.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], for handling HTTP requests by default Tomcat uses  the ISO-8859-1 encoding.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
The Jetty server uses UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7363</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7363"/>
				<updated>2015-11-02T16:22:24Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6.4.0,&lt;br /&gt;
* GlassFish 3.0-4.1,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when application is deployed. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.x] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7362</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7362"/>
				<updated>2015-11-02T15:49:47Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 6-8,&lt;br /&gt;
* Jetty 9, &lt;br /&gt;
* WildFly (former JBoss AS) 8-9,&lt;br /&gt;
* JBoss EAP 6.4.0,&lt;br /&gt;
* GlassFish 3.0-4.1,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7359</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7359"/>
				<updated>2015-08-17T11:34:56Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-8,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; unpacked folder into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; folder to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory and the server will do the rest. &amp;lt;br /&amp;gt;&lt;br /&gt;
Dropping packed archive is advised for production while dropping exploded folder is advised for development since you can do partial redeployments of the application with the exploded directory.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7358</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7358"/>
				<updated>2015-08-17T11:33:51Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-8,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; unpacked folder into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; folder to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory and the server will do the rest. &amp;lt;br /&amp;gt;&lt;br /&gt;
Dropping packed archive is advised for production while dropping exploded folder is advised for development since you can do partial redeployments of the application with the exploded directory.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.cmd&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startManagedWebLogic.cmd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Drupal_OS_CKFinder&amp;diff=7356</id>
		<title>Template:Drupal OS CKFinder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Drupal_OS_CKFinder&amp;diff=7356"/>
				<updated>2015-07-14T12:59:54Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CKFinder is an Ajax-based file manager created by CKEditor developers: http://ckfinder.com/. CKFinder support is already built into the CKEditor for Drupal module, but due to licensing issues you need to buy it separately, add the files to your Drupal site and then enable the file browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;Below instructions are valid for '''CKFinder 2.x only'''. Module as well as documentation will be adjusted to new CKFinder 3.x soon.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;If you are looking for a simplified solution, try the [http://ckeditor.com/ckeditor-for-drupal Enterprise version of the module] that comes with a CKFinder license and the file browser already included in the module and working out-of-the-box. The Enterprise version of the component also includes professional assistance from the original CKEditor development team in the form of a '''dedicated e-mail support channel'''.&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to install CKFinder on your Drupal {{{version}}} site, follow the steps described below.&lt;br /&gt;
&lt;br /&gt;
First of all, download '''CKFinder for PHP''' from the [http://ckfinder.com/download official CKFinder website].&lt;br /&gt;
&lt;br /&gt;
Unpack the contents of the installation package into the directory that contains the CKEditor module and place it in the &amp;lt;code&amp;gt;sites/all/modules/ckeditor/ckfinder&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;sites/all/libraries/ckfinder&amp;lt;/code&amp;gt;) folder. . When the files are unpacked, you should see the following file structure inside the &amp;lt;code&amp;gt;drupal/sites/all/modules&amp;lt;/code&amp;gt; directory:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
modules               &amp;lt;dir&amp;gt;&lt;br /&gt;
   ckeditor           &amp;lt;dir&amp;gt;&lt;br /&gt;
      ckeditor.css&lt;br /&gt;
      ckeditor.info&lt;br /&gt;
      ...&lt;br /&gt;
      ckeditor        &amp;lt;dir&amp;gt;&lt;br /&gt;
         _samples     &amp;lt;dir&amp;gt;&lt;br /&gt;
         _source      &amp;lt;dir&amp;gt;&lt;br /&gt;
         adapters     &amp;lt;dir&amp;gt;&lt;br /&gt;
         images       &amp;lt;dir&amp;gt;&lt;br /&gt;
         ...&lt;br /&gt;
         ckeditor.js&lt;br /&gt;
         ...&lt;br /&gt;
      ckfinder        &amp;lt;dir&amp;gt;&lt;br /&gt;
         _samples     &amp;lt;dir&amp;gt;&lt;br /&gt;
         core         &amp;lt;dir&amp;gt;&lt;br /&gt;
         ...&lt;br /&gt;
         ckfinder.js&lt;br /&gt;
         ckfinder.php&lt;br /&gt;
         ...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will now need to grant the '''&amp;quot;{{{permission}}}&amp;quot;''' permission in the '''Administration panel''' &amp;gt; '''{{{path1}}}''' &amp;gt; '''Permissions''' section. Note: if you do not see this permission, it means that CKEditor did not find CKFinder and you have probably uploaded CKFinder into a wrong directory.&lt;br /&gt;
&lt;br /&gt;
[[Image:Drupal_{{{version}}}_Enterprise_CKFinder_permission.png|frame|center|Granting CKFinder access permission in the Drupal Administration panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now open the CKFinder configuration file (&amp;lt;code&amp;gt;ckfinder/config.php&amp;lt;/code&amp;gt;) and introduce the code changes described below.&lt;br /&gt;
&lt;br /&gt;
Firstly, remove the &amp;lt;code&amp;gt;CheckAuthentication()&amp;lt;/code&amp;gt; function (do not worry, this function is defined in &amp;lt;code&amp;gt;filemanager.config.php&amp;lt;/code&amp;gt;, see below):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function CheckAuthentication()       &amp;lt;- remove it&lt;br /&gt;
{                                    &amp;lt;- remove it&lt;br /&gt;
   //WARNING : DO NOT simply...      &amp;lt;- remove it&lt;br /&gt;
   ...                               &amp;lt;- remove it&lt;br /&gt;
   return false;                     &amp;lt;- remove it&lt;br /&gt;
}                                    &amp;lt;- remove it&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
For CKFinder installed in the &amp;lt;code&amp;gt;sites/all/modules/ckeditor/ckfinder&amp;lt;/code&amp;gt; directory add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
require_once '../../../../includes/filemanager.config.php';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
straight below the following line:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$baseDir = resolveUrl($baseUrl);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
For CKFinder installed in the &amp;lt;code&amp;gt;sites/all/libraries/ckfinder&amp;lt;/code&amp;gt; directory add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
straight below the following line:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$baseDir = resolveUrl($baseUrl);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now open the Drupal settings file (&amp;lt;code&amp;gt;sites/default/settings.php&amp;lt;/code&amp;gt;) and do the following:&lt;br /&gt;
* Uncomment the &amp;lt;code&amp;gt;$base_url&amp;lt;/code&amp;gt; variable and set the base URL of your website (without the trailing slash).&lt;br /&gt;
* Uncomment the &amp;lt;code&amp;gt;$cookie_domain&amp;lt;/code&amp;gt; variable and set the domain name of your website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select CKFinder as a preferred file browser in the '''Administration panel''' &amp;gt; '''{{{path2}}}''' &amp;gt; '''CKEditor''' section (for a selected CKEditor profile scroll down to the '''File browser settings''' section).&lt;br /&gt;
&lt;br /&gt;
[[Image:Drupal_{{{version}}}_OS_enable_CKFinder.png|frame|center|Selecting CKFinder as a preferred file browser in the Drupal Administration panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now [[CKEditor_for_Drupal/Open Source/Drupal_{{{version}}}/Configuration|configure]] CKFinder settings in the '''File browser settings''' section for the CKEditor profile that you want to use. You may also change destination folders for files uploaded with CKFinder.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7349</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7349"/>
				<updated>2015-06-28T21:48:32Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-8,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; unpacked folder into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; folder to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory and the server will do the rest. &amp;lt;br /&amp;gt;&lt;br /&gt;
Dropping packed archive is advised for production while dropping exploded folder is advised for development since you can do partial redeployments of the application with the exploded directory.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7347</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7347"/>
				<updated>2015-06-14T00:01:54Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-8,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7], or [http://tomcat.apache.org/tomcat-8.0-doc/index.html Tomcat 8]  documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7337</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7337"/>
				<updated>2015-01-21T09:43:09Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;br /&gt;
&lt;br /&gt;
CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== More on baseURL ==&lt;br /&gt;
As stated above, if the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter is empty, CKFinder will try to deduce the &amp;lt;code&amp;gt;userfile&amp;lt;/code&amp;gt; path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter value.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the server hosts more applications for one domain (like &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;www.example.com&amp;lt;/code&amp;gt;), the code above will not work for most of them. To be exact, it will work only for the application that is set as the default one for the domain.&lt;br /&gt;
&lt;br /&gt;
This may sound a bit enigmatic, but here is the explanation. &lt;br /&gt;
&lt;br /&gt;
If the server hosts multiple applications in one domain, the users usually call them in the following way (note this does not pertain to the default application):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://www.example.com/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or the following way, where &amp;lt;code&amp;gt;filemanager&amp;lt;/code&amp;gt; is the ''context path'' for the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://www.example.com/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These applications are (physically) located in one directory (like &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; for Tomcat or Jetty) and to differentiate between them, the user needs to include the name or alias (context path) of the called application in its URL.&lt;br /&gt;
When the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter is set to point directly to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder, CKFinder will create this folder in the application directory (like &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;). On the other hand, when the user will want to use the '''View''' option, the browser will search for the image in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://hostName/baseURL/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;br /&gt;
&lt;br /&gt;
It is worth mentioning that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7326</id>
		<title>CKFinder 2.x/Developers Guide/Java/System Requirements</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/System_Requirements&amp;diff=7326"/>
				<updated>2014-02-06T08:52:45Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Requirements Description}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
Minimum CKFinder requirements for Java:&lt;br /&gt;
* JRE 1.5 and a Servlet 2.5/JSP 2.1 compliant server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7323</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7323"/>
				<updated>2013-11-22T20:47:31Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7322</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/URI Encoding</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding&amp;diff=7322"/>
				<updated>2013-11-22T20:45:51Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default some servers use the ISO-8859-1 encoding for request parameters and request body. What is more, changing the encoding for request body on such servers has no influence on the encoding of the request parameters. This may cause problems if you want to use international file names with '''CKFinder which expects request body and parameters to be encoded in UTF-8'''.  To overcome this issue you can either set UTF-8 URI encoding on the server or if you do not have enough privileges to do that, you can adjust CKFinder to use same URI encoding as your server. &amp;lt;br /&amp;gt;&lt;br /&gt;
You will find more detailed instructions below.&lt;br /&gt;
&lt;br /&gt;
===JBOSS 6===&lt;br /&gt;
JBOSS 6 is one of the servers that use ISO-8859-1 for parameter encoding. In order to change this value to UTF-8 you have to modify the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file for the configuration you use. &amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS 6 comes with five different server configurations. To simplify the example let us assume that configuration '''&amp;lt;code&amp;gt;&amp;quot;all&amp;quot;&amp;lt;/code&amp;gt;''' is used and you want to set UTF-8 only for that particular configuration. To achieve that you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/all/deploy/jbossweb.sar/server.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector URIEncoding=&amp;quot;UTF-8&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; port=&amp;quot;${jboss.web.http.port}&amp;quot; &lt;br /&gt;
address=&amp;quot;${jboss.bind.address}&amp;quot; redirectPort=&amp;quot;${jboss.web.https.port}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===JBOSS 7===&lt;br /&gt;
By default this server uses ISO-8859-1 for parameter encoding. To change this to UTF-8, you have to modify the configuration file appropriate for the mode and configuration used.&amp;lt;br /&amp;gt;&lt;br /&gt;
As you probably know, JBOSS 7 can run in two modes (&amp;quot;domain&amp;quot; and &amp;quot;standalone&amp;quot;) and can use various configurations. &lt;br /&gt;
To simplify the example let us assume that the server uses the standalone mode and default configuration. In order to set UTF-8 for URI encoding you have to edit the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file and add a system property named &amp;lt;code&amp;gt;org.apache.catalina.connector.URI_ENCODING&amp;lt;/code&amp;gt;,(with value set to UTF-8) to the &amp;lt;code&amp;gt;system-properties&amp;lt;/code&amp;gt; element. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code that needs to be added to the configuration file you use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system-properties&amp;gt;&lt;br /&gt;
    &amp;lt;property name=&amp;quot;org.apache.catalina.connector.URI_ENCODING&amp;quot; value=&amp;quot;UTF-8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/system-properties&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.0===&lt;br /&gt;
According to Glassfish 3.0 [http://docs.oracle.com/cd/E19798-01/821-1752/beafu/index.html documentation] default parameter encoding for requests is ISO-8859-1. To change this encoding to UTF-8 you have to use the sun-web.xml  [http://docs.oracle.com/cd/E19798-01/821-1750/beaql/index.html file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of your web application.&amp;lt;br /&amp;gt;  &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt;&lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;sun-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE sun-web-app PUBLIC &amp;quot;-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;sun-web-app&amp;gt;&lt;br /&gt;
	&amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/sun-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GlassFish 3.1+===&lt;br /&gt;
By default this [http://docs.oracle.com/cd/E18930_01/html/821-2418/beaft.html#beafu server] uses ISO-8859-1 for parameter encoding. In order to change this to UTF-8, you have to use the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt;  [http://docs.oracle.com/cd/E18930_01/html/821-2417/beaql.html#scrolltoc file] with xml &amp;lt;code&amp;gt;parameter-encoding&amp;lt;/code&amp;gt; element. This file has to be placed in the &amp;lt;code&amp;gt;WEB-INF&amp;lt;/code&amp;gt; folder of the web application. &amp;lt;br /&amp;gt; &lt;br /&gt;
CKFinder sample web application comes with such a file. If you are using Glassfish 3.1 or 4.0, want to use UTF-8, and to integrate CKFinder in to your application then apart from files mentioned in the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Integration Integration] section, copy  &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; as well. &amp;lt;br /&amp;gt; &lt;br /&gt;
Below is the code for the &amp;lt;code&amp;gt;glassfish-web.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE glassfish-web-app PUBLIC &amp;quot;-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN&amp;quot; &lt;br /&gt;
&amp;quot;http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;glassfish-web-app&amp;gt;&lt;br /&gt;
    &amp;lt;parameter-encoding default-charset=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/glassfish-web-app&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Tomcat===&lt;br /&gt;
According to [http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Tomcat FAQ], for handling HTTP requests by default Tomcat uses  the ISO-8859-1 encoding.&lt;br /&gt;
&lt;br /&gt;
Starting with version 5 for all &amp;lt;code&amp;gt;GET&amp;lt;/code&amp;gt; requests, when the encoding type used is different from the default one, the query parameters are not encoded in the same way as the request body. To be more specific, if you want to use the encoding other than the default ISO-8859-1 (like UTF-8, for example), the &amp;lt;code&amp;gt;HttpServletRequest.setCharacterEncoding(&amp;quot;UTF-8&amp;quot;)&amp;lt;/code&amp;gt; method will only be applied to the request body, and not the URI.&lt;br /&gt;
&lt;br /&gt;
In order to encode the query parameters just like the requests, you should use the &amp;lt;code&amp;gt;URIEncoding=&amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt; attribute in the &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt; element of the &amp;lt;code&amp;gt;Server.xml&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Connector port=&amp;quot;8080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot;  redirectPort=&amp;quot;8443&amp;quot; URIEncoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Weblogic===&lt;br /&gt;
This server follows J2EE specification when it comes to encoding.  This means that if no encoding is specified then default ISO-8859-1 is set for everything (Servlets, JSP, Tag Files) except for XML format files.&amp;lt;br /&amp;gt;&lt;br /&gt;
Weblogic documentation provides a couple of ways for setting the encoding you want (UTF-8 in this case). There are server typical methods as well as general Servlet API methods. It seems the best way to set encoding in the WLS server is using [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] for requests and [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setCharacterEncoding%28java.lang.String%29 setCharacterEncoding(&amp;quot;UTF-8&amp;quot;);] or [http://docs.oracle.com/javaee/7/api/javax/servlet/ServletResponse.html#setContentType%28java.lang.String%29 setContentType(&amp;quot;UTF-8&amp;quot;);] for responses.&lt;br /&gt;
&lt;br /&gt;
Please see this [http://otndnld.oracle.co.jp/document/products/wls/docs103/en/relnotes_ja.htmlotndnld.oracle.co.jp/document/products/wls/docs92/en/relnotes_ja.html link] (Web Components section) for more details on setting appropriate encoding on the server-side.   &lt;br /&gt;
&lt;br /&gt;
===Jetty=== &lt;br /&gt;
All supported Jetty versions (7,8 and 9) use UTF-8 by default. Jetty [http://wiki.eclipse.org/Jetty/Howto/International_Characters#Characters_included_in_HTTP_requests documentation] states if no overriding character encoding is set on a request, Jetty uses UTF-8 encoding.&lt;br /&gt;
&lt;br /&gt;
===Alternative Solution (CKFinder Adjustment)===&lt;br /&gt;
'''By default, CKFinder uses the UTF-8 encoding, so you should stick to the guidelines presented above in order to make it work properly.'''&lt;br /&gt;
&lt;br /&gt;
If you cannot or do not want to set this parameter in the server configuration file, CKFinder will try to address this problem for you. This is why the &amp;lt;code&amp;gt;uriEncoding&amp;lt;/code&amp;gt; configuration element was created in the &amp;lt;code&amp;gt;config.xml&amp;lt;code&amp;gt; file. This parameter accepts the encoding of your query parameters. &amp;lt;br /&amp;gt; &lt;br /&gt;
For example, for Tomcat, JBoss, Glassfish, and Weblogic with their default configuration set (which is ISO-8859-1) you should set uriEncoding to ISO-8859-1 and CKFinder will convert the query parameters for you. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;uriEncoding&amp;gt;ISO-8859-1&amp;lt;/uriEncoding&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7321</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7321"/>
				<updated>2013-11-22T19:59:51Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its '''default''' mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7320</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7320"/>
				<updated>2013-11-22T19:54:29Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its default mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
Go to the JBoss AS7 [https://docs.jboss.org/author/display/AS7/Getting+Started+Guide Documentation] site for more information about using this server. &lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7319</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7319"/>
				<updated>2013-11-22T15:56:05Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its default mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the &amp;quot;Marker Files&amp;quot; section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7318</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7318"/>
				<updated>2013-11-22T15:53:25Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. &amp;lt;br /&amp;gt; If you wish to change this folder, you can either put the unpacked &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only.&amp;lt;br /&amp;gt; The Above command will start the server in its default mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;code&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the “Marker Files” section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; &lt;br /&gt;
auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7317</id>
		<title>CKFinder 2.x/Developers Guide/Java/Installation</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Installation&amp;diff=7317"/>
				<updated>2013-11-22T15:36:24Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
{{#CUSTOMTITLE:CKFinder Installation}}&lt;br /&gt;
This article describes how to install CKFinder for Java.&lt;br /&gt;
&lt;br /&gt;
== Installation Procedure ==&lt;br /&gt;
To install CKFinder, download the CKFinder for Java distribution package (a &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file) from the [http://ckfinder.com/download official download site]. You will need to deploy this file to your Java server and run as an application. For detailed instructions on how to run CKFinder on one of the most popular Java servers refer to an appropriate section below.&lt;br /&gt;
&lt;br /&gt;
== Running the Sample Application ==&lt;br /&gt;
A test application is available  in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; folder of the distribution package. After the deployment open the &amp;lt;code&amp;gt;_samples/index.html&amp;lt;/code&amp;gt; page in your Web browser to see a few usage scenarios for CKFinder.&lt;br /&gt;
&lt;br /&gt;
== Basic Configuration ==&lt;br /&gt;
When your application works correctly in the browser, it is time to review its configuration. Go to the &amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt; file where you can customize your application. See the [[CKFinder_2.x/Developers Guide/Java/Configuration|Configuration]] section for more information about the CKFinder configuration.&lt;br /&gt;
&lt;br /&gt;
Please note that due to security reasons by default CKFinder is disabled. When you reviewed the settings and are ready to go, open the configuration file and enable the program.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Deployment on a Server ==&lt;br /&gt;
The CKFinder Java connector supports the following servers:&lt;br /&gt;
* Tomcat 5.5-7,&lt;br /&gt;
* Jetty 7-9, &lt;br /&gt;
* JBoss 6-7, &lt;br /&gt;
* GlassFish 3.0-4.0,&lt;br /&gt;
* Weblogic 11g-12c.&lt;br /&gt;
For detailed instructions on how to deploy CKFinder for Java to one of the supported servers, please refer to an appropriate section below. &lt;br /&gt;
&lt;br /&gt;
=== Tomcat ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Tomcat &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. Go to Tomcat &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the startup script file for your operating system &amp;amp;mdash; &amp;lt;code&amp;gt;startup.bat&amp;lt;/code&amp;gt; for Windows or &amp;lt;code&amp;gt;startup.sh&amp;lt;/code&amp;gt; for Linux. When you are running Tomcat as a service, restart the server.&lt;br /&gt;
&lt;br /&gt;
By default Tomcat has the &amp;lt;code&amp;gt;autoDeploy=&amp;quot;true&amp;quot;&amp;lt;/code&amp;gt; option enabled (check the &amp;lt;code&amp;gt;Host&amp;lt;/code&amp;gt; element in the &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt; file). If this option was not changed, running the application should also be possible after you copy it to the &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder without stopping the server.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Tomcat port. If you changed this value while configuring your Tomcat installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.apache.org/tomcat/FAQ Tomcat FAQ] and [http://tomcat.apache.org/tomcat-5.5-doc/index.html Tomcat 5.5] or [http://tomcat.apache.org/tomcat-6.0-doc/index.html Tomcat 6], or [http://tomcat.apache.org/tomcat-7.0-doc/index.html Tomcat 7] documentation for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Jetty ===&lt;br /&gt;
Place the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file in the Jetty &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; folder. In the command line go to the root of the Jetty server and start it with a &amp;lt;code&amp;gt;java -jar start.jar&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default Jetty port. If you changed this value while configuring your Jetty installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default Jetty unpacks war files to folders like  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\Users\admin\AppData\Local\Temp\jetty-0.0.0.0-8080-CKFinderJava.war-_CKFinderJava-any-\webapp\&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Information about this folder is displayed in the output console, when the server is started. If you wish to change this folder, you can either put the unpacked CKFinderJava war file in the webapps folder (Jetty will use the unpacked application folder) or go to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty7(8)\etc\jetty-webapps.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;jetty9\etc\jetty-deploy.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and set the below parameter to the folder path of your choice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;Set name=&amp;quot;tempDir&amp;quot;&amp;gt;&amp;lt;New class=&amp;quot;java.io.File&amp;quot;&amp;gt;&amp;lt;Arg&amp;gt;C:\tmp&amp;lt;/Arg&amp;gt;&amp;lt;/New&amp;gt;&amp;lt;/Set&amp;gt;&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Go to the [http://wiki.eclipse.org/Jetty/Starting/Installing_Jetty-7.0.x Jetty 7], [http://wiki.eclipse.org/Jetty/Starting/Quick_Start_Guide Jetty 8], or [http://www.eclipse.org/jetty/documentation/current/quick-start.html Jetty 9] Quick Start guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 6===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the following command:&lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server ships with five different server [http://docs.jboss.org/jbossas/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#The_JBoss_Server___A_Quick_Tour-Server_Configurations configurations]: all, default, standard, minimal and jbossweb-standalone. This is because one may want to start server with selected services only. The Above command will start the server in its default mode. However, if you want to use a different configuration, e.g. start the server with all services available, you would have to pass the &amp;lt;code&amp;gt;–c&amp;lt;/code&amp;gt; parameter with an appropriate configuration. In this case use the &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; value: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;run.bat -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt; run.sh -c all&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Web Application (WAR)s''' menu and click the '''Add new resource''' button. In the '''Add New Web Application (WAR)''' window specify the path to CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file, and optionally check one of the following options: &lt;br /&gt;
&lt;br /&gt;
* '''Deploy Exploded''' &amp;amp;ndash; for most usage scenarios,&lt;br /&gt;
* '''Deploy Farm''' &amp;amp;ndash; when the server works in a cluster.&lt;br /&gt;
If you don't select any of the options above, JBoss will be instructed to deploy CKFinder for Java as a packed war file. The application will be deployed after you click the '''Continue''' button. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''NOTE:''' In this example we are going to work with a single standalone server.&lt;br /&gt;
&lt;br /&gt;
Please bear in mind that JBoss has '''auto-deploy''' mode turned on by default so it is enough to drop the &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file into an appropriate directory. If you started your server with standard configuration (&amp;lt;code&amp;gt;run –c standard&amp;lt;/code&amp;gt;), please drop &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/server/standard/deploy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and the server will do the rest. &lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://www.jboss.org/jbossas/docs/6-x JBoss AS6 Documentation site] for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== JBoss 7===&lt;br /&gt;
The server can be started from the command line. Go to the JBoss bin folder and run the following command: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;standalone.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;standalone.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;domain.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JBoss Application Server 7 can run in two modes: standalone and domain. First one allows running a single standalone Server, while the latter is used to manage multiple physical (or virtual) machines from a single control point. &amp;lt;br /&amp;gt; &lt;br /&gt;
'''NOTE:''' In this example we are going to work with a standalone server.&lt;br /&gt;
&lt;br /&gt;
The above two commands start servers with their default configurations. If one wishes to start the server with one of alternative configurations, one should pass the &amp;lt;code&amp;gt;--server-config&amp;lt;/code&amp;gt; argument with the server configuration file to be used. The example below shows how to run the full profile configuration with high availability:&lt;br /&gt;
* Windows:  &amp;lt;code&amp;gt;standalone.bat --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux:  &amp;lt;code&amp;gt;standalone.sh --server-config=standalone-ha.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
You can read more about available JBoss 7 configurations  [https://docs.jboss.org/author/display/AS71/Getting+Started+Guide#GettingStartedGuide-JBossApplicationServer7Configurations here]. &lt;br /&gt;
&lt;br /&gt;
After the server was started, log into administration console, go to the '''Runtime''' Tab, select '''Managed Deployments''' menu, click the '''Add contents''' button and select &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; file. Once CKFinderJava.war upload is finished, press the '''Enable''' button. The Application is now ready to use.&lt;br /&gt;
Another way of deploying the CKFinderJava application is using JBOSS Command Line Interface (CLI): &lt;br /&gt;
* '''In standalone mode:''' &amp;lt;ocde&amp;gt;[standalone@localhost:9999 /] deploy ~/Desktop/CKFinderJava.war&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''In domain mode:''' &amp;lt;code&amp;gt;[domain@localhost:9999 /] deploy ~/Desktop/ CKFinderJava.war --all-server-groups&amp;lt;/code&amp;gt;&lt;br /&gt;
'''NOTE:''' Either &amp;lt;code&amp;gt;--all-server-groups&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--server-groups must be specified&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To learn more about CLI please see this [https://community.jboss.org/wiki/CommandLineInterface link].&lt;br /&gt;
&lt;br /&gt;
If your Server is running in the standalone mode, then aside from using the administration console and CLI, JBOSS 7 can also work in manual and auto deployment mode (this depends on your settings).&lt;br /&gt;
In the '''Auto-Deploy mode''' the scanner directly monitors the deployment content, available in  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/deployments&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory, automatically deploying new content and redeploying content whose timestamp has changed. It means that you can simply drop CKFinderJava.war into deployments folder and the application will be deployed. &amp;lt;br /&amp;gt;&lt;br /&gt;
To undeploy CKFinderJava in auto mode simply remove war file from deploy directory. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the '''Manual deploy mode''' the scanner does not directly monitor the deployment content. Instead, the scanner relies on a system of marker files, which the user can add to or remove from deployment directory. These files serve as a sort of command telling the scanner to deploy, undeploy, or redeploy the content. You can learn more about marker files in the “Marker Files” section available under this [https://docs.jboss.org/author/display/AS7/Application+deploymen link].&lt;br /&gt;
&lt;br /&gt;
To deploy &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt; in manual mode, copy this file into the deployments directory and create the &amp;lt;code&amp;gt;CKFinderJava.war.dodeploy&amp;lt;/code&amp;gt; file. CKFinder will be deployed and the &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; marker file will be created. To undeploy CKFinderJava simply remove &amp;lt;code&amp;gt;CKFinderJava.war.deployed&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
Please note that by default JBOSS7 allows auto-deployment of zipped content and prevents auto-deployment of exploded content. This is because exploded content is vulnerable to the scanner trying to auto-deploy partially copied content. However, if you wish to change this behavior, you can go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;JBOSS_HOME/standalone/configuration/standalone.xml&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; file, look for the '''deployment-scanner'' tag and change the deployment options as you like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&amp;lt;deployment-scanner scan-interval=&amp;quot;5000&amp;quot; relative-to=&amp;quot;jboss.server.base.dir&amp;quot; path=&amp;quot;deployments&amp;quot; auto-deploy-zipped=&amp;quot;true&amp;quot; auto-deploy-exploded=&amp;quot;false&amp;quot;/&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default JBoss port. If you changed this value while configuring your JBoss installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
If you want to use international files names with CKFinder please see [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encoding URI Encoding section] which explains how to set UTF-8 on JBOSS.&lt;br /&gt;
&lt;br /&gt;
=== GlassFish ===&lt;br /&gt;
The GlassFish server can be started from the command line. Go to the server &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder and run the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script. Next you need to start the domain which is a pre-requisite to upload the application or use the administrator's console. In this example we are going to use the test domain that is deployed with the servr. Run the &amp;lt;code&amp;gt;start-domain&amp;lt;/code&amp;gt; command to start it.&lt;br /&gt;
&lt;br /&gt;
The application can be uploaded to the server by using the command line or the administrator's console.&lt;br /&gt;
&lt;br /&gt;
When using the command line, run the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;deploy relativePath/CKFinderJava.war&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the path to the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file is relative to the &amp;lt;code&amp;gt;asadmin&amp;lt;/code&amp;gt; script that is located in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; folder of GlassFish.&lt;br /&gt;
&lt;br /&gt;
When using the administrator's console, log in and go to the '''Applications''' tab. Specify the location of the CKFinder Java &amp;lt;code&amp;gt;.war&amp;lt;/code&amp;gt; file and set the application type to '''Web Application'''.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that the HTTP &amp;lt;code&amp;gt;8080&amp;lt;/code&amp;gt; port of the sample URL is the default GlassFish port. If you changed this value while configuring your GlassFish installation, you will need to use a modified port value to run the sample application.&lt;br /&gt;
&lt;br /&gt;
By default, Glassfish has ISO parameter-encoding set, which may cause problems if your users want to use filenames with non-ISO characters. If CKFinder in your application is to be used worldwide, it is recommended to set UTF-8 for Glassfish. Please refer to the [http://docs.cksource.com/CKFinder_2.x/Developers_Guide/Java/Configuration/URI_Encodinglink URI Encoding] section for more details.&lt;br /&gt;
&lt;br /&gt;
Go to the Oracle [http://docs.oracle.com/cd/E19798-01/821-1757/index.html GlassFish 3.0] or, [http://docs.oracle.com/cd/E18930_01/html/821-2432/ GlassFish 3.1] or [https://glassfish.java.net/getstarted.html GlassFish 4.0] Server Quick Start Guide for more information about using this server.&lt;br /&gt;
&lt;br /&gt;
=== Weblogic ===&lt;br /&gt;
The Weblogic Server (WLS) can be started from the command line. Go to the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;weblogic_main_folder/user_projects/domains/your_domain/bin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; folder and run the following script: &lt;br /&gt;
* Windows: &amp;lt;code&amp;gt;startWeblogic.bat&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.bat&amp;lt;/code&amp;gt;&lt;br /&gt;
* Linux: &amp;lt;code&amp;gt;startWeblogic.sh&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;startWeblogicManagedServer.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
If Weblogic is in production mode then please remember that you need to specify the user name and password in order to run it. &lt;br /&gt;
&lt;br /&gt;
As you probably know, Weblogic Server uses domains which are logically related groups of server resources. A domain can consist of an Administration Server and one or more Managed Servers, or of a single standalone server that acts as an Administration Server and runs deployed applications. In this example we are going to use a single standalone Administration Server.&lt;br /&gt;
&lt;br /&gt;
After starting Weblogic, log into the  Administration Console and click '''Deployments''' in the '''Domain Structure''' upper left menu. If WLS is in production mode, you need to click '''Lock&amp;amp;Edit''' first. In main panel click the  '''Install''' button, specify the path to &amp;lt;code&amp;gt;CKFinderJava.war&amp;lt;/code&amp;gt;, and click the '''Next''' button. Select the '''&amp;quot;Install this deployment as an application&amp;quot;''' option and press the '''Next''' button. In the last panel you can change the name of your deployment, the security model and the source accessibility. Once you are done, click the '''Finish''' button and CKFinderJava will be deployed. If WLS works in production mode, you will need to confirm all changes by clicking the '''Activate Changes''' button and start the application manually by selecting it and pressing the '''Start''' button.&lt;br /&gt;
&lt;br /&gt;
By deafult, the application should be available under the following URL in your browser: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:7001/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTTP &amp;lt;code&amp;gt;7001&amp;lt;/code&amp;gt; port of the sample URL is the default Weblogic Administration Server port. If you changed this value while configuring your Weblogic domain(s), you will need to use a modified port value to run the sample application. &lt;br /&gt;
&lt;br /&gt;
Go to the [http://docs.oracle.com/cd/E17904_01/index.htm Weblogic 11g] or [http://docs.oracle.com/cd/E24329_01/index.htm Weblogic 12c] Documentation site for more information about using this server.&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide&amp;diff=7316</id>
		<title>CKFinder 2.x/Developers Guide</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide&amp;diff=7316"/>
				<updated>2013-07-19T06:38:38Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:CKFinder 2.x Developer's Guide}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== CKFinder for ASP ==&lt;br /&gt;
* [[/ASP/System Requirements|System Requirements]]&lt;br /&gt;
* [[/ASP/Installation|Installation]]&lt;br /&gt;
* [[/Upgrading|Upgrading]]&lt;br /&gt;
* [[/ASP/Configuration|Configuration]]&lt;br /&gt;
* [[/ASP/Integration|Integration]]&lt;br /&gt;
* [[/ASP/Plugins|Plugins]]&lt;br /&gt;
* [[/ASP/Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[/ASP/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/ASP/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
&lt;br /&gt;
== CKFinder for ASP.NET ==&lt;br /&gt;
* [[/ASP.NET/System Requirements|System Requirements]]&lt;br /&gt;
* [[/ASP.NET/Installation|Installation]]&lt;br /&gt;
* [[/Upgrading|Upgrading]]&lt;br /&gt;
* [[/ASP.NET/Configuration|Configuration]]&lt;br /&gt;
* [[/ASP.NET/Integration|Integration]]&lt;br /&gt;
* [[/ASP.NET/Plugins|Plugins]]&lt;br /&gt;
* [[/ASP.NET/Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[/ASP.NET/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/ASP.NET/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
&lt;br /&gt;
== CKFinder for ColdFusion ==&lt;br /&gt;
* [[/ColdFusion/System Requirements|System Requirements]]&lt;br /&gt;
* [[/ColdFusion/Installation|Installation]]&lt;br /&gt;
* [[/Upgrading|Upgrading]]&lt;br /&gt;
* [[/ColdFusion/Configuration|Configuration]]&lt;br /&gt;
* [[/ColdFusion/Integration|Integration]]&lt;br /&gt;
* [[/ColdFusion/Plugins|Plugins]]&lt;br /&gt;
* [[/ColdFusion/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/ColdFusion/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
&lt;br /&gt;
== CKFinder for Java ==&lt;br /&gt;
* [[/Java/System Requirements|System Requirements]]&lt;br /&gt;
* [[/Java/Installation|Installation]]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Java requires special upgrade instructions.&lt;br /&gt;
* [[CKFinder_2.x/Developers_Guide/Upgrading|Upgrading]]&lt;br /&gt;
--&amp;gt; &lt;br /&gt;
* [[/Java/Configuration|Configuration]]&lt;br /&gt;
* [[/Java/Integration|Integration]]&lt;br /&gt;
* [[/Java/Plugins|Plugins]]&lt;br /&gt;
* [[/Java/Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[/Java/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/Java/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
&lt;br /&gt;
== CKFinder for PHP ==&lt;br /&gt;
* [[/PHP/System Requirements|System Requirements]]&lt;br /&gt;
* [[/PHP/Installation|Installation]]&lt;br /&gt;
* [[/Upgrading|Upgrading]]&lt;br /&gt;
* [[/PHP/Configuration|Configuration]]&lt;br /&gt;
* [[/PHP/Integration|Integration]]&lt;br /&gt;
* [[/PHP/Plugins|Plugins]]&lt;br /&gt;
* [[/PHP/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/PHP/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
* [http://docs.cksource.com/ckfinder_2.x_api/ JavaScript API documentation] ([http://docs.cksource.com/ckfinder_2.x_api/ckfinder_2.x_api.zip download as .zip])&lt;br /&gt;
* [[CKFinder_2.x/Localization|Interface Localization]] &amp;amp;ndash; how to localize the CKFinder interface to your native language.&lt;br /&gt;
* [[CKFinder_2.x/Server Side Integration|Server Side Integration]] (for developers interested in modifying the core of CKFinder only)&lt;br /&gt;
&lt;br /&gt;
== License ==&lt;br /&gt;
* [http://ckfinder.com/license CKFinder License]&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP&amp;diff=7315</id>
		<title>CKFinder 2.x/Developers Guide/ASP</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP&amp;diff=7315"/>
				<updated>2013-07-19T06:37:34Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[/System Requirements|System Requirements]]&lt;br /&gt;
* [[/Installation|Installation]]&lt;br /&gt;
* [[CKFinder_2.x/Developers_Guide/Upgrading|Upgrading]]&lt;br /&gt;
* [[/Configuration|Configuration]]&lt;br /&gt;
* [[/Integration|Integration]]&lt;br /&gt;
* [[/Plugins|Plugins]]&lt;br /&gt;
* [[/Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[/CKEditor Integration|CKEditor Integration]]&lt;br /&gt;
* [[/FCKeditor Integration|FCKeditor Integration]]&lt;br /&gt;
{{#CUSTOMTITLE:Developer's Guide (ASP)}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Access_Control&amp;diff=7308</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Access Control</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Access_Control&amp;diff=7308"/>
				<updated>2013-03-07T15:03:59Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Access_Control_Description|file=&amp;lt;code&amp;gt;config.cfm&amp;lt;/code&amp;gt;|AccessControl=config.accessControl}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&lt;br /&gt;
config.accessControl[1] = structNew();&lt;br /&gt;
config.accessControl[1].role = '*';&lt;br /&gt;
config.accessControl[1].resourceType = '*';&lt;br /&gt;
config.accessControl[1].folder = '/';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[1].folderView = true;&lt;br /&gt;
config.accessControl[1].folderCreate = true;&lt;br /&gt;
config.accessControl[1].folderRename = true;&lt;br /&gt;
config.accessControl[1].folderDelete = true;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[1].fileView = true;&lt;br /&gt;
config.accessControl[1].fileUpload = true;&lt;br /&gt;
config.accessControl[1].fileRename = true;&lt;br /&gt;
config.accessControl[1].fileDelete = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ckfinder_acl_explanation}}&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_ACL_Examples|example1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&lt;br /&gt;
config.accessControl[2] = structNew();&lt;br /&gt;
config.accessControl[2].role = '*';&lt;br /&gt;
config.accessControl[2].resourceType = 'Images';&lt;br /&gt;
config.accessControl[2].folder = '/Logos';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[2].folderView = true;&lt;br /&gt;
config.accessControl[2].folderCreate = true;&lt;br /&gt;
config.accessControl[2].folderRename = true;&lt;br /&gt;
config.accessControl[2].folderDelete = true;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[2].fileView = true;&lt;br /&gt;
config.accessControl[2].fileUpload = false;&lt;br /&gt;
config.accessControl[2].fileRename = false;&lt;br /&gt;
config.accessControl[2].fileDelete = false;&lt;br /&gt;
&amp;lt;/source&amp;gt;|example2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[3] = structNew();&lt;br /&gt;
config.accessControl[3].role = '*';&lt;br /&gt;
config.accessControl[3].resourceType = 'Images';&lt;br /&gt;
config.accessControl[3].folder = '/';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[3].folderView = true;&lt;br /&gt;
config.accessControl[3].folderCreate = true;&lt;br /&gt;
config.accessControl[3].folderRename = false;&lt;br /&gt;
config.accessControl[3].folderDelete = false;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[3].fileView = true;&lt;br /&gt;
config.accessControl[3].fileUpload = true;&lt;br /&gt;
config.accessControl[3].fileRename = true;&lt;br /&gt;
config.accessControl[3].fileDelete = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;|wildcard_resource=(config.accessControl[1].resourceType = '*')}} &lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x Sessions|lang=ColdFusion|roleSessionVar=roleSessionVar|file=&amp;lt;code&amp;gt;config.cfm&amp;lt;/code&amp;gt;|code1=&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.roleSessionVar = 'CKFinder_UserRole';&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#newrole#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[1] = structNew();&lt;br /&gt;
config.accessControl[1].role = '*';&lt;br /&gt;
config.accessControl[1].resourceType = '*';&lt;br /&gt;
config.accessControl[1].folder = '/';&lt;br /&gt;
config.accessControl[1].folderView = true;&lt;br /&gt;
config.accessControl[1].folderCreate = false;&lt;br /&gt;
config.accessControl[1].folderRename = false;&lt;br /&gt;
config.accessControl[1].folderDelete = false;&lt;br /&gt;
config.accessControl[1].fileView = true;&lt;br /&gt;
config.accessControl[1].fileUpload = false;&lt;br /&gt;
config.accessControl[1].fileRename = false;&lt;br /&gt;
config.accessControl[1].fileDelete = false;&amp;lt;/source&amp;gt;|code4= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[2] = structNew();&lt;br /&gt;
config.accessControl[2].role = 'registered';&lt;br /&gt;
config.accessControl[2].resourceType = '*';&lt;br /&gt;
config.accessControl[2].folder = '/';&lt;br /&gt;
config.accessControl[2].folderView = true;&lt;br /&gt;
config.accessControl[2].folderCreate = true;&lt;br /&gt;
config.accessControl[2].folderRename = false;&lt;br /&gt;
config.accessControl[2].folderDelete = false;&lt;br /&gt;
config.accessControl[2].fileView = true;&lt;br /&gt;
config.accessControl[2].fileUpload = true;&lt;br /&gt;
config.accessControl[2].fileRename = false;&lt;br /&gt;
config.accessControl[2].fileDelete = false;&amp;lt;/source&amp;gt;|code5=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[3] = structNew();&lt;br /&gt;
config.accessControl[3].role = 'admin';&lt;br /&gt;
config.accessControl[3].resourceType = '*';&lt;br /&gt;
config.accessControl[3].folder = '/';&lt;br /&gt;
config.accessControl[3].folderView = true;&lt;br /&gt;
config.accessControl[3].folderCreate = true;&lt;br /&gt;
config.accessControl[3].folderRename = true;&lt;br /&gt;
config.accessControl[3].folderDelete = true;&lt;br /&gt;
config.accessControl[3].fileView = true;&lt;br /&gt;
config.accessControl[3].fileUpload = true;&lt;br /&gt;
config.accessControl[3].fileRename = true;&lt;br /&gt;
config.accessControl[3].fileDelete = true;&amp;lt;/source&amp;gt;}} In this file, you assign one of the pre-defined roles to the user &amp;amp;mdash; using the admin role:&lt;br /&gt;
{{CKFinder_2.x Sessions_Details|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#admin#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#registered#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code3= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#guest#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#any_other_value#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Access_Control&amp;diff=7307</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/Access Control</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Access_Control&amp;diff=7307"/>
				<updated>2013-03-07T15:03:13Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Access_Control_Description|file=&amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;|AccessControl=accessControl}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControls&amp;gt;&lt;br /&gt;
	&amp;lt;accessControl&amp;gt;&lt;br /&gt;
		&amp;lt;role&amp;gt;*&amp;lt;/role&amp;gt;&lt;br /&gt;
		&amp;lt;resourceType&amp;gt;*&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
		&amp;lt;folder&amp;gt;/&amp;lt;/folder&amp;gt;&lt;br /&gt;
		&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
		&amp;lt;folderCreate&amp;gt;true&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
		&amp;lt;folderRename&amp;gt;true&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
		&amp;lt;folderDelete&amp;gt;true&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
		&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
		&amp;lt;fileUpload&amp;gt;true&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
		&amp;lt;fileRename&amp;gt;true&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
		&amp;lt;fileDelete&amp;gt;true&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
	&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/accessControls&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{ckfinder_acl_explanation}}&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_ACL_Examples|example1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControl&amp;gt;&lt;br /&gt;
	&amp;lt;role&amp;gt;*&amp;lt;/role&amp;gt;&lt;br /&gt;
	&amp;lt;resourceType&amp;gt;Images&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;/Logos&amp;lt;/folder&amp;gt;&lt;br /&gt;
	&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
	&amp;lt;folderCreate&amp;gt;true&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
	&amp;lt;folderRename&amp;gt;true&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
	&amp;lt;folderDelete&amp;gt;true&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
	&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
	&amp;lt;fileUpload&amp;gt;false&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
	&amp;lt;fileRename&amp;gt;false&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
	&amp;lt;fileDelete&amp;gt;false&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;|example2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControl&amp;gt;&lt;br /&gt;
	&amp;lt;role&amp;gt;*&amp;lt;/role&amp;gt;&lt;br /&gt;
	&amp;lt;resourceType&amp;gt;Images&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;/&amp;lt;/folder&amp;gt;&lt;br /&gt;
	&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
	&amp;lt;folderCreate&amp;gt;true&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
	&amp;lt;folderRename&amp;gt;false&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
	&amp;lt;folderDelete&amp;gt;false&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
	&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
	&amp;lt;fileUpload&amp;gt;true&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
	&amp;lt;fileRename&amp;gt;true&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
	&amp;lt;fileDelete&amp;gt;true&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;|wildcard_resource=(&amp;lt;resourceType&amp;gt;*&amp;lt;/resourceType&amp;gt;)}}&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x Sessions|lang=Java|roleSessionVar=userRoleSessionVar|file=&amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;|code1=&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;userRoleSessionVar&amp;gt;CKFinder_UserRole&amp;lt;/userRoleSessionVar&amp;gt;&amp;lt;/source&amp;gt;|code2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
HttpSession session = request.getSession(true);&lt;br /&gt;
session.setAttribute(&amp;quot;CKFinder_UserRole&amp;quot;, &amp;quot;admin&amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControl&amp;gt;&lt;br /&gt;
	&amp;lt;role&amp;gt;*&amp;lt;/role&amp;gt;&lt;br /&gt;
	&amp;lt;resourceType&amp;gt;*&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;/&amp;lt;/folder&amp;gt;&lt;br /&gt;
	&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
	&amp;lt;folderCreate&amp;gt;false&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
	&amp;lt;folderRename&amp;gt;false&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
	&amp;lt;folderDelete&amp;gt;false&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
	&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
	&amp;lt;fileUpload&amp;gt;false&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
	&amp;lt;fileRename&amp;gt;false&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
	&amp;lt;fileDelete&amp;gt;false&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControl&amp;gt;&lt;br /&gt;
	&amp;lt;role&amp;gt;registered&amp;lt;/role&amp;gt;&lt;br /&gt;
	&amp;lt;resourceType&amp;gt;*&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;/&amp;lt;/folder&amp;gt;&lt;br /&gt;
	&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
	&amp;lt;folderCreate&amp;gt;true&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
	&amp;lt;folderRename&amp;gt;false&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
	&amp;lt;folderDelete&amp;gt;false&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
	&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
	&amp;lt;fileUpload&amp;gt;true&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
	&amp;lt;fileRename&amp;gt;false&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
	&amp;lt;fileDelete&amp;gt;false&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;|code5=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;accessControl&amp;gt;&lt;br /&gt;
	&amp;lt;role&amp;gt;admin&amp;lt;/role&amp;gt;&lt;br /&gt;
	&amp;lt;resourceType&amp;gt;*&amp;lt;/resourceType&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;/&amp;lt;/folder&amp;gt;&lt;br /&gt;
	&amp;lt;folderView&amp;gt;true&amp;lt;/folderView&amp;gt;&lt;br /&gt;
	&amp;lt;folderCreate&amp;gt;true&amp;lt;/folderCreate&amp;gt;&lt;br /&gt;
	&amp;lt;folderRename&amp;gt;true&amp;lt;/folderRename&amp;gt;&lt;br /&gt;
	&amp;lt;folderDelete&amp;gt;true&amp;lt;/folderDelete&amp;gt;&lt;br /&gt;
	&amp;lt;fileView&amp;gt;true&amp;lt;/fileView&amp;gt;&lt;br /&gt;
	&amp;lt;fileUpload&amp;gt;true&amp;lt;/fileUpload&amp;gt;&lt;br /&gt;
	&amp;lt;fileRename&amp;gt;true&amp;lt;/fileRename&amp;gt;&lt;br /&gt;
	&amp;lt;fileDelete&amp;gt;true&amp;lt;/fileDelete&amp;gt;&lt;br /&gt;
&amp;lt;/accessControl&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;}} In this file you assign one of the pre-defined roles to the user in the following way &amp;amp;mdash; using the admin role:&lt;br /&gt;
{{CKFinder_2.x Sessions_Details|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;session.setAttribute(&amp;quot;CKFinder_UserRole&amp;quot;, &amp;quot;admin&amp;quot;);&amp;lt;/source&amp;gt;|code2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;session.setAttribute(&amp;quot;CKFinder_UserRole&amp;quot;, &amp;quot;registered&amp;quot;);&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;session.setAttribute(&amp;quot;CKFinder_UserRole&amp;quot;, &amp;quot;guest&amp;quot;);&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;session.setAttribute(&amp;quot;CKFinder_UserRole&amp;quot;, &amp;quot;any_other_value&amp;quot;);&amp;lt;/source&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Access_Control&amp;diff=7306</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration/Access Control</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Access_Control&amp;diff=7306"/>
				<updated>2013-03-07T15:02:37Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Access_Control_Description|file=&amp;lt;code&amp;gt;config.php&amp;lt;/code&amp;gt;|AccessControl=$config['AccessControl']}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; '*',&lt;br /&gt;
'resourceType' =&amp;gt; '*',&lt;br /&gt;
'folder' =&amp;gt; '/',&lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; true,&lt;br /&gt;
'folderRename' =&amp;gt; true,&lt;br /&gt;
'folderDelete' =&amp;gt; true,&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; true,&lt;br /&gt;
'fileRename' =&amp;gt; true,&lt;br /&gt;
'fileDelete' =&amp;gt; true);&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{ckfinder_acl_explanation}}&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_ACL_Examples|example1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; '*',&lt;br /&gt;
'resourceType' =&amp;gt; 'Images',&lt;br /&gt;
'folder' =&amp;gt; '/Logos', &lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; true,&lt;br /&gt;
'folderRename' =&amp;gt; true,&lt;br /&gt;
'folderDelete' =&amp;gt; true,&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; false,&lt;br /&gt;
'fileRename' =&amp;gt; false,&lt;br /&gt;
'fileDelete' =&amp;gt; false);&lt;br /&gt;
&amp;lt;/source&amp;gt;|example2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; '*',&lt;br /&gt;
'resourceType' =&amp;gt; 'Images',&lt;br /&gt;
'folder' =&amp;gt; '/', &lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; true,&lt;br /&gt;
'folderRename' =&amp;gt; false,&lt;br /&gt;
'folderDelete' =&amp;gt; false&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; true,&lt;br /&gt;
'fileRename' =&amp;gt; true,&lt;br /&gt;
'fileDelete' =&amp;gt; true);&amp;lt;/source&amp;gt;||wildcard_resource=('resourceType' =&amp;gt; '*')}}&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x Sessions|lang=PHP|roleSessionVar=RoleSessionVar|file=&amp;lt;code&amp;gt;config.php&amp;lt;/code&amp;gt;|code1=&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['RoleSessionVar'] = 'CKFinder_UserRole';&amp;lt;/source&amp;gt;|code2=&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$_SESSION['CKFinder_UserRole'] = &amp;quot;admin&amp;quot;;&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; '*',&lt;br /&gt;
'resourceType' =&amp;gt; '*',&lt;br /&gt;
'folder' =&amp;gt; '/', &lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; false,&lt;br /&gt;
'folderRename' =&amp;gt; false,&lt;br /&gt;
'folderDelete' =&amp;gt; false,&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; false,&lt;br /&gt;
'fileRename' =&amp;gt; false,&lt;br /&gt;
'fileDelete' =&amp;gt; false);&lt;br /&gt;
&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; 'registered',&lt;br /&gt;
'resourceType' =&amp;gt; '*',&lt;br /&gt;
'folder' =&amp;gt; '/', &lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; true,&lt;br /&gt;
'folderRename' =&amp;gt; false,&lt;br /&gt;
'folderDelete' =&amp;gt; false,&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; true,&lt;br /&gt;
'fileRename' =&amp;gt; false,&lt;br /&gt;
'fileDelete' =&amp;gt; false);&lt;br /&gt;
&amp;lt;/source&amp;gt;|code5=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['AccessControl'][] = Array(&lt;br /&gt;
'role' =&amp;gt; 'admin',&lt;br /&gt;
'resourceType' =&amp;gt; '*',&lt;br /&gt;
'folder' =&amp;gt; '/', &lt;br /&gt;
&lt;br /&gt;
'folderView' =&amp;gt; true,&lt;br /&gt;
'folderCreate' =&amp;gt; true,&lt;br /&gt;
'folderRename' =&amp;gt; true,&lt;br /&gt;
'folderDelete' =&amp;gt; true,&lt;br /&gt;
&lt;br /&gt;
'fileView' =&amp;gt; true,&lt;br /&gt;
'fileUpload' =&amp;gt; true,&lt;br /&gt;
'fileRename' =&amp;gt; true,&lt;br /&gt;
'fileDelete' =&amp;gt; true);&amp;lt;/source&amp;gt;}} In this file you initialize the session with the &amp;lt;code&amp;gt;session_start();&amp;lt;/code&amp;gt; command and assign one of the pre-defined roles to the user in the following way &amp;amp;mdash; using the admin role:&lt;br /&gt;
{{CKFinder_2.x Sessions_Details|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$_SESSION['CKFinder_UserRole'] ='admin';&amp;lt;/source&amp;gt;|code2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$_SESSION['CKFinder_UserRole'] ='registered';&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$_SESSION['CKFinder_UserRole'] = 'guest';&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$_SESSION['CKFinder_UserRole'] = 'any_other_value';&amp;lt;/source&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Access_Control&amp;diff=7305</id>
		<title>CKFinder 2.x/Developers Guide/ASP/Configuration/Access Control</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Access_Control&amp;diff=7305"/>
				<updated>2013-03-07T15:02:14Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Access_Control_Description|file=&amp;lt;code&amp;gt;config.asp&amp;lt;/code&amp;gt;|AccessControl=accessControl(0)}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(0) = DefineAccessControlItem(&amp;quot;*&amp;quot;, &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, true, true, true, true, true, true, true, true)&amp;lt;/source&amp;gt; &lt;br /&gt;
The parameters are definied in the following order:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Function DefineAccessControlItem( role, resourceType, folder, folderView, folderCreate, folderRename, folderDelete,&lt;br /&gt;
fileView, fileUpload, fileRename, fileDelete )&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ckfinder_acl_explanation}}&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_ACL_Examples|example1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(1) = DefineAccessControlItem(&amp;quot;*&amp;quot;, &amp;quot;Images&amp;quot;, &amp;quot;/Logos&amp;quot;, true, true, true, true, true, false, false, false)&amp;lt;/source&amp;gt;|example2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(1) = DefineAccessControlItem(&amp;quot;*&amp;quot;, &amp;quot;Images&amp;quot;, &amp;quot;/&amp;quot;, true, true, false, false, true, false, false, false)&amp;lt;/source&amp;gt;|wildcard_resource=(DefineAccessControlItem(&amp;quot;*&amp;quot;...))}} &lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;Remember to adjust &amp;lt;code&amp;gt;Dim accessControl(0)&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;Dim accessControl(1)&amp;lt;/code&amp;gt; as necessary.&lt;br /&gt;
&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x Sessions|lang=ASP|roleSessionVar=RoleSessionVar|file=&amp;lt;code&amp;gt;config.asp&amp;lt;/code&amp;gt;|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;CKFinder_Config.Add &amp;quot;RoleSessionVar&amp;quot;, &amp;quot;CKFinder_UserRole&amp;quot;&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&amp;lt;% Session(&amp;quot;CKFinder_UserRole&amp;quot;)=&amp;quot;admin&amp;quot; %&amp;gt;&amp;lt;/source&amp;gt;|code3= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(1) = DefineAccessControlItem(&amp;quot;*&amp;quot;, &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, true, false, false, false, true, false, false, false)&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(2) = DefineAccessControlItem(&amp;quot;registered&amp;quot;, &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, true, true, false, false, true, true, false, false)&amp;lt;/source&amp;gt;|code5=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set accessControl(3) = DefineAccessControlItem(&amp;quot;admin&amp;quot;, &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, true, true, true, true, true, true, true, true)&amp;lt;/source&amp;gt;}} You can assign one of the pre-defined roles to the user  &amp;amp;mdash; using the admin role:&lt;br /&gt;
{{CKFinder_2.x Sessions_Details|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&amp;lt;% Session(&amp;quot;CKFinder_UserRole&amp;quot;)=&amp;quot;admin&amp;quot; %&amp;gt;&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&amp;lt;% Session(&amp;quot;CKFinder_UserRole&amp;quot;)=&amp;quot;registered&amp;quot; %&amp;gt;&amp;lt;/source&amp;gt;|code3= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&amp;lt;% Session(&amp;quot;CKFinder_UserRole&amp;quot;)=&amp;quot;guest&amp;quot; %&amp;gt;&amp;lt;/source&amp;gt;|code4= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&amp;lt;% Session(&amp;quot;CKFinder_UserRole&amp;quot;)=&amp;quot;any_other_value&amp;quot; %&amp;gt;&amp;lt;/source&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Access_Control&amp;diff=7304</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Access Control</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Access_Control&amp;diff=7304"/>
				<updated>2013-03-07T15:00:01Z</updated>
		
		<summary type="html">&lt;p&gt;J.swiderski: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Access_Control_Description|file=&amp;lt;code&amp;gt;config.cfm&amp;lt;/code&amp;gt;|AccessControl=config.accessControl}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&lt;br /&gt;
config.accessControl[1] = structNew();&lt;br /&gt;
config.accessControl[1].role = '*';&lt;br /&gt;
config.accessControl[1].resourceType = '*';&lt;br /&gt;
config.accessControl[1].folder = '/';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[1].folderView = true;&lt;br /&gt;
config.accessControl[1].folderCreate = true;&lt;br /&gt;
config.accessControl[1].folderRename = true;&lt;br /&gt;
config.accessControl[1].folderDelete = true;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[1].fileView = true;&lt;br /&gt;
config.accessControl[1].fileUpload = true;&lt;br /&gt;
config.accessControl[1].fileRename = true;&lt;br /&gt;
config.accessControl[1].fileDelete = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ckfinder_acl_explanation}}&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_ACL_Examples|example1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&lt;br /&gt;
config.accessControl[2] = structNew();&lt;br /&gt;
config.accessControl[2].role = '*';&lt;br /&gt;
config.accessControl[2].resourceType = 'Images';&lt;br /&gt;
config.accessControl[2].folder = '/Logos';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[2].folderView = true;&lt;br /&gt;
config.accessControl[2].folderCreate = true;&lt;br /&gt;
config.accessControl[2].folderRename = true;&lt;br /&gt;
config.accessControl[2].folderDelete = true;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[2].fileView = true;&lt;br /&gt;
config.accessControl[2].fileUpload = false;&lt;br /&gt;
config.accessControl[2].fileRename = false;&lt;br /&gt;
config.accessControl[2].fileDelete = false;&lt;br /&gt;
&amp;lt;/source&amp;gt;|example2=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[3] = structNew();&lt;br /&gt;
config.accessControl[3].role = '*';&lt;br /&gt;
config.accessControl[3].resourceType = 'Images';&lt;br /&gt;
config.accessControl[3].folder = '/';&lt;br /&gt;
&lt;br /&gt;
config.accessControl[3].folderView = true;&lt;br /&gt;
config.accessControl[3].folderCreate = true;&lt;br /&gt;
config.accessControl[3].folderRename = false;&lt;br /&gt;
config.accessControl[3].folderDelete = false;&lt;br /&gt;
&lt;br /&gt;
config.accessControl[3].fileView = true;&lt;br /&gt;
config.accessControl[3].fileUpload = true;&lt;br /&gt;
config.accessControl[3].fileRename = true;&lt;br /&gt;
config.accessControl[3].fileDelete = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;|wildcard_resource=config.accessControl[1].resourceType = '*'}} &lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x Sessions|lang=ColdFusion|roleSessionVar=roleSessionVar|file=&amp;lt;code&amp;gt;config.cfm&amp;lt;/code&amp;gt;|code1=&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.roleSessionVar = 'CKFinder_UserRole';&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#newrole#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code3=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[1] = structNew();&lt;br /&gt;
config.accessControl[1].role = '*';&lt;br /&gt;
config.accessControl[1].resourceType = '*';&lt;br /&gt;
config.accessControl[1].folder = '/';&lt;br /&gt;
config.accessControl[1].folderView = true;&lt;br /&gt;
config.accessControl[1].folderCreate = false;&lt;br /&gt;
config.accessControl[1].folderRename = false;&lt;br /&gt;
config.accessControl[1].folderDelete = false;&lt;br /&gt;
config.accessControl[1].fileView = true;&lt;br /&gt;
config.accessControl[1].fileUpload = false;&lt;br /&gt;
config.accessControl[1].fileRename = false;&lt;br /&gt;
config.accessControl[1].fileDelete = false;&amp;lt;/source&amp;gt;|code4= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[2] = structNew();&lt;br /&gt;
config.accessControl[2].role = 'registered';&lt;br /&gt;
config.accessControl[2].resourceType = '*';&lt;br /&gt;
config.accessControl[2].folder = '/';&lt;br /&gt;
config.accessControl[2].folderView = true;&lt;br /&gt;
config.accessControl[2].folderCreate = true;&lt;br /&gt;
config.accessControl[2].folderRename = false;&lt;br /&gt;
config.accessControl[2].folderDelete = false;&lt;br /&gt;
config.accessControl[2].fileView = true;&lt;br /&gt;
config.accessControl[2].fileUpload = true;&lt;br /&gt;
config.accessControl[2].fileRename = false;&lt;br /&gt;
config.accessControl[2].fileDelete = false;&amp;lt;/source&amp;gt;|code5=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.accessControl[3] = structNew();&lt;br /&gt;
config.accessControl[3].role = 'admin';&lt;br /&gt;
config.accessControl[3].resourceType = '*';&lt;br /&gt;
config.accessControl[3].folder = '/';&lt;br /&gt;
config.accessControl[3].folderView = true;&lt;br /&gt;
config.accessControl[3].folderCreate = true;&lt;br /&gt;
config.accessControl[3].folderRename = true;&lt;br /&gt;
config.accessControl[3].folderDelete = true;&lt;br /&gt;
config.accessControl[3].fileView = true;&lt;br /&gt;
config.accessControl[3].fileUpload = true;&lt;br /&gt;
config.accessControl[3].fileRename = true;&lt;br /&gt;
config.accessControl[3].fileDelete = true;&amp;lt;/source&amp;gt;}} In this file, you assign one of the pre-defined roles to the user &amp;amp;mdash; using the admin role:&lt;br /&gt;
{{CKFinder_2.x Sessions_Details|code1=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#admin#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code2= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#registered#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code3= &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#guest#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;|code4=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;&amp;lt;CFLOCK TIMEOUT=&amp;quot;30&amp;quot; NAME=&amp;quot;#session.sessionID#&amp;quot; TYPE=&amp;quot;Exclusive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;CFSET session.CKFinder_UserRole=&amp;quot;#any_other_value#&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/CFLOCK&amp;gt;&amp;lt;/source&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	</feed>