<?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>Engwar &#187; carbon</title>
	<atom:link href="http://engwar.com/tags/carbon/feed" rel="self" type="application/rss+xml" />
	<link>http://engwar.com</link>
	<description>Chintana Wilamuna&#039;s weblog</description>
	<lastBuildDate>Tue, 06 Mar 2012 07:32:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Running a Java process as a service</title>
		<link>http://engwar.com/post/678?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=running-a-java-process-as-a-service</link>
		<comments>http://engwar.com/post/678#comments</comments>
		<pubDate>Wed, 15 Feb 2012 11:44:06 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[carbon]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=678</guid>
		<description><![CDATA[There are many open source projects out there that&#8217;s using Java Service Wrapper to run a process as a Windows service and as a daemon process in Linux. To make money of the excellent project they decided to screw everyone &#8230; <a href="http://engwar.com/post/678">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many open source projects out there that&#8217;s using <a href="http://wrapper.tanukisoftware.com/doc/english/download.jsp">Java Service Wrapper</a> to run a process as a Windows service and as a daemon process in Linux. To make money of the excellent project they decided to screw everyone over and change to an <a href="http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html">atrocious licensing scheme</a>. The crippled down community edition now doesn&#8217;t support 64bit Windows. Probably many other such nonsensical terms.</p>
<p>So, if you&#8217;re looking for alternatives there are several other nice projects out there. <a href="http://yajsw.sourceforge.net/">YAJSW</a> is super easy to configure and use no native code.</p>
<p>You can generate a config file from a running Java process by giving the process ID. Found that it&#8217;s easy to start from here and then tweak the system paths according to your setup.</p>
<p>Following wrapper.conf file can be used to start any <a href="http://wso2.com/products/carbon/">WSO2 Carbon</a> product as a service in Windows. In the following configuration I&#8217;ve hard coded the working dir but that can easily be set to take from an environment variable just like the JVM path. I&#8217;ve removed comments from wrapper.conf for brevity.</p>
<pre>
wrapper.working.dir=C:\\test\\wso2greg-4.1.1

wrapper.java.app.mainclass= org.wso2.carbon.bootstrap.Bootstrap

wrapper.console.loglevel=INFO

wrapper.console.title="WSO2 G-Reg"

wrapper.ntservice.name="WSO2GREG"

wrapper.ntservice.displayname="WSO2 GREG"

wrapper.ntservice.description="Governance Registry"

wrapper.daemon.run_level_dir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'}

wrapper.tray = true

wrapper.tray.port = 15002

wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART

wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=scripts\/trayMessage.gv
wrapper.filter.script.0.args=Exception

placeHolderSoGenPropsComeHere=
wrapper.java.command = ${JAVA_HOME}\\bin\\java
wrapper.java.classpath.1 = .\\lib
wrapper.java.classpath.2 = ${JAVA_HOME}\\lib\\tools.jar
wrapper.java.classpath.3 = .\\bin\\org.wso2.carbon.bootstrap-3.2.2.jar
wrapper.java.classpath.4 = .\\lib\\endorsed
wrapper.app.parameter.1 = RUN
wrapper.app.parameter.2 = -Dcarbon.registry.root=\/
wrapper.app.parameter.3 = -Dcarbon.home=c:\\test\\wso2greg-4.1.1
wrapper.app.parameter.4 = -Dwso2.server.standalone=true
wrapper.app.parameter.5 = -Djava.command=${JAVA_HOME}\\bin\\java
wrapper.app.parameter.8 = -Dcarbon.xbootclasspath=;.\\lib\\xboot\\org.wso2.carbon.xboot-3.2.0.jar
wrapper.app.parameter.9 = -Djava.io.tmpdir=.\\bin\\..\\tmp
wrapper.app.parameter.10 = -Dwso2.carbon.xml=.\\bin\\..\\repository\\conf\\carbon.xml
wrapper.app.parameter.11 = -Dwso2.registry.xml=.\\bin\\..\\repository\\conf\\registry.xml
wrapper.app.parameter.12 = -Dwso2.user.mgt.xml=.\\bin\\..\\repository\\conf\\user-mgt.xml
wrapper.app.parameter.13 = -Dwso2.transports.xml=.\\bin\\..\\repository\\conf\\mgt-transports.xml
wrapper.app.parameter.14 = -Djava.util.logging.config.file=.\\bin\\..\\lib\\log4j.properties
wrapper.app.parameter.15 = -Dcarbon.config.dir.path=.\\bin\\..\\repository\\conf
wrapper.app.parameter.16 = -Dcarbon.logs.path=.\\bin\\..\\repository\\logs
wrapper.app.parameter.17 = -Dcomponents.repo=.\\bin\\..\\repository\\components
wrapper.app.parameter.18 = -Dcom.atomikos.icatch.file=.\\bin\\..\\lib\\transactions.properties
wrapper.app.parameter.19 = -Dcom.atomikos.icatch.hide_init_file_path=true
wrapper.app.parameter.20 = -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
wrapper.app.parameter.21 = -Dcom.sun.jndi.ldap.connect.pool.authentication=simple
wrapper.app.parameter.22 = -Dcom.sun.jndi.ldap.connect.pool.timeout=3000
wrapper.app.parameter.23 = -Dcarbon.classpath=.\\lib;${JAVA_HOME}\\lib\\tools.jar;;.\\bin\\org.wso2.carbon.bootstrap-3.2.2.jar;
wrapper.java.additional.1 = -Xbootclasspath\/a:;.\\lib\\xboot\\org.wso2.carbon.xboot-3.2.0.jar
wrapper.java.additional.2 = -Xms256m
wrapper.java.additional.3 = -Xmx512m
wrapper.java.additional.4 = -XX:MaxPermSize=256m
wrapper.java.additional.5 = -Dimpl.prefix=Carbon
wrapper.java.additional.6 = -Dcom.sun.management.jmxremote
wrapper.java.additional.7 = -Djava.endorsed.dirs=.\\lib\\endorsed;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/678/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building WSO2 Carbon from source</title>
		<link>http://engwar.com/post/110?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-wso2-carbon-from-source</link>
		<comments>http://engwar.com/post/110#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:06:21 +0000</pubDate>
		<dc:creator>Chintana</dc:creator>
				<category><![CDATA[carbon]]></category>
		<category><![CDATA[wso2]]></category>

		<guid isPermaLink="false">http://engwar.com/?p=110</guid>
		<description><![CDATA[Recently I built WSO2 Carbon. Here&#8217;s how I did it with some help from the carbon mailing list Do stick to the same build order. I did this on an Ubuntu machine. If you happen to see maven complaining about &#8230; <a href="http://engwar.com/post/110">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I built WSO2 Carbon. Here&#8217;s how I did it with some help from the <a href="http://wso2.org/mail#carbon">carbon mailing list</a> <img src='http://engwar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Do stick to the same build order. I did this on an Ubuntu machine. If you happen to see maven complaining about running out of memory just do,</p>
<pre>
$ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
</pre>
<p>First step, build <a href="http://ws.apache.org/axis2">Axis2</a> 1.4.1 from the custom branch</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/axis2/v1.4.1 axis2-1.4.1-branch
</pre>
<p>Next find the revision of the branch,</p>
<pre>
$ cd axis2-1.4.1-branch
$ svn info
Path: .
URL: http://svn.wso2.org/repos/wso2/branches/axis2/v1.4.1
Repository Root: http://svn.wso2.org/repos/wso2
Repository UUID: a5903396-d722-0410-b921-86c7d4935375
Revision: 32422
Node Kind: directory
Schedule: normal
Last Changed Author: amila
Last Changed Rev: 30518
Last Changed Date: 2009-02-06 10:39:03 +0530 (Fri, 06 Feb 2009)
</pre>
<p>Revision 30518 have an inconsistency in modules/addressing/pom.xml where the addressing artefact ID is wrong.  You have to <a href="http://engwar.com/wp-content/uploads/2009/03/addressing-pom.patch">get this patch</a> and apply it. Download, save it somewhere and do the following to apply the patch.</p>
<pre>
$ cd modules/addressing
$ patch -p0 < /home/chintana/addressing-pom.patch
$ cd ../..
</pre>
<p>Now you're at the Axis2 root level. Before building at the root level you have to build two plugins,</p>
<pre>
$ cd modules/tool/axis2-mar-maven-plugin
$ mvn clean install
$ cd ../axis2-aar-maven-plugin/
$ mvn clean install
$ cd ../../..
</pre>
<p>Back at the root level, now you can build the project,</p>
<pre>
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Next step is to build Rampart from the custom branch,</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/rampart/1.4.wso2 rampart-custom
$ cd rampart-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Build Sandesha from the custom branch,</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/branches/sandesha2/1.4.wso2 sandesha-custom
$ cd sandesha-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Next up is Savan, again from a custom branch,</p>
<pre>
$ svn co https://svn.wso2.org/repos/wso2/branches/savan/1.0wso2v1 savan-custom
$ cd savan-custom
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>Now all the prerequisites are complete for the Carbon platform. Let's go ahead and build Carbon. It has 3 parts. carbon-orbit, carbon and carbon-components (for carbon I had to change the addressing.version property in root level pom.xml to 1.4.1),</p>
<pre>
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon-orbit
$ cd carbon-orbit
$ mvn clean install -Dmaven.test.skip=true
$ cd ..
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon
$ cd carbon
$ mvn clean install -Dmaven.test.skip=true
$ cd ..
$ svn co http://svn.wso2.org/repos/wso2/trunk/carbon-components
$ mvn clean install -Dmaven.test.skip=true
</pre>
<p>All righty! After this you can go ahead and build other products which are designed on top of Carbon such as <a href="http://wso2.org/wsas">WSO2 WSAS</a>, <a href="http://wso2.org/esb">WSO2 ESB</a> etc...</p>
]]></content:encoded>
			<wfw:commentRss>http://engwar.com/post/110/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

