Solved

jboss as 7

Posted on 2013-01-22
10
1,980 Views
Last Modified: 2013-12-02
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\bin>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
0
Comment
Question by:wall3E
  • 4
  • 4
10 Comments
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 38808666
Can you post what is in your add-user.bat !!
0
 

Author Comment

by:wall3E
ID: 38810135
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
0
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 38813339
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%
0
 

Author Comment

by:wall3E
ID: 38819157
C:\jboss-as-7.1.1.Final\bin>echo %JAVA_HOME%
C:\Middleware\jdk160_29\bin

C:\jboss-as-7.1.1.Final\bin>echo %JBOSS_HOME%
C:\jboss-as-7.1.1.Final

C:\jboss-as-7.1.1.Final\bin>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\bin>

Here is my output after running these commands.
yes i do have jdr.bat file in bin folder.
jdr.bat.txt
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 12

Accepted Solution

by:
Sharon Seth earned 500 total points
ID: 38834602
How about adding those two echo commands in the bat file ? I believe the paths are getting changed in the bat file
0
 

Author Comment

by:wall3E
ID: 38836511
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"
0
 

Author Closing Comment

by:wall3E
ID: 38836516
Thanks for the reply..
and is there any one specifically for jboss admin available. for solving such errors.
0
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 38842865
Yes , normally in an organisation  these configurations would be done by middleware teams . These teams would have jboss admins
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maven java path setting 5 50
apache vhosts on mac not being recognized 5 48
Java and GPO 11 47
whm high memory usage in processes 7 40
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now