-
1. Re: Unable to find a session bean in a servlet
adrian.brock Apr 20, 2002 8:00 AM (in response to rilux)Quite a few people have reported this or a similar
problem.
I think this has been fixed in latest CVS, but I'm
going to test this for myself this weekend.
Regards,
Adrian -
2. Re: Unable to find a session bean in a servlet
rilux Apr 21, 2002 9:53 AM (in response to rilux)OK, well I seem to have fixed this without getting anything from CVS. Here is my setup and how I solved it.
I have the EJB .jar file and the servlet .war file deployed separately - to together in a .ear file. Consequenly I have a lib directory in the .war file containing a jar file with the interfaces I was using. On an unrelated problem with a different class I was trying to use a 'find' method I had written. I was getting exceptions when trying to execute this method and was being told it didn't exist.
Well, obviously probably, the jar in WEB-INF/lib was out of date. I couldn't be arsed to make a new one so I just copied the EJB jar file into that directory and packaged it all up.
When I deployed the web application and EJB's not only had was the 'find' method working but the session bean also worked and I was a slightly happier camper.
Rilux