[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-13 Thread craig1980
Hi all i have at about fixed it... here it's what i have done.. i have 
setted in the HP proliant pc with linux red-hat in the file /etc/hosts this 
thing:

anonymous wrote : 192.168.11.224 localhost mydomain.localhost

and i have commented this

anonymous wrote : 127.0.0.1 localhost mydomain.localhost

So my windows xp client seems to establish the connection with my linux red-hat 
JMS provider... only that when i start JBoss it stops here:

anonymous wrote : 
  | 2005-01-13 10:25:32,620 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting 
jboss.j2ee:binding=InvokerMdb,jndiName=local/RemoteMDB,plugin=invoker,service=EJB
  | 2005-01-13 10:25:32,620 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
  | 2005-01-13 10:25:32,620 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: 
java:/RemoteJMSProvider
  | 2005-01-13 10:25:32,620 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: [EMAIL 
PROTECTED]
  | 2005-01-13 10:25:32,630 TRACE [org.jboss.ejb.plugins.jms.DLQHandler] 
Constructing
  | 2005-01-13 10:25:32,630 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] 
Creating DLQHandler

When it tries to create the DLQHandler it doesn't go; moreover if i try to 
shutdown JBoss on my client pc by using the shutdown.bat i have an error that 
says, correctly, that the server is not active; if i try by using [ctrl]+[c] it 
doesn't work... i must close the windows and confirm to window that i want to 
terimnate now this process how can i solve it?
Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861896#3861896

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861896


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-12 Thread craig1980
Hi all i have tried this simple client by using this code:

package pub;
  | 
  | import javax.jms.TopicConnectionFactory;
  | import javax.jms.TopicSession;
  | import javax.jms.Topic;
  | import javax.naming.InitialContext;
  | import javax.naming.Context;
  | import javax.jms.TopicConnection;
  | import javax.jms.ObjectMessage;
  | import javax.naming.NamingException;
  | import javax.jms.JMSException;
  | import javax.jms.TopicPublisher;
  | 
  | import java.util.Hashtable;
  | import java.io.Serializable;
  | 
  | public class Publisher {
  | 
  | private static final String MODULE = Publisher.class.getName();
  | //private static final Logger log = Logger.getLogger(MODULE);
  | public Publisher() {
  | }
  | 
  | public void createAndSendMsg(String ibName) {
  | 
  | try {
  | Serializable obj = new Msg(Angelo Immediata);
  | Context cont = getContext();
  | System.out.println( Cerco connection factory );
  | //TopicConnectionFactory factory = (TopicConnectionFactory) 
(cont.lookup(java:comp/env/jms/ConnectionFactory));
  | 
  | TopicConnectionFactory factory = (TopicConnectionFactory) 
(cont.lookup(java:ConnectionFactory));
  | System.out.println( Ok );
  | Topic coda = (Topic) cont.lookup(topic/angeloRemoteTopic);
  | System.out.println( Ok anche la topic );
  | TopicConnection connessione = factory.createTopicConnection();
  | TopicSession sessione = connessione.createTopicSession(true,
  | TopicSession.AUTO_ACKNOWLEDGE);
  | TopicPublisher sender = sessione.createPublisher(coda);
  | ObjectMessage msg = sessione.createObjectMessage();
  | msg.setObject(obj);
  | sender.publish(coda, msg);
  | sessione.commit();
  | sessione.close();
  | connessione.close();
  | } catch (NamingException ex) {
  | 
  | ex.printStackTrace();
  | } catch (JMSException ex) {
  | 
  | ex.printStackTrace();
  | }
  | }
  | 
  | private InitialContext getContext() throws NamingException {
  | 
  | Hashtable props = new Hashtable();
  | props.put(InitialContext.INITIAL_CONTEXT_FACTORY,
  |   org.jnp.interfaces.NamingContextFactory);
  | props.put(InitialContext.PROVIDER_URL, jnp://192.168.11.224:1099);
  | System.out.println( Coleghiamoci ok + props );
  | 
  | return new InitialContext(props);
  | }
  | }

well when i try this client i have this error:

anonymous wrote : Coleghiamoci ok 
{java.naming.provider.url=jnp://192.168.11.224:1099, 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory}
  | Cerco connection factory
  | javax.naming.CommunicationException [Root exception is 
java.rmi.NoSuchObjectException: no such object in table]
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
  | at javax.naming.InitialContext.lookup(InitialContext.java:347)
  | at pub.Publisher.createAndSendMsg(Publisher.java:35)
  | at mai.Main.main(Main.java:7)
  | Caused by: java.rmi.NoSuchObjectException: no such object in table
  | at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
  | at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
  | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
  | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
  | ... 4 more

I really don't understand where i'm wrong.. the only thing i have done is a 
change of IP address from 192.168.11.xxx to 192.168.11.yyy; if my Remote 
JMS provider was 192.168.11.xxx i have no problem if 192.168.11.yyy i have 
the problem i have talked about how is it possible?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861744#3861744

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861744


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-12 Thread craig1980
Hi again i have seen that the DLQHandler class doesn't show the error... so 
i have downloaded it from this site: 
http://cvs.sourceforge.net/viewcvs.py/jboss/jboss/src/main/org/jboss/ejb/plugins/jms/DLQHandler.java

I have added this:

catch (Exception e)
  |   {
  |  if (e instanceof JMSException){
  |  log.error(Erroraccio nel creare il dlq., e);
  |  throw e;
  |  }
  |  else
  |  {
  |  log.error( Errore nel creare il dlq., e );
  | JMSException x = new JMSException(Error creating the dlq 
connection:  + e.getMessage());
  | x.setLinkedException(e);
  | throw x;
  |  }
  |   }
  |   finally
  |   {
  |  ctx.close();
  |   }

i have recompiled it and restarted my jboss after that i have substituited it 
in the jboss.jar file; well now i can see the error message; in my log file i 
have this:

anonymous wrote : 2005-01-12 
17:43:06,352,TRACE,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Constructing
  | 2005-01-12 
17:43:06,392,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Creating
 
jboss.j2ee:binding=InvokerMdb,jndiName=local/RemoteMDB,plugin=invoker,service=EJB
  | 2005-01-12 
17:43:06,392,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Created
 
jboss.j2ee:binding=InvokerMdb,jndiName=local/RemoteMDB,plugin=invoker,service=EJB
  | 2005-01-12 
17:43:06,492,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Starting
 
jboss.j2ee:binding=InvokerMdb,jndiName=local/RemoteMDB,plugin=invoker,service=EJB
  | 2005-01-12 
17:43:06,492,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Initializing
  | 2005-01-12 
17:43:06,492,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Looking
 up provider adapter: java:/RemoteJMSProvider
  | 2005-01-12 
17:43:06,492,DEBUG,[main],[org.jboss.ejb.plugins.jms.JMSContainerInvoker],Provider
 adapter: [EMAIL PROTECTED]
  | 2005-01-12 
17:43:06,502,TRACE,[main],[org.jboss.ejb.plugins.jms.DLQHandler],Constructing
  | 2005-01-12 
17:43:06,502,DEBUG,[main],[org.jboss.ejb.plugins.jms.DLQHandler],Creating 
DLQHandler
  | 2005-01-12 
17:43:06,632,ERROR,[main],[org.jboss.ejb.plugins.jms.DLQHandler],Errore nel 
creare il dlq.
  | javax.naming.CommunicationException [Root exception is 
java.rmi.NoSuchObjectException: no such object in table]
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
  | at javax.naming.InitialContext.lookup(InitialContext.java:347)
  | at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:139)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
  | at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)

It seems to me that in the hp-proliant pc an object is not present in the 
table but how can i solve this problem?... Why i have this error and wht is 
the missing object?
Thanks to all

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861790#3861790

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861790


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-11 Thread craig1980
Hi all... sorry but i'm still blocked in this error from 7 days...Has anybody a 
tip?
Thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861628#3861628

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861628


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-07 Thread [EMAIL PROTECTED]
Bad configuration. The jndi lookup is failing. Unfortunatly the JMSExcepton 
that wraps
the real exception doesn't show the full stacktrace.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861192#3861192

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861192


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote Topic.... Bug o wrong configuration?

2005-01-07 Thread craig1980
Hi [EMAIL PROTECTED]; first of all i want to thank you for your replay. 
I thought that this was a my configuration error even if i don't know where i 
am wrong.. in fact i have only changed the IP address before it worked and 
now it doesn't how can i do in order to wrap
the real exception stacktrace? Must i configure the log4j.xml file? If so... 
how can i do? It' a little time i have passed on JBoss pardon me

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3861232#3861232

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861232


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user