<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7474171231548212211</id><updated>2011-09-26T02:55:24.051-07:00</updated><title type='text'>Sarasi's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-3087951207316424147</id><published>2011-03-31T23:19:00.000-07:00</published><updated>2011-04-01T00:41:13.494-07:00</updated><title type='text'>Client-Server Computing</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;The Client-Server computing means the client communicates with another program (the server) for purpose of exchanging information.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;Clients are applications that run on computers. Servers are computers or processes that manage network resources.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;Client's responsibility is to handle the user interface, translate the user's request into the desired protocol, send the request to the server, wait for the server's response, translate the response into "human-readable" results, and present the results to the user.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;Server's functions include, listen for a client's query, process that query and return the results back to the client.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#ff6600;"&gt;Networks connect clients and servers.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#993300;"&gt;Typical client-server interaction goes like this :&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;User runs client software to create a query.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Client connects to the server.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Client sends the query to the server.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Server analyzes the query.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Server computes the results of the query.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Server sends the results to the client.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="color:#3366ff;"&gt;Client presents the results to the user.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-size:130%;color:#cc33cc;"&gt;2-Tier Model&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#993300;"&gt;2-Tier architecture is used to describe client-server systems where the client requests resources and the server responds directly to the request, using its own resources. This means that the server does not call on another application.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-size:130%;color:#cc33cc;"&gt;3-Tier Model&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#993300;"&gt;In 3-tier architecture, there is an intermediary level, meaning the architecture is generally split up between :&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="color:#00cccc;"&gt;A client :&lt;/span&gt; &lt;/span&gt;&lt;span style="color:#993300;"&gt;which requests the resources, equipped with a user interface for presentation purpose.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="color:#00cccc;"&gt;The application server (middleware) :&lt;/span&gt; &lt;/span&gt;&lt;span style="color:#993300;"&gt;whose task is to provide the requested resources by calling on another server. &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="color:#00cccc;"&gt;The data server :&lt;/span&gt; &lt;/span&gt;&lt;span style="color:#993300;"&gt;which provides the application server with the data it requires.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#993300;"&gt;3-Tier architecture generally contains Presentation Layer (a client), Business Access Layer (middleware) and Data Access Layer (data server).&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-3087951207316424147?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/3087951207316424147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2011/03/client-server-computing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/3087951207316424147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/3087951207316424147'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2011/03/client-server-computing.html' title='Client-Server Computing'/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-8737688773318806562</id><published>2011-02-02T20:25:00.000-08:00</published><updated>2011-02-02T22:12:29.608-08:00</updated><title type='text'>Converting Printed Sinhala Documents to Formatted Editable Text</title><content type='html'>&lt;div style="text-align: justify; color: rgb(102, 51, 0);"&gt;&lt;span style="font-style: italic;"&gt;This is my final year project at Department of Computer Science, Faculty of Engineering, University of Peradeniya. Dr.Roshan Ragel, Shahina Ajward, Nalani Jayasundara and including myself are in this research project.We won Best Student Papper Award for ICT and Social Transformation by ICIAfS 2010.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;INTRODUCTION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;There are situations when we only have a printed copy of a document and need to do further modifications or need to merge content of two documents. The worst case is that even for adding small text, we have to apply all the font features and re-adjust the whole document again. We also get instances when we need to digitize books and material to editable text so that our search engines and tools can be used&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;on them. The typical process of digitizing text document is performed by scanning the printed copies to images and converting them to editable text. Currently optical character recognition (OCR) plays a vital role in converting scanned images of books, magazines, and newspapers into machine-readable text. It avoids the need for retyping already printed material for editing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;Most of the existing OCR solutions are commercial and they provide the editable text documents which facilitate international languages such as English. In Sri Lanka both Sinhala and Tamil languages are widely used in print and there are a few attempts to develop system for Sinhala language. In this project, we have identified the OCR algorithm to be used for Sinhala and developed an application for digitizing Sinhala characters. Any OCR implementation consists of a number of pre-processing steps and a classification method to recognize characters. In this study the approach use to recognize character is language independent and therefore we believe that our system can be extended for Tamil as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;In addition to the digitization of Sinhala characters, we have developed a method of preserving a number of selected formatting features of a printed document (such as the font size of characters). We believe that this as a useful addition to Sinhala text digitization.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;The project could be divided into two phases, character recognition using an OCR technique and extracting and preserving the layout (formatting)information of the document. An editable Sinhala document that preserve formatting could be achieved by integrating the outcome of phases one and two.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;In phase one an optical character recognition method is used for identifying characters. This phase comprises the steps of identifying connected components in an image, selecting portion of the image corresponding to the connected components and extracting the features of connected components. A neural network is used to train the system which enables the system to identify characters that are not pre determined.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;In phase two projection profiles are used to extract selected features of characters. Extracting and preserving layout or font features of a document will tremendously reduce the burden of the user during the process of editing and reproducing the same document with modifications.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;The recognized characters (the outcome of phase one) are embedded with identified features (the outcome of phase two) to reconstruct the original document in Rich Text Format (RTF) format in an editor.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;CHARACTER RECOGNITION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Since the system is mainly focused on the character recognition, major analysis was targeted on Optical Character Recognition (OCR) technology. Having the knowledge of OCR it was concluded that the problem analysis was consisted of two areas as image pre-processing and training the system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 102, 204);"&gt;Pre-processing&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Since the soft copy of the scanned document is in an image file format, pre-processing is done to enhance the quality of the image. After identifying and analyzing several processing steps, it was concluded that required processed image could be obtained. We assumed that an image is from a high quality paper so that it does not need noise removal and documents are scanned without introducing skew.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 102, 204);"&gt;Training the System&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;The neural network approach is used to train the system in order to recognize characters. Among various types of neural networks, our focus went with Feed Forward Back-propagation Neural Network. Using back-propagation neural network errors can be propagated backward through the network to control weight adjustment and by the feed-forward information moves in only one direction. So the result could be obtained efficiently and with higher accuracy.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Neural Network was trained for characters obtained from the pre-processed image. It maps set of inputs to a set of target value (outputs). By referring the target values, can recognize characters.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0); font-weight: bold;"&gt;EXTRACTING FORMATTING INFORMATION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Projection profile of text line is an approach for font attribute recognition based on features. Different features are used for font discrimination and they can be derived from visual observation of different fonts and their projection profiles. The selected features are extracted from horizontal or vertical profiles.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;RECONSTRUCTING THE DOCUMENT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Terp-Word is an open source word processor and supports ‘.html’ file format apart from a number of other formats such as RTF. As explained earlier the system is developed as two modules, character recognition and layout preserving. The scanned image went through two separate processes and each process generated a text file each as outputs. The text file with recognized characters and the encoded file with extracted features are used to generate an html file mapped to the original scanned document. In this html file, the encoded features are decoded and applied to the corresponding recognized characters. The html file can be loaded to the editor and can be converted to RTF file which facilitate any advance modifications. The resulted RTF file preserves selected font features over the original document.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;CONCLUSION AND FUTURE WORK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;The main idea in our system was to build a tool which supports editing facility for a scanned image which is in Sinhala language. Being familiar with current technologies which are used in international character recognition, our objective is mainly focused on character recognition of local languages.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;The first phase implementation, results only character recognition without preserving original format of a scanned image file. The tool was further developed by adding functionality of second phase implementation which consists with original layout of the document.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Our Objective was mainly focused on character recognition of Sinhala language. Currently, our tool has been tested only for Sinhala language. But, it may support for Tamil language also since our implementation is language independent. Due to the shape of Sinhala characters, there are some limitations of properties of the characters.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;The final outcome of the project is a rich software tool which allows the users to get an editable text file from a scanned image by preserving its original formats.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Due to the limited time, we had to restrict ourselves for few selected features. Following suggestions can be made to further improvements of the system. The intensity values of the original document could be used to recognition colors. By encoding the font attributes word wise we would be enabling to apply formats word-wise instead of line-wise as we have done now. Though we have managed to avoid merging of characters in general, due to rounded shape of Sinhala characters still there are few characters suffering from this issue. Further the system can be trained for Tamil character samples so that it can support Tamil language as well.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-8737688773318806562?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/8737688773318806562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2011/02/converting-printed-sinhala-documents-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/8737688773318806562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/8737688773318806562'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2011/02/converting-printed-sinhala-documents-to.html' title='Converting Printed Sinhala Documents to Formatted Editable Text'/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-4365499700516262882</id><published>2010-08-15T23:57:00.000-07:00</published><updated>2010-08-15T23:59:52.896-07:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_1ahWw2KRZ_U/TGjhuDXjopI/AAAAAAAAACU/dcZLoyx0x9E/s1600/m.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 180px;" src="http://2.bp.blogspot.com/_1ahWw2KRZ_U/TGjhuDXjopI/AAAAAAAAACU/dcZLoyx0x9E/s320/m.jpg" alt="" id="BLOGGER_PHOTO_ID_5505898725754774162" border="0" /&gt;&lt;/a&gt;Victoria Dam&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjhtdiR-NI/AAAAAAAAACE/XIIArsmhO9I/s1600/moon3.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 180px;" src="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjhtdiR-NI/AAAAAAAAACE/XIIArsmhO9I/s320/moon3.jpg" alt="" id="BLOGGER_PHOTO_ID_5505898715599206610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_1ahWw2KRZ_U/TGjhtSd7daI/AAAAAAAAAB8/59kadA-EAVc/s1600/moon2.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 320px; height: 180px;" src="http://3.bp.blogspot.com/_1ahWw2KRZ_U/TGjhtSd7daI/AAAAAAAAAB8/59kadA-EAVc/s320/moon2.jpg" alt="" id="BLOGGER_PHOTO_ID_5505898712628164002" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-4365499700516262882?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/4365499700516262882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2010/08/victoria-dam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/4365499700516262882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/4365499700516262882'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2010/08/victoria-dam.html' title=''/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_1ahWw2KRZ_U/TGjhuDXjopI/AAAAAAAAACU/dcZLoyx0x9E/s72-c/m.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-2752168387098388128</id><published>2010-08-15T23:08:00.000-07:00</published><updated>2010-08-15T23:18:50.434-07:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjXlrkw5WI/AAAAAAAAABU/dzmvVo9kALc/s1600/unimal4.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjXlrkw5WI/AAAAAAAAABU/dzmvVo9kALc/s320/unimal4.jpg" alt="" id="BLOGGER_PHOTO_ID_5505887586812487010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_1ahWw2KRZ_U/TGjXlH5InlI/AAAAAAAAABM/d2EGglmcNdo/s1600/unimal3.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 240px; height: 320px;" src="http://3.bp.blogspot.com/_1ahWw2KRZ_U/TGjXlH5InlI/AAAAAAAAABM/d2EGglmcNdo/s320/unimal3.jpg" alt="" id="BLOGGER_PHOTO_ID_5505887577234251346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjXk_A7oKI/AAAAAAAAABE/kxfI2EIx53Q/s1600/unimal2.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 240px; height: 320px;" src="http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjXk_A7oKI/AAAAAAAAABE/kxfI2EIx53Q/s320/unimal2.jpg" alt="" id="BLOGGER_PHOTO_ID_5505887574851035298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_1ahWw2KRZ_U/TGjXke-UPCI/AAAAAAAAAA8/EO9K7EhebjQ/s1600/unimal1.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 240px; height: 320px;" src="http://4.bp.blogspot.com/_1ahWw2KRZ_U/TGjXke-UPCI/AAAAAAAAAA8/EO9K7EhebjQ/s320/unimal1.jpg" alt="" id="BLOGGER_PHOTO_ID_5505887566250130466" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_1ahWw2KRZ_U/TGjXkIHDL0I/AAAAAAAAAA0/KonI2C7416Q/s1600/unimal.jpg"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 240px; height: 320px;" src="http://2.bp.blogspot.com/_1ahWw2KRZ_U/TGjXkIHDL0I/AAAAAAAAAA0/KonI2C7416Q/s320/unimal.jpg" alt="" id="BLOGGER_PHOTO_ID_5505887560112746306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Beauty of Peradeniya University&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-2752168387098388128?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/2752168387098388128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2010/08/beauty-of-peradeniya-university.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/2752168387098388128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/2752168387098388128'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2010/08/beauty-of-peradeniya-university.html' title=''/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_1ahWw2KRZ_U/TGjXlrkw5WI/AAAAAAAAABU/dzmvVo9kALc/s72-c/unimal4.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-4381485892055019663</id><published>2009-10-15T01:13:00.000-07:00</published><updated>2009-11-06T03:04:44.751-08:00</updated><title type='text'>How to Setup WSO2 Mashup on JBoss</title><content type='html'>&lt;span style="font-style: italic; color: rgb(204, 0, 0); font-weight: bold;font-family:arial;font-size:100%;"  &gt;&lt;span style="color: rgb(51, 51, 51);font-family:arial;" &gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 153, 102); font-weight: bold;"&gt;The WSO2 Mashup Server is a powerful yet simple and quick way to tailor Web-based information to the personal needs of individuals and organizations.&lt;br /&gt;WSO2 Mashup can be deployed on most of the application servers.This post describes the steps to deploy WSO2 Mashup on JBOSS.&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(102, 102, 102);font-family:arial;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 255);font-size:100%;" &gt;&lt;span style="font-family:arial;"&gt;Step1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="color: rgb(102, 102, 102);font-family:arial;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-size:100%;" &gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Download&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);font-family:arial;" &gt;WSO2&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Mashup Server&lt;/span&gt;&lt;a href="http://wso2.org/projects/mashup/"&gt; here&lt;/a&gt;&lt;span style="color: rgb(51, 51, 51);"&gt; &lt;span style="color: rgb(255, 102, 0);"&gt;and unzip the package. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="color: rgb(102, 102, 102);font-family:arial;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;Step2&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Download&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt; jboss-5.0.0.GA.zip&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt; and unzip the package.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;Step3&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Copy conf, database, repository and resources directories in to a new folder.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;        &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;Ex:/home/sarasi/ms/msRepo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;Step4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="color: rgb(0, 0, 0);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;I refer to my jboss installation directory as&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;JBOSS_HOME&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Go to&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; JBOSS_HOME/server/default/deploy&lt;span style="color: rgb(255, 102, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;directory&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;And create a new folder,&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;ms.war &lt;span style="color: rgb(255, 102, 0);"&gt;inside that directory&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;copy&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;wso2mashup-2.0.0/webapps/ROOT/WEB-INF&lt;/span&gt;&lt;span style="color: rgb(255, 102, 0);"&gt; to&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;JBOSS_HOME/server/default/deploy/ms.war&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(255, 255, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;Steps5&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="color: rgb(0, 0, 0);"&gt;&lt;li style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:100%;"&gt;Now, you need to enable https in JBoss.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Open server.xml in&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;JBOSS_HOME/server/default/deploy/jbossweb.sar &lt;span style="color: rgb(255, 102, 0);"&gt;directory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:100%;"&gt;Edit it by adding the following entry.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;!-- SSL/TLS Connector configuration using the admin devl guide keystore--&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;      &lt;connector protocol="HTTP/1.1" sslenabled="true"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;           port="8443" address="${jboss.bind.address}"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;           scheme="https" secure="true" clientAuth="false"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;           keystoreFile="&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;/home/sarasi/ms/msRepo/resources/security/wso2carbon.jks&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;           keystorePass="wso2carbon" sslProtocol = "TLS" /&gt;&lt;/span&gt;&lt;/connector&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="color: rgb(255, 102, 0);"&gt;&lt;li&gt;give the exact location of wso2carbon.jks&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 255);"&gt;Step6&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;You will update carbon.xml, axis2.xml, registry.xml and user-mgt.xml which can be found at msRepo/conf directory.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(255, 102, 0);font-size:100%;" &gt;open carbon.xml and update the &lt;span style="font-weight: bold;"&gt;ServerURL&lt;/span&gt; element as follows.&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);font-size:100%;" &gt;&lt;serverurl&gt;&lt;/serverurl&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(51, 204, 0);font-size:100%;" &gt;                        &lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;serverurl&gt;https://localhost:8443/ms/services/&lt;/serverurl&gt;&lt;/span&gt;&lt;ul style="color: rgb(255, 102, 0);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Open &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;registry.xml &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;and&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;user-mgt.xml&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;and &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;update DB URL as follows.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;url&gt;jdbc:derby:/home/sarasi/ms/msRepo/database/WSO2CARBON_DB;create=true&lt;/url&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul style="color: rgb(255, 102, 0);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;We must change the http and https ports in &lt;span style="font-weight: bold;"&gt;In Transports&lt;/span&gt; section of axis2.xml as follows.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;transportreceiver name="http"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;                      class="org.wso2.carbon.core.transports.http.HttpTransportListener"&gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;&lt;parameter name="port"&gt;8080&lt;/parameter&gt;&lt;/span&gt;&lt;/transportreceiver&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;transportreceiver name="https"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;                      class="org.wso2.carbon.core.transports.http.HttpsTransportListener"&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt; &lt;parameter name="port"&gt;8443&lt;/parameter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   &lt;/span&gt;&lt;/transportreceiver&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 255, 255);"&gt;Step7&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);font-size:100%;" &gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;open a new command window/shell and change the directory to&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; JBOSS_HOME/bin&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:100%;"&gt;Set the environment variable named “CARBON_HOME” to point to the folder named “msRepo”.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;                                  In windows; set CARBON_HOME=C:\ms\msRepo&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;                                  In linux;       export CARBON_HOME=/home/sarasi/ms/msRepo&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:100%;"&gt;Start JBoss from the same command window/shell.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Now, You can access the management console using&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;https://localhost:8443/ms/carbon&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:100%;" &gt;.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;              &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-4381485892055019663?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/4381485892055019663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2009/10/how-to-setup-wso2-mashup-on-jboss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/4381485892055019663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/4381485892055019663'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2009/10/how-to-setup-wso2-mashup-on-jboss.html' title='How to Setup WSO2 Mashup on JBoss'/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7474171231548212211.post-1452243951954964698</id><published>2009-10-14T21:35:00.000-07:00</published><updated>2009-12-17T20:23:54.941-08:00</updated><title type='text'>How to deploy WSO2 Mashup on Apache Tomcat</title><content type='html'>&lt;span style="font-style: italic;font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;The WSO2 Mashup Server provides a platform for rapidly deploying Web service Mashups. Combining simple yet rich mashups with reusability, security, reliability and governance, the WOS2 Mashup Server offers enterprise-class service composition.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;WSO2 Mashup can be deployed on most of the application servers.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:100%;" &gt;I will be describing how one can easily deploy WSO2 Mashup on Apache Tomcat.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Step1&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Download &lt;a href="http://wso2.org/projects/mashup/"&gt;wso2mashup-2.0.0.zip&lt;/a&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; and unzip the package.Copy conf, database, repository and resources directories in to a new folder. &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;(i.e:- /home/sarasi/mashup/mahupRepo)&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step2&lt;/span&gt;&lt;br /&gt;Download Apache Tomcat (&lt;a href="http://tomcat.apache.org/download-60.cgi"&gt;apache-tomcat-6.0.14.zip&lt;/a&gt;) and unzip the packege.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step3&lt;br /&gt;&lt;/span&gt;Set the environment variable named “CARBON_HOME” to point to the folder named “mashupRepo”.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;              &lt;span style="color: rgb(0, 102, 0);"&gt; Ex:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;your &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;mashupRepo&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt; folder in “&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;/home/sarasi/mashup/mahupRepo&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;”&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;&lt;br /&gt;                 If you are using Linux,&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;&lt;br /&gt;                           export  CARBON_HOME =&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;/home/sarasi/mashup/mahupRepo&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;&lt;br /&gt;                 If you are using Windows,&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;   &lt;br /&gt;                           set CARBON_HOME = D:\&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:100%;" &gt;mashup\mahupRepo&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step4&lt;/span&gt;&lt;br /&gt;Now, Mashup needs to be deployed in Apache Tomcat. To do so, follow the instructions below:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Copy  “WEB-INF”  in unzipped Mashup package/webapps/ROOT.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Create a folder in Tomcat “webapps” folder and paste the WEB-INF folder there.(Ex:&lt;/span&gt;&lt;span style="font-size:100%;"&gt;/home/sarasi/&lt;/span&gt;&lt;span style="font-size:100%;"&gt;apache-tomcat-6.0.14/webapps/ms/&lt;/span&gt;&lt;span style="font-size:100%;"&gt;WEB-INF&lt;/span&gt;&lt;span style="font-size:100%;"&gt;)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Step5&lt;br /&gt;&lt;/span&gt;Now, you need to enable https in your Tomcat installation.(By default HTTPS protocol is disable in Apache Tomcat.)&lt;br /&gt;&lt;/span&gt; &lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Open server.xml in Apache Tomcat conf folder. Add the following script tag need to Apache Tomcat's server.xml file.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;&lt;connector&gt;&lt;/connector&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;port="8443" minSpareThreads="5" maxSpareThreads="75"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;enableLookups="true" disableUploadTimeout="true"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;acceptCount="100"  maxThreads="200"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;scheme="https" secure="true" SSLEnabled="true"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;keystoreFile="CARBON_HOME/resources/security/wso2carbon.jks" keystorePass="wso2carbon"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;clientAuth="false" sslProtocol="TLS"/&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;&lt;!-- Define an AJP 1.3 Connector on port 8009 --&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;&lt;connector port="8009" protocol="AJP/1.3" redirectport="8443"&gt;&lt;/connector&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;HTTPS 8443 port is now open for Apache Tomcat.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Step6&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Next, you should change Mashup “Server URL” in the carbon.xml file. You need to add the name of the folder you created in the Tomcat web apps folder as the server url. Following are the steps to change  carbon.xml:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt; &lt;span style="font-size:100%;"&gt;Open carbon.xml file in your CARBON_HOME/conf folder.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Change the HTTPS port number from 9443 to 8443. (Tomcat HTTPS enables in port 8443)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;If the name of the folder in WSAS webapps is “ms”,Your Final server url should be:&lt;/span&gt;&lt;pre  style="color: rgb(51, 51, 255);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;serverurl&gt;https://localhost:8443/ms/services/&lt;/serverurl&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Step7&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;You need to now do a small modification in Axis2.xml as well. In Tomcat, HTTP transport is enabled in port 8080, but for Mashup HTTP it is enabled in port 9763. Because of this you have to re-map the HTTP and HTTPS port umbers in Mashup Axis2.xml. Change the HTTP port number from 9763 to 8080 and HTTPS from 9443 to 8443. This should be as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;transportreceiver name="http"&gt;&lt;/transportreceiver&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;class="org.wso2.carbon.core.transports.http.HttpTransportListener"&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;parameter name="port"&gt;8080&lt;/parameter&gt;&lt;/span&gt;  &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;transportreceiver name="https"&gt;&lt;/transportreceiver&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;class="org.wso2.carbon.core.transports.http.HttpsTransportListener"&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;parameter name="port"&gt;8443&lt;/parameter&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;br /&gt;Step8&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Open registry.xml and user-mgt.xml.Update DB URL as follows.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;&lt;url&gt;jdbc:derby:/home/sarasi/mashup/mahupRepo/database/WSO2CARBON_DB&lt;/url&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Step9&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Apache Tomcat configurations are all completed now. Start the Tomcat server. Here are the steps:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Go to Tomcat's bin folder on command prompt.Start tomcat as,&lt;span style="color: rgb(0, 153, 0);"&gt;(Windows = apache-tomcat-6.0.14\bin&gt;catalina.bat run , Linux = apache-tomcat-6.0.14\bin&gt;catalina.sh run)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Step10&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Upon starting up Apache Tomcat, use the following URL to access Mashup:&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);font-size:100%;" &gt;https://localhost:8443/ms/carbon&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7474171231548212211-1452243951954964698?l=sarasisblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarasisblog.blogspot.com/feeds/1452243951954964698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarasisblog.blogspot.com/2009/10/how-to-deploy-wso2-mashup-on-apache.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/1452243951954964698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7474171231548212211/posts/default/1452243951954964698'/><link rel='alternate' type='text/html' href='http://sarasisblog.blogspot.com/2009/10/how-to-deploy-wso2-mashup-on-apache.html' title='How to deploy WSO2 Mashup on Apache Tomcat'/><author><name>Sarasi Madushika</name><uri>http://www.blogger.com/profile/07175982321248884773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
