Solved

Jboss Error

Posted on 2011-03-09
8
627 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add projects t working set in maven 2 24
tempdb log keep growing 7 34
SQL Syntax Grouping Sum question 7 27
Casting is giving error in sql server 3 12
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

830 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