<?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:blogger='http://schemas.google.com/blogger/2008' 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-7287753607326884184</id><updated>2025-05-29T07:48:25.711-07:00</updated><category term="eclipse"/><category term="1Z0-897"/><category term="Hibernate"/><category term="Java EE 6 Web Services Developer Certified Expert"/><category term="java"/><category term="maven"/><category term="Apache Camel"/><category term="Basics"/><category term="Camel Routes"/><category term="EIP"/><category term="Eclipse Kepler"/><category term="HTML"/><category term="Introduction"/><category term="JBoss Hibernate Tools"/><category term="JBoss Tools Hibernate"/><category term="SOAP Interview questions"/><category term="SOAP MCQ"/><category term="SOAP Multiple Choice Questions"/><category term="Schema"/><category term="Simple XML basics"/><category term="Spring"/><category term="Test private methods using junit"/><category term="Web Services MCQ"/><category term="XML"/><category term="XML validation"/><category term="XSD"/><category term="apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor"/><category term="configure maven in eclipse"/><category term="exception"/><category term="functional"/><category term="hbm2dao"/><category term="hbm2java"/><category term="how to test private methods in java"/><category term="how to test private methods in junit"/><category term="java reflections"/><category term="junit"/><category term="maven plugin in eclipse"/><category term="maven tomcat auto deployment"/><category term="method"/><category term="org.apache.tomcat.maven"/><category term="private"/><category term="protected"/><category term="scala"/><category term="steps to configure maven in eclipse"/><category term="test"/><category term="tomcat"/><category term="tomcat6-maven-plugin"/><category term="tomcat6:redeploy"/><category term="uto generate POJO models from database schema"/><category term="xmlns"/><title type='text'>J2Yogi</title><subtitle type='html'>“The more you know, the more you realize you know nothing.”&#xa;– Socrates</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-7910512444165135536</id><published>2021-07-30T01:05:00.001-07:00</published><updated>2021-07-30T01:05:05.809-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><category scheme="http://www.blogger.com/atom/ns#" term="functional"/><category scheme="http://www.blogger.com/atom/ns#" term="scala"/><title type='text'>Scala Exception handling best practices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;It&#39;s very good to be an optimistic person in real life however while programming you need to be a little pessimist to handle a situation where your code does not work as per expectation due to some problem which has nothing to do with your code or some time because of missing some corner cases while coding.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot;, sans-serif&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;So how do Exceptions helps us? By providing us following information in case of failure :&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;What went wrong? (exception.getMessage)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Where did it go wrong? (exception.getStackTrace)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Why it went wrong? (exception.getCause)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;So in this post, I will try to cover two scenarios:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;How Scala signals something went wrong (Exceptions)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Various ways of handling Exception cases&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Before going into implementation details, I would like to throw light on some facts about Exceptions handling in Scala :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala does not have concept of Checked and Un-Checked Exceptions&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala does not allow you to put throws clause in method signature as it does not differentiate between Checked and Un-Checked Exceptions.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;You can achieve throws functionality using @throws annotation. eg.&amp;nbsp;@throws(classOf[IOException]). However, this won&#39;t force Scala caller method to handle thrown Exception. This will only force Java caller method to handle that Exception.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala supports Java way of Exception handling ie. try-catch. However not recommended way in Scala.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala treats Exceptions as Case classes so you can apply Pattern matching on exceptions so you can handle all Exceptions in a single catch block.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Catching Throwable in Scala is deadlier than doing same in Java.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala supports following ways of handling Exceptions :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;try-catch&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Try&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Either[Left, Right]&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala Futures comes with support for exception handling&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Let&#39;s look at these option in detail one by one :&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt; 1. try-catch&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;This is a non-functional way of handling exceptions.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;This is supported by Scala to provide backward compatibility with Java (This is my opinion :) )&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Scala supports pattern matching on all Exception classes. So you can handle all exceptions in one catch block&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Makes your code look ugly (Again my opinion)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span face=&quot;&amp;quot;trebuchet ms&amp;quot; , sans-serif&quot;&gt;Though Scala support try-catch block you should keep this option as last option to handle exceptions in Scala.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--HTML generated using hilite.me--&gt;&lt;br /&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;def&lt;/span&gt; divide&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;number&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; divider&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; number&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;divider

  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;def&lt;/span&gt; callDivide&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Option&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
      &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Option&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;divide&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;))&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
      &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;case&lt;/span&gt; e&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;ArithmeticException&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;None&lt;/span&gt;
      &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;case&lt;/span&gt; e&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Something went wrong.&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
2. Try&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Try provides you functional way to wrap your Exception prone code to handle Exceptions&lt;/li&gt;
&lt;li&gt;It was originally written by Twitter developers and ported in Scala API&#39;s in Scala version 2.10 and also ported in version 2.9.3&lt;/li&gt;
&lt;li&gt;You can imagine it as similar to Option or Either&lt;/li&gt;
&lt;li&gt;This is monad which will result either in :&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Success - In case of successful execution of code&lt;/li&gt;
&lt;li&gt;Failure - In case of error. Failure will wrap Throwable and return it to caller.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;One of the most important benefits of using Try is, it supports all higher-order functions (chaining operations) like map, flatmap, foreach etc.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;!--HTML generated using hilite.me--&gt;&lt;br /&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;def&lt;/span&gt; divide&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;number&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; divider&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Try&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Try&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;number&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;divider&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;def&lt;/span&gt; callDivide&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;Int&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
    divide&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;match&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
      &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Success&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;result&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;=&amp;gt;&lt;/span&gt; result
      &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Failure&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;e&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;=&amp;gt;&lt;/span&gt; println&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Exception occurred&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt; e&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;getMessage&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/7910512444165135536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2017/11/scala-exception-handling-best-practices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/7910512444165135536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/7910512444165135536'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2017/11/scala-exception-handling-best-practices.html' title='Scala Exception handling best practices'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-5027980460335289797</id><published>2016-07-03T11:48:00.000-07:00</published><updated>2017-08-21T04:43:06.430-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="1Z0-897"/><category scheme="http://www.blogger.com/atom/ns#" term="Java EE 6 Web Services Developer Certified Expert"/><category scheme="http://www.blogger.com/atom/ns#" term="SOAP Interview questions"/><category scheme="http://www.blogger.com/atom/ns#" term="SOAP MCQ"/><category scheme="http://www.blogger.com/atom/ns#" term="SOAP Multiple Choice Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Services MCQ"/><title type='text'>Java SOAP Web Services MCQ&#39;s for Interview and WS Certification Exam 1Z0-897</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;1) Which of the following transport protocols are complient with SOAP&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. HTTP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. SMTP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. FTP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. TCP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. All of the above&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Ans - E&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;2)&amp;nbsp;Select HTTP methods associate with SOAP Web service.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Put&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Post&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Get&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Delete&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Ans - B&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Desc - &lt;/b&gt;SOAP only uses POST method for HTTP communication.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;3)&amp;nbsp;&lt;/b&gt;&lt;b&gt;Select Web Service technology stack from following options (any 3)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. SOAP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. JSON&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. JAX-RS&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. WSDL&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. UDDI&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Ans - ADE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;4)&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Select correct definition of a WSDL&#39;s &amp;lt;service&amp;gt; element.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Collection of related endpoints.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Contains data type definitions using type system.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. A single endpoint defined as a combination of a binding and a network address.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Set of operations supported by one or more Endpoints.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Ans - A&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;5)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Select the operations supported by Web Services.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. One way (Request only)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Two way (Request - Response)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Solicit-Response (Server pust message and client responds)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Notification (Request/push message from server to client)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. All of the above&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - E&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;6)&amp;nbsp;Select statements which are true for SOAP. (any 3)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. SOAP Transport protocol used by Web Services&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. SOAP is specification for exchanging structured information&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. SOAP relies on other trasport protocols like http, ftp for data trasmission&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. SOAP uses xml to format data&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. SOAP uses json to format data&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - BCD&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;7)&amp;nbsp;You are going to develop Stock market web service which will be consumed by other companies. Jave team from your company want to re-use your web service code as soon as possible. Which approach you will follow in this case?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Top down (contract first)&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Meet in the middle&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Bottom up (code first)&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. None of the above&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - C&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc - In bottom up approach you start with writing service code so code will be available earliest for other teams using this approach.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;8)&amp;nbsp;Our company wants to create JAX-WS Web service client for weather forcast service. This weather forcast service is implemented in C++. You have given a WSDL file for service. What is correct statement to be able to create WS client from WSDL. (Select one).&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Use JAXP to parse and generate the java classes from WSDL. Then create Service Endpoint Interface(SEI) from factory classes. Then use SEI to call WS.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Use wsgen to generate SEI from WSDL and then invoke SEI&#39;s methods to call WS.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Use wsimport to generate SEI from WSDL and then invoke SEI&#39;s methods to call WS.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. We can not consume a web service created in C++ on java.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - C&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;To create WS client from WSDL we use wsimport tool. Wsgen is used to create web service from WSDL.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;9)&amp;nbsp;Our company want to create application in which servlet will be exposed as WS endpoint. What we will require among following? (any 3)&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Application needs to be packaged as JAR file.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Application needs to be packaged as WAR file.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. web.xml is required.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. webservice.xml is required.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. WEB-INF directory is required.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;F. META-INF directory is required.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - BCE&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;We need to package application as WAR file to deploy in web container. We need WEB-INF/web.xml file inside WAR file.&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;10)&amp;nbsp;&lt;/b&gt;&lt;b&gt;Our company has created web service for employee payroll system which is deployed in Web container. Now we have new requirements from management to protect access to this service URL using basic authentication. Which file we need to modify to fulfill this requirement?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. security.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. sun-web.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. web.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. webservices.xml&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - C&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;We have to update web.xml with security configurations for URLS. This is xml element we need to add in web.xml &amp;lt;auth-method&amp;gt;basic&amp;lt;/auth-method&amp;gt;&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;11)&amp;nbsp;Select the feature provided by EJB endpoint exposed as a web service. (any 3)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Client Managed Transactions&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Java EE declarative Security&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Java EE programatic Security&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. HTTP Sessions&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. Container Managed transactions.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - ACE&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;Exposing EJB bean as WS endpoint we can use declarative security using EJB annotation, programmatic security and EJB container managed transactions.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;12)&amp;nbsp;&lt;/b&gt;&lt;b&gt;We have created one web service which is deployed in web container, now we need to support WS client session in our service. However we have to expire a session in case user session is inactive for 10 mins. Which file we need to &amp;nbsp;modify for this requirement.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. security.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. sun-web.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. web.xml&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. webservices.xml&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - C&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;We need to add &lt;i&gt;&amp;lt;session-config&amp;gt;&amp;lt;session-timeout&amp;gt;10&amp;lt;/session-timeout&amp;gt;&amp;lt;/session-config&amp;gt;&lt;/i&gt;&amp;nbsp;in web.xml file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;13)&amp;nbsp;What is the correct web.xml-snippet to declare a session time-out of 3 minutes in web.xml?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. &amp;lt;session-config&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;session-timeout&amp;gt;3&amp;lt;/session-timeout&amp;gt; &amp;lt;/session-config&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. &amp;lt;session-config&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;session-timeout&amp;gt;180&amp;lt;/session-timeout&amp;gt; &amp;lt;/session-config&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. &amp;lt;session-timeout&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;session-time&amp;gt;3&amp;lt;/session-time&amp;gt; &amp;lt;/session-timeout&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. &amp;lt;session-timeout&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;session-time&amp;gt;180&amp;lt;/session-time&amp;gt; &amp;lt;/session-timeout&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - A&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;14)&amp;nbsp;Select programming languages supported by Web Services&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. c++&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Java&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Python&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. C&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. All of the above&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - E&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;15)&amp;nbsp;What is an best way of the handling of application exceptions thrown by a&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;JAX-WS service endpoint?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Exceptions should be mapped to faults in WSDL.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Exceptions are NOT handled by JAX-WS clients.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Exceptions are always propagated to JAX-WS clients as RemoteExceptions.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Exceptions are always propagated to JAX-WS clients as WebServiceExceptions.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. Exceptions are always propagated to JAX-WS clients as SOAPFaultExceptions.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - A&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;20)&amp;nbsp;What is the correct definition of WSDL&#39;s port element?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Contains data type definitions using type system.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Description of an action supported by the service.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Set of operations supported by one or more Endpoints.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. A single endpoint defined as a combination of a binding and a network address.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - D&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;PortType element contains supported binding, literals by endpoint and networ address of endpoint.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;21)&amp;nbsp;Select one of the use of &lt;i&gt;javax.xml.ws.BindingProvider&lt;/i&gt; interface while working with JAX-WS.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Set custom Hadlers chain&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Set UserName and Password used for BASIC Authentication&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Validate SOAP request message against xml schema&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Validate SOAP response message against xml schema&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;22)&amp;nbsp;We have configured a number of Handlers in our Web Service. This is the order of the handlers in the configuration file:&lt;/b&gt;&lt;div&gt;
&lt;b&gt;1. LogicalHandler 1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;2. LogicalHandler 2&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;3. SOAPHandler 1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;4. SOAPHandler 2&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;What will be the order of execution on an outbound message?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. LogicalHandler 1 - SOAPHandler 1 - LogicalHandler 2 - SOAPHandler 2&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. SOAPHandler 1 - SOAPHandler 2 - LogicalHandler 1 - LogicalHandler 2&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. LogicalHandler 1 - LogicalHandler 2 - SOAPHandler 1 - SOAPHandler 2&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. SOAPHandler 2 - SOAPHandler 1 - LogicalHandler 2 - LogicalHandler 1&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. None of above.&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;b&gt;Ans - C&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;For outgoing message first logical handlers gets executed then SOAPHandlers. And reverse for Inbound message.&lt;/div&gt;
&lt;/span&gt;







&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;23)&amp;nbsp;Please select incorrect statement among following statements.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. Confidentiality - encrypting of SOAP messages&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. Integrity - signing of SOAP messages&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Authentication - attach security tokens to SOAP messages&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. Non-repudiation - signing of SOAP messages&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. Authorization - attach identity tokens to SOAP message&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - E&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;24)&amp;nbsp;Which two statements are true about the Web services? (any 2)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. SOAP messages are compressed during transport to reduce size of payload.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. You have to implement session tracking via HTTP cookies.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. The WSDL defines services as collections of network endpoints.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. All data shared between Java and non-Java components must be in XML format.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. Data interchange is doen via in XML.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - CE&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;25)&amp;nbsp;We have a Web Service that can respond with a Street name when receiving a House number. This service will be used on several mobile devices and size of payload should be small to consume less bandwidth. Which technologies can provide the best solution for this requirement. (any 3)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. XML&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. JSON&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. JAX-WS&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. JAX-RS&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. HTTP&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - BDE&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;26)&amp;nbsp;What are three benefits of using SSL to connect to a Web service without mutual&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;authentication. (any 3)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. The server is assured of the client&#39;s identity if the client issues the certificate.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. The client is assured of the server&#39;s identity.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. Message integrity is preserved between the client and the server.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. The communication between the client and the server is still logged.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. The communication between the client and the server is encrypted.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;F. Using SSL over HTTP incurs less overhead than HTTPS.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - ACE&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;27)&amp;nbsp;We want to develop a Web Service and after developing we understood result processing can take a long time to finish. So we decided to convert it to asynchronous method invocations. What steps we need to perform to convert our synchronous Web Service to an asynchronous Web Service? (any 2)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. An asynchronous transport protocol to facilitate the asynchronous invocations.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. The client providing a ReplyTo-address for the response.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. A correlation identifier in order to relate the request and response.&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. The client providing a From-address in order for the Web Service to facilitate asynchronous processing.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans - BD&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;28)&amp;nbsp;Given a following code snippet of the service can you tell what is the name of the operation in WSDL file?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@WebService&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;serviceName &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;PayrollSystemService&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; name &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;PayrollSystem&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; portName &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;PayrollSystemPort&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;PayrollSystem&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getEmployeeDetails&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Long empId&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;dummyDetails&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;A. getEmployeeDetails&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;B. getEmployeeDetailsOperation&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C. getEmployeeDetailsMethod&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;D. getEmployeeDetailsWebMethod&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;E. getEmployeeDetailsService&lt;br /&gt;
&lt;b&gt;Ans - A&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Desc -&amp;nbsp;&lt;/b&gt;Default value of the operation name is the name of the method. You can modify the name of the operation using @WebMethod annotation.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;29)&amp;nbsp;What is the correct WSDL generated from this Web Service declaration:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@WebService&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;name&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;TaxiService&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; portName&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;TaxiPort&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; serviceName&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;TaxiWebService&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;TaxiServiceImpl&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; taxi&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String msg&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
 System&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;msg&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt; 
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;nbsp; A. &amp;nbsp;&amp;lt;definitions&amp;gt; . . .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;portType name=&quot;&quot;TaxiWebService&quot;&quot;&amp;gt; . . .&amp;lt;/portType&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;binding name=&quot;&quot;TaxiPortBinding&quot;&quot; type=&quot;&quot;...&quot;&quot;&amp;gt; . . . &amp;lt;/binding&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;service name=&quot;&quot;TaxiServiceImplService&quot;&quot;&amp;gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;port name=&quot;&quot;TaxiPort&quot;&quot; binding=&quot;&quot;tns:TaxiPortBinding&quot;&quot;&amp;gt; &amp;nbsp;. . . &amp;lt;/port&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/service&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/definitions&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; B. &amp;lt;definitions&amp;gt; . . .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;portType name=&quot;&quot;TaxiService&quot;&quot;&amp;gt; . . .&amp;lt;/portType&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;binding name=&quot;&quot;TaxiPortPortBinding&quot;&quot; type=&quot;&quot;...&quot;&quot;&amp;gt; . . . &amp;lt;/binding&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;service name=&quot;&quot;TaxiWebService&quot;&quot;&amp;gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;port name=&quot;&quot;TaxiPortPort&quot;&quot; binding=&quot;&quot;tns:TaxiPortPortBinding&quot;&quot;&amp;gt; &amp;nbsp;. . . &amp;lt;/port&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/service&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/definitions&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; C. &amp;nbsp;&amp;lt;definitions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;portType name=&quot;&quot;TaxiService&quot;&quot;&amp;gt; . . .&amp;lt;/portType&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;binding name=&quot;&quot;TaxiServiceImplPortBinding&quot;&quot; type=&quot;&quot;...&quot;&quot;&amp;gt; . . . &amp;lt;/binding&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;service name=&quot;&quot;TaxiServiceImplService&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;port name=&quot;&quot;TaxiServicePort&quot;&quot; binding=&quot;&quot;tns:TaxiServiceImplPortBinding&quot;&quot;&amp;gt; &amp;nbsp;. . . &amp;lt;/port&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/service&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/definitions&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; D. &amp;nbsp;&amp;lt;definitions&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; . . .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;portType name=&quot;&quot;TaxiService&quot;&quot;&amp;gt; . . .&amp;lt;/portType&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;binding name=&quot;&quot;TaxiPortBinding&quot;&quot; type=&quot;&quot;...&quot;&quot;&amp;gt; . . . &amp;lt;/binding&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;service name=&quot;&quot;TaxiWebService&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;port name=&quot;&quot;TaxiPort&quot;&quot; binding=&quot;&quot;tns:TaxiPortBinding&quot;&quot;&amp;gt; &amp;nbsp;. . . &amp;lt;/port&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/service&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/definitions&amp;gt;&lt;br /&gt;
&lt;b&gt;Ans - D&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;30)&amp;nbsp;Which of the following code snippet matches to this WSDL portType element? &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;portType name&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;ElementsTableImpl&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;operation name&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;getTable&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;input message&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;tns:&lt;/span&gt;getTable&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;output message&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;tns:&lt;/span&gt;getTableResponse&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;fault message&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;tns:&lt;/span&gt;WsException&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt; name&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;WsException&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;operation&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;portType&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;div style=&quot;font-family: verdana, sans-serif;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; A.&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: x-small; font-weight: bold; line-height: 16.25px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: x-small; font-weight: bold; line-height: 16.25px;&quot;&gt;@WebService&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ElementsTableImpl&lt;/span&gt; {   
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; SimpleElementsTable &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getElementsTable&lt;/span&gt;(Integer number) &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; WsException {       
     SimpleElementsTable table = &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleElementsTable(number);
         &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; table;   
    } 
   }&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; B.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: x-small; font-weight: bold; line-height: 16.25px;&quot;&gt;@WebService&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ElementsTableImpl&lt;/span&gt; {    
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; SimpleElementsTable &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getTable&lt;/span&gt;(Integer number) {       
     SimpleElementsTable table = &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleElementsTable(number);       
     &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; table;    
    }
   }&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; C.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: x-small; font-weight: bold; line-height: 16.25px;&quot;&gt;@WebService&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;endpointInterface&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0; color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;ElementsTableService&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0; color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ElementsTableImpl&lt;/span&gt; {   
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; SimpleElementsTable &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getTable&lt;/span&gt;(Integer number) &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; WsException {       
     SimpleElementsTable table = &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleElementsTable(number);       
     &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; table;    
    } 
   }&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; D.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: x-small; font-weight: bold; line-height: 16.25px;&quot;&gt;@WebService&lt;/span&gt;&lt;span style=&quot;color: #333333; font-size: x-small; line-height: 16.25px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ElementsTableImpl&lt;/span&gt; {    
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; SimpleElementsTable &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getTable&lt;/span&gt;(Integer number) &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; WsException {       
     SimpleElementsTable table = &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleElementsTable(number);       
     &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; table;    
    }
   }&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-family: verdana, sans-serif;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans - D&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Please feel free to correct me if I am wrong anywhere.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/5027980460335289797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2016/07/java-soap-web-services-mcqs-for.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/5027980460335289797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/5027980460335289797'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2016/07/java-soap-web-services-mcqs-for.html' title='Java SOAP Web Services MCQ&#39;s for Interview and WS Certification Exam 1Z0-897'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-1038819937365365762</id><published>2016-07-03T07:16:00.000-07:00</published><updated>2016-07-03T11:50:27.494-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="1Z0-897"/><category scheme="http://www.blogger.com/atom/ns#" term="Java EE 6 Web Services Developer Certified Expert"/><title type='text'>Clearing Java EE 6 Web Services Developer Certified Expert 1Z0-897</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Recently I cleared&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;amp;get_params=p_exam_id:1Z0-897&quot; target=&quot;_blank&quot;&gt;Java EE 6 Web Services Developer Certified Expert&lt;/a&gt;&amp;nbsp;exam. I cleared this exam after few months of preparations. Preparation took around 3 to 4 months. If you have prior experience in SOAP and Rest web services then 3 to 4 months is enough time. And If you do not have prior working experience then I would suggest to add few more moths.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Exam overview.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Duration of exam - 90 Minutes&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;No. of questions &amp;nbsp;- 55&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Passing Score &amp;nbsp; &amp;nbsp; - 65%&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Questions format - MCQ&#39;s&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Here are some of the books and resources which I referred while preparing for this Exam.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;a href=&quot;http://java.boot.by/ocewsd6-guide/&quot; target=&quot;_blank&quot;&gt;Mikalai Zaikin&#39;s study guide&lt;/a&gt;&amp;nbsp;- This is one of the best resource you can find.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B-0LAG21gaGDRVBQMFF3VDRVdk0/edit&quot; target=&quot;_blank&quot;&gt;Ivan Krizsan&#39;s study notes&#39;s&lt;/a&gt; - These notes doesn&#39;t cover all the topics of the exam but whichever topics are covered are very nicely explained. I would suggest to start with these notes as they cover from very basics of XML&#39;s.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;a href=&quot;http://www.amazon.in/Java-Web-Services-Running-2ed/dp/1449365116&quot; target=&quot;_blank&quot;&gt;Java Web Services: Up and Running&lt;/a&gt;&amp;nbsp;- This book is one of the must read for this exam. If you have enough time then I would suggest to read both 1st and 2nd edition.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;a href=&quot;http://www.wiley.com/WileyCDA/WileyTitle/productCd-0471236403.html?0471236403=&quot; target=&quot;_blank&quot;&gt;Developing Java Web Services&lt;/a&gt; - This is not very popular book however I found this book very helpful. Many complicated topics are very nicely explained in this book.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;a href=&quot;http://java.boot.by/wsd-quiz/&quot; target=&quot;_blank&quot;&gt;Mikalai Zaikins Quiz&lt;/a&gt;&amp;nbsp;- Once you think you read enough, this quiz is good to tell you that you need to read lot more :).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;a href=&quot;http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&amp;amp;get_params=p_exam_id:1Z0-897&amp;amp;p_org_id=&amp;amp;lang=#tabs-2&quot; target=&quot;_blank&quot;&gt;List of exam topics&lt;/a&gt;&amp;nbsp;from Oracle.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;So for me these were enough to clear this exam. There are many more resources and mock exam test available for this exam.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Note - This exam is not as easy as &lt;a href=&quot;http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=653&amp;amp;get_params=p_id:157&quot; target=&quot;_blank&quot;&gt;SCJP&lt;/a&gt;&amp;nbsp;(now OCJP)&amp;nbsp;exam. The main reason is because there is no book available which you can consider as a bible for this exam just like &lt;a href=&quot;http://www.goodreads.com/book/show/2593099-scjp-sun-certified-programmer-for-java-6-study-guide&quot; target=&quot;_blank&quot;&gt;SCJP Study Guid by Kathy Sierra and Bert Bates&lt;/a&gt;&amp;nbsp;for SCJP exam.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Once you clear this exam this is what you earn along with knowledge.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnG9BkjzibUi_s1NxfpHGsQw7pEezVl0Uwu4dgU9IxyVSmJu6VIfgV7rioirN86IjyVhP1rYuoc3I6ctgX-4llAsFcfVL-Ac4B3cPwd83xAt8fDgozH6YUlx38lNJVmBp9omH5cQhli7zJ/s1600/WS+CErtificate.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnG9BkjzibUi_s1NxfpHGsQw7pEezVl0Uwu4dgU9IxyVSmJu6VIfgV7rioirN86IjyVhP1rYuoc3I6ctgX-4llAsFcfVL-Ac4B3cPwd83xAt8fDgozH6YUlx38lNJVmBp9omH5cQhli7zJ/s400/WS+CErtificate.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;All the best :)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/1038819937365365762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2016/07/clearing-java-ee-6-web-services.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/1038819937365365762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/1038819937365365762'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2016/07/clearing-java-ee-6-web-services.html' title='Clearing Java EE 6 Web Services Developer Certified Expert 1Z0-897'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnG9BkjzibUi_s1NxfpHGsQw7pEezVl0Uwu4dgU9IxyVSmJu6VIfgV7rioirN86IjyVhP1rYuoc3I6ctgX-4llAsFcfVL-Ac4B3cPwd83xAt8fDgozH6YUlx38lNJVmBp9omH5cQhli7zJ/s72-c/WS+CErtificate.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-8608830029995310935</id><published>2016-06-09T23:13:00.000-07:00</published><updated>2016-06-20T09:33:18.297-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Camel"/><category scheme="http://www.blogger.com/atom/ns#" term="Camel Routes"/><category scheme="http://www.blogger.com/atom/ns#" term="EIP"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><title type='text'>How to Configure and Use Apache Camel with Spring</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;1. Overview&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;This article will help you to configure and use&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/&quot; href=&quot;http://camel.apache.org/&quot; target=&quot;_blank&quot;&gt;Apache Camel&lt;/a&gt;&amp;nbsp;with Spring Framework.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;Apache Camel implements&amp;nbsp;&lt;a data-mce-href=&quot;http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html&quot; href=&quot;http://www.enterpriseintegrationpatterns.com/patterns/messaging/toc.html&quot;&gt;Enterprise Integration Patters&lt;/a&gt;.&amp;nbsp; If you want to explore EIP concept in detail, you can read&amp;nbsp;&lt;a data-mce-href=&quot;http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1453201855&amp;amp;sr=1-1&quot; href=&quot;http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1453201855&amp;amp;sr=1-1&quot;&gt;this book&lt;/a&gt;&amp;nbsp;written by Gregor Hohpe and and Bobby Woolf, who conceptualize the Enterprise Integration Patters.&lt;br /&gt;Apache Camel provides many useful components like&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/jpa.html&quot; href=&quot;http://camel.apache.org/jpa.html&quot; target=&quot;_blank&quot;&gt;JPA&lt;/a&gt;,&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/hibernate.html&quot; href=&quot;http://camel.apache.org/hibernate.html&quot; target=&quot;_blank&quot;&gt;Hibernate&lt;/a&gt;,&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/ftp2.html&quot; href=&quot;http://camel.apache.org/ftp2.html&quot; target=&quot;_blank&quot;&gt;FTP&lt;/a&gt;,&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/cxf.html&quot; href=&quot;http://camel.apache.org/cxf.html&quot; target=&quot;_blank&quot;&gt;Apache-CXF&lt;/a&gt;,&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/cxfrs.html&quot; href=&quot;http://camel.apache.org/cxfrs.html&quot; target=&quot;_blank&quot;&gt;Apache&amp;nbsp;CXF-REST&lt;/a&gt;, &amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/aws-s3.html&quot; href=&quot;http://camel.apache.org/aws-s3.html&quot; target=&quot;_blank&quot;&gt;AWS-S3&lt;/a&gt;&amp;nbsp;and many more. Basically these components are useful in integrating data between two different systems. For eg. Pull data from database and send it to another system over REST API calls.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;In this tutorial, for simplicity&amp;nbsp;purpose we will&amp;nbsp;use Apache Camel&#39;s&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/file2.html&quot; href=&quot;http://camel.apache.org/file2.html&quot;&gt;File&amp;nbsp;component&lt;/a&gt;&amp;nbsp;and Apache Camel version&amp;nbsp;2.16.1 with Spring version&amp;nbsp;4.2.4.RELEASE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;We will use Apache Camel to perform following task:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Read file from source directory.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Convert file content to UpperCase using custom&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/processor.html&quot; href=&quot;http://camel.apache.org/processor.html&quot;&gt;Processor&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Write converted output to destination directory.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Convert file content to LowerCase using&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/message-translator.html&quot; href=&quot;http://camel.apache.org/message-translator.html&quot;&gt;Camel Translator&lt;/a&gt;&amp;nbsp;Feature.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Write&amp;nbsp;converted output to destination directory.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;We will follow these steps to develop and run this application:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Create Project skeleton using maven.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Add Apache Camel dependencies to pom file.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Create Camel Context file.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Define Camel Route for converting file content to UpperCase using custom processor.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Update&amp;nbsp;Camel Route for converting file content to LowerCase using Camel&#39;s Message Translator.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Create ApplicationRunner class with main method to load and run Camel Context.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Create input and output&amp;nbsp;directories.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: small;&quot;&gt;Build application and run Camel Context.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;2. Create Maven Project&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Let&#39;s start with generating project artifacts using maven command. Run following command to generate project skeleton.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;mvn archetype:generate &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DgroupId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;apache&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;camel &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DartifactId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;ApacheCamelFileProcessor &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DarchetypeArtifactId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;maven&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;archetype&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;quickstart &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DinteractiveMode&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;false
