How to start jboss 7.1.1 server and deploy project in jboss 7.1.1

北城以北 提交于 2020-01-13 10:27:08

问题


I use JBoss 7 server so I downloaded JBoss 7.1.1 version and unzip this zip file.

Then I go to bin folder and double click on standalone.bat but new cmd window open and close within 2 -3 sec.

If I run it using cmd, I get:

E:\jboss-as-7.1.1.Final\bin>standalone.bat
Calling "E:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

then it stops.

So the JBoss server does not start.

How can I run JBoss server and deploy projects in it on Window 7?


回答1:


Give JAVA_HOME environment variable in your System Properties Environment Variables likes this;

C:\Program Files\Java\jdk1.7



回答2:


Give JBOSS_HOME environment variable in your System Properties Environment Variables likes this;

      E:\jboss-as-7.1.1.Final



回答3:


Could you try by putting your Java outside "Program Files". Sometimes commands fail because of the space in the path. Like your JAVA_HOME path is set to "C:\Program Files\Java" and hence it might be failing.

Please try to put Java folder directly under C:\ and set the JAVA_HOME variable (without bin) and also JBOSS_HOME variable in similar way (without bin).




回答4:


Have you tried right clicking "cmd" and "Run as administrator"? Then cd to the folder and run it there...

or right click the bat file and "Run as administrator"?

I think usually starting server required administrator rights in Windows 7.




回答5:


It solved. Changing the java_home to c:\java\jdk1.6.0_23 and setting java_home environment variable to that route




回答6:


You need to add both JBOSS_HOME AND JAVA_HOME as explained above.



来源:https://stackoverflow.com/questions/11260137/how-to-start-jboss-7-1-1-server-and-deploy-project-in-jboss-7-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!