无法在Web Sphere 8.0中安装具有EJB 2.0和EJB 3.0的EAR

时间:2013-12-11 14:49:15

标签: ejb-3.0 websphere-8

从管理控制台在Web sphere 8.0中安装EAR时遇到问题。 我的EAR有两个EJB jar和两个Web战争。 EJB jar-1& web war-1正在编译java 1.4版本和EJB jar-2& web war-2正在使用java 1.6版本进行编译。

但是在服务器中安装EAR时,我收到异常java.lang.IllegalArgumentException。

我正在使用RAD工具,如果我在RAD工具本身中将EAR添加到服务器并启动服务器则没有问题。

我有点困惑,为什么服务器在从管理控制台安装EAR时抛出此异常。我附加了Exception的Stack跟踪。

请帮我解决这个问题。在此先感谢。

12/10/13 17:43:00:857 IST] 00000022 servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [isclite] [/ibm/console] [AppInstallStatusServlet]: Initialization successful.
[12/10/13 17:43:11:868 IST] 0000002f annotations   E   CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'unknown-ejb-refs' is not a valid feature
[12/10/13 17:43:11:884 IST] 0000002f annotations   E   CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annotated-classes' is not a valid feature
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R java.lang.NullPointerException
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.common.CommonPlugin$Implementation.loadClass(CommonPlugin.java:198)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.common.CommonPlugin.loadClass(CommonPlugin.java:98)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.util.DefaultEcoreBuilder.<clinit>(DefaultEcoreBuilder.java:54)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at java.lang.J9VMInternals.initializeImpl(Native Method)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createEcoreBuilder(XMLHandler.java:2822)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.<init>(XMLHandler.java:397)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.SAXXMLHandler.<init>(SAXXMLHandler.java:44)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.makeDefaultHandler(XMLLoadImpl.java:310)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:141)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:179)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.IBMDataModelImpl.forceMETADataResource(IBMDataModelImpl.java:591)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.IBMDataModelImpl.forceMETAData(IBMDataModelImpl.java:521)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.IBMDataModelImpl.forceEJBMETAData(IBMDataModelImpl.java:513)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.persistAMMData(AnnotativeMetadataManagerImpl.java:377)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.merge(AnnotativeMetadataManagerImpl.java:284)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:132)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:64)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EJBJarFileImpl.processManagedBeansAnnotations(EJBJarFileImpl.java:1351)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EJBJarFileImpl.getManagedBeansDeploymentDescriptor(EJBJarFileImpl.java:1167)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EJBJarFileImpl.getManagedBeansDeploymentDescriptor(EJBJarFileImpl.java:1042)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EJBJarFileImpl.getManagedBeansDeploymentDescriptor(EJBJarFileImpl.java:1035)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.client.ManagedBeansHelper.getAllManagedBeansID(ManagedBeansHelper.java:127)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.ArchiveDeploymentInfo.getManagedBeansID(ArchiveDeploymentInfo.java:1582)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.client.ResourceGroupHelper.skipBndForManagedBeans(ResourceGroupHelper.java:493)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.utils.GetAllResourceRefs.addResRefs(GetAllResourceRefs.java:321)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.utils.GetAllResourceRefs.addResRefs(GetAllResourceRefs.java:270)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.utils.GetAllResourceRefs.addResRefs(GetAllResourceRefs.java:250)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.utils.GetAllResourceRefs.execute(GetAllResourceRefs.java:168)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.BindEarCmd.bindResourceRefs(BindEarCmd.java:1026)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.dfltbndngs.BindEarCmd.bind(BindEarCmd.java:285)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.ArchiveDeploymentInfo.createDefaultBindings(ArchiveDeploymentInfo.java:776)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.AppDeploymentController.handlePreferences(AppDeploymentController.java:503)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.AppDeploymentController.<init>(AppDeploymentController.java:352)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.AppDeploymentController.<init>(AppDeploymentController.java:281)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.AppManagementFactory.readArchive(AppManagementFactory.java:137)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.AppManagementFactory.readArchive(AppManagementFactory.java:91)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.websphere.management.application.client.ResourceValidationHelper.<init>(ResourceValidationHelper.java:214)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.task.ValidateResourceTask.performTask(ValidateResourceTask.java:124)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:312)
[12/10/13 17:43:11:681 IST] 0000002f SystemErr     R    at java.lang.Thread.run(Thread.java:737)
[12/10/13 17:43:53:819 IST] 0000002f webcontainer  I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0239I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] was registered successfully.
[12/10/13 17:43:53:819 IST] 0000002f webcontainer  I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0240I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] has been associated with patterns [""].
[12/10/13 17:43:54:022 IST] 0000002f WebSphereSCAS I   Added Servlet mapping: /dojo
[12/10/13 17:43:54:022 IST] 0000002f WebSphereSCAS I   Added Servlet mapping: /dojo
[12/10/13 17:43:54:022 IST] 0000002f WebSphereSCAS I   Added Servlet mapping: /tuscany
[12/10/13 17:43:54:022 IST] 0000002f WebSphereSCAS I   Added Servlet mapping: /tuscany
[12/10/13 17:43:58:645 IST] 0000002f annotations   E   CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'annotated-classes' is not a valid feature
[12/10/13 17:43:58:692 IST] 0000002f annotations   E   CWWAM0001E: An exception occurred during annotation processing: java.lang.IllegalArgumentException: The feature 'unknown-ejb-refs' is not a valid feature

1 个答案:

答案 0 :(得分:1)

我相信这似乎是在最新的修补程序包中解决的,因此您可能希望在运行时WAS上应用最新的fixpack 9,看看是否有帮助。

指向fixpack的链接:http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27004980#ver80 VT 注意:意见是我自己的,而不是我雇主的意见