&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Once this command is runs successfully, you can see generated project directory&amp;nbsp;&lt;em&gt;ApacheCamelFileProcessor.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;3. Add Maven Dependencies&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;color: #333333; font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Add following dependencies to to&amp;nbsp;&lt;em&gt;ApacheCamelFileProcessor/pom.xml&lt;/em&gt;&amp;nbsp;file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;project&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;modelVersion&amp;gt;&lt;/span&gt;4.0.0&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/modelVersion&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.camel&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;ApacheCamelFileProcessor&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;packaging&amp;gt;&lt;/span&gt;jar&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/packaging&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;1.0-SNAPSHOT&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;name&amp;gt;&lt;/span&gt;ApacheCamelFileProcessor&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;url&amp;gt;&lt;/span&gt;http://maven.apache.org&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;properties&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;env.camel.version&amp;gt;&lt;/span&gt;2.16.1&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/env.camel.version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;env.spring.version&amp;gt;&lt;/span&gt;4.2.4.RELEASE&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/env.spring.version&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/properties&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependencies&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.camel&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;camel-core&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;${env.camel.version}&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.camel&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;camel-spring&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;${env.camel.version}&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.camel&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;camel-stream&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;${env.camel.version}&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.springframework&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;spring-context&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;${env.spring.version}&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependencies&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;color: #333333; font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;div style=&quot;color: #333333; font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Once pom file is updated with these dependencies &amp;nbsp;you need to run following maven build command to download jar files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;color: #333333; font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;mvn clean install
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;4. Camel Context file&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Create Spring Context file where we will define Camel Routes later. Create file&amp;nbsp;&lt;em&gt;ApacheCamelFileProcessor/src/main/resources/camel-context.xml.&lt;/em&gt;&amp;nbsp;This is content to your context file with all required Apache Camel and Spring namespaces and schema locations.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;beans&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:camel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:util=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/util&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd &lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;  http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd&lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;   http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;camelContext&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- Add routes here --&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/camelContext&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/beans&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;div class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;This &amp;lt;camelContext&amp;gt; element represents Camel Context which we can compare with Spring Application Context. Now your context file is ready to start defining Camel Routes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;5. Camel Route file.&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Now we will write our first route to convert file content to UpperCase.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;We need to define source from where route will read data, which can be database, file, console etc. In our case it will be file. eg.&amp;nbsp;&lt;em&gt;&amp;lt;from uri=&quot;file:input_directory_location&quot; /&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Then we need to define the processor of the data read from source. We are going to write custom processor class in our case. This custom processor class will be a spring bean which will implement standard&amp;nbsp;&lt;a data-mce-href=&quot;http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Processor.html&quot; href=&quot;http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Processor.html&quot;&gt;Camel Processor Interface&lt;/a&gt;. eg.&amp;nbsp;&lt;em&gt;&amp;lt;process ref=&quot;customProcessorbeanId&quot; /&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Once data is processed we need to tell route to where to store the processed data which can again be anything like database, file or display on console. In our case we are going to store it in file. eg.&amp;nbsp;&lt;em&gt;&amp;lt;to uri=&quot;file:output_directory_location&quot; /&amp;gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;This is how your your&amp;nbsp;&lt;em&gt;camel-context.xml&lt;/em&gt;&amp;nbsp;file will look like with route.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;beans&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:camel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:util=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/util&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd &lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;  http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd&lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;   http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;camelContext&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
  
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;route&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;customId=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;rout1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- Read files from input directory --&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;from&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;uri=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file://data/input&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- Transform content to UpperCase --&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;process&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;ref=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myFileProcessor&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- Write converted file content --&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;to&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;uri=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file://data/outputUppperCase&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/route&amp;gt;&lt;/span&gt;
 
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/camelContext&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;bean&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myFileProcessor&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.camel.processor.FileProcessor&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/beans&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;We need to create those directories mentioned in URI&#39;s and put some files in input directory. We will create them before running application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;5.1. Create Custom Processor&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Create class&amp;nbsp;&lt;em&gt;org.apache.camel.processor.FileProcessor&lt;/em&gt;&amp;nbsp;which is mentioned in&amp;nbsp;&lt;em&gt;camel-context.xml&lt;/em&gt;&amp;nbsp;file as bean.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Now implement&amp;nbsp;&lt;em&gt;org.apache.camel.Processor&lt;/em&gt;&amp;nbsp;interface which is standard processor interface provided by Apache Camel. After implementing this interface we need to define its&amp;nbsp;&lt;em&gt;process(&lt;a data-mce-href=&quot;https://camel.apache.org/maven/camel-2.15.0/camel-core/apidocs/org/apache/camel/Exchange.html&quot; href=&quot;https://camel.apache.org/maven/camel-2.15.0/camel-core/apidocs/org/apache/camel/Exchange.html&quot;&gt;Exchange&amp;nbsp;&lt;/a&gt;exchange)&lt;/em&gt;&amp;nbsp;method. This&amp;nbsp;&lt;a data-mce-href=&quot;https://camel.apache.org/maven/camel-2.15.0/camel-core/apidocs/org/apache/camel/Exchange.html&quot; href=&quot;https://camel.apache.org/maven/camel-2.15.0/camel-core/apidocs/org/apache/camel/Exchange.html&quot;&gt;Exchange&lt;/a&gt;&amp;nbsp;object holds all details of data read from source.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Then we need to read content of the message (file content in our case) and do processing on that content. Once processing is completed we will set the new content to&amp;nbsp;&lt;em&gt;Exchange&lt;/em&gt;&amp;nbsp;object.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;This is the Custom Processor for reading the file content and converting it to UpperCase and setting it on Exchange object.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;camel&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;processor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.camel.Exchange&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.camel.Processor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;FileProcessor&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;implements&lt;/span&gt; Processor &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;process&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Exchange exchange&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #888888;&quot;&gt;//Read file content&lt;/span&gt;
  String originalFileContent &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;exchange&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getIn&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getBody&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  
  &lt;span style=&quot;color: #888888;&quot;&gt;//Convert file content to upper case.&lt;/span&gt;
  String upperCaseFileContent &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; originalFileContent&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;toUpperCase&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
  
  &lt;span style=&quot;color: #888888;&quot;&gt;//Update file content.&lt;/span&gt;
  exchange&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getIn&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;setBody&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;upperCaseFileContent&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;This process method will get executed for every input&amp;nbsp;received from source.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;6. Update&amp;nbsp;Camel Route for converting content to lowercase.&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;We will update Camel route to convert same file content to lowerCase. However for converting data to lowerCase we will not create custom processor. Instead we will use Apache Camel&#39;s&amp;nbsp;&lt;a data-mce-href=&quot;http://people.apache.org/~dkulp/camel/message-translator.html&quot; href=&quot;http://people.apache.org/~dkulp/camel/message-translator.html&quot;&gt;Message&amp;nbsp;Translator feature&lt;/a&gt;&amp;nbsp;to convert data to lowerCase.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Once data is converted to lowerCase using Message Translator, we need to define the destination where converted data will be stored.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;This is the updated Camel Route in&amp;nbsp;&lt;em&gt;camel-context.xml&lt;/em&gt;&amp;nbsp;file.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;?&lt;/span&gt;xml version&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;beans xmlns&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;xmlns:&lt;/span&gt;xsi&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt; &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;xmlns:&lt;/span&gt;camel&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;xmlns:&lt;/span&gt;util&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/util&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;xsi:&lt;/span&gt;schemaLocation&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd &lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;  http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd&lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;   http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;camelContext xmlns&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://camel.apache.org/schema/spring&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
  
  &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;route&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
   
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;!--&lt;/span&gt; Read files from input directory &lt;span style=&quot;color: #333333;&quot;&gt;--&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;from uri&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file://data/input&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;   
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;!--&lt;/span&gt; Transform content to UpperCase using custom processor &lt;span style=&quot;color: #333333;&quot;&gt;--&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;process ref&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myFileProcessor&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;   
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;!--&lt;/span&gt; Write converted file content &lt;span style=&quot;color: #333333;&quot;&gt;--&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;to uri&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file://data/outputUppperCase&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;
   
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;!--&lt;/span&gt; Transform content to LowerCase using message translator &lt;span style=&quot;color: #333333;&quot;&gt;--&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;transform&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;simple&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;$&lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;body&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;toLowerCase&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()}&amp;lt;/&lt;/span&gt;simple&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;transform&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;   
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;!--&lt;/span&gt; Write converted file content &lt;span style=&quot;color: #333333;&quot;&gt;--&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;to uri&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file://data/outputLowerCase&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;   
  &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;route&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
 
 &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;camelContext&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;&lt;/span&gt;bean id&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myFileProcessor&quot;&lt;/span&gt; class&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.camel.processor.FileProcessor&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&amp;lt;/&lt;/span&gt;beans&lt;span style=&quot;color: #333333;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;7. Create Application Runner.&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Now let&#39;s create application runner to run this application. This class will load Camel context file. As this is Spring context we will load it exactly same way as we load Spring context file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Create class&amp;nbsp;&lt;em&gt;org.apache.camel.main.App&lt;/em&gt;&amp;nbsp;with main method to load&amp;nbsp;&lt;em&gt;camel-context.xml&lt;/em&gt;&amp;nbsp;file&amp;nbsp;as follow.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;camel&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.springframework.context.support.ClassPathXmlApplicationContext&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;App&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;final&lt;/span&gt; String&lt;span style=&quot;color: #333333;&quot;&gt;[]&lt;/span&gt; args&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
     &lt;span style=&quot;color: #888888;&quot;&gt;//Load application context&lt;/span&gt;
     ClassPathXmlApplicationContext applicationContext &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; ClassPathXmlApplicationContext&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;camel-context.xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
        Thread&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;sleep&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;5000&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
        applicationContext&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;8. Create Input and Output Directories.&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Create following directories mentioned in Camel Route in&amp;nbsp;&lt;em&gt;camel-context.xml&lt;/em&gt;&amp;nbsp;file.&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;ApacheCamelFileProcessor/data/input&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;ApacheCamelFileProcessor/data/outputLowerCase&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;ApacheCamelFileProcessor/data/outputUppperCase&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Create sample input file as A&lt;em&gt;pacheCamelFileProcessor/data/input/sample.txt&amp;nbsp;&lt;/em&gt;with data:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;THIS IS UPPERCASE CONTENT. this is lowecase content.&lt;/span&gt;&lt;/pre&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;9. Build and Run Application.&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;To build this application execute&amp;nbsp;following maven command in A&lt;em&gt;pacheCamelFileProcessor&lt;/em&gt;&amp;nbsp;directory.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #996633;&quot;&gt;mvn&lt;/span&gt; &lt;span style=&quot;color: #996633;&quot;&gt;clean&lt;/span&gt; &lt;span style=&quot;color: #996633;&quot;&gt;install&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Now let&#39;s run this application. To run this application you can either run our main class&amp;nbsp;&lt;em&gt;org.apache.camel.main.App&lt;/em&gt;&amp;nbsp;from your IDE or you can execute following maven command:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #996633;&quot;&gt;mvn&lt;/span&gt; &lt;span style=&quot;color: #996633;&quot;&gt;exec:java&lt;/span&gt; &lt;span style=&quot;color: #996633;&quot;&gt;-Dexec.mainClass=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.camel.main.App&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Once application run successfully, you can find following:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;em&gt;ApacheCamelFileProcessor/data/outputUppperCase/sample.txt&amp;nbsp;&lt;/em&gt;with following content:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;THIS IS UPPERCASE CONTENT. THIS IS LOWECASE CONTENT.&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;em&gt;ApacheCamelFileProcessor/data/outputLowerCase/sample.txt&amp;nbsp;&lt;/em&gt;with following content:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;this is uppercase content. this is lowecase content.
