Starting JBoss 7.1.1 from eclipse fails

kostja picture kostja · Oct 23, 2012 · Viewed 15.9k times · Source

When starting JBoss from the servers view inside Eclipse Indigo SR2 with JBoss Tools 2.3.0 on my machine, everything runs fine.

I have copied all contents of my work folder containing Eclipse and JBoss-7.1.1.Final to a different machine.

Now, when I try to start the server, it fails with this message:

Starting JBoss 7.1.1 Runtime encountered an error. The archive: /jboss/jboss-modules.jar which is referenced by the classpath, does not exist.

I don't see anything referencing the jar in the runtime or server or project configurations. And the jboss-modules.jar is inside the root folder of the JBoss server, as expected. There are no deployments in the standalone.xml. Both machines are running SuSe 12. .bashrc and .profile are empty.

The server starts fine from command line.

I have created a new runtime and a server using this runtime from scratch in Eclipse, but get the same error.

Any ideas are appreciated.

Answer

bondkn picture bondkn · Dec 1, 2014

modules.jar is required to run JBOSS 7.1 Runtime, which is missing.

  1. Go to Window > Preferences > Server > Runtime Environment > Default Classpath. If you don't see any classpath in the right side menu,you can tweek the classpath setting by-

    1. Change server to JBOSS 7.0 Runtime.
    2. Again Change server to JBOSS 7.1 Runtime.

Delete and Add Server Again,

while Add new server,

  1. Please Check the 2nd and 3rd checkboxes
    -"Listen on all Interfaces to allow remote web connections"
    -"Expose your management port as server's hostname"

now everything will run fine.