Hi All,
I am installed LiveCycleAssembler.I am trying to invoke Assembler programatically using EJB api.When I run the below sample code which is mentioned in the documentation I am getting javax.naming.NamingException.I am using Windows 2003 server and JBoss is the my Application Server.
Here I am writng the code below.
class Customs
{
public static void main(String[] args)
{
Assembler7 asm = null;
Hashtable propsJNDI = new Hashtable();
propsJNDI.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
propsJNDI.put("java.naming.provider.url","jnp://localhost:1099");
propsJNDI.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
try
{
Assembler7Home home = Assembler7Util.getHome(propsJNDI);
asm = home.create();
}
catch (javax.naming.NamingException e)
{
System.out.println("Assembler 7 NamingException -- " + e.getMessage());
}
catch (java.rmi.RemoteException e)
{
System.out.println("Assembler 7 RemoteException -- " + e.getMessage());
}
catch (javax.ejb.CreateException e)
{
System.out.println("Assembler 7 CreateException -- " + e.getMessage());
}
catch (Exception e)
{
System.out.println("General Exception -- " + e.getMessage());
}
}
}
When I am running this sample I am getting the following error:
Assembler 7 NamingException -- null
what may be the reason for this and how to resolve this???
Thanks in advance.