&lt;/pre&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
Download complete project from Git repository.&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://github.com/yrpatil/myRepo/tree/master/ApacheCamelFileProcessor&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaA3Qu3nhi0X5cOn7dQINxs74TSHINT6hD7xTd_59EWZOEPG9xntvgWv2V1Ex1bweBNV3DXkeBIPzH6ph8hu0MtrXDZW4-UGfN8aKNNOSCpRlCP8aelp1p9Mx5dDEyb_Wy0mWV2LeqyohK/s320/github-mark.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: actionscript3; gutter: true&quot; style=&quot;font-size: 16px; font-weight: normal; line-height: 21.8182px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;monaco&amp;quot; , monospace;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/h2&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/8608830029995310935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2016/06/how-to-configure-and-use-apache-camel.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/8608830029995310935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/8608830029995310935'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2016/06/how-to-configure-and-use-apache-camel.html' title='How to Configure and Use Apache Camel with Spring'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaA3Qu3nhi0X5cOn7dQINxs74TSHINT6hD7xTd_59EWZOEPG9xntvgWv2V1Ex1bweBNV3DXkeBIPzH6ph8hu0MtrXDZW4-UGfN8aKNNOSCpRlCP8aelp1p9Mx5dDEyb_Wy0mWV2LeqyohK/s72-c/github-mark.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-9142674009511973083</id><published>2015-09-26T04:28:00.000-07:00</published><updated>2015-09-28T22:14:39.885-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="hbm2dao"/><category scheme="http://www.blogger.com/atom/ns#" term="hbm2java"/><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="JBoss Tools Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="uto generate POJO models from database schema"/><title type='text'>hbm2dao &amp; hbm2java: Auto generate POJO model and DAO classes from database schema using JBoss Tools Hibernate plugin.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This tutorial shows how to generate POJO model classes and DAO classes from database tables. This approach is reverse engineering approach to generate code from already existing database tables.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will use use&amp;nbsp;&lt;a href=&quot;http://tools.jboss.org/features/hibernate.html&quot; target=&quot;_blank&quot;&gt;Hibernate Plugin&lt;/a&gt;&amp;nbsp;provided in JBoss tools for this tutorial. If you want to configure this plugin in your eclipse please refer this post:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://j2yogi.blogspot.in/2015/09/step-by-step-installation-of-jboss.html?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed:+J2yogi+(J2Yogi)&quot; target=&quot;_blank&quot;&gt;Install JBoss Tools - Hibernate plugin in Eclipse&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Tools used :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #888888; font-family: Verdana, sans-serif; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://www.eclipse.org/kepler/&quot; style=&quot;color: #888888; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Eclipse Kelper&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #888888; font-family: Verdana, sans-serif; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://tools.jboss.org/features/hibernate.html&quot; target=&quot;_blank&quot;&gt;JBoss tools - Hibernate&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #888888; font-family: Verdana, sans-serif; text-decoration: none;&quot;&gt;JDK 1.8&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #888888; font-family: Verdana, sans-serif; text-decoration: none;&quot;&gt;MySQL 5&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Please follow these steps to generated Annotated Java code from database.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;1. Generate Hibernate.cfg.xml &amp;amp; Hibernate Console configuration using Hibernate plugin&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will auto generate Hibernate.cfg.xml using Hibernate plugin. This is same configuration will be used in Hibernate Console creation (which is required to create java code).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Select location where you want to generate Hibernate.cfg.xml file as follow.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;eg. src/main/resources/META-INF&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Right click on folder --&amp;gt; New --&amp;gt; Other&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvvA76bXhzEt-1pUGNeR_gS9mL-6TswNkJtM2F-VCSR5j2uBQc9BcqTnUiBFwtvu7gjoSm3Ea4zKyyIneF1uM_q0zIbmTBr3GCP1voGD1SjG9dfKOeitoDAUZcANlrZqT4RWGgB-YHrWM/s1600/hbm2dao_2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvvA76bXhzEt-1pUGNeR_gS9mL-6TswNkJtM2F-VCSR5j2uBQc9BcqTnUiBFwtvu7gjoSm3Ea4zKyyIneF1uM_q0zIbmTBr3GCP1voGD1SjG9dfKOeitoDAUZcANlrZqT4RWGgB-YHrWM/s400/hbm2dao_2.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now Following window will open. Showing various option.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select Hibernate --&amp;gt; Hibernate Configuration File (cfg.xml)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEdfFZYBGmUMYm2N8oSilEfnb2sDa5064QoSarwcL34ZfEy7Qm46LyrsWtymmuzxvQoXSIAyDqVf32YIrbVLyZptJ3qWyAy3yBLztyW3b6HlSZ1s4I4cZMWtlLbGa8P8Snv5SbZqnNxbri/s1600/hbm2dao_3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEdfFZYBGmUMYm2N8oSilEfnb2sDa5064QoSarwcL34ZfEy7Qm46LyrsWtymmuzxvQoXSIAyDqVf32YIrbVLyZptJ3qWyAy3yBLztyW3b6HlSZ1s4I4cZMWtlLbGa8P8Snv5SbZqnNxbri/s400/hbm2dao_3.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Click on : &lt;/b&gt;Next --&amp;gt; Next&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now following window will appear.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiggq6B-bzrKqQm1iMe7PD7g6CeiaBW6lbSWbbD-AR9VtJ7OaUJa5Z1HT-HcPZrjNKafyhllaCqle42aneAM1rtyQnfK5I-K5StPao5hgRxazDSrR29VepUPQBzSEshwfbhFdYHGgDEOMaI/s1600/hbm2dao_4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiggq6B-bzrKqQm1iMe7PD7g6CeiaBW6lbSWbbD-AR9VtJ7OaUJa5Z1HT-HcPZrjNKafyhllaCqle42aneAM1rtyQnfK5I-K5StPao5hgRxazDSrR29VepUPQBzSEshwfbhFdYHGgDEOMaI/s320/hbm2dao_4.PNG&quot; width=&quot;255&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you have to add the database properties in this box.&lt;/span&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Database Dialect&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;org.hibernate.dialect.MySQL5InnoDBDialect&lt;/span&gt;
&lt;span style=&quot;color: #0000cc;&quot;&gt;Driver Class&lt;/span&gt;     &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;com.mysql.jdbc.Driver&lt;/span&gt;
&lt;span style=&quot;color: #0000cc;&quot;&gt;Connection URL&lt;/span&gt;   &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;jdbc:mysql://localhost:3306/test (test is schema)&lt;/span&gt;
&lt;span style=&quot;color: #0000cc;&quot;&gt;usernam&lt;/span&gt;          &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;root&lt;/span&gt;
&lt;span style=&quot;color: #0000cc;&quot;&gt;password&lt;/span&gt;         &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;*****&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add these properties in box. And make sure you check the check box saying &#39;&lt;i&gt;Create a Console Configuration&lt;/i&gt;&#39;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh8P-xt_gOfcn81NrO9a4KMy3wvG-c8CHRcOi97rLaE_UxMxm-J6vZk7vIHX81cBlAZJAnA-yJpm6wfoXPmrIwfVF-mIDgdng2kpQAg-E1L3JGneXNW2_gCclm6TR9ckGgYW-n71oOExYK/s1600/hbm2dao_5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh8P-xt_gOfcn81NrO9a4KMy3wvG-c8CHRcOi97rLaE_UxMxm-J6vZk7vIHX81cBlAZJAnA-yJpm6wfoXPmrIwfVF-mIDgdng2kpQAg-E1L3JGneXNW2_gCclm6TR9ckGgYW-n71oOExYK/s400/hbm2dao_5.PNG&quot; width=&quot;318&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Click On &lt;/b&gt;: Next&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Following window will appear.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWVXJOO7V1T42L_bIlMM5SjU3xty6xSgK0MOlgffeVRLYRDnoOtSI9gFf71TAM4EljQFAMuAJr5snrDsnzgfa0lV9MCcFAIilv4ExWA3UsykFmWjaClmc_nW3WnOC0fdMHsX7svPf3LU_Q/s1600/hbm2dao_6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWVXJOO7V1T42L_bIlMM5SjU3xty6xSgK0MOlgffeVRLYRDnoOtSI9gFf71TAM4EljQFAMuAJr5snrDsnzgfa0lV9MCcFAIilv4ExWA3UsykFmWjaClmc_nW3WnOC0fdMHsX7svPf3LU_Q/s400/hbm2dao_6.PNG&quot; width=&quot;323&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Please make sure you select Type : &#39;&lt;i&gt;Annotations (jdk1.5+)&lt;/i&gt;&#39; to enable annotations on POJO classes, So that you do not require mapping file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select Appropriate Hibernate version as per your requirements.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can see Hibernate.cfg.xml generated in your project as follow.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;!DOCTYPE hibernate-configuration PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;  &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;  &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;session-factory&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.connection.driver_class&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;com.mysql.jdbc.Driver&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.connection.password&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;*****&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.connection.url&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;jdbc:mysql://localhost:3306/test&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.connection.username&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.dialect&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;org.hibernate.dialect.MySQL5InnoDBDialect&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/session-factory&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2. Generate model POJO and DAO classes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you have to generate classes from Hibernate Console configuration you have created in previous step.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;b&gt;Open Hibernate Perspective&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Click On &lt;/b&gt;: window --&amp;gt; Open Perspective --&amp;gt; Other ..&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This window will appear on screen.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioCrsDUKXYXEnS_d51UCjOXTzpZqUfSDSxya-PGciEkt9YCNFVecwOZ_yRziM-wGuuntIF6lsAInsloLOeLJHwWP9dgWGOw-QboyMNGAK275JxzhDNnxodYLL0sDlkZshLf0qh9v5lGknU/s1600/hbm2dao_1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioCrsDUKXYXEnS_d51UCjOXTzpZqUfSDSxya-PGciEkt9YCNFVecwOZ_yRziM-wGuuntIF6lsAInsloLOeLJHwWP9dgWGOw-QboyMNGAK275JxzhDNnxodYLL0sDlkZshLf0qh9v5lGknU/s320/hbm2dao_1.PNG&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you have to Select &#39;&lt;i&gt;Hibernate&lt;/i&gt;&#39; from list and click &#39;&lt;i&gt;Ok&lt;/i&gt;&#39;. If not appear please follow this &lt;a href=&quot;http://j2yogi.blogspot.in/2015/09/step-by-step-installation-of-jboss.html?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed:+J2yogi+(J2Yogi)&quot; target=&quot;_blank&quot;&gt;post&lt;/a&gt; to install it properly&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9WKW-m9Bc-5uyJwD6rKJSV27oFJt3IsOB-2wofA1jUL1b_lNUyb_rd7Yy7iRKBjBxE8szBzwOUN3ESo2uJu4G73ihYN2nBjdqVhKXTxO1OswN10NHxMUmCP1KLaP9NDXCO65eNytYkhX/s1600/hbm2dao_9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9WKW-m9Bc-5uyJwD6rKJSV27oFJt3IsOB-2wofA1jUL1b_lNUyb_rd7Yy7iRKBjBxE8szBzwOUN3ESo2uJu4G73ihYN2nBjdqVhKXTxO1OswN10NHxMUmCP1KLaP9NDXCO65eNytYkhX/s320/hbm2dao_9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once you open Hibernate perspective, you should be able to see the Hibernate Console Configuration you have created in previous step.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1Ploml7J_c9R0E5dA-AE4q65pcILmoj8S7TzJGcdQPgxjGasbCtuyN3f6Jbn1OkGvL2VRTxxo9LuPls2IoTR1KaehjTo2vsZJ46RbJjnzG9kTX1waCG4zFBFG_57dDvxxfAZ6OyVibd90/s1600/hbm2dao_7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1Ploml7J_c9R0E5dA-AE4q65pcILmoj8S7TzJGcdQPgxjGasbCtuyN3f6Jbn1OkGvL2VRTxxo9LuPls2IoTR1KaehjTo2vsZJ46RbJjnzG9kTX1waCG4zFBFG_57dDvxxfAZ6OyVibd90/s400/hbm2dao_7.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can see all the table available in schema you have configured in previous step.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Click on&amp;nbsp;&lt;/b&gt;: Run --&amp;gt; Hibernate Code Generation ... --&amp;gt; Hibernate Code Generations Configurations ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZYDPmOX-N9L57POvf0PA_2pdTfY2AicAJYfS_npH_gslROW6ipV42kQ0MxsDjNcXtslt862V705NADy9tXXXM5Va1ZhVETdsDz6-HuMTgrUdm3tFPVeho1vUIlRzvqozVrqE6cN99xdNn/s1600/hbm2dao_8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZYDPmOX-N9L57POvf0PA_2pdTfY2AicAJYfS_npH_gslROW6ipV42kQ0MxsDjNcXtslt862V705NADy9tXXXM5Va1ZhVETdsDz6-HuMTgrUdm3tFPVeho1vUIlRzvqozVrqE6cN99xdNn/s640/hbm2dao_8.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now this window will open.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9WKW-m9Bc-5uyJwD6rKJSV27oFJt3IsOB-2wofA1jUL1b_lNUyb_rd7Yy7iRKBjBxE8szBzwOUN3ESo2uJu4G73ihYN2nBjdqVhKXTxO1OswN10NHxMUmCP1KLaP9NDXCO65eNytYkhX/s1600/hbm2dao_9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;441&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz9WKW-m9Bc-5uyJwD6rKJSV27oFJt3IsOB-2wofA1jUL1b_lNUyb_rd7Yy7iRKBjBxE8szBzwOUN3ESo2uJu4G73ihYN2nBjdqVhKXTxO1OswN10NHxMUmCP1KLaP9NDXCO65eNytYkhX/s640/hbm2dao_9.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You have to select Console Configuration created in previous step.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then you can select the Output Directory where source will be generated eg. {PROJECT}\src\main\java&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Then check option &#39;Reverse Engineering From JDBC Connection&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuidaqmD2Hz2g9tYVf3dQcp745Tw6zaURbURlh9pbcR6iofCqk7wEZ28VOlDcfwSvq7LKp8IINTAn8myDhG4GWxaqJdzMnLScsnw0PrbilmCJZ7gPfBXetDzUPJjBpTATDOiQ9Huujr7MB/s1600/hbm2dao_10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuidaqmD2Hz2g9tYVf3dQcp745Tw6zaURbURlh9pbcR6iofCqk7wEZ28VOlDcfwSvq7LKp8IINTAn8myDhG4GWxaqJdzMnLScsnw0PrbilmCJZ7gPfBXetDzUPJjBpTATDOiQ9Huujr7MB/s400/hbm2dao_10.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now we need to create reveng.xml file which will contain tables for which we want to generate Java code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click on : reveng.xml setup --&amp;gt; (Pop up) will open --&amp;gt; Create new..&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select Directory where you want to store this reveng.xml file. (keep it same as Hibernate.cfg.xml directory)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9SJO2mXpPtzovrzk-w9cU8iLj4M68yV-9f_1_eZtJIe5sb9pdK7PEMUydZevQagorh4RkegghVeRYsRv-rKnwBplY_0N1-AdEgEQQAltBxjsHBTwwx-3z4xXwNJAbVnbKmXnO0AHWAAYz/s1600/hbm2dao_11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9SJO2mXpPtzovrzk-w9cU8iLj4M68yV-9f_1_eZtJIe5sb9pdK7PEMUydZevQagorh4RkegghVeRYsRv-rKnwBplY_0N1-AdEgEQQAltBxjsHBTwwx-3z4xXwNJAbVnbKmXnO0AHWAAYz/s320/hbm2dao_11.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Click on : Next&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select Console Configuration. Now schema will appear in left panel, if you cant see schema then click &#39;Refresh&#39; present below.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqJHbLHTDQKGEcjWu1qwb7h_kpFLPwR68sTCdPi_ykr4NLlmYNNZ_tAASh8hyphenhyphenoRIsGV9mDMvTSP1WxittpNfaUPS67t8IpShrNt8fYPjAaAi1rQNWVnjfLpLDUOiSaihUr4EVnRQd7IMEV/s1600/hbm2dao_13.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;393&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqJHbLHTDQKGEcjWu1qwb7h_kpFLPwR68sTCdPi_ykr4NLlmYNNZ_tAASh8hyphenhyphenoRIsGV9mDMvTSP1WxittpNfaUPS67t8IpShrNt8fYPjAaAi1rQNWVnjfLpLDUOiSaihUr4EVnRQd7IMEV/s400/hbm2dao_13.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select tables and click on &#39;Include&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once you have selected all the tables click on Finish.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now your reveng.xml is created.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you have to select what are the things which you have to generate for selected tables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select &#39;Exporter&#39; tab in window as follow.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiarkycey1XCBNdbd2pVvlue_iNm91XpKijrrBzL9HzwGH14IGJ2i0PTuuD4a5_O2Yb-P-C6yq2m8EMbUtHYBjv680oFkR5Cf8INdisp4aARWtXQ2TZOpvY_OjeKgUjfp88WHbejRMBPVxb/s1600/hbm2dao_14.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;452&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiarkycey1XCBNdbd2pVvlue_iNm91XpKijrrBzL9HzwGH14IGJ2i0PTuuD4a5_O2Yb-P-C6yq2m8EMbUtHYBjv680oFkR5Cf8INdisp4aARWtXQ2TZOpvY_OjeKgUjfp88WHbejRMBPVxb/s640/hbm2dao_14.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select &#39;Domain code (Java)&#39; to generate POJO classes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&#39;DAO code (Java)&#39; to generate Dao classes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Check general setting as mentioned to enable Annotation in generated code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can see the generated code in package you had mentioned.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1M424TQVzKy2-6Sce7opyuFp2ZjcxWjrfqQXDAeMW_dsVFsY5gRIJRS1_647VXMZx1FqfoygYTMyuoNx58n8Mb_KvIKcMKhhc7ak_qvW33-xusjQylh8504VpEhKf6F7zaMpfR4g2zJie/s1600/hbm2dao_15.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;287&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1M424TQVzKy2-6Sce7opyuFp2ZjcxWjrfqQXDAeMW_dsVFsY5gRIJRS1_647VXMZx1FqfoygYTMyuoNx58n8Mb_KvIKcMKhhc7ak_qvW33-xusjQylh8504VpEhKf6F7zaMpfR4g2zJie/s400/hbm2dao_15.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You can restructure the package as per your design.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Done :)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/9142674009511973083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2015/09/hbm2dao-auto-generate-pojo-model-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/9142674009511973083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/9142674009511973083'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2015/09/hbm2dao-auto-generate-pojo-model-and.html' title='hbm2dao &amp; hbm2java: Auto generate POJO model and DAO classes from database schema using JBoss Tools Hibernate plugin.'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRvvA76bXhzEt-1pUGNeR_gS9mL-6TswNkJtM2F-VCSR5j2uBQc9BcqTnUiBFwtvu7gjoSm3Ea4zKyyIneF1uM_q0zIbmTBr3GCP1voGD1SjG9dfKOeitoDAUZcANlrZqT4RWGgB-YHrWM/s72-c/hbm2dao_2.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-202690305249789213</id><published>2015-09-25T23:03:00.001-07:00</published><updated>2015-09-26T02:24:44.294-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse Kepler"/><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="JBoss Hibernate Tools"/><title type='text'>Step  by step Installation of JBoss Tools - Hibernate plugin in Eclipse Kepler</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://tools.jboss.org/features/hibernate.html&quot; target=&quot;_blank&quot;&gt;Hibernate JBoss tool&lt;/a&gt;&amp;nbsp;eases developer&#39;s work with JPA (or Hibernate). You can easily generate lot of stuff related to Hibernate which is difficult (and error prone) while doing manually.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You can generate Hibernate configurations (*.hbm.cfg.xml), java model classes and mapping file or annotated model classes. Basically it follows concept of reverse-engineering. So if you are not using hbm2ddl to generate Tables from Java model then this plugin will help you generate model classes from existing Tables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is Eclipse used in this post.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Eclipse &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;Version:&lt;/span&gt; Kepler Service Release &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Follow these steps to install this Hibernate JBoss plugin in you Eclipse Kepler.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Click on : Hep --&amp;gt; Install New Software&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This window will appear on screen.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHpuGpkiYtWPSmPmlYAta4yPrO_wX2qSpQnsfRw5XEQbTPJdv9Sv96BwnvLgOtAKxzBCiShy1M01W-9XaoLC94VKGM3WhlcrVDrmCHfBSbNRgyb1pxfk26apjoT8GafIXeFezIdOiBTVcn/s1600/eclipseJBossPlugin_1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;496&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHpuGpkiYtWPSmPmlYAta4yPrO_wX2qSpQnsfRw5XEQbTPJdv9Sv96BwnvLgOtAKxzBCiShy1M01W-9XaoLC94VKGM3WhlcrVDrmCHfBSbNRgyb1pxfk26apjoT8GafIXeFezIdOiBTVcn/s640/eclipseJBossPlugin_1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Click on : Add button&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now copy following URL and paste it in &quot;&lt;i&gt;Location field&lt;/i&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #bbbbbb;&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;//download.jboss.org/jbosstools/updates/stable/kepler/&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5hP6Uv8sR8JfGRKsFxypCyYtxB26tVWYq8SfqsV4xAzxiq5HYZHLknvPDMH_f95GZ2htCyVwmB58JGAtxuIJXu1b_BkMXldmyI8-sewowMnyMayt_j1nhA0nJFgHV0G3w1Kv8FeQ5HZrR/s1600/eclipseJBossPlugin_2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;492&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5hP6Uv8sR8JfGRKsFxypCyYtxB26tVWYq8SfqsV4xAzxiq5HYZHLknvPDMH_f95GZ2htCyVwmB58JGAtxuIJXu1b_BkMXldmyI8-sewowMnyMayt_j1nhA0nJFgHV0G3w1Kv8FeQ5HZrR/s640/eclipseJBossPlugin_2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;And click &#39;&lt;i&gt;Ok&lt;/i&gt;&#39; button.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now following screen will appear displaying all plugin available from JBoss tool site (there are lot of helpful plugins there from JBoss but we will focus on Hibernate plugin for now)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ROHoc9l2DXJ6Gft8anvEHvKeG8BpwbMGJhCaZWsJkd0NnYKMEn4Y8iGQr1RjjRKXIpN-3R1Sj3a8SZvudVPIHPGjyaq8hw469AGP0_UN8cM84TzKbNbR5bqoE8d1hD20TQaV4xBE8y9b/s1600/eclipseJBossPlugin_3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;494&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ROHoc9l2DXJ6Gft8anvEHvKeG8BpwbMGJhCaZWsJkd0NnYKMEn4Y8iGQr1RjjRKXIpN-3R1Sj3a8SZvudVPIHPGjyaq8hw469AGP0_UN8cM84TzKbNbR5bqoE8d1hD20TQaV4xBE8y9b/s640/eclipseJBossPlugin_3.PNG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now we have to select required Hibernate plugin out of all available ones.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Expand option &#39;&lt;i&gt;&lt;b&gt;JBoss Application Development&lt;/b&gt;&lt;/i&gt;&#39; available in list. And you can see &#39;&lt;b&gt;Hibernate Tools&lt;/b&gt;&#39; in expanded list. Select this tool in that list.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRmJ207rfZu7IJ83z0wb8qt5D4nj1YGBQ8OSVYdPq52h8llsBjS4GPFgn-tyW1ErBVwkN-n1WrUGYFcoG4pmcfSF6jj4-pEILgM4JKAKislM4ZuyDxNW5JUiMIj3HJSNe4p6vMOI7cm8Lk/s1600/eclipseJBossPlugin_4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;498&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRmJ207rfZu7IJ83z0wb8qt5D4nj1YGBQ8OSVYdPq52h8llsBjS4GPFgn-tyW1ErBVwkN-n1WrUGYFcoG4pmcfSF6jj4-pEILgM4JKAKislM4ZuyDxNW5JUiMIj3HJSNe4p6vMOI7cm8Lk/s640/eclipseJBossPlugin_4.PNG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now click next and finish it. It will take time to load and install plugin.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Once installation is finished restart your eclipse.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you can see your installed plugin in perspectives.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Click on : window --&amp;gt; Open Perspective --&amp;gt; Other ...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Following window will appear displaying all perspectives. You can see your recently install Hibernate plugin available in that.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz6QBTchPPwaS7hDECyzt8nRJtok1i9bHItRXucjkCZO1thrznALt510wYfoDXwQjUUIjnCa6aZW4qrFQxElIhLus4jrCTyAW_qqk4zv6oZPn-rSuZOHvAT4xBL6ZUy0TYpOkWgypyL69X/s1600/eclipseJBossPlugin_5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz6QBTchPPwaS7hDECyzt8nRJtok1i9bHItRXucjkCZO1thrznALt510wYfoDXwQjUUIjnCa6aZW4qrFQxElIhLus4jrCTyAW_qqk4zv6oZPn-rSuZOHvAT4xBL6ZUy0TYpOkWgypyL69X/s400/eclipseJBossPlugin_5.PNG&quot; width=&quot;326&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;And done :)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Download sites and References :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://www.eclipse.org/kepler/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Eclipse Kelper&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://tools.jboss.org/features/hibernate.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;JBoss Hibernate tool&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://download.jboss.org/jbosstools/updates/stable/kepler/&quot; target=&quot;_blank&quot;&gt;JBoss Tools download site&lt;/a&gt;&amp;nbsp;&amp;nbsp;for Kepler&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/202690305249789213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2015/09/step-by-step-installation-of-jboss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/202690305249789213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/202690305249789213'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2015/09/step-by-step-installation-of-jboss.html' title='Step  by step Installation of JBoss Tools - Hibernate plugin in Eclipse Kepler'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHpuGpkiYtWPSmPmlYAta4yPrO_wX2qSpQnsfRw5XEQbTPJdv9Sv96BwnvLgOtAKxzBCiShy1M01W-9XaoLC94VKGM3WhlcrVDrmCHfBSbNRgyb1pxfk26apjoT8GafIXeFezIdOiBTVcn/s72-c/eclipseJBossPlugin_1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-4292147431677763529</id><published>2015-05-04T02:45:00.000-07:00</published><updated>2015-05-04T02:45:40.921-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><category scheme="http://www.blogger.com/atom/ns#" term="maven tomcat auto deployment"/><category scheme="http://www.blogger.com/atom/ns#" term="org.apache.tomcat.maven"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat6-maven-plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat6:redeploy"/><title type='text'>Deploy WAR on tomcat from maven command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Many times while doing testing of web project (.war) during development phase we have to deploy project on tomcat server frequently. So every times we have copy war file then paste it to {TOMCAT_HOME}\webapp directory. Some times need to restart tomcat as well.&lt;br /&gt;
&lt;br /&gt;
My this post focuses on reducing this time by automating deployment from maven command.&amp;nbsp; So we can deploy, un-deploy, update war file and also do start, stop tomcat server from Maven command.&lt;br /&gt;
&lt;br /&gt;
For this automation we have make changes in following files. &lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;    1.{TOMCAT_HOME}/conf/tomcat-users.xml
    2.{MAVEN_HOME}/conf/settings.xml
    3.{PROJECT_HOME}/pom.xml
    4.Use this configured plugin to deploy, undeploy etc.&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
&amp;nbsp;let&#39;s start making above changes one by one. This post uses tomcat6 however if you are using different tomcat version, you can achieve same by using tomcat version specific plugin in step. 3.&lt;br /&gt;
&lt;br /&gt;
1. Update &lt;b&gt;{TOMCAT_HOME}/conf/tomcat-users.xml&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Add &#39;manager-script&#39; role and its username/password.&amp;nbsp; Properties highlighted in yellow are only relevant properties with this tutorial. &lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;tomcat-users&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;role&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;rolename=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;tomcat&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;role&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;rolename=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;manager-gui&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- &#39;manager-script&#39; role will be used for deployment from Maven --&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;role&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;rolename=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;manager-script&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;user&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;username=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;admin&lt;/span&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;password=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&lt;span style=&quot;background-color: yellow;&quot;&gt;tomcat&lt;/span&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;roles=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;tomcat,manager-gui,&lt;span style=&quot;background-color: yellow;&quot;&gt;manager-script&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/tomcat-users&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
2. Update &lt;b&gt;{MAVEN_HOME}/conf/settings.xml&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Update you maven settings.xml file with below snippet. Keep rest of the part of settings.xml as it is.&lt;span style=&quot;color: #557799;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;settings&amp;gt;&lt;/span&gt;
  ...
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servers&amp;gt;&lt;/span&gt;
   	&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;server&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;id&amp;gt;&lt;/span&gt;TomcatServer&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/id&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #888888;&quot;&gt;&amp;lt;!-- Username/password below should match with one mapped with &#39;manager-script&#39; role in tomcat_home/conf/tomcat-users.xml file--&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;username&amp;gt;&lt;/span&gt;admin&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/username&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;password&amp;gt;&lt;/span&gt;tomcat&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/password&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/server&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servers&amp;gt;&lt;/span&gt;
  ...
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/settings&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Username/Password should match with username/password configured with role &#39;manager-script&#39; in step 1.&lt;br /&gt;
&lt;br /&gt;
3. Update &lt;b&gt;{PROJECT_HOME}/pom.xml&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Update the following part in your pom.xml. Value of &amp;lt;server&amp;gt; should match with value of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;TomcatServer&amp;lt;/id&amp;gt; in {MAVEN_HOME}/conf/settings.xml file&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;project&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;
	&lt;span style=&quot;color: #0000cc;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
	...
	&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;build&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;finalName&amp;gt;&lt;/span&gt;ConcatService&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/finalName&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;plugins&amp;gt;&lt;/span&gt;
			...			
			&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;plugin&amp;gt;&lt;/span&gt;
				&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.tomcat.maven&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
				&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;tomcat6-maven-plugin&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;                                &amp;lt;!-- For tomcat7 use --&amp;gt;
                                &amp;lt;!-- &amp;lt;artifactId&amp;gt;tomcat7-maven-plugin&amp;lt;/artifactId&amp;gt; --&amp;gt;&amp;nbsp;&lt;span style=&quot;color: #007700;&quot;&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;                                &amp;lt;version&amp;gt;&lt;/span&gt;2.2&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
				&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;
					&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;url&amp;gt;&lt;/span&gt;http://localhost:8080/manager&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;
					&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;server&amp;gt;&lt;/span&gt;TomcatServer&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/server&amp;gt;&lt;/span&gt;
					&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;path&amp;gt;&lt;/span&gt;/ConcatService&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/path&amp;gt;&lt;/span&gt;
				&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;
			&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/plugin&amp;gt;&lt;/span&gt;
			...
		&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/plugins&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/build&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. Useful tomcat maven plugin goals.&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;mvn tomcat6:redeploy
