Solved

Jboss Error

Posted on 2011-03-09
8
616 Views
Last Modified: 2012-05-11
Hi Experts

I am getting the following Error in my Console when starting up my local jboss instance

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@923d6f6 { url=file:/C:/jboss-4.0.2/server/default/deploy/DealApp.ear }
  deployer: org.jboss.deployment.EARDeployer@cad437
  status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
  state: FAILED
  watch: file:/C:/jboss-4.0.2/server/default/deploy/DealApp.ear
  altDD: null
  lastDeployed: 1299679671613
  lastModified: 1299679670506
  mbeans:

16:07:51,730 WARN  [verifier] EJB spec violation:
Bean   : AccountBean
Method : public abstract double getAccountLimit()
Section: 12.2.10
Warning: For each method defined in the local interface, there must be a matching method in the entity bean's class that has the same name and argument types.

16:07:51,767 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp6872186541813213555DealApp.ear-contents/account-ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
0
Comment
Question by:abooysen2
  • 5
  • 3
8 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
Comment Utility
this method getAccountLimit() is not there entity bean class.check this method entity bean class .
 
0
 

Author Comment

by:abooysen2
Comment Utility
Corrected that but now I am getting this Error Message now

16:31:48,820 WARN  [verifier] EJB spec violation:
Bean   : AccountBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'account.AccountBean': Unexpected error during load of: account.AccountBean, msg=account/AccountBean (Unsupported major.minor version 49.0)

16:31:48,829 WARN  [verifier] EJB spec violation:
Bean   : TicketBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'account.TicketBean': Unexpected error during load of: account.TicketBean, msg=account/TicketBean (Unsupported major.minor version 49.0)

16:31:48,835 WARN  [verifier] EJB spec violation:
Bean   : TicketArchiveBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'account.TicketArchiveBean': Unexpected error during load of: account.TicketArchiveBean, msg=account/TicketArchiveBean (Unsupported major.minor version 49.0)

16:31:48,840 WARN  [verifier] EJB spec violation:
Bean   : IdKeyBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'account.IdKeyBean': Unexpected error during load of: account.IdKeyBean, msg=account/IdKeyBean (Unsupported major.minor version 49.0)

16:31:48,845 WARN  [verifier] EJB spec violation:
Bean   : BankInfoBean
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info   : Class not found on 'bank.BankInfoBean': Unexpected error during load of: bank.BankInfoBean, msg=bank/BankInfoBean (Unsupported major.minor version 49.0)
0
 
LVL 20

Expert Comment

by:chaitu chaitu
Comment Utility
this is related to jdk conflict version.which java version are you using.use 1.5 or 1.6 ;which version of J2EE are u using..some conflicts are coming.
0
 

Author Comment

by:abooysen2
Comment Utility
I did sometimes and the Error on comment ID 35083197 is sorted however I am still getting the Error on comment ID 26873978. I had a look at my ejb-jar.xml and contains my new changes but when I unzip my Ear file it does not contain the new changes in the of the eih-jar.xml
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:abooysen2
Comment Utility
rectified this first Error got a new Error on on violation

Bean   : AccountBean
Method : public String ejbCreate(String, String, String, String, String, String, String, double, double, double, double) throws CreateException
Section: 10.6.5
Warning: For each ejbCreate(...) method, the entity bean class must define a matching ejbPostCreate(...) method.


But everything looks like in the method

  public String ejbCreate(String accountNumber, String branch, String accountId, String accountSuffix, String clientName, String accountType, String accountStruct, double accountBalance, double rate, double interest, double accountLimit)
    throws CreateException
  {
    Debug.print("AccountBean ejbCreate");
    setAccountNumber(accountNumber);
    setBranch(branch);
    setAccountId(accountId);
    setAccountSuffix(accountSuffix);
    setClientName(clientName);
    setAccountStruct(accountStruct);
    setAccountType(accountType);
    setAccountBalance(accountBalance);
    setRate(rate);
    setInterest(interest);
    setAccountLimit(accountLimit);
   

    return null;
  }
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 125 total points
Comment Utility
this method is there in ejb class.for every create method there should be  ejbPostCreate method should exists in ejb class as well.

public String ejbPostCreate(String accountNumber, String branch, String accountId, String accountSuffix, String clientName, String accountType, String accountStruct, double accountBalance, double rate, double interest, double accountLimit)
    throws CreateException
  {
    Debug.print("AccountBean ejbCreate");
    setAccountNumber(accountNumber);
    setBranch(branch);
    setAccountId(accountId);
    setAccountSuffix(accountSuffix);
    setClientName(clientName);
    setAccountStruct(accountStruct);
    setAccountType(accountType);
    setAccountBalance(accountBalance);
    setRate(rate);
    setInterest(interest);
    setAccountLimit(accountLimit);
   

    return null;
  } public String ejbCreate(String accountNumber, String branch, String accountId, String accountSuffix, String clientName, String accountType, String accountStruct, double accountBalance, double rate, double interest, double accountLimit)
    throws CreateException
  {
    Debug.print("AccountBean ejbCreate");
    setAccountNumber(accountNumber);
    setBranch(branch);
    setAccountId(accountId);
    setAccountSuffix(accountSuffix);
    setClientName(clientName);
    setAccountStruct(accountStruct);
    setAccountType(accountType);
    setAccountBalance(accountBalance);
    setRate(rate);
    setInterest(interest);
    setAccountLimit(accountLimit);
   

    return null;
  }
0
 

Author Comment

by:abooysen2
Comment Utility
Thank you very much for the help. Everything is in order now
0
 

Author Closing Comment

by:abooysen2
Comment Utility
Thank you very much for the help. Everything is in order now
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

743 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

17 Experts available now in Live!

Get 1:1 Help Now