Calling ejb from a servlet

Discussions

General J2EE: Calling ejb from a servlet

  1. Calling ejb from a servlet (1 messages)

    Hi
    I am having an application using jboss 4.0.3SP1 and tomcat 5.0.28
    When i try calling the ejb deployed in jboss using following code
    InitialContext jndiContext = new InitialContext();
    Object ref = jndiContext.lookup("interest/Interest");

    I get error saying --

    javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.net.MalformedURLException: no protocol: tomcat5.0/jakarta-tomcat-5.0.28/webapps/servlets-examples/WEB-INF/classes/]


    Tomcat is installed in directory having spaces (D:\jakarta tomcat5.0\jakarta-tomcat-5.0.28)

    Same code works fine if tomcat is installed in directory having no space . Please let me know if anyone faced this issue and how to tackle it


    Any help is appreciated
  2. Calling ejb from a servlet[ Go to top ]

    That is the same old story; there a lot of similar posts in JBoss Forum. For example, see:
    http://jboss.org/index.html?module=bb&op=viewtopic&t=49055

    You can't but change your Tomcat installation location.