How to start JBoss AS 7.1.1 on Windows?

冷暖自知 提交于 2019-12-22 08:34:10

问题


I am new to JBOSS.I downloaded jboss-as-7.1.1.Final.zipand 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.

I tried to start server throught cmd.I open cmd in 2 ways

1.normally mode

  1. Run as Admin (Admin Mode).

In 2 ways I get:

Calling "P:\Software\JBOSS\jboss-as-7.1.1.Final\bin\standalone.conf.bat" 'findstr' is not recognized as an internal or external command, operable program or batch file.

then it stops.

So the JBoss server does not start.

I added Environment Variables like.

JBOSS_HOME : P:\Software\JBOSS\jboss-as-7.1.1.Final

JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21

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


回答1:


Add the following value to Right Click My Compuer -> Advanced -> Environment Variables -> System Variables -> Select Path variable -> append the below value.

C:\WINDOWS\system32

It should work with that change.




回答2:


@All, Finally I got it,why I am getting this problem 'findstr' is not recognized as an internal or external command, operable program or batch file. Because the following path C:\Windows\System32 was not set in Environment variables. I found through google.I fix it and run my server it's working great.

Thank you guys for your valuable suggestions.




回答3:


You have to go to your bin folder P:\Software\JBOSS\jboss-as-7.1.1.Final\bin\ and then execute run.bat or standalone.bat

If you still get errors, you should delete your entire JBoss folder and then install it again and try to run it with the default settings. Once you've confirmed that works, change the settings 1 by 1 so that you know which setting caused your server to not start up.




回答4:


You could better add it in to any IDE(eclipse) and then deploy your application. That should be easy to manage your applications



来源:https://stackoverflow.com/questions/17441136/how-to-start-jboss-as-7-1-1-on-windows

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