[Remoting] - CannotConnectException in cluster example
by vivash
Hi,
I am trying to run the Transport Sample - Clustered example (section 10.8.5 in user's guide). I start up all the three servers and Client. Here is what's happening,
1) Client talks to SocketServer and things are fine.
2) I stop SocketServer and Client failsover to the HttpServer. Things are still fine.
3) I stop HttpServer and now I get the following "CannotConnectException".
Not sure why the Client is not failing over to the RmiServer when it's still running.
| org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.remoting.Client.invoke(Client.java:473)
| at org.jboss.remoting.transporter.TransporterClient.invoke(TransporterClient.java:238)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967069#3967069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967069
19 years, 8 months
[JBoss/Spring Integration] - can't deploy my web application,
by mv1351
Hi,
I have a web application and I was used to use JDBC and every thing was working perfectly.
Now I wanted to use hibernate and the problem is right after adding /WEB-INF/applicationContext-hibernate.xml in context param of my web.xml my application doesn't get deployed and I get no error what so ever.
First I need to know why it doesn't get deployed so I would appreciate your input on this matter also I need to know how JBoss doesn't show any error message when it can't deploy my application, perhaps I have to turn on something to show me the message.
here is my /WEB-INF/applicationContext-hibernate.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
Test.hbm.xml
org.hibernate.dialect.MySQLDialect
true
true
5
true
false
Here is my web.xml:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>test</display-name>
Test application
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext-hibernate.xml
</param-value>
</context-param>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
<servlet-name>SpringTest</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-name>ContextServlet</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>SpringTest</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<welcome-file-list>
<!-- Redirects to "index.html" for dispatcher handling -->
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967063#3967063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967063
19 years, 8 months