Solved

Jboss Error

Posted on 2011-03-09
8
624 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
ID: 35083144
this method getAccountLimit() is not there entity bean class.check this method entity bean class .
 
0
 

Author Comment

by:abooysen2
ID: 35083197
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
ID: 35090888
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:abooysen2
ID: 35092012
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
 

Author Comment

by:abooysen2
ID: 35092440
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
ID: 35092627
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
ID: 35155530
Thank you very much for the help. Everything is in order now
0
 

Author Closing Comment

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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
The viewer will learn how to implement Singleton Design Pattern in Java.

786 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