• Post Reply Bookmark Topic Watch Topic
  • New Topic

Importing a package into an EJB project from a Web project  RSS feed

 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tryign to use classes from a Web Project in my EJB project. When I try to do an import on the package I require, I get an error message: "the import .... cannot be resolved".

I have included the Web Project in my Build Path for the EJB project. I have tried placing this in different positions in the order, but to no avail.
I am working on WSAD 4.02
Am I missing something?
I would really appreciate some help here
Thanks
Kathy
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, don't do that. Put the common classes in a utility JAR file that is referenced on the MANIFEST file of both the WAR file and the EJB-JAR file. If you are working in WebSphere studio, this can all be done automatically by using the Zip Creation tool you can download from the WebSphere Developer's domain. It's available here.
Kyle
 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that - its working now
Kathy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!