• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and classpaths

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

I was trying to run a deployed EJB but I got a ClassNotFoundException for java.rmi.Remote....I have both JAVA_HOME and J2EE_HOME set.But now that I think about it..shouldn't it be JEE_HOME(JEE5?).When I was using servlets I always included servlet-api.jar from my netbeans install onto the classpath but now I realise that I don't know how to add the JEE library...

Please advise
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's ok..It's working now!I can deploy EJB's!!
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Fancy sharing?

MG
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it was working..now I reinstalled glassfish and I have the same problem again....Even if I explicitly add j2ee.jar to the classpath when compiling using -cp.

This is driving me crazy.Shouldn't setting J2EE_HOME automatically take care of this?Also,I think that I should mention if I use ant to deploy or run an application that has a build.xml it works perfectly...I just have problems compiling...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic