This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of React Cookbook: Recipes for Mastering the React Framework and have David Griffiths & Dawn Griffiths on-line!
See this thread for details.
Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!

M Hathaway

Greenhorn
+ Follow
since Jan 17, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by M Hathaway

Hi Jaikiran,

Some snippets from the startup log that may be useful:



telnet xxx.xxx.xxx.xxx 1090 returns:



I will add this is a clean JBoss startup with no alterations or deployed applications from downloading. Also, i notice the last few lines suggest "Failed to establish connection to server". I'm not sure what this means, i've not come across this message before either....

Thanks for your continued help, its greatly appreciated!
9 years ago
I have a feeling this may be connected, but in the startup output I see this warning:

11:26:02,415 WARN [arjuna] ARJUNA-12210 Unable to use InetAddress.getLocalHost() to resolve address.

Could this be related to the shutdown problem?
9 years ago
Hi Jaikiran,

Firstly thanks for the reply.

Telnet on this system whilst JBoss is running outputs:

Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
¬ísrjava.rmi.MarshalledObject|½ícü>IhashlocBytest[BobjBytesq~xpFf
ur[B¬óTàxp-¬íthttp://xxx.xxx.xxx.xxx:8083/q~q~uq~Ƭísr org.jnp.server.NamingServer_Stubxrjava.rmi.server.RemoteStubéþÜÉáexrjava.rmi.server.RemoteObjectÓa´
a3xpw:
UnicastRefxxx.xxx.xxx1xx+wÂ,ó#¿xrU3s<xConnection closed by foreign host.

>
9 years ago
Hi Ranchers,

I have recently set up JBoss 6.0.0 up on a new Linux server.

I start JBoss with the -b xxx.xxx.xxx.xxx binding (where xxx.xxx.xxx.xxx is the IP of the machine).

To shutdown, i use the command: ./jboss-6.0.0.Final/bin/shutdown.sh --host=xxx.xxx.xxx.xxx --port=1090 -S

I have JBoss 6.0.0 running on another Linux server with identical startup/shutdown scripts and experience no issues. However, if I try and shutdown JBoss on the new Linux server I get the errors pasted below. Does anybody have any ideas what the problem may be here? I'm wondering if it may be something with the Linux setup on the new server rather than a JBoss issue, but can't seem to figure out what I've ensured the firewall is open for the required JBoss ports and experiemend changing the hosts file.

Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at org.jboss.Shutdown.main(Shutdown.java:235)
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1902)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1871)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276)
... 2 more
Caused by: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 12 more

Any ideas would be greatly appreciated.

Thanks!

9 years ago
Hello,

My company are looking to take on several new Java developers.

The business area is e-commerce management.

Of course, a good competency in Java is essential. Particular skills in the following would be ideal, although not necessarily essential provding you have an otherwise sound knowlegde of the language:

- Swing
- RMI
- Web Services
- JSP

Developers with experience are top of our list, although if you are able any candidate will be considered.

The development team currently stands at around 10. The company size on the whole is around 50 people. This expected to almost double over the next year such is the rapid growth of the product we develop.

The job requires that you work in our offices which are based near Tewksbury. We are close to junction 9 of the M5 and also near a train station. It is commutable from Birmingham, Worcester, Cheltenham etc.

If you are interested or require any further information, please feel free to drop me a line!

Thanks,

Marcus
11 years ago
Thanks Mark, that's a real good suggestion!
12 years ago
Ok i've solved the issue, removing jfreechart-1.0.13-swt.jar from the classpath fixes the issue.
12 years ago
Hi Ranchers,

I have recently taken the step to buy a Mac. My brand new MacBook Pro was delivered this week and despite my concerns about getting used to it having always been a PC user, i'm loving it. I have managed to install all the things I require with minimal effort (JBoss, MySQL etc). I work with Eclipse and have installed the Mac version of Eclipse Galileo (Cocoa) along with subversion plugins.

However, I can't seem to run any Swing applications I get the following console messages when starting up the application, which then just freezes:

2009-09-18 09:31:36.122 java[2125:903] [Java CocoaComponent compatibility mode]: Enabled
2009-09-18 09:31:36.124 java[2125:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2009-09-18 09:31:37.079 java[2125:d003] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1006aa4d0> '(null)') unlocked when not locked
2009-09-18 09:31:37.080 java[2125:d003] *** Break on _NSLockError() to debug.

I have googled around and have seen hints at this problem, but can't seem to find a solution. Also, being completely new to the Mac, I'm having to take on board the concept of Cocoa, so its perfectly possible I am missing something simple here.

If anybody has any idea on this or can perhaps point out the obvious I would be most grateful.

Thanks,

Marcus
12 years ago
Thanks Jacob,

I'm sold on it, sounds great!
12 years ago
Hi Guys,

I really like and own Michael's book JBoss Seam: Simplicity and Power Beyond Java EE.

Considering this, is it worth buying the new book? If so what kind of material does the new book cover that To JBoss Seam doesn't?

Thanks,

Marcus.
12 years ago
Hi Jaikiran,

Thanks for the response.

Yes this is my main concern over this approach also

In the serverside article, it sounds a no brainer......it actually changed my thinking to even consider this approach. Having not been exposed to this kind of issue, i wasn't sure if this approach was a common practice....your comments confirm my initial worries.
Hi Ranchers,

I wondered if perhaps anybody has an opinion on the following problem.

I have an EJB3 setup that services the needs of a customer. This means I have one EJB3 app deployed that connects to a MySQL database schema. However, lets imagine I have 1000 customers. Each customer will have their own MySQL schema, although structually they are identical.

A solution is to deploy the EJB3 app 1000 times and simply change the persistence.xml file to set the correct MySQL schema. However, this seems overkill and certainly not scalable.

I have done much reading around on the topic, and found articles such as:
- http://www.theserverside.com/discussions/thread.tss?thread_id=47089
- http://www.hibernate.org/429.html

In the serverside discussion, the notion of simply having one schema is raised rather than having 1000 different schemas. Obvioulsy each table would have to have some kind of client id. I can't see a problem in this, but are there considerations to be made before scrapping multiple schemas in favour of one massive schema?

Otherwise, having some code in place as discussed in the Hibernate article "Manage a separate connection (or pool of connections) for each specific database user" seems like an option.

I just wondered if anyone has any experience of dealing with this issue, what route did you take and do you have any thoughts?

Thanks in advance for any comments.

Marcus.
After pulling my hair out I have finally solved my problem!

In case this is useful to anybody else, I was starting JBoss on the server with:

run.bat -b 0.0.0.0

Changing this to:

run.bat -b [SERVER_IP] has fixed my problem.

I'm not sure why this worked and need to investigate the implications, but at least I have a solution to be working with.
12 years ago
Hello,

I have a very frustrating problem that extends onto this.

Like Bojan, I want to call EJBs in JBoss remotely from a client swing app. Firstly, I want to clarify that everything works perfecly locally.

I have changed the java.naming.provider.url property from localhost:1099 to [MY-SERVER-IP]:1099. Furthermore, JBoss is started on the server with the -b option.

However, when it tries to connect i get the following exception:

javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: DSVR006703; nested exception is:
java.net.UnknownHostException: DSVR006703]

Interestingly, DSVR006703 is the (server) computer's name, although I am using the IP address, which makes me thing it is connecting on some level and then failing.

I have read elsewhere about amending the C:\WINDOWS\system32\drivers\etc\hosts file, adding in the IP and name. I have done this but it doesn't make any difference.

If anyone could offer any suggestions I would be extremely grateful as this is driving me up the wall!!

Many Thanks,

Marcus.
12 years ago