Problem when deploying Java EE 1.4 to Java EE 5 upgraded EAR
"Hans J. Prueller" <[email protected]> Fri, 28 Jan 2011 13:57:21 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | LBS logics GmbH |
| Message-ID | <1296219441.14172.8.camel@kodos> |
Hi Guys, as the deployment of our Java EE 1.4 EAR on JOnAS 5.2 works OK now, we started to upgrade the EAR to a Java EE 5 EAR. On deployment of the test-archive, we get the following error: 2011-01-28 13:51:01,419 : DeployableMonitor.checkNewArchives : Problem when trying to find and deploy new archives org.ow2.jonas.deployablemonitor.DeployableMonitorException: Cannot deploy the deployable 'EAR 'ims.ear', application.xml provided, Content: ' at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:501) at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:306) at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:216) Caused by: org.ow2.util.ee.deploy.api.deployer.DeployerException: Unable to deploy deployable 'EAR 'ims.ear', application.xml provided, Content: ' at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:105) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:129) at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:489) ... 2 more Caused by: java.lang.IllegalStateException: No metadata defined for the EJB class 'com/lbslogics/ims/system/IMSConstants' at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadata.getBeanEjbJarClassMetadataForEjbName(EjbJarDeployableMetadata.java:221) at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarClassMetadata.getLinkedClassMetadata(EjbJarClassMetadata.java:927) at org.ow2.easybeans.deployment.annotations.helper.bean.InterfaceAnnotatedHelper.resolve(InterfaceAnnotatedHelper.java:63) at org.ow2.easybeans.deployment.annotations.helper.ResolverHelper.resolve(ResolverHelper.java:85) at org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:158) at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:291) at org.ow2.jonas.ear.internal.EarDeployer.doDeploy(EarDeployer.java:736) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer $1.execute(AbsDeployer.java:96) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer $1.execute(AbsDeployer.java:95) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:94) ... 4 more What does this mean exactly? The Class "com/lbslogics/ims/system/IMSConstants" ist no EJB at all (it's also not annotated with @Stateless..), it's one of several hundred "other" classes that is contained in the ejb-jar.jar What did we do wrong ? (basically we did the following: deleted ejb-jar.xml annotated all old EJB's with @Stateless, @Remote, @Local ) regards, Hans