Hi all,
I've a problem using Tomcat 4 with JBoss 3.0.6, as I can't reach JBoss
Server with the same instructions that run from a standalone application. I
didn't configure Tomcat for JNDI, but I wrote everything inside the code,
follows the Exception I found and the related piece of code (the exception
occurs between the 2 log messages).
Thanks in advance for your help!

Stefano Moro


******************  Exception  *******************

NamingException in PushMessage: 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: Group/Apache]


********************  Code  ********************

public PushMessage(String terminal, String message)
{
  this.terminal = terminal;
  this.message = message;

  jndiProps = new java.util.Properties() ;
  jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
  jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
  jndiProps.setProperty("java.naming.provider.url","jnp://localhost:1099");
}

[...]

   Context context = null;
   QueueConnectionFactory qcf = null;

   try
   {
      context = new InitialContext(jndiProps);

      LogSrv.logMessage("************ debug 1 *************");

      qcf = (QueueConnectionFactory) context.lookup(
         QUEUE_CONNECTION_FACTORY_JNDI_NAME);

     LogSrv.logMessage("************ debug 2 *************");
   }
   catch (NamingException Ne)
   {
      LogSrv.logMessage("NamingException in PushMessage: " + Ne.toString());
      Ne.printStackTrace();
   }

[...]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to