tag:blogger.com,1999:blog-67504688530469781172024-03-14T06:31:32.664-07:00jBoss AS 7Public Gold Investment - Gold Barhttp://www.blogger.com/profile/15252276530468003135noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6750468853046978117.post-30311716982717291622012-09-14T22:29:00.002-07:002012-09-17T02:38:02.766-07:00jBoss AS 7 class loading resolution<head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10055525-8']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<div style="text-align: center;">
<b><br /></b></div>
<div style="text-align: center;">
<b>Having issue with reading JAR files from deploed WAR files in jBoss AS 7?</b></div>
<div style="text-align: center;">
<b><br /></b></div>
<div style="text-align: center;">
<b>Maybe this might help !!!</b></div>
<div style="text-align: center;">
<b><br /></b></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<b><br /></b></div>
<div style="text-align: center;">
<div style="text-align: left;">
<b>Step 1 : Deploy your WAR file into </b></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyq-mcd7hgMHGjo2yxdMzO32x27aDnsqm1ica7_moTgDNEsZgTPepEV59J7YIZzj7DJ2hP0RJbKh1p7UEW5BAJ3oMyqz6zNnrEj90b0F4YXjVuRZ1oDzcx62_Nh1y4Py-GwGAqzxS2RsYP/s1600/Step1+Deployment.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyq-mcd7hgMHGjo2yxdMzO32x27aDnsqm1ica7_moTgDNEsZgTPepEV59J7YIZzj7DJ2hP0RJbKh1p7UEW5BAJ3oMyqz6zNnrEj90b0F4YXjVuRZ1oDzcx62_Nh1y4Py-GwGAqzxS2RsYP/s1600/Step1+Deployment.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Step 2 : Place your jar files inside the path in "module" folder. Also please create module.xml, this is important to bind the JARs . Remember you need to put it in "main" folder.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXo-_Drxl3M8qwpudVUTsD1pa4aoPes2h-yUc4IksZTeklZ9f57Eic2teVStMKpX-q4uBKFyreJZmK2Z6eh-hHkAJdufmd0Y1QKERrk995oQ1E1CYQE5EHGyrbQN_UBq3Na9yI9wn1uL6z/s1600/Step+2+-+Place+JAR+files.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXo-_Drxl3M8qwpudVUTsD1pa4aoPes2h-yUc4IksZTeklZ9f57Eic2teVStMKpX-q4uBKFyreJZmK2Z6eh-hHkAJdufmd0Y1QKERrk995oQ1E1CYQE5EHGyrbQN_UBq3Na9yI9wn1uL6z/s1600/Step+2+-+Place+JAR+files.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Step 3 : Add your module.xml something like this.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZHGTpujwNvbtyres_tjKGdCfcF2fWF1gBH0guZgQjX9WacKem4IIiGJ6Y6V5dkcM8S2SQCmQPAb7tsPBMPPyclnax2d0XfjVysUBI_vj9bSBEhw5PpfJ3RGwOqBARV2KrogV_FptL2Lyi/s1600/Step+3+-+Bind+the+JARs.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZHGTpujwNvbtyres_tjKGdCfcF2fWF1gBH0guZgQjX9WacKem4IIiGJ6Y6V5dkcM8S2SQCmQPAb7tsPBMPPyclnax2d0XfjVysUBI_vj9bSBEhw5PpfJ3RGwOqBARV2KrogV_FptL2Lyi/s1600/Step+3+-+Bind+the+JARs.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Step 4 : In your application(inside WAR), add jboss-deployment-structure.xml to tell jBoss where to look for the libs</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFRu5BwCKzwvsr0QJEqdEQzgmEb8wJLcCSsmRZKAvuw8KSIA-BAOC3PV6llKNRbUzLJrJxPe_os0PFmAUeg2Wai65-K8xbKweAJjHYG4six_0wgDjFJ0d44t8JvLk41VND9BWuqO_rtsT/s1600/Step+5+-+Letting+App+knows+where+to+look+JARs.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFRu5BwCKzwvsr0QJEqdEQzgmEb8wJLcCSsmRZKAvuw8KSIA-BAOC3PV6llKNRbUzLJrJxPe_os0PFmAUeg2Wai65-K8xbKweAJjHYG4six_0wgDjFJ0d44t8JvLk41VND9BWuqO_rtsT/s1600/Step+5+-+Letting+App+knows+where+to+look+JARs.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
</div>
Public Gold Investment - Gold Barhttp://www.blogger.com/profile/15252276530468003135noreply@blogger.com1Puchong, Selangor, Malaysia3.013086 101.61380412.8862324999999998 101.4558756 3.1399395 101.77173259999999