<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rare Script &#187; tomcat</title>
	<atom:link href="http://rarescript.com/category/tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://rarescript.com</link>
	<description>Solutions to unusual problems in Javascript, PHP and other scripts.</description>
	<lastBuildDate>Mon, 30 Mar 2009 11:59:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring ZKStudio in Eclipse with Tomcat6 on Ubuntu</title>
		<link>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/</link>
		<comments>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 11:43:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://rarescript.com/?p=53</guid>
		<description><![CDATA[This explains how to get the hello world demo zul file working in ZK Studio in Eclipse with Tomcat6 on a localhost system on Ubuntu Intrepid.

I have just had a nightmare couple of days getting this working so I thought I would document how I solved it in the end incase it helps anybody else. [...]]]></description>
			<content:encoded><![CDATA[<p>This explains how to get the hello world demo zul file working in ZK Studio in Eclipse with Tomcat6 on a localhost system on Ubuntu Intrepid.</p>
<p><span id="more-53"></span></p>
<p>I have just had a nightmare couple of days getting this working so I thought I would document how I solved it in the end incase it helps anybody else. I am sure there is a better way to solve this but at least this works.</p>
<p>First install tomcat6<br />
sudo apt-get install tomcat6</p>
<p>This will install tomcat to /usr/share/tomcat6 (known as CATALINA_HOME)<br />
and also to /var/lib/tomcat6 (known as CATALINA_BASE)</p>
<p>Eclipse doesn&#8217;t like this split location installation. The way to make it happy is to copy the link to &#8220;conf&#8221; from /var/lib/tomcat6 to /usr/share/tomcat6 (e.g. in Nautilus navigate to /var/lib/tomcat6 right click on the conf folder and select &#8220;copy&#8221;. Then go to /usr/share/tomcat6 , right click and select &#8220;paste&#8221;)</p>
<p>It will also later be looking for a file catalina.policy in the conf folder but on my system the file is called 03catalina.policy and is in conf/policy.d So I copied this file to where it is expected and renamed it.</p>
<p>Eclipse workspace can easily get corrupted. If anything stops working, assume it is corrupt. DONT try and fix anything with this suspect workspace. Just quit Eclipse and restart it specifying a new workspace location.</p>
<p>Once you have a clean workspace do the following:</p>
<p>1: Set up tomcat</p>
<p>In the window at the bottom with the tabs (Problems, Tasks, Properties, Servers etc)<br />
Select Servers<br />
Right click on the background and choose New-&gt;Server<br />
Choose tomcat 6 server and click next (if it wont let you do this you have a corrupt workspace. See above for solution)<br />
browse to /usr/share/tomcat6 for tomcat location (if it complains make sure you have copied conf and catalina.policy as explained above)</p>
<p>2: Set up ZK packages<br />
(I&#8217;m assuming you have done the bit that adds ZK)<br />
Go to Window, Preferences, ZK, ZK Packages<br />
Add directory /home/mike/zkbinwhatever<br />
put a check in the box and click a few oks</p>
<p>3:Create a project<br />
File, New dynamic web project<br />
choose any name<br />
under configuration click modify<br />
add check to &#8220;ZK Support&#8221;<br />
click a few oks and finish</p>
<p>4: create a zul<br />
right click the project name and select &#8220;new zul&#8221;<br />
change the container to /whatevername/WebContent<br />
click finish</p>
<p>5: Run it<br />
Choose Run, run<br />
select an existing server (the tomcat 6 one)<br />
your project should be in the right hand column as an existing project<br />
The server should start and status = synchronised<br />
Up should pop the Hello World demo!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
