<!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;">
    Problem with Jboss Tools Maven
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/sanches">Alexander Lengson</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/550605#550605">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><div>Hello <a class="jive-link-profile-small" href="http://community.jboss.org/people/snjeza">Snjezana</a>,</div><div> </div><div> </div><div>I've got similar problem with multiple nested lib directories with Eclipse Galileo 3.5.2.</div><div>Luckily, I found your message and resolved it with&#160; (Patches 2010 04 13). btw, I clicked Maven -&gt; Update project settings to fix the issue with nested lib dirs.</div><div> </div><div> </div><div>However, another problem still hasn't gone with that patch:</div><div>For the project which should compose EAR file, eclipse generates META-INF/application.xml which is rather different from the one built by pure maven command-line. And that one generated and deployed by eclipse can not be recognized by <a class="jive-link-external-small" href="http://jboss-5.1.0.ga/">jboss-5.1.0.GA</a>. Stack trace:</div><div> </div><div> </div><div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">18:36:04,769 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss/</span><a class="jive-link-external-small" href="http://jboss-5.1.0.ga/server/standard/deploy/lightear.ear/"><span style="font-size: 8pt; font-family: 'courier new', courier; ">jboss-5.1.0.GA/server/standard/deploy/lightear.ear/</span></a><span style="font-size: 8pt; font-family: 'courier new', courier; "> state=PreReal mode=Manual requiredState=Real</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">org.jboss.deployers.spi.DeploymentException: Error deploying lightear.ear: failed to initialize bean container </span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.Main.boot(Main.java:221)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.Main$1.run(Main.java:556)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at java.lang.Thread.run(Thread.java:619)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">Caused by: java.lang.RuntimeException: failed to initialize bean container </span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.EJBContainer.&lt;init&gt;(EJBContainer.java:257)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.mdb.MessagingContainer.&lt;init&gt;(MessagingContainer.java:87)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.mdb.MDB.&lt;init&gt;(MDB.java:63)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3AnnotationHandler.getMDB(Ejb3AnnotationHandler.java:339)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:218)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:734)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:685)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:667)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:630)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:507)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">... 33 more</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">Caused by: java.lang.IllegalStateException: Null beannMetaData</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:315)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:235)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.&lt;init&gt;(BeanInterceptorMetaDataBridge.java:138)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.&lt;init&gt;(AdditiveBeanInterceptorMetaDataBridge.java:48)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:195)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.EJBContainer.&lt;init&gt;(EJBContainer.java:253)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">... 43 more</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">Caused by: java.lang.NullPointerException</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.setupMetaDataLists(BeanInterceptorMetaDataBridge.java:268)</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">... 48 more</span></div><div style="padding-left: 30px;"><span style="font-size: 8pt; font-family: 'courier new', courier; ">18:36:04,898 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):</span></div><div> </div><div> </div><div>Normally, Maven generates following content for application.xml:</div><div>...</div><div><div><span style="font-family: 'courier new', courier;">&#160; &lt;module&gt;</span></div><div><span style="font-family: 'courier new', courier;">&#160;&#160;&#160; &lt;ejb&gt;environment.jar&lt;/ejb&gt;</span></div><div><span style="font-family: 'courier new', courier;">&#160; &lt;/module&gt;</span></div></div><div>...</div><div>(and appropriate directory structure)</div><div> </div><div> </div><div>But fresh installed eclipse galileo plus <a class="jive-link-external-small" href="http://download.jboss.org/jbosstools/updates/stable/galileo/">JBoss Tools 3.1 :: <acronym title="Eclipse Galileo">Eclipse 3.5.2</acronym></a> generates different one:</div><div>...</div><div><div><span style="font-family: 'courier new', courier;">&#160; &lt;module&gt;</span></div><div><span style="font-family: 'courier new', courier;">&#160;&#160;&#160; &lt;ejb&gt;environment-1.0-SNAPSHOT.ejb&lt;/ejb&gt;</span></div><div><span style="font-family: 'courier new', courier;">&#160; &lt;/module&gt;</span></div></div><div>...</div><div>Differences:</div><div>1) "-1.0-SNAPSHOT" is appended</div><div>2) .ejb extension is instead of .jar</div><div>Deployed on the server directory also contains folders named ...-1.0-SNAPSHOT.ejb</div><div> </div><div>As a result of such deployment descriptor+directory structure, Jboss can not recognize deployment and throws exception (above)</div><div> </div><div>Is this also known problem?</div><div> </div><div> </div><div>Thanks,</div><div>Alexander.</div></div></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/550605#550605">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>