Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss server starting problem

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Today when I start the server, it throwing the following exception and I couldn't find what could be the issue.

Is there any libraries that I need to be placed in the server?

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JBoss AS? And did you change anything in the server or is this a clean download?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

JBOss 4.2 version we are using and since 8 months I'm using this. Today morning I created a mail-service .xml (save as with different name form already existed mail-service.xml), and I got the duplicate name "jboss:service=Mail", then immediately I removed the new file then onwards I struck with this exception.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it is picking up a different JAR file for naming. Try adding "-verbose:class" to the JAVA_OPTS in the run script (run.bat for Windows, run.conf for Linux). This JVM option causes the JVM to print each class loaded and identify each JAR file. Look for JAR files not in the JBoss AS directories. Especially look for the loafing of the class org.jnp.server.NamingBeanImpl, which implements the jboss:service=NamingBeanImpl MBean.
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My apologize for late reply.

We are not using RUN script to run the server, we are running the server from IDE tool. Then how can use that command?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try running it from the command prompt without the IDE and see if it works.

 
Jhakda Velu
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if you run the server from IDE, it will internally use run.bat(for windows).
So if you add the details to run.bat(as Peter advised), you will see it in the console of your IDE.

Jhakda
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic