• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Exception while creating a jar file for session bean

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting the following exception when I try to create a jar file for a session bean.I have created around 10 entity bean jar files using ejbdeployer tool and everything worked fine.They were also deployed without any error.Now suddenly when I try to do the same thing for session bean it throws me this exception.I am confused!!
The 3 classes(remote+bean+home) for the session bean are located in package structure like com.sam.session.I use a helper class which is in com.sam.helper.
I am using weblogic 5.1(evaluation copy) and structurebuilder to develop the beans(both entity and session).
I would appreciate any help from this forum.I know somebody else has also posted similar question but there is no reply in it.
----------------------------------------------------------------
----------------------------------------------------------------
java.lang.ClassNotFoundException: No suitable home found for bean com.sam.session.UserAdminSessionBean
at weblogic.ejb.ui.jarbuilder.EJBJarSpec.findBeanHome(EJBJarSpec.java, Compiled Code)
at weblogic.ejb.ui.jarbuilder.EJBJarSpec.completeBeans(EJBJarSpec.java, Compiled Code)
at weblogic.ejb.ui.jarbuilder.EJBJarSpec.loadFiles(EJBJarSpec.java:1565)
at weblogic.ejb.ui.deployer.ProviderProject.fileSetChanged(ProviderProject.java, Compiled Code)
at weblogic.ejb.ui.jarbuilder.EJBJarSpec.newFileList(EJBJarSpec.java, Compiled Code)
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the definition of your home and bean interfaces (or post them here) - I've seen this happen when the definitions of the two do not match.
 
Rishi Upadhyay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could create a jar file and deploy my session bean using Structure Builder and Deployment Builder.So I am fine for the time being,but I would still like to know what is wrong with ejbdeployer or my deployment,whichever is the case.I am posting the method signatures of remote,home and bean:
UserAdminSession:

UserAdminSessionHome:

UserAdminSessionBean:

(edited to preserve formatting)
[This message has been edited by George Brown (edited October 27, 2000).]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
you have the sam question as Ho An, I reply his question with code, pls refer to it. I suggest that you write a cmd file if you use winNT. In this cmd file, set path, compile bean/home/interface/helperclass, zip java class into one jar file,deploy them, run client. I found it very convinient, works for any kind of beans( of couse you need do some modification for each bean).
Good luck.
Ade
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic