Re: Failed to connect using host=localhost and port=3030 Connection refused: connect
Felipe Palma Dias <palmadias-/E1597aS9LRfJ/[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
I changed the port 3030 and 3035, in the web.xml, to 1099 (this is the port of my rmiregistry). Is it right? After I did this, the error does not happens, but when I try to connect in the server, using JMS API, I get the follow error: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Operation failed: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/openjms/OpenJMSJndi; nested exception is: javax.naming.NamingException: Operation failed: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/openjms/OpenJMSJndi at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) 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 com.pakprint.pakcon.client.service.PCAgent_Stub.start(Unknown Source) at com.pakprint.pakcon.client.gui.MainPanel.action(MainPanel.java:162) 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) at thinlet.Thinlet.invokeImpl(Unknown Source) at thinlet.Thinlet.invoke(Unknown Source) at thinlet.Thinlet.handleMouseEvent(Unknown Source) at thinlet.Thinlet.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Caused by: java.rmi.RemoteException: Operation failed: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/openjms/OpenJMSJndi; nested exception is: javax.naming.NamingException: Operation failed: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/openjms/OpenJMSJndi at com.pakprint.pakcon.client.service.PCAgent.start(PCAgent.java:152) 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) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) Caused by: javax.naming.NamingException: Operation failed: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/openjms/OpenJMSJndi at org.exolab.jms.jndi.http.NameServiceProxy.send(NameServiceProxy.java:245) at org.exolab.jms.jndi.http.NameServiceProxy.getNameParser(NameServiceProxy.java:84) at org.exolab.jms.jndi.http.HttpJndiInitialContextFactory.getInitialContext(HttpJndiInitialContextFactory.java:117) at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:109) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.init(InitialContext.java:219) at javax.naming.InitialContext.<init>(InitialContext.java:195) at com.pakprint.pakcon.client.pakserver.PakprintJMSServer.getContext(PakprintJMSServer.java:179) at com.pakprint.pakcon.client.pakserver.PakprintJMSServer.getNewTopicConnection(PakprintJMSServer.java:161) at com.pakprint.pakcon.client.pakserver.RegistrySubscriber.<init>(RegistrySubscriber.java:55) at com.pakprint.pakcon.client.pakserver.PakprintJMSServer.connect(PakprintJMSServer.java:146) at om.pakprint.pakcon.client.service.PCAgent.start(PCAgent.java:142) Somebody help me, please. tks. --- Felipe Palma Dias <palmadias-/E1597aS9LRfJ/[email protected]> escreveu: > I'm trying to configure openjms with tomcat under > HTTP, but after I deploy de openjms.war, I try to > access the servlet > http://localhost:8080/openjms/OpenJMSServer, but ... > > ------------------------- > javax.servlet.ServletException: Failed to connect > using host=localhost and port=3030 Connection > refused: > connect > at > org.exolab.jms.server.http.servlet.HttpJmsServerServlet.connect(HttpJmsServerServlet.java:206) > at > org.exolab.jms.server.http.servlet.HttpJmsServerServlet.init(HttpJmsServerServlet.java:122) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) > ------------------------- > > There was't space in the directory name. My > openjms.xml is attached. > > tks. > > ===== > ------------------------------------------------------- > > Felipe F. Palma Dias > http://geocities.yahoo.com.br/palmadias/ > > > > > > _______________________________________________________ > > Yahoo! Acesso Grátis - Instale o discador do Yahoo! > agora. http://br.acesso.yahoo.com/ - Internet rápida > e grátis> <?xml version="1.0"?> > > <!-- OpenJMS configuration: > . RMI connectors > . JDBM persistency > . embedded JNDI provider > . embedded RMI registry, running on port 1099 > . preconfigured destinations > > NOTES: this configuration shows all > configuration elements relevant > when using an RMI connector. > --> > > <Configuration> > > <!-- Optional. This represents the default > configuration --> > <ServerConfiguration host="localhost" > embeddedJNDI="true" /> > > <!-- Required when using an RMI connector --> > <Connectors> > <Connector scheme="rmi"> > <ConnectionFactories> > <QueueConnectionFactory > name="JmsQueueConnectionFactory" /> > <TopicConnectionFactory > name="JmsTopicConnectionFactory" /> > </ConnectionFactories> > </Connector> > <Connector scheme="http"> > <ConnectionFactories> > <QueueConnectionFactory > name="HTTPQueueConnectionFactory"/> > <TopicConnectionFactory > name="HTTPTopicConnectionFactory"/> > </ConnectionFactories> > </Connector> > </Connectors> > > <!-- Required --> > <DatabaseConfiguration> > <JdbmDatabaseConfiguration name="openjms.db" /> > </DatabaseConfiguration> > > <!-- Required --> > <AdminConfiguration > script="${openjms.home}\bin\startup.bat" /> > > <!-- Optional. If not specified, no destinations > will be created --> > <AdministeredDestinations> > <AdministeredTopic name="topic1"> > <Subscriber name="sub1" /> > <Subscriber name="sub2" /> > </AdministeredTopic> > > <AdministeredQueue name="queue1" /> > <AdministeredQueue name="queue2" /> > <AdministeredQueue name="queue3" /> > </AdministeredDestinations> > > <SecurityConfiguration securityEnabled="true"/> > > <!-- Optional. If not specified, no users will be > created --> > <Users> > <User name="admin" password="admin" /> > </Users> > > </Configuration> > ===== ------------------------------------------------------- Felipe F. Palma Dias http://geocities.yahoo.com.br/palmadias/ _______________________________________________________ Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click