mvn tomcat6:undeploy
mvn tomcat6:start
mvn tomcat6:stop&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Some Useful links.&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;b&gt;
&lt;/b&gt;
&lt;li&gt;Tomcat Documentation on how to deploy on -&amp;nbsp;&lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Deploy_A_New_Application_from_a_Local_Path&quot; target=&quot;_blank&quot;&gt;Local Tomcat&lt;/a&gt; &amp;amp;&amp;nbsp;&lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Deploy_A_New_Application_Remotely&quot; target=&quot;_blank&quot;&gt;Remote Tomcat&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Maven Tomca6 &lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot; target=&quot;_blank&quot;&gt;plugin.&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Error Resolutions :&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
If you got following error while executing any of the tomcat goals. (Which i had got.)&lt;br /&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;war:&lt;/span&gt;war &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;execution:&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;war&lt;span style=&quot;color: #333333;&quot;&gt;}]&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; Packaging webapp
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;------------------------------------------------------------------------&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;ERROR&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; FATAL ERROR
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;------------------------------------------------------------------------&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
&lt;span style=&quot;color: #333333;&quot;&gt;----&lt;/span&gt; Debugging information &lt;span style=&quot;color: #333333;&quot;&gt;----&lt;/span&gt;
message             &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
cause&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;exception     &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;ObjectAccessException&lt;/span&gt;
cause&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;message       &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt;               &lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;org&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt;
required&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;type       &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt;
path                &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;webapp&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;structure
line number         &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;-------------------------------&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;------------------------------------------------------------------------&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;INFO&lt;span style=&quot;color: #333333;&quot;&gt;]&lt;/span&gt; Trace
com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;ConversionException&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
&lt;span style=&quot;color: #333333;&quot;&gt;----&lt;/span&gt; Debugging information &lt;span style=&quot;color: #333333;&quot;&gt;----&lt;/span&gt;
message             &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
cause&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;exception     &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;ObjectAccessException&lt;/span&gt;
cause&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;message       &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt;               &lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;org&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt;
required&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;type       &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt;
path                &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;webapp&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;structure
line number         &lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;-------------------------------&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;TreeUnmarshaller&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;convert&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;TreeUnmarshaller&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;63&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;AbstractReferenceUnmarshaller&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;convert&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;AbstractReferenceUnmarshaller&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;45&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;TreeUnmarshaller&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;convertAnother&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;TreeUnmarshaller&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;TreeUnmarshaller&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;start&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;TreeUnmarshaller&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;117&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;ReferenceByXPathMarshallingStrategy&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;unmarshal&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;ReferenceByXPathMarshallingStrategy&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;XStream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;unmarshal&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;XStream&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;846&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;XStream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;unmarshal&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;XStream&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;833&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;XStream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;fromXML&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;XStream&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;781&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructureSerializer&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;fromXml&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;WebappStructureSerializer&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;73&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;AbstractWarMojo&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;buildWebapp&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;AbstractWarMojo&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;404&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;AbstractWarMojo&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;buildExplodedWebapp&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;AbstractWarMojo&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;375&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WarMojo&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;performPackaging&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;WarMojo&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;181&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WarMojo&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;WarMojo&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;143&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultPluginManager&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeMojo&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultPluginManager&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;490&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeGoals&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;694&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeGoalWithLifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;556&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeGoal&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;535&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeGoalAndHandleFailures&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;387&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;executeTaskSegments&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;348&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lifecycle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultLifecycleExecutor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultLifecycleExecutor&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultMaven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;doExecute&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultMaven&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;328&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DefaultMaven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DefaultMaven&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;138&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;cli&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;MavenCli&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;MavenCli&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;362&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;cli&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;compat&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;CompatibleMain&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;CompatibleMain&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at sun&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflect&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;NativeMethodAccessorImpl&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;invoke0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Native Method&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at sun&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflect&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;NativeMethodAccessorImpl&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;invoke&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;NativeMethodAccessorImpl&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;57&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at sun&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflect&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DelegatingMethodAccessorImpl&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;invoke&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;DelegatingMethodAccessorImpl&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;43&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at java&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lang&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflect&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Method&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;invoke&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Method&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;601&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;codehaus&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;classworlds&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Launcher&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;launchEnhanced&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Launcher&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;315&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;codehaus&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;classworlds&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Launcher&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;launch&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Launcher&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;codehaus&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;classworlds&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Launcher&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;mainWithExitCode&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Launcher&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;430&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;codehaus&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;classworlds&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;Launcher&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;Launcher&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;375&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
Caused &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;by:&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;ObjectAccessException&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt; Cannot construct org&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;apache&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;maven&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;plugin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;war&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;util&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WebappStructure&lt;/span&gt; as it does not have a no&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;args constructor
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;PureJavaReflectionProvider&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;newInstance&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;PureJavaReflectionProvider&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;59&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;AbstractReflectionConverter&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;instantiateNewInstance&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;AbstractReflectionConverter&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;257&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;converters&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;reflection&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;AbstractReflectionConverter&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;unmarshal&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;AbstractReflectionConverter&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;124&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    at com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;thoughtworks&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;xstream&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;core&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;TreeUnmarshaller&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;convert&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;TreeUnmarshaller&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;...&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;31&lt;/span&gt; more
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;Solutions for above error:&lt;/b&gt;&lt;/span&gt; Just remove old target directory ({&lt;b&gt;PROJECT_HOME}\target&lt;/b&gt;) or run &lt;i&gt;&lt;b&gt;$mvn clean&lt;/b&gt; &lt;/i&gt;command and then execute tomcat goal again. If still appears try to use updated version of &#39;tomcat6-maven-plugin&#39;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/4292147431677763529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2015/05/deploy-war-on-tomcat-from-maven-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/4292147431677763529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/4292147431677763529'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2015/05/deploy-war-on-tomcat-from-maven-command.html' title='Deploy WAR on tomcat from maven command'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-2782738858991497885</id><published>2015-05-03T21:15:00.000-07:00</published><updated>2015-05-03T23:11:10.183-07:00</updated><title type='text'>Create JAX-WS Web Service with Top down approach from scratch using maven (Java to WSDL)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Create Sample Web Project using maven&amp;nbsp;eg.&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;mvn &lt;span style=&quot;color: #997700; font-weight: bold;&quot;&gt;archetype:&lt;/span&gt;generate &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DarchetypeArtifactId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;maven&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;archetype&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;webapp &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DgroupId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;patil&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DartifactId&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;ConcatService &lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;DinteractiveMode&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;false&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Project structure must be created in current directory as follow.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwxm37SXY1XydudfFPzJ5CNM-DAnb49Ot_YsplzOfVohWamh2vgLbmY182cO7EagvxZ3MCfnzTJobXEjt6CWuM0OC9PnqvdbtxOQG10Pb6guipT7lFnBgAR3V0oCJvl0dzWsg1h7N-f3b/s1600/projDirStructure.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwxm37SXY1XydudfFPzJ5CNM-DAnb49Ot_YsplzOfVohWamh2vgLbmY182cO7EagvxZ3MCfnzTJobXEjt6CWuM0OC9PnqvdbtxOQG10Pb6guipT7lFnBgAR3V0oCJvl0dzWsg1h7N-f3b/s1600/projDirStructure.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now start creating service implementation. For ease import this project in eclipse as follow.&lt;br /&gt;
Select Maven project to import in eclipse as follow ( If maven in not installed in your eclipse here are&amp;nbsp;&lt;a href=&quot;http://j2yogi.blogspot.in/2015/05/simple-steps-to-configure-maven-plugin.html&quot; target=&quot;_blank&quot;&gt;Steps to configure Maven in eclipse&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJDrjc5DfL0L9BCG4OZ1Me6ynMimHyJy2x6o1I4waxYd6awJTfqdb6WtZKBVsLbw4BoivGov81NxyctcpSfVTV9WUwjZ0ceSZ5K7-mEY38ZBf2qgh3oyG2I-LmH0rtMRt2xuOfcPjbkWsS/s1600/importMavenProj.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJDrjc5DfL0L9BCG4OZ1Me6ynMimHyJy2x6o1I4waxYd6awJTfqdb6WtZKBVsLbw4BoivGov81NxyctcpSfVTV9WUwjZ0ceSZ5K7-mEY38ZBf2qgh3oyG2I-LmH0rtMRt2xuOfcPjbkWsS/s1600/importMavenProj.PNG&quot; height=&quot;274&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Now Select &quot;Existing Maven Projects&quot; option to import project.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzPjA9rq8G5W3lZXy2MOagAoj807GggpVnT7WBfvQ7QnZpv_BXysjK5P2Yojw-gTKxcVesrMLd9m7wnJlViXUoYCdlSYI20pPG8zBKgpjBSVaH1KDY9op9izexdjWRVv0kvtjZuOwmTofs/s1600/SelectExistingMavneProj.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzPjA9rq8G5W3lZXy2MOagAoj807GggpVnT7WBfvQ7QnZpv_BXysjK5P2Yojw-gTKxcVesrMLd9m7wnJlViXUoYCdlSYI20pPG8zBKgpjBSVaH1KDY9op9izexdjWRVv0kvtjZuOwmTofs/s1600/SelectExistingMavneProj.PNG&quot; height=&quot;211&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Browse and select &quot;ConcatService&quot; project generated using maven. Now click on &quot;Finish&quot; to import project.&lt;br /&gt;
Now you can see imported &quot;ConcatService&quot; project in maven.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIpegTsET6a7R8qf_S6LA28oRYuFCcyrMpmHfFrK1HWUM1alabk1kNaH93NIXkkHrvr7FurTGeAsb8-j21rIEzLD_Y0EoFRAjdRXOdiWqnSMf3PyvB2sDKPzS6FWybFIMRyyQuCoDIrRv5/s1600/importedProject.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIpegTsET6a7R8qf_S6LA28oRYuFCcyrMpmHfFrK1HWUM1alabk1kNaH93NIXkkHrvr7FurTGeAsb8-j21rIEzLD_Y0EoFRAjdRXOdiWqnSMf3PyvB2sDKPzS6FWybFIMRyyQuCoDIrRv5/s1600/importedProject.PNG&quot; height=&quot;289&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Create new Interface and implementation class with annotations which is to be exposed as web service as follow.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Interface.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.WebMethod&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.WebService&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@WebService&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;interface&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ConcatService&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@WebMethod&lt;/span&gt;
    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;concatString&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String str1&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; String str2&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Implementation class.&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.WebService&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.soap.SOAPBinding&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.soap.SOAPBinding.ParameterStyle&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.soap.SOAPBinding.Style&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.jws.soap.SOAPBinding.Use&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@WebService&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;name&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;ConcatServiceImpService&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;// Default biding Document/literal/wrapped&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@SOAPBinding&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;style &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; Style&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;DOCUMENT&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; use&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;Use&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;LITERAL&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt;parameterStyle&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;ParameterStyle&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;WRAPPED&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;ConcatServiceImpl&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;implements&lt;/span&gt; ConcatService &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;concatString&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String str1&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; String str2&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; str1 &lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt; str2&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;/pre&gt;
&lt;/div&gt;
From&amp;nbsp;@SOAPBinding annotation on Web service class we can say this is&lt;b&gt; Document/literal&lt;/b&gt; type web service with parameter types &lt;b&gt;wrapped&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Now configure&amp;nbsp;&lt;a href=&quot;http://cxf.apache.org/docs/maven-java2wsdl-plugin-cxf-20x-only-removed-in-21-and-replaced-with-java2ws.html&quot; target=&quot;_blank&quot;&gt;Apache CXF Plugin&lt;/a&gt;&amp;nbsp;to generate WSDL from Java class using java2wsdl goal provided by this plugin.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- POM plugin --&gt;
&lt;!-- HTML generated using hilite.me --&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;plugin&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.cxf&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cxf-codegen-plugin&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.0.9&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependencies&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.cxf&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cxf-rt-frontend-jaxws&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.0.9&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependencies&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;executions&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;execution&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;id&amp;gt;&lt;/span&gt;generate-wsdl&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/id&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;phase&amp;gt;&lt;/span&gt;process-classes&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/phase&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;outputFile&amp;gt;&lt;/span&gt;src/main/resources/WSDL/ConcatServiceImp.wsdl&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/outputFile&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;className&amp;gt;&lt;/span&gt;com.yogesh.patil.ConcatServiceImp&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/className&amp;gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;goals&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;goal&amp;gt;&lt;/span&gt;java2wsdl&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/goal&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/goals&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/execution&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/executions&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/plugin&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Note- update highlighted part.&lt;br /&gt;
Download complete&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/0B1Y9LeeofOGUc2NScHhHa1daTGc/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;POM&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Create and configure JAX-WS deployment descriptor&amp;nbsp;&lt;b&gt;&lt;i&gt;sun-jaxws.xml&lt;/i&gt;&amp;nbsp;&lt;/b&gt; in &lt;b&gt;&lt;i&gt;{PROJECT_HOME}\src\main\webapp\WEB-INF&lt;/i&gt;&lt;/b&gt; directory as follow.&lt;br /&gt;
&lt;br /&gt;
NOTE -&amp;nbsp;&lt;i style=&quot;font-weight: bold;&quot;&gt;{PROJECT_HOME} &lt;/i&gt;indicates the location of project directory. This directory must contain &lt;i&gt;pom.xml&lt;/i&gt; in our case.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #557799; line-height: 125%;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;endpoints&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://java.sun.com/xml/ns/jax-ws/ri/runtime&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000cc;&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;2.0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;endpoint&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;ConcatServiceImpl&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #0000cc;&quot;&gt;implementation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.yogesh.patil.ConcatServiceImpl&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #0000cc;&quot;&gt;url-pattern=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/ConcatService&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/endpoints&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Update web application configuration&amp;nbsp;&lt;b&gt;&lt;i&gt;{PROJECT_HOME}\src\main\webapp\WEB-INF\web.xml&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #557799; line-height: 125%;&quot;&gt;&amp;lt;!DOCTYPE web-app PUBLIC&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt; &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt; &quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot; &amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;listener&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;listener-class&amp;gt;&lt;/span&gt;
                com.sun.xml.ws.transport.http.servlet.WSServletContextListener
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/listener-class&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/listener&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;ConcatService&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servlet-class&amp;gt;&lt;/span&gt;
         com.sun.xml.ws.transport.http.servlet.WSServlet
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;load-on-startup&amp;gt;&lt;/span&gt;1&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/load-on-startup&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;ConcatService&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/ConcatService&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Add JAX-RT (Runt time) dependency to &lt;b&gt;&lt;i&gt;pom.xml&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #888888; line-height: 125%;&quot;&gt;&amp;lt;!-- JAX-WS RT Dependency --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.sun.xml.ws&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;jaxws-rt&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.2.8&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Now execute $&lt;i&gt;mvn clean install&lt;/i&gt; command. This command create .war file and also generate the WSDL file at mentioned location in plugin &quot;&lt;i&gt;&amp;lt;outputFile&amp;gt;src/main/resources/WSDL/ConcatServiceImp.wsdl&amp;lt;/outputFile&amp;gt;&lt;/i&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
Deployment file must be created in &quot;&lt;b&gt;&lt;i&gt;{PROJECT_HOME}\target\ConcatService.war&quot;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;classes&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;com&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;jaxws&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatString&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.class&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;JAWS&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;generated&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;request&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;classes&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;com&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;jaxws&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatStringResponse&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.class&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;JAWS&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;generated&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;response&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;classes&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;com&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.class&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;classes&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;com&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;yogesh&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;patil&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatServiceImpl&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.class&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;classes&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WSDL&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;ConcatServiceImp&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.wsdl&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.xml&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;WEB-INF&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;sun-jaxws&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.xml&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;ConcatService&lt;/span&gt;&lt;span style=&quot;background-color: #ffaaaa; color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;.jsp&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Following are list of jar present in &lt;i&gt;ConcatService\WEB-INF\lib, &lt;/i&gt;there are some jar which are not being used in our current code but these default jar&#39;s coming with JAXWS-RT dependency.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj27WW4xdxYk4t5mbQqk3AznmQbUgx1XibCG8TJJ9wZX9P2iNVyjHwAljOBDmWa0c9hDWRj97uLH9EeyVHmesH-rEofwgDPONvqG-WenAOm1GVghj5qoFDyAZZGH9H-Bmch2OiR5z7GcohV/s1600/WEB-INF_lib.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj27WW4xdxYk4t5mbQqk3AznmQbUgx1XibCG8TJJ9wZX9P2iNVyjHwAljOBDmWa0c9hDWRj97uLH9EeyVHmesH-rEofwgDPONvqG-WenAOm1GVghj5qoFDyAZZGH9H-Bmch2OiR5z7GcohV/s1600/WEB-INF_lib.PNG&quot; height=&quot;335&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Copy&amp;nbsp;&lt;i&gt;ConcatService.war&amp;nbsp;&lt;/i&gt;file to {TOMCAT_HOME}/webapps directory. Now start your tomcat server and access the&amp;nbsp;deployed web service at following URL (assuming tomcat is configured to run on 8080 port)&lt;br /&gt;
&lt;br /&gt;
&quot;http://localhost:8080/ConcatService/ConcatService&quot;&lt;br /&gt;
&lt;br /&gt;
You can see deploymet as follow.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha_x9etzrxd_sKKwyui09OLkJd96jDqmtTk5-npDw_CEnQ87ydBt2fpMKRXqK4OJkBU22P1qJow3F1TvL9-PNFWDA0Z1X6XHtv1iI3kHciNi3hy1LsiFAkoEF4mIa8kJEoYjXYdbH6cUZu/s1600/tomcatDeployment.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha_x9etzrxd_sKKwyui09OLkJd96jDqmtTk5-npDw_CEnQ87ydBt2fpMKRXqK4OJkBU22P1qJow3F1TvL9-PNFWDA0Z1X6XHtv1iI3kHciNi3hy1LsiFAkoEF4mIa8kJEoYjXYdbH6cUZu/s1600/tomcatDeployment.PNG&quot; height=&quot;124&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Now your web service is ready for testing. You test it by creating web service client or simply by Using tools like &lt;a href=&quot;http://www.soapui.org/&quot; target=&quot;_blank&quot;&gt;SOAP UI&lt;/a&gt;. Create new SOaP UI project.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDpgkBxBB9gPy0XoPlU6zLOB19hMoK7M1Tlhhk3nWn8HthbB0Us8X6QXqYIa8C39TFUV2IxNQ6LfaI7tWJ-G_T2DdR9vrDCaPvvu8OzIDURNq1nBHZZHS2D2FoCHkudw-HlyR4M_4j1Gpc/s1600/creatSOAPUIProj.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDpgkBxBB9gPy0XoPlU6zLOB19hMoK7M1Tlhhk3nWn8HthbB0Us8X6QXqYIa8C39TFUV2IxNQ6LfaI7tWJ-G_T2DdR9vrDCaPvvu8OzIDURNq1nBHZZHS2D2FoCHkudw-HlyR4M_4j1Gpc/s1600/creatSOAPUIProj.PNG&quot; height=&quot;229&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Create Web service client using deployed Web service URL.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDOzRtgXxeHWTVdQM8RMJGtK0NqVItnaIYL5LTQbmgqYcGXB0B8Rg0B276Prpl67_VeVMh4n0pcTK7Nn37fn6bbCAJ2DUc9Av7RCKxIxg_bMVRPQnGJK3fL_8HSTFGJc7RaltdnKN3chLp/s1600/createNEwSoapUIProj.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDOzRtgXxeHWTVdQM8RMJGtK0NqVItnaIYL5LTQbmgqYcGXB0B8Rg0B276Prpl67_VeVMh4n0pcTK7Nn37fn6bbCAJ2DUc9Av7RCKxIxg_bMVRPQnGJK3fL_8HSTFGJc7RaltdnKN3chLp/s1600/createNEwSoapUIProj.PNG&quot; height=&quot;272&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Click Ok. Now you are ready to invoke and test your web service.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI80VjqvH1hKw6kGwNqoMht6BxuBb_eZWZBvhQ9Ho-ins_Q_CX2RhYQutlvK3e1c_19klTtvQuCDXuT1IhcVs-IMjPjKlZgL0VgvyxtKzM1ENo01J4Zm29VRzkZpcttWKyykRI2pDK3gHM/s1600/SOAPUIInvokeWS.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI80VjqvH1hKw6kGwNqoMht6BxuBb_eZWZBvhQ9Ho-ins_Q_CX2RhYQutlvK3e1c_19klTtvQuCDXuT1IhcVs-IMjPjKlZgL0VgvyxtKzM1ENo01J4Zm29VRzkZpcttWKyykRI2pDK3gHM/s1600/SOAPUIInvokeWS.PNG&quot; height=&quot;216&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
now submit this request. You will get the response as follow.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi17j8N0CoCCAm7xHbRH3JXXgU4KkR4py6daTfUFMOMZaVxVubZvTTxZi7rCnLyPxmELQEA-FNCood352T1e9X_Q8hA9vAb1_CCNmFmxGz4sq-NtKwpoHAlmWnd53wOIs9LoZquNWYArHF9/s1600/SOAPResponse.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi17j8N0CoCCAm7xHbRH3JXXgU4KkR4py6daTfUFMOMZaVxVubZvTTxZi7rCnLyPxmELQEA-FNCood352T1e9X_Q8hA9vAb1_CCNmFmxGz4sq-NtKwpoHAlmWnd53wOIs9LoZquNWYArHF9/s1600/SOAPResponse.PNG&quot; height=&quot;168&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You can download:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B1Y9LeeofOGUWlBwTHRuTEJIWjg/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;Source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B1Y9LeeofOGUMEwxT1IydGpkN28/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;Delivery File&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Some Useful links :&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;https://jax-ws.java.net/&quot; target=&quot;_blank&quot;&gt;JAX-WS&lt;/a&gt;&amp;nbsp;Specifications&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jax-ws-commons.java.net/jaxws-maven-plugin/&quot; target=&quot;_blank&quot;&gt;JAX-WS&lt;/a&gt;&amp;nbsp;maven plugin documentation.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html&quot; target=&quot;_blank&quot;&gt;WS-Basic Profile v1 specification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/soap/&quot; target=&quot;_blank&quot;&gt;SOAP Specifications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.w3.org/TR/wsdl&quot; target=&quot;_blank&quot;&gt;WSDL Specification&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Software&#39;s used for this tutorial:&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Windows 7 (64 bit)&lt;/li&gt;
&lt;li&gt;JDK 1.6&lt;/li&gt;
&lt;li&gt;Apache Tomcat 6.0.35&lt;/li&gt;
&lt;li&gt;Apache CXF maven plugin v2.0.9&lt;/li&gt;
&lt;li&gt;JAX-WS RT (Run time) v2.2.8&lt;/li&gt;
&lt;li&gt;Development tool - Eclipse Kepler&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
Suggestions and recommendations are welcome. :)&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/2782738858991497885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2015/05/create-jax-ws-web-service-with-top-down.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/2782738858991497885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/2782738858991497885'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2015/05/create-jax-ws-web-service-with-top-down.html' title='Create JAX-WS Web Service with Top down approach from scratch using maven (Java to WSDL)'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlwxm37SXY1XydudfFPzJ5CNM-DAnb49Ot_YsplzOfVohWamh2vgLbmY182cO7EagvxZ3MCfnzTJobXEjt6CWuM0OC9PnqvdbtxOQG10Pb6guipT7lFnBgAR3V0oCJvl0dzWsg1h7N-f3b/s72-c/projDirStructure.PNG" height="72" width="72"/><thr:total>4</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.856743699999925</georss:point><georss:box>18.2795358 73.534020199999929 18.7613248 74.17946719999992</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-3960998537924041505</id><published>2015-05-01T06:50:00.001-07:00</published><updated>2015-05-01T06:50:48.336-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configure maven in eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><category scheme="http://www.blogger.com/atom/ns#" term="maven plugin in eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="steps to configure maven in eclipse"/><title type='text'>Simple steps to Configure Maven plugin in eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px; text-align: center;&quot;&gt;
&lt;b&gt;Step by step approach to install maven plugin in eclipse.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Maven Eclipse plugin installation step by step: (&lt;b&gt;&lt;i&gt;Bold Italic&lt;/i&gt;&lt;/b&gt; strings you can see as button or options in your eclipse while configuring.)&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_H-4yZg_XE41j4TMiiGik5eSHxCIRdN78zU9ATWQOuKQYHbVIqrDGL-9-N5frvXmGA4Mk4ciiaepDRwUEg21AVuRUG0iF92SRpKbp_h8YMzGlobWpvVXROEPBaurzeEkBgaS4W9HGTcc/s1600/M2PluginInstall.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_H-4yZg_XE41j4TMiiGik5eSHxCIRdN78zU9ATWQOuKQYHbVIqrDGL-9-N5frvXmGA4Mk4ciiaepDRwUEg21AVuRUG0iF92SRpKbp_h8YMzGlobWpvVXROEPBaurzeEkBgaS4W9HGTcc/s1600/M2PluginInstall.PNG&quot; height=&quot;138&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Open Eclipse.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Click on &lt;b&gt;&lt;i&gt;Help&lt;/i&gt;&lt;/b&gt;&amp;nbsp;menu -&amp;gt; Select &lt;b&gt;&lt;i&gt;Install New Software&lt;/i&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Click &lt;b&gt;&lt;i&gt;Add &lt;/i&gt;&lt;/b&gt;button at top right corner&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;New pop up window will open asking to add repository &lt;b&gt;&lt;i&gt;Name&lt;/i&gt;&lt;/b&gt; and &lt;b&gt;&lt;i&gt;Location&lt;/i&gt;&lt;/b&gt;.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Add Name as &quot;&lt;b&gt;&lt;i&gt;M2Eclipse&quot; &lt;/i&gt;&lt;/b&gt;and &lt;b&gt;&lt;i&gt;Location &lt;/i&gt;&lt;/b&gt;as &quot;&lt;a href=&quot;http://download.eclipse.org/technology/m2e/releases&quot; style=&quot;border: 0px; color: #0c65a5; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://download.eclipse.org/technology/m2e/releases&lt;/a&gt;&quot;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Now click OK&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
After this installation of maven plugin will start.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
After successful installation you can check installed plugin in you eclipse: (to be safe restart your eclipse before)&lt;/div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px 0px 1em 30px; padding: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Go to &lt;b&gt;&lt;i&gt;Window &lt;/i&gt;&lt;/b&gt;--&amp;gt; &lt;b&gt;&lt;i&gt;Preferences&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;&quot;&gt;Observe, &lt;b&gt;&lt;i&gt;Maven &lt;/i&gt;&lt;/b&gt;is enlisted at left panel as follow.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgorszKAWjtC9BJ060V_DiEW6jwsmBEO3sV-xqszZY0pFKNhfz_ra3zEM5t2WmMe-XgCkZ850APvvNQlo1EZqXr8WT2qqsTNTeUZhiIJ3iCJjVVqVxZfIB3GOz6uMIO26zcVREkE9KcD3dK/s1600/MavenPlugin.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgorszKAWjtC9BJ060V_DiEW6jwsmBEO3sV-xqszZY0pFKNhfz_ra3zEM5t2WmMe-XgCkZ850APvvNQlo1EZqXr8WT2qqsTNTeUZhiIJ3iCJjVVqVxZfIB3GOz6uMIO26zcVREkE9KcD3dK/s1600/MavenPlugin.PNG&quot; height=&quot;293&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Your maven plugin is configure :).&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/3960998537924041505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2015/05/simple-steps-to-configure-maven-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3960998537924041505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3960998537924041505'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2015/05/simple-steps-to-configure-maven-plugin.html' title='Simple steps to Configure Maven plugin in eclipse'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv_H-4yZg_XE41j4TMiiGik5eSHxCIRdN78zU9ATWQOuKQYHbVIqrDGL-9-N5frvXmGA4Mk4ciiaepDRwUEg21AVuRUG0iF92SRpKbp_h8YMzGlobWpvVXROEPBaurzeEkBgaS4W9HGTcc/s72-c/M2PluginInstall.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-3980646193868236302</id><published>2012-09-01T10:26:00.001-07:00</published><updated>2015-05-03T23:42:05.547-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to test private methods in java"/><category scheme="http://www.blogger.com/atom/ns#" term="how to test private methods in junit"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java reflections"/><category scheme="http://www.blogger.com/atom/ns#" term="junit"/><category scheme="http://www.blogger.com/atom/ns#" term="method"/><category scheme="http://www.blogger.com/atom/ns#" term="private"/><category scheme="http://www.blogger.com/atom/ns#" term="protected"/><category scheme="http://www.blogger.com/atom/ns#" term="test"/><category scheme="http://www.blogger.com/atom/ns#" term="Test private methods using junit"/><title type='text'>Test private methods using JUnit Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp; &amp;nbsp;Testing the private methods separately is very rare situation as usually we indirectly test the private methods by testing the public methods of the same class, as if private method is not getting called by any public method in the class then it is considered as dead code (unused code).&lt;br /&gt;
&amp;nbsp; &amp;nbsp;So what is that exact situation in which we need separate testing of private methods. We divide the public methods which are too long or contains complex logic. And we migrate the code to separate private methods. And it is not a good idea to skip the unit testing of the private methods just because they are not accessible outside the class.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; But while testing the private methods using JUnit framework java security layer prevent us from accessing private methods and variables. But still there is a way we can test private methods that is by using&amp;nbsp;&lt;a href=&quot;http://docs.oracle.com/javase/tutorial/reflect/index.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Java Reflection&lt;/a&gt;&amp;nbsp;API. Using Java Reflection API we can access the private variables and methods of the class.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Consider the following class which we want to test.&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; j2yogi&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;Dummy&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; String str &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;This is the use of reflection.&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getSquare&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; a&lt;span style=&quot;color: #333333;&quot;&gt;){&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; a&lt;span style=&quot;color: #333333;&quot;&gt;*&lt;/span&gt;a&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;

