[Clustering/JBoss] - Re: Problem with removing a Node from Cluster - HAJNDI dies
by konkimalla
Now I understand the logic. However, I am facing a problem in clustered environment having two nodes when using the default cluster-service.xml file. I am able to successfully make two nodes in cluster.
I am running a client application that invokes a stateful bean and everything is working fine when I use the following code:
props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
props.put("java.naming.provider.url", "localhost:1100");
props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
My test is to fail over the node so that the other node will serve the client. so, as per the document I changed url to
props.put("java.naming.provider.url", "<currentnodeip1>:1100,<another nodeip2>:1100"); But, after shutting down the server the client is also dying.
The client could not even connect to the A/S when I changed the url to
props.put("java.naming.provider.url", "<currentnodeip1>:1100");
I am very confused as I am using the default configruation xml file. Please help me out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067211#4067211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067211
18Â years, 9Â months
[JBoss Seam] - Help with examples
by nwhite
I'm new to Seam and I am working through the examples. I have the booking demo working in my environment:
J2EE5 SDK w/GlassFish
I tried to get the remoting progressbar example working in this environment using the jee5/booking example for glassfish as my reference point for configuration and required jars. However, the best I have gotten is to render the page sans button so it appears to me that the tags <h:> etc in progressbar.xhtml are not being processed. This leads me to believe its a faces configuration issue but I'm stumped because things like pretty much as they do in that regard to the working jee5 example I have. Any thoughts on where to poke further?
TIA
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067210#4067210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067210
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Unable to connect to a remote server
by kkuma
Hi,
I am running JBoss-4.2.1GA(jdk 1.5.0_11) on CentOS 5 and have a trouble that a client cannot connect to JBoss server:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: noaworksj.sys-lab.com
and discovery failed with error: javax.naming.CommunicationException: Receive timed out
[Root exception is java.net.SocketTimeoutException: Receive timed out]
[Root exception is javax.naming.CommunicationException: Failed to connect to server noaworksj.sys-lab.com:1099
[Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server noaworksj.sys-lab.com:1099
[Root exception is java.net.ConnectException: Connection timed out: connect]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
...
The following is the output of netstat just after JBoss initialization
(JBoss started with -b 0.0.0.0):
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3873 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:645 0.0.0.0:* LISTEN 2159/rpc.statd
tcp 0 0 0.0.0.0:47367 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:50856 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:1098 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:3050 0.0.0.0:* LISTEN 2237/fbserver
tcp 0 0 0.0.0.0:46827 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN 3110/java
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2130/portmap
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3110/java
...
This shows JBoss(Java) is listening port 1099 and nothing wrong is there.
However, I get the above connection failure when I start a client program
connecting to JBoss.
The output of tcpdump monitoring port 1099 follow:
15:17:07.092561 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>
15:17:10.285820 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>
15:17:16.848198 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>
Could anyone please tell me what is wrong?
Regards,
K. Kumakura
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067208#4067208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067208
18Â years, 9Â months
[JBoss Seam] - Re: Examples: Code Police ;-)
by stephen.friedrich
And finally (at least I hope so):
These component.xml files are missing declarations for the schema locations:
examples\quartz\resources\WEB-INF\components.xml
examples\seampay\resources\WEB-INF\components.xml
These are missing only declarations for persistence and transaction schemas:
examples\hibernate2\resources\components.xml
examples\hibernate2\resources-jboss\WEB-INF\components.xml
examples\hibernate2\resources\tomcat\components.xml
examples\hibernate2\resources-tomcat\WEB-INF\components.xml
And these are missing only transaction
examples\jpa\resources-glassfish\WEB-INF\components.xml
examples\jpa\resources-jboss\WEB-INF\components.xml
examples\jpa\resources-weblogic92\WEB-INF\components.xml
examples\jpa\resources-websphere61\WEB-INF\components.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067203#4067203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067203
18Â years, 9Â months
[JBoss Seam] - Clearing checkboxes in a datatable works for all but the sel
by grettke_spdr
Hi folks,
This is probably more of a JSF than a Seam question, but here goes.
We?ve got a list of search results that are displayed within a data table. Search results can be selected via a checkbox that maps to a field on the search result items themselves.
These search results are actually DTOs (by necessity). The search results are paged, and the paging occurs in a service. This means that we do not store cached search results in the UI, and consequently we have to store the users selections on the UI side of things. Each time the user goes to a new page, we check to see if any of the results match anything already selected, and check it as selected. An implication of this is that users can not de-select simply by de-checking a checkbox.
There is a commandButton on the page called ?Clear Selections?. In the action method for that commandButton, the list of selections (longs) is cleared. This works fine and well as the list of collections itself gets cleared. The problem is that whatever is checked in the datatable displayed at which time the user clicks the ?Clear Selections? button get stored again as selections.
It seems like the lifecycle is:
1. Call the action method.
2. Clear the list.
3. Update the list of search results with the values in the datatable on the page.
What am I doing wrong here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067201#4067201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067201
18Â years, 9Â months