• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB deployment problems.

 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to port some EJB's from weblogic 7 to jBoss4.0. Having done all the necessary changes in the deployment descriptors I am having problems in deploying the some of the beans

the errors I am getting for a CMP Entity bean are as :


This bean gets deployed perfectly on weblogic 7.
Secondly even when jBoss flags this as WARNING it says in the end,


My bean has the create method defined like this..



is it that weblogic is too lenient while checking the method signatures but jBoss is not ? or is it that this is just a bug in jBoss ?

Regards,
Kaustubh.

PS : I have actually not given the exact bean or method names due to confidentiality reasons.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is it that weblogic is too lenient while checking the method signatures but jBoss is not ?



Going by the error message it does appear that WebLogic allowed you too deploy the application even though the method did not strictly follow the spec. The verification message does tell you what has to be done to fix this:

Bean : XYZBean
Method : public XYZPK ejbCreate(some VO)
Section: 10.6.4
Warning: The throws clause must define the javax.ejb.CreateException.



By the way, you can disable bean verification (but not recommended) by setting the following property to false (by default this is set to true):



in %JBOSS_HOME%/server/< serverName>/deploy/ejb-deployer.xml
 
reply
    Bookmark Topic Watch Topic
  • New Topic