[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem creating service jboss.security:name=XMLLoginCon

Monadear do-not-reply at jboss.com
Thu Oct 23 02:18:51 EDT 2008


"PeterJ" wrote : I asked about the build script; what you posted is not the build script.

I am using a bulid.xml file which is used by one batch file ant.bat. This is what ant.bat does.

@echo off
  | Rem ENA
  | Rem ===========================
  | 
  | @echo off
  | set ANT_XML=build.xml
  | 
  | "%ANT_HOME%\bin\ant.bat" -buildfile %ANT_XML% %1 

anonymous wrote : Also, you never said what this batch file extract is. Is it part of run.bat or something else?

This is the run.bat file.

@echo off
  | rem -------------------------------------------------------------------------
  | rem JBoss Bootstrap Script for Win32
  | rem -------------------------------------------------------------------------
  | 
  | rem $Id: run.bat 63249 2007-05-30 13:20:25Z dimitris at jboss.org $
  | 
  | @if not "%ECHO%" == ""  echo %ECHO%
  | @if "%OS%" == "Windows_NT"  setlocal
  | 
  | set DIRNAME=.\
  | if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
  | set PROGNAME=run.bat
  | if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
  | 
  | pushd %DIRNAME%..
  | set JBOSS_HOME=%CD%
  | popd
  | 
  | REM Add bin/native to the PATH if present
  | if exist "%JBOSS_HOME%\bin\native" set PATH=%JBOSS_HOME%\bin\native;%PATH%
  | if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%"
  | 
  | rem Read all command line arguments
  | 
  | REM
  | REM The %ARGS% env variable commented out in favor of using %* to include
  | REM all args in java command line. See bug #840239. [jpl]
  | REM
  | REM set ARGS=
  | REM :loop
  | REM if [%1] == [] goto endloop
  | REM         set ARGS=%ARGS% %1
  | REM         shift
  | REM         goto loop
  | REM :endloop
  | 
  | rem Find run.jar, or we can't continue
  | 
  | set RUNJAR=%JBOSS_HOME%\bin\run.jar
  | if exist "%RUNJAR%" goto FOUND_RUN_JAR
  | echo Could not locate %RUNJAR%. Please check that you are in the
  | echo bin directory when running this script.
  | goto END
  | 
  | :FOUND_RUN_JAR
  | 
  | if not "%JAVA_HOME%" == "" goto ADD_TOOLS
  | 
  | 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.
  | goto SKIP_TOOLS
  | 
  | :ADD_TOOLS
  | 
  | set JAVA=%JAVA_HOME%\bin\java
  | 
  | rem A full JDK with toos.jar is not required anymore since jboss web packages
  | rem the eclipse jdt compiler and javassist has its own internal compiler.
  | if not exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
  | 
  | rem If exists, point to the JDK javac compiler in case the user wants to
  | rem later override the eclipse jdt compiler for compiling JSP pages.
  | set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
  | 
  | :SKIP_TOOLS
  | 
  | rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will 
  | rem result in including the local directory in the classpath, which makes
  | rem error tracking harder.
  | if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR%
  | if "%JBOSS_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR%
  | if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%JBOSS_CLASSPATH%;%RUNJAR%
  | 
  | set JBOSS_CLASSPATH=%RUN_CLASSPATH%
  | 
  | rem Setup JBoss specific properties
  | set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
  | 
  | rem Add -server to the JVM options, if supported
  | "%JAVA%" -version 2>&1 | findstr /I hotspot > nul
  | if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
  | 
  | rem JVM memory allocation pool parameters. Modify as appropriate.
  | set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
  | 
  | rem With Sun JVMs reduce the RMI GCs to once per hour
  | set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
  | 
  | rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
  | rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
  | 
  | rem Setup the java endorsed dirs
  | set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed
  | 
  | echo ===============================================================================
  | echo.
  | echo   JBoss Bootstrap Environment
  | echo.
  | echo   JBOSS_HOME: %JBOSS_HOME%
  | echo.
  | echo   JAVA: %JAVA%
  | echo.
  | echo   JAVA_OPTS: %JAVA_OPTS%
  | echo.
  | echo   CLASSPATH: %JBOSS_CLASSPATH%
  | echo.
  | echo ===============================================================================
  | echo.
  | 
  | :RESTART
  | "%JAVA%" %JAVA_OPTS% "-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS%" -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %*
  | if ERRORLEVEL 10 goto RESTART
  | 
  | :END
  | if "%NOPAUSE%" == "" pause
  | 
  | :END_NO_PAUSE
  | 

anonymous wrote : Finally, I have not idea about the contents of the "sonic" JAR files and no clue as to whether they are even compatible with JBossAS 4.2.x.

Sonic is for transferring messages. Right now for the compiling application with Jboss, it has no use.

This is finally start.batch file which i run and get the compilation errors as mentioned in the subject.

@echo off
  | rem -------------------------------------------------------------------------
  | rem JBoss Bootstrap Script for Win32
  | rem -------------------------------------------------------------------------
  | 
  | rem $Id: start.bat,v 1.4 2002/03/05 03:00:30 user57 Exp $
  | 
  | @if not "%ECHO%" == ""  echo %ECHO%
  | @if "%OS%" == "Windows_NT"  setlocal
  | 
  | set DIRNAME=.\
  | if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
  | set PROGNAME=start.bat
  | if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
  | 
  | rem Read all command line arguments
  | 
  | set ARGS=
  | :loop
  | if [%1] == [] goto endloop
  |         set ARGS=%ARGS% %1
  |         shift
  |         goto loop
  | :endloop
  | 
  | rem Find run.jar, or we can't continue
  | 
  | set RUNJAR=%JBOSS_HOME%\bin\run.jar
  | if exist "%RUNJAR%" goto FOUND_RUN_JAR
  | echo Could not locate %RUNJAR%. Please check that you are in the
  | echo bin directory when running this script.
  | goto END
  | 
  | :FOUND_RUN_JAR
  | 
  | if not "%JAVA_HOME%" == "" goto ADD_TOOLS
  | 
  | 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.
  | goto SKIP_TOOLS
  | 
  | :ADD_TOOLS
  | 
  | set JAVA=%JAVA_HOME%\bin\java
  | 
  | if exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
  | echo Could not locate %JAVA_HOME%\lib\tools.jar. Unexpected results may occur.
  | echo Make sure that JAVA_HOME points to a JDK and not a JRE.
  | 
  | :SKIP_TOOLS
  | 
  | if not "%ESI_HOME%" == "" goto SERVER_CHECK
  | 
  | echo ESI_HOME is not set.  Unexpected results may occur.
  | echo Set ESI_HOME to the directory of the local ESI to avoid this message.
  | goto END
  | 
  | :SERVER_CHECK
  | 
  | if not "%ENA_SERVER%" == "" goto MAPPING_TOOLS
  | 
  | echo ENA_SERVER is not set.  Unexpected results may occur.
  | echo Set ENA_SERVER to the jboss/server name
  | goto END
  | 
  | :MAPPING_TOOLS
  | 
  | if not "%MAP_HOME%" == "" goto SET_RELEASE
  | 
  | echo MAP_HOME is not set.  dummy mapping package will be used.
  | rem echo Set MAP_HOME to the directory of the local mapping tools to avoid this message.
  | set MAP_HOME=%JBOSS_HOME%\server\%ENA_SERVER%\lib
  | 
  | :SET_RELEASE
  | 
  | rem Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
  | rem compatible distribution to which JAVA_HOME points
  | 
  | set ENA_RELEASE=ENA V2.5
  | 
  | if not "%USE_JAVA5%" == "true" goto USE_JAVA4
  | 
  | :USE_JAVA5
  | rem ###############################################################################################
  | rem JAVA 5 and jboss-4.2.1.GA USE
  | rem THESE FOLLOWING ESI JARS MUST BE SET THERE IN ORDER TO TAKE PRECEDENCE OVER JBOSS JMS JARS
  | rem ALL THE OTHER ESI JARS ARE AUTOMATICALLY COPIED INTO %JBOSS_HOME%/server/default/deploy/ena.sar after make_all_v5
  | set ESI_JAR=%ESI_HOME%\config
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_Client.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_Crypto.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_XA.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\commons-logging-api-1.1.jar
  | 
  | set MAP_PATH=%MAP_HOME%\client\classes;%MAP_HOME%\util\lib\util.jar;%MAP_HOME%\aip\lib\aip.jar;%MAP_HOME%\arinc\lib\arinc.jar;%MAP_HOME%\client\lib\client.jar;
  | set JBOSS_CLASSPATH=%ENA_HOME%;%ESI_JAR%;%ENA_HOME%\conf;%MAP_PATH%
  | 
  | set JAVA_OPTS=-Xmx384M -DENA_SERVER=%ENA_SERVER% -Dlog4j.debug -Dlog4j.configuration=esi.log4j.properties -Dj2jcp=%MAP_HOME%\client\bin\classpath.txt -Dena.vpn.test.period=15
  | goto PRINT_INFO
  | rem ###############################################################################################
  | 
  | :USE_JAVA4
  | rem ###############################################################################################
  | rem JDK 1.4 and jboss-3.0 USE
  | echo JAVA4
  | set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar;C:\ENA\jboss\server\%ENA_SERVER%\lib\log4j.jar
  | set ESI_JAR=%JBOSS_HOME%\server\%ENA_SERVER%\lib\log4j.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\esi_clientapi.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\cryptix32.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\domsdk.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\fscontext.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\minml.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib/providerutil.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_Client.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_Crypto.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\sonic_XA.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\xalan.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\xerces.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\xmlParserAPIs.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\xmlrpc.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\starter-impl-1.0.jar
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\ESI_DISTRIB_ClientAPI\lib\starter-interfaces-1.0.jar 
  | set ESI_JAR=%ESI_JAR%;%ESI_HOME%\config
  | 
  | set MAP_PATH=%MAP_HOME%\client\classes;%MAP_HOME%\util\lib\util.jar
  | 
  | set JBOSS_CLASSPATH=%JAVAC_JAR%;%RUNJAR%;%ESI_JAR%;%MAP_PATH%;%ENA_HOME%
  | 
  | rem Setup JBoss sepecific properties
  | set JAVA_OPTS=%JAVA_OPTS% -Xmx384M -Dprogram.name=%PROGNAME% -Djboss.server.name=%ENA_SERVER% -Dlog4j.debug -Dlog4j.configuration=esi.log4j.properties -Dj2jcp=%MAP_HOME%\client\bin\classpath.txt
  | 
  | rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.
  | rem set JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
  | rem ###############################################################################################
  | 
  | :PRINT_INFO
  | echo ===============================================================================
  | echo .
  | echo   ENA_RELEASE: %ENA_RELEASE%  
  | echo .
  | echo   JBoss Bootstrap Environment
  | echo .
  | echo   JBOSS_HOME: %JBOSS_HOME%
  | echo .
  | echo   JAVA: %JAVA%
  | echo .
  | echo   JAVA_OPTS: %JAVA_OPTS%
  | echo .
  | echo   ESI_HOME: %ESI_HOME%
  | echo .
  | echo   MAP_HOME: %MAP_HOME%
  | echo .
  | echo   CLASSPATH: %JBOSS_CLASSPATH%
  | echo .
  | echo   Server:    %ENA_SERVER%
  | echo .
  | echo   ARGS: %ARGS%
  | echo .
  | echo ===============================================================================
  | echo .
  | 
  | cd /d %ENA_HOME%
  | 
  | if not "%USE_JAVA5%" == "true" goto START_WITH_JAVA4
  | 
  | :START_WITH_JAVA5
  | call "%JBOSS_HOME%\bin\run.bat" -b 0.0.0.0
  | goto END
  | 
  | :START_WITH_JAVA4
  | "%JAVA%" %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %ARGS%
  | 
  | :END
  | if "%NOPAUSE%" == "" pause
  | 
  | :END_NO_PAUSE
  | 

The error is generated when i run the start.bat file.
If there is anything else required, then plz let me know.

Regards,
Monadear

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184042#4184042

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184042



More information about the jboss-user mailing list