[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [JBoss-user] [EJB/JBoss] - Upgrading from 3.2.6 to 4.0.1
From:       bbalmer <nukes () jboss ! org>
Date:       2005-03-31 15:24:40
Message-ID: 4745111.1112282681009.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]

We have multiple JBoss servers running.  One (that runs an EJB) is still at 3.2.6.

I have a web application running on another server and this is being upgraded to \
4.0.1.  The ejb call to the 3.2.6 server is now not working on the 4.0.1 server and I \
can't figure out why.

Here is how I am referencing it:

  | Hashtable props = new Hashtable();
  | try {
  |   props.put(
  | 	Context.INITIAL_CONTEXT_FACTORY,
  | 	"org.jnp.interfaces.NamingContextFactory");
  |   props.put(Context.PROVIDER_URL, IP + ":" + PORT);
  |   props.put(
  | 	Context.URL_PKG_PREFIXES,
  | 	"org.jboss.naming:org.jnp.interfaces");
  |   Context jndiContext = new InitialContext(props);
  |   Object objRef = jndiContext.lookup("PaymenTechHome");
  |   homeRef = 
  |       (PaymenTechHome) PortableRemoteObject.narrow(
  | 						objRef,
  | 						PaymenTechHome.class);
  | } catch (Exception E) {
  |   log.error(E.getMessage());
  | } finally {
  |   props = null;
  | }
  | 

The error I'm getting is:

  | java.lang.reflect.InvocationTargetException
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:324)
  | 
Any help would be greatly appreciated.

View the original post : \
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872181#3872181

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872181



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic