Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NoSuchObjectException  RSS feed

 
Linda Andersson
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have a web project and an ejb project. In the web project I have a class called Item. I want to
fill this object with information from the database in the ejb project.
I can write the code in the bean that fills the object Item with information and I can compile it. When
I try to run the code I get the exception NoSuchObjectException.
I can not make a jar file of the classes in the web project (its a war file) so I wounder if i have to put the
class Item in a seperate project and make a jar-file of it and import it into both the web and te ejb project? Or
is there another way?

//Linda
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, you will need a jar containing classes used by both projects and have that included in the classpath of both the web and EJB applications.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!