<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Migration from WAS to JBoss - Problem With EJB Deployer
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/avinashmunaga">Avinash Munaga</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/633481#633481">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi all,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am a new to work on Jboss. I am migrating my application (Enterprise Application) from WAS to JBoss. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The ear file consists of <span style="font-size: 12pt;"><strong>web</strong></span> modules, <span style="font-size: 12pt;"><strong>Connector </strong><span style="font-size: 10pt;">modules and <strong>EJB</strong> modules. During migration I encounter errors with deployer. My console looks like this.</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">2011-10-24 20:04:11,695 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/XYZ.ear/ state=PreReal mode=Manual requiredState=Real</span><br/><span style="font-size: 10pt;">org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/XYZ.ear/accelRAvpms.rar/accelRAvpms.rar/</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</span><br/><span style="font-size: 10pt;"> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</span><br/><span style="font-size: 10pt;"> at java.lang.Thread.run(Thread.java:662)</span><br/><span style="font-size: 10pt;">Caused by: java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of accelRAvpms.rar</span><br/><span style="font-size: 10pt;"> at org.jboss.ejb3.deployers.Ejb3ClientDeployer.getDeploymentJndiName(Ejb3ClientDeployer.java:214)</span><br/><span style="font-size: 10pt;"> at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:104)</span><br/><span style="font-size: 10pt;"> at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:61)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)</span><br/><span style="font-size: 10pt;"> ... 26 more</span><br/><span style="font-size: 10pt;">2011-10-24 20:04:11,742 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes</span><br/><span style="font-size: 10pt;">org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):</span></p><p><span style="font-size: 10pt;">*** DEPLOYMENTS IN ERROR: Name -> Error</span></p><p><span style="font-size: 10pt;">vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/XYZ.ear/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/XYZ.ear/accelRAvpms.rar/accelRAvpms.rar/</span></p><p><br/><span style="font-size: 10pt;">DEPLOYMENTS IN ERROR:</span><br/><span style="font-size: 10pt;">  Deployment "vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/XYZ.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of accelRAvpms.rar</span></p><p><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)</span><br/><span style="font-size: 10pt;"> at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)</span><br/><span style="font-size: 10pt;"> at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</span><br/><span style="font-size: 10pt;"> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</span><br/><span style="font-size: 10pt;"> at java.lang.Thread.run(Thread.java:662)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">I have searched the community and found that I have to remove Main- Class attribute from MANIFEST.MF to resolve the issue. But, this didn't work and the issue is still the same.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">Also, in another post I found a suggestion. It says to jboss-structure.xml in the ear file to locate the existing jars and rar files. But, this when added to my Enterprise module removes all the embedded modules from the Original EAR file(XYZ.ear) which can be viewed from Admin Console of JBoss.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">I need some help or suggestions which could help me solve the issue.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">Thanks in Advance <span> :) </span></span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/633481#633481">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>