0 Replies Latest reply on Apr 25, 2006 3:34 AM by sierras

    WEB - EJB3 Application PROBLEM. URGENT HELP PLEASE!

    sierras

      This is the begining code of our web application in order to access to the EJB context

      Hashtable props = new Hashtable();
      props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      props.put(Context.PROVIDER_URL, "jnp://localhost:1099");

      Context ctx = new InitialContext(props);

      if ( ctx != null )
      {
      System.out.println("We got a context.");
      }
      Object o = null;

      o = ctx.lookup("cat.htmc.bussines.interfaces.CountryDAO");
      if ( o instanceof CountryDAO )
      {
      O.K. if run as a java application code.
      null if run under a jsp configuration under TOMCAT.
      }


      And excerb of the exception that we get is following

      RemoteException occurred in server thread; nested exception is:
      java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.net.MalformedURLException: no protocol:
      Files/JBOSS/jboss-4.0.3SP1/server/default/tmp/deploy/tmp17339EPSAWebSiteApplication-exp.war/WEB-INF/classes/
      2006-04-25 09:18:59,796 INFO [STDOUT] error unmarshalling arguments; nested exception is:
      java.net.MalformedURLException: no protocol:
      Files/JBOSS/jboss-4.0.3SP1/server/default/tmp/deploy/tmp17339EPSAWebSiteApplication-exp.war/WEB-INF/classes/
      2006-04-25 09:18:59,796 INFO [STDOUT] no protocol:
      Files/JBOSS/jboss-4.0.3SP1/server/default/tmp/deploy/tmp17339EPSAWebSiteApplication-exp.war/WEB-INF/classes/


      Anyone can give any idea about what to look for????

      Thanks in advance.