I'm currently using Tomcat 3.2.1 with Jboss 2.1 under JDK1.3.
JBoss seems to run fine and deploy my EJBs: -
[Container factory] Deploying TeamWorkspace
[Container factory] Deploying Security
[Container factory] Deploying Profile
[Container factory] Deploying Preferences
[Container factory] Deploying Nav
[Container factory] Deploying Expertise
[Container factory] Deploying EventService
[Container factory] Deploying Email
[Container factory] Deploying DocMgt
[Container factory] Deploying Contacts
However, when I run Tomcat, I'm getting the message: -
Exception: Unable to create instance of EJB
This is produced from code which does a lookup as follows: -
env = new Hashtable();
env.put("java.naming.factory.initial" ,
"org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.provider.url" , "localhost:1099");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming");
try
{
Context ctx=new InitialContext(env);
SecurityHome home =
(SecurityHome)ctx.lookup(Constants.get("ejb.name.security"));
Security ejb = home.create();
user=ejb.getUserDetails(userName);
etc.....
I've tried doing System.SetProperties and using a jndi.properties
instead of using a Hashtable and it seems to make no difference.
Does anyone have any ideas where I could be going wrong ?
Thanks for any help.
Dave
Dave Horner
Symularity Limited
Leeds Innovation Centre
103 Clarendon Road
Leeds, LS2 9DF
Tel: 0113 384 5723
Fax: 0113 384 5701
Mob: 07973 325881
The information contained in this e-mail is intended for the named
recipients only. It may contain privileged and confidential information.
If you are not the addressee or the person responsible for delivering
this to the addressee, you may not copy, distribute or take action in
reliance on it. If you have received this e-mail in error, please notify
us immediately by returning the original message to the sender by
e-mail.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user