解决方法原文:
I have to tweak a little bit to get is work in Windows 7.
- Open Eclipse.
- Add Jboss 7.1 Runtime 1 server.
- Select the Server and press F3.
- Click on Open Launch Config.
- Goto VM arguments.
- Add the below two entries.
"-Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager" "-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
Now select the Classpath TAB
- Select User Entries
- Click Add External Jars
- Select the three jar files
a) jboss-logmanager-1.2.0.GA.jar b) jboss-logmanager-log4j-1.0.0.GA.jar c) log4j-1.2.16.jar
Paths
C:/jboss-as-7.1.1.Final/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.0.GA.jar”
C:/jboss-as-7.1.1.Final/modules/org/jboss/logmanager/log4j/main/jboss-logmanager-log4j-1.0.0.GA.jar”
C:/jboss-as-7.1.1.Final/modules/org/apache/log4j/main/log4j-1.2.16.jar”
This will start the standalone jboss without any issues.