• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB Cmpilation+ JBoss

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, guys. I have a problem compiling a simple interface:
import java.rmi.*;
import javax.ejb.*;
public interface Order extends EJBObject
{
void myMethod(int value) throws RemoteException;
void delete(int value) throws RemoteException;
}
The following error is being shown:
Package javax.ejb.* cannot be found.
Class EJBObject cannot be found.
-----------------------------------------------
I am using JBoss as server.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try adding the lib dir oof jboss to ur classpath.
\jboss4\server\default\lib;
Maybe u'll have to include the jboss.jar situated in above path explicitly in the classpath.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add jboss-allclient.jar and log4j.jar all necessary files are in these 2 files
reply
    Bookmark Topic Watch Topic
  • New Topic