Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Cmpilation+ JBoss

 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • 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.
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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.
 
Parul Patidar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add jboss-allclient.jar and log4j.jar all necessary files are in these 2 files
 
Let's get him boys! We'll make him read this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!