wall3E
asked on
jboss as 7
i installed jboss-as-7.1.1.Final on my windows xp.
the installation was successfull, and i can see the server running on http:/localhost:8080/
but the problem is i am trying to add the users through add-users.bat file. it shows a error message like
C:\jboss-as-7.1.1.Final\bi n>add-user .bat
The system cannot find the path specified.
Press any key to continue . . .
i have set JBOSS_HOME and JAVA_HOME in environmental variables of my system.
can any one please help to resolve this
the installation was successfull, and i can see the server running on http:/localhost:8080/
but the problem is i am trying to add the users through add-users.bat file. it shows a error message like
C:\jboss-as-7.1.1.Final\bi
The system cannot find the path specified.
Press any key to continue . . .
i have set JBOSS_HOME and JAVA_HOME in environmental variables of my system.
can any one please help to resolve this
Can you post what is in your add-user.bat !!
ASKER
Here is my batch file,
i tried to give path for the jboss_home but still no idea where to set the path.
add-user.bat.txt
i tried to give path for the jboss_home but still no idea where to set the path.
add-user.bat.txt
Assuming you are on windows , and do you have a file named jdr.bat in the bin folder?
The message you see does not seem to be coming from add-user.bat.
Before running this bat , print out the following:
echo %JAVA_HOME%
echo %JBOSS_HOME%
Also edit the bat file and add these two lines before the java command is executed
echo %JAVA_HOME%
echo %JBOSS_HOME%
The message you see does not seem to be coming from add-user.bat.
Before running this bat , print out the following:
echo %JAVA_HOME%
echo %JBOSS_HOME%
Also edit the bat file and add these two lines before the java command is executed
echo %JAVA_HOME%
echo %JBOSS_HOME%
ASKER
C:\jboss-as-7.1.1.Final\bi n>echo %JAVA_HOME%
C:\Middleware\jdk160_29\bi n
C:\jboss-as-7.1.1.Final\bi n>echo %JBOSS_HOME%
C:\jboss-as-7.1.1.Final
C:\jboss-as-7.1.1.Final\bi n>ls
add-user.bat domain.conf jconsole.sh standalone.sh
add-user.sh domain.conf.bat jdr.bat vault.bat
appclient.bat domain.sh jdr.sh vault.sh
appclient.conf init.d run.bat wsconsume.bat
appclient.conf.bat jboss-cli.bat run.sh wsconsume.sh
appclient.sh jboss-cli.sh standalone.bat wsprovide.bat
client jboss-cli.xml standalone.conf wsprovide.sh
domain.bat jconsole.bat standalone.conf.bat
C:\jboss-as-7.1.1.Final\bi n>
Here is my output after running these commands.
yes i do have jdr.bat file in bin folder.
jdr.bat.txt
C:\Middleware\jdk160_29\bi
C:\jboss-as-7.1.1.Final\bi
C:\jboss-as-7.1.1.Final
C:\jboss-as-7.1.1.Final\bi
add-user.bat domain.conf jconsole.sh standalone.sh
add-user.sh domain.conf.bat jdr.bat vault.bat
appclient.bat domain.sh jdr.sh vault.sh
appclient.conf init.d run.bat wsconsume.bat
appclient.conf.bat jboss-cli.bat run.sh wsconsume.sh
appclient.sh jboss-cli.sh standalone.bat wsprovide.bat
client jboss-cli.xml standalone.conf wsprovide.sh
domain.bat jconsole.bat standalone.conf.bat
C:\jboss-as-7.1.1.Final\bi
Here is my output after running these commands.
yes i do have jdr.bat file in bin folder.
jdr.bat.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
I figured out the error. There a error in JAVA_HOME only. My system java path is set up to C:\jdk160_9\bin. but here in code again bin is specified bin\java.
rem Setup JBoss specific properties
if "x%JAVA_HOME%" == "x" (
set JAVA=java
echo JAVA_HOME is not set. Unexpected results may occur.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
) else (
set "JAVA=%JAVA_HOME%\bin\java "
I figured out the error. There a error in JAVA_HOME only. My system java path is set up to C:\jdk160_9\bin. but here in code again bin is specified bin\java.
rem Setup JBoss specific properties
if "x%JAVA_HOME%" == "x" (
set JAVA=java
echo JAVA_HOME is not set. Unexpected results may occur.
echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
) else (
set "JAVA=%JAVA_HOME%\bin\java
ASKER
Thanks for the reply..
and is there any one specifically for jboss admin available. for solving such errors.
and is there any one specifically for jboss admin available. for solving such errors.
Yes , normally in an organisation these configurations would be done by middleware teams . These teams would have jboss admins