J2EE 1.4 Application Server doesn't start
I have downloaded Java 2 Platform, Enterprise Edition 1.4 SDK Developer Release from http://java.sun.com/j2ee/1.4/download-dr.html for Windows XP and installed it without any problems on Windows XP Pro SP1.
I can compile with javac the .java file und run with java the .class file. But I can't start the J2EE 1.4 Application Server.
When I try to start the default domain (or samples domain)as specified in the Quick Start, it errors out. It displays a Java Virtual Machine launcher error "Could not find the main class. Program will exit". The Log file in <install dir>\domains\domain1\logs\server.log is also empty.
Error message "CLI156 Could not start the domain1"
I have set the enviroment variable PATH and CLASSPATH.
This is my path
PATH=C:\Sun\AppServer\jdk\bin
This is my classpath
CLASSPATH=.;C:\Sun\AppServer\jdk\lib;C:\Sun\AppServer\jdk\jre\lib\
How can I overcome this problem? Please help !
Thanks in advance,
Regards,
I guss the problem is in the file startserv.bat, but i don't know the problem.
This a copy from startserv.bat:
@echo off
if "%OS%" == "Windows_NT" setlocal
rem
rem Sun ONE App Server startup scripts
rem
rem Environment Variable Prequisites
rem
remJAVA_HOMEMust point at your Java Development Kit installation.
rem
rem $Id: startserv.tomcat.bat.template,v 1.13 2003/09/22 11:16:59 sanjeevk Exp $
rem
rem Get standard environment variables
set PRG=%0
set ASENV_CONF_LOCATION=C:/Sun/AppServer/config
set SERVER_NAME=server
set DOMAIN_NAME=domain1
if exist %ASENV_CONF_LOCATION%\asenv.bat goto gotCmdPath
rem %0 must have been found by DOS using the %PATH% so we assume that asenv.bat
rem will also be found in the %PATH%
call asenv.bat
goto doneSetenv
:gotCmdPath
call "%ASENV_CONF_LOCATION%\asenv.bat"
:doneSetenv
set INSTANCE_ROOT=C:\Sun\AppServer\domains\domain1
set JAVA_HOME=%AS_JAVA%
rem Make sure prerequisite environment variables are set
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo The JAVA_HOME environment variable is not defined
echo This environment variable is needed to run this program
goto end
:gotJavaHome
rem Get command line arguments and save them
rem set CMD_LINE_ARGS=
rem :setArgs
rem if ""%1""=="""" goto doneSetArgs
rem set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
rem shift
rem goto setArgs
rem :doneSetArgs
set PATH=%AS_INSTALL%\lib;%AS_INSTALL%\bin;%PATH%
cd %INSTANCE_ROOT%\config
rem Launch the S1AS server using s1as-start target
"%JAVA_HOME%\bin\java" -classpath "%AS_INSTALL%\lib";"%AS_INSTALL%\lib\commons-launcher.jar";"%AS_INSTALL%\lib\appserv-admin.jar";"%AS_INSTALL%\lib\appserv-rt.jar";"%AS_ANT_LIB%\ant.jar";"%AS_ANT_LIB%\optional.jar";"%AS_INSTALL%\lib\endorsed\xercesImpl.jar";"%AS_INSTALL%\lib\endorsed\xalan.jar" -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Dcom.sun.aas.instanceRoot="%INSTANCE_ROOT%" -Dcom.sun.aas.configRoot="%ASENV_CONF_LOCATION%" LauncherBootstrap s1as-server -DJAVA_HOME="%JAVA_HOME%"-Dserver.name="%SERVER_NAME%" -Ddomain.name="%DOMAIN_NAME%" -DCATALINA_OPTS="%CATALINA_OPTS%" start %*
:end