Now I want to test &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;getSquare(int a)&quot;&lt;/span&gt; method using Java Reflection in JUnit TestClass&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt; And also I can access the &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; variable &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;str&quot;&lt;/span&gt; in test class&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; j2yogi&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;j2yogi.example.Dummy&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.lang.reflect.Field&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.lang.reflect.InvocationTargetException&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.lang.reflect.Method&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;junit.framework.TestCase&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;TestDummy&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;extends&lt;/span&gt; TestCase&lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
 
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;testPrivateVariables&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; SecurityException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; NoSuchFieldException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; IllegalArgumentException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; IllegalAccessException&lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  Dummy dummy &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; Dummy&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
  Field strfield &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; dummy&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getClass&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getDeclaredField&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;str&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  strfield&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;setAccessible&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  String string &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; String&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;valueOf&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;strfield&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;dummy&lt;span style=&quot;color: #333333;&quot;&gt;));&lt;/span&gt;
  System&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;string&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  assertEquals&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;This is the use of reflection.&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; string&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;testPrivateMethod&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;throws&lt;/span&gt; NumberFormatException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; IllegalArgumentException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; IllegalAccessException&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; InvocationTargetException &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  Dummy dummy &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; Dummy&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
   Method addMethod&lt;span style=&quot;color: #333333;&quot;&gt;[]&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; dummy&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getClass&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;getDeclaredMethods&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
   addMethod&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;setAccessible&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; res &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; Integer&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;((&lt;/span&gt;String&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;valueOf&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;addMethod&lt;span style=&quot;color: #333333;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;invoke&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;dummy&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;))));&lt;/span&gt;
   System&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;result: &quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt;res&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
   assertEquals&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; res&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;b&gt;How to run this code:-&lt;/b&gt;&lt;/pre&gt;
&lt;pre&gt;Create the j2yogi.example package then create the Dummy class and copy Dummy class&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;code from above snippet.&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;Then create j2yogi.test package and create TestDummy  class and copy the TestDummy class&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;code from above snippet. Now code is ready but we need JUnit dependency for execution of&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;this code. SO &lt;a href=&quot;http://www.jarfinder.com/index.php/jars/versionInfo/42784&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;download JUnit dependency&lt;/a&gt; and add it to class path.&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;Now you can run the test case by running TestDummy class :).&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
This is just a small benefit of freedom provided by Java Reflections API. Similarly you can also test the protected methods. You can also check simple introduction to &lt;a href=&quot;http://www.javamex.com/tutorials/reflection/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Java Reflections&lt;/a&gt;.&lt;br /&gt;
If you want to learn JUnit in detail i found this site very helpful. &lt;a href=&quot;http://www.tutorialspoint.com/junit/index.htm&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;click here to learn JUnit&lt;/a&gt;.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/3980646193868236302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2012/09/test-private-methods-using-junit.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3980646193868236302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3980646193868236302'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2012/09/test-private-methods-using-junit.html' title='Test private methods using JUnit Framework'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7287753607326884184.post-3341690526423409273</id><published>2012-08-29T00:58:00.000-07:00</published><updated>2012-09-04T22:34:13.359-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="Introduction"/><category scheme="http://www.blogger.com/atom/ns#" term="Schema"/><category scheme="http://www.blogger.com/atom/ns#" term="Simple XML basics"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><category scheme="http://www.blogger.com/atom/ns#" term="XML validation"/><category scheme="http://www.blogger.com/atom/ns#" term="xmlns"/><category scheme="http://www.blogger.com/atom/ns#" term="XSD"/><title type='text'>Simple XML basics</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Basically XML is designed to transport and store the data.XML is not replacement to HTML,&amp;nbsp;we can say it is complementary to HTML. HTML is used to display data and XML is used to carry data.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;You must define your own tags, usually these tags are self descriptive.&amp;nbsp;Though XML give us the freedom to create user defined tags with any name and any hierarchy but still we can define the format for XML document using DTD (Document Type Definition) or Schema. DTD and Schema defines the rules for XML document. In object oriented perspective we can say, DTD and Schema is like Class and XML file is object of the class. DTD defines the rules for XML document.&amp;nbsp;&lt;a href=&quot;http://www.validome.org/grammar/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;We can validate the XML file against DTD or Schema&lt;/a&gt;. &amp;nbsp;&lt;a href=&quot;http://www.xmlvalidation.com/&quot; target=&quot;_blank&quot;&gt;We can also validate the XML grammar online&lt;/a&gt;. Schema is W3 recommendation and currently schema is very emerging. In few years DTD will be out of picture. Schema is very much easier to learn as Schema itself is an XML document. But is not true in case of DTD, as DTD itself is an different language. We can provide the schema inside XML or even outside the XML. w can provide the external Schema using &amp;nbsp;schemaLocation parameter in root tag of the XML.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; While defining the user defined tags developers always face the problem of tag name conflict. XML specs provide solution for this problem ie. XML namespace(xmlns). We can define a tags associated with xmlns.&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;root&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:table&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;marked&quot; style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;xmlns:html=&quot;http://www.w3.org/TR/html4/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:td&amp;gt;Apples&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:td&amp;gt;Bananas&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot; /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:table&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;marked&quot; style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;xmlns:furniture=&quot;http://www.w3schools.com/furniture&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:name&amp;gt;Coffee Table&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:name&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:width&amp;gt;70&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:width&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:length&amp;gt;140&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:length&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;furniture&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;:table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot; /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;courier new&#39;; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&amp;lt;/root&amp;gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;courier new&#39;; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;courier new&#39;; font-size: 13px;&quot;&gt;Namespace value (eg&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #e80000; font-family: &#39;courier new&#39;; font-size: 13px;&quot;&gt;xmlns:furniture=&quot;&quot;) &lt;/span&gt;&lt;span style=&quot;font-family: &#39;courier new&#39;; font-size: 13px;&quot;&gt;is&lt;/span&gt;&lt;span style=&quot;font-family: &#39;courier new&#39;; font-size: 13px;&quot;&gt;&amp;nbsp;for reader&#39;s clarity only, its value do not signify anything.&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://j2yogi.blogspot.com/feeds/3341690526423409273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://j2yogi.blogspot.com/2012/08/simple-xml-basics.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3341690526423409273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7287753607326884184/posts/default/3341690526423409273'/><link rel='alternate' type='text/html' href='http://j2yogi.blogspot.com/2012/08/simple-xml-basics.html' title='Simple XML basics'/><author><name>Yogesh</name><uri>http://www.blogger.com/profile/12088636749145918125</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>