mismatch errors when deploying session bean

Posted on 2006-04-27
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(
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMDField(
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptor(
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptors(
       at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(
       at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(
       at weblogic.ejb20.deployer.EJBDeployer.prepare(
       at weblogic.ejb20.deployer.EJBModule.prepare(
       at weblogic.j2ee.J2EEApplicationContainer.prepareModule(
       at weblogic.j2ee.J2EEApplicationContainer.prepare(
       at weblogic.j2ee.J2EEApplicationContainer.prepare(
       at weblogic.j2ee.J2EEApplicationContainer.prepare(
Question by:ssilpa
    LVL 23

    Expert Comment


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

    LVL 23

    Accepted Solution

    Your just directly replaced the jar or redeployed tha jar????

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now