Learn how to a build a cloud-first strategyRegister Now


mismatch errors when deploying session bean

Posted on 2006-04-27
Medium Priority
Last Modified: 2013-12-10
i have written a session bean xyzBean,jar and deployed it using weblogic700 server.The first time it deployed successfully.But  i made some code shanges in my bean and recompiled an made a new jar file xyzBean.jar and replaced the old jar file with the new one.Now when i restarted the weblogic server i got error :

Unable to deploy EJB: xyzBean from xyzBean.jar:

There is a mismatch between the bean code and generated  code.xyzBean(Application: xyzBean, EJBComponent: MT
alkBean) .       Please rerun ejbc on the bean code.The error was java.lang.NoSuchFieldException
       at java.lang.Class.getField0(Native Method)
       at java.lang.Class.getField(Class.java:821)
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMDField(ClientDrivenBeanInfoImpl.java:688)
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptor(ClientDrivenBeanInfoImpl.java:8
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptors(ClientDrivenBeanInfoImpl.java:
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:907)
       at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(EJBDeployer.java:1067)
       at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1273)
       at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
       at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
       at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
       at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
       at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
       at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
       at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
       at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLi
Question by:ssilpa
LVL 23

Expert Comment

ID: 16556573

It Signals that the class doesn't have a field of a specified name.

LVL 23

Accepted Solution

Siva Prasanna Kumar earned 500 total points
ID: 16619520
Your just directly replaced the jar or redeployed tha jar????

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question