I had deployed a simple session bean which has method that displays simple text. For testing purpose, I had succesfully Deployed the same on BAS, Oracle9iAS, WebLogic & WebSphere App Servers..
With JBoss, even very simple for deployment (copy paste ! thanks to JBoss deveopers).
But getting java.lang.NullPointerException from client.
Home interface getting properly, remote method also creating.
Here is the code I am using for Client -
Context ctx = new InitialContext();
Object ref = ctx.lookup("test/testQryClass");
testQryClassHome qryObject = (testQryClassHome) PortableRemoteObject.narrow(ref, testQryClassHome.class);
System.out.println("Home interface Done");
System.out.println("Remote Creation Done ..: "+qry);
Here is the Client O/P -
Home interface Done
Remote Creation Done ..: test/testQryClass:Stateless
Exception Occur : null
Exception : java.lang.NullPointerException
Any suggestion/clue to solve this problem will be helpful
I had solved that problem by editing the jboss.xml file-
contents of my new jboss.xml file is like this-
I had removed the other stuff... after this line in the same file...