• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 654
  • Last Modified:

Jboss Error

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
abooysen2
Asked:
abooysen2
  • 5
  • 3
1 Solution
 
chaitu chaituCommented:
this method getAccountLimit() is not there entity bean class.check this method entity bean class .
 
0
 
abooysen2Author Commented:
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
 
chaitu chaituCommented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
abooysen2Author Commented:
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
 
abooysen2Author Commented:
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
 
chaitu chaituCommented:
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
 
abooysen2Author Commented:
Thank you very much for the help. Everything is in order now
0
 
abooysen2Author Commented:
Thank you very much for the help. Everything is in order now
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now