[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Jboss Error

Posted on 2011-03-09
8
Medium Priority
?
650 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 

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 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

650 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