h1

Starting JBoss…

November 22, 2007

…Ok, I’ve been having a whole load of problems getting JBoss to run.

It all started with me being stupid. If you’re having problems, check your environment variables first, people. I mean it.

Then I was getting this weird-ass error message that crashed the server before it even started and googling it only got me about 20 or 30 hits… All questions about the same problem as mine, with no answers (except for the above mentioned environment variables which didn’t cut it this time). I’ve been pulling my hair out about that one, especially since I get the same error on the University PCs. Turns out I wasn’t googling the right part of the exception, as I tend to do especially with very long ones.

So for people who can’t run ./run.sh because of the exception that starts this way:

[BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@290fd7f6)]
 23:32:16,395 ERROR [MainDeployer] Could not create deployment: file:/home/thingie/jboss-4.2.2.GA/server/default/conf/jboss-service.xml

Check further down — wayyyy down — if it states this in the last “Caused by:”

Caused by: java.lang.RuntimeException: Exception creating identity: dan:dan

…where “dan” stands for the name of your computer.
If that’s the case, it’s because the name of your computer can’t be resolved. Modify /etc/hosts accordingly (127.0.0.1 dan).

I don’t think this is going to cut it for me at University, but I’ll have a look anyway. Got it running on the laptop so it’s going to work out okay in any case.

…Now, to those beans I should have started to develop hours ago…

Advertisements

5 comments

  1. Thx for advice, I’ve had the same problem and just solved it after reading your article. Thx mate!


  2. Glad that helped 🙂


  3. Thank you!


  4. Thanks a lot for the post, it really helped.


  5. Thank you! It saved a lot of time and effort. 😉



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: