在bea安装目录下面\bea\user_projects\domains\mydomain,有一个startWebLogic.cmd
文件,编辑它,里面有set classpath,把你的路径加到里面
文件,编辑它,里面有set classpath,把你的路径加到里面
解决方案 »
- S2SH整合报错Constructor threw exception
- 怎么从公网连接路由下的某一主机?
- 用struct跳转问题解决
- Tomcat到底怎么配置啊?刚才配置了一下,怎么我的Tomcat没打开,在浏览器中也能看到欢迎页面啊
- xml文件的数据库操作请教
- public static void main(String[] args);这句话是不是每个java程序都必须有
- 急,谁能帮忙给mail一份《j2ee应用与bea weblogic server》的源代码?
- websphere studio application development 的使用问题
- 南京地区的做j2ee开发的人多吗
- 一个小问题,晚上结贴:后缀为java的程序用什么调试?
- 在struts结构中,使用filter如何能够重定向?
- 在jsp中调用后台程序,无错,但就是删除不了,帮忙看看。
E:\bea\weblogic700\server\bin\startWLS.cmd
用了SQL Server 2000 Driver for JDBC.exe中的msbase.jar mssqlserver.jar msutil.jar
========================================================
@rem *************************************************************************
@rem This script is used to start WebLogic Server
@rem
@rem To create your own start script for your domain, simply set the
@rem SERVER_NAME variable to your server name then call this script from your
@rem domain directory.
@rem
@rem This script sets the following variables before starting WebLogic Server:
@rem
@rem WL_HOME - The root directory of your WebLogic installation
@rem JAVA_HOME - Location of the version of Java used to start WebLogic
@rem Server. This variable must point to the root directory of a
@rem JDK installation and will be set for you by the installer.
@rem See the WebLogic platform support page
@rem (http://e-docs.bea.com/wls/platforms/index.html) for an up-to-date list of
@rem supported JVMs on Windows NT.
@rem PATH - Adds the JDK and WebLogic directories to the system path.
@rem CLASSPATH - Adds the JDK and WebLogic jars to the classpath.
@rem
@rem Other variables that startWLS takes are:
@rem
@rem WLS_USER - admin username for server startup
@rem WLS_PW - cleartext password for server startup
@rem ADMIN_URL - if this variable is set, the server started will be a
@rem managed server, and will look to the url specified (i.e.
@rem http://localhost:7001) as the admin server.
@rem STARTMODE - set to true for production mode servers, false for
@rem development mode
@rem JAVA_OPTIONS - Java command-line options for running the server. (These
@rem will be tagged on to the end of the JAVA_VM and MEM_ARGS)
@rem JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
@rem -client, etc.)
@rem MEM_ARGS - The variable to override the standard memory arguments
@rem passed to java
@rem PRE_CLASSPATH - Path style variable to be added to the beginning of the
@rem CLASSPATH
@rem POST_CLASSPATH - Path style variable to be added to the end of the
@rem CLASSPATH
@rem PRE_PATH - Path style variable to be added to the beginning of the
@rem PATH
@rem POST_PATH - Path style variable to be added to the end of the PATH
@rem
@rem Alternately, this script will take the first two positional parameters
@rem and set them to SERVER_NAME and ADMIN_URL. For instance, you could call
@rem this script: "startWLS.cmd myserver http://localhost:7001" to
@rem start a managed server named myserver, or just "startWLS.cmd
@rem myserver" to start a server named myserver.
@rem
@rem jDriver for Oracle users: This script assumes that native libraries
@rem required for jDriver for Oracle have been installed in the proper
@rem location and that your system PATH variable has been set appropriately.
@rem
@rem For additional information, refer to the WebLogic Server Administration
@rem Guide (http://e-docs.bea.com/wls/docs70/adminguide/startstop.html).
@rem *************************************************************************@echo off
SETLOCALset WL_HOME=e:\bea\weblogic700
set JAVA_HOME=e:\bea\jdk131_03@rem Check that the WebLogic classes are where we expect them to be
:checkWLS
if exist "%WL_HOME%\server\lib\weblogic.jar" goto checkJava
echo The WebLogic Server wasn't found in directory %WL_HOME%\server.
echo Please edit your script so that the WL_HOME variable points
echo to the WebLogic installation directory.
goto finish@rem Check that java is where we expect it to be
:checkJava
if exist "%JAVA_HOME%\bin\java.exe" goto runWebLogic
echo The JDK wasn't found in directory %JAVA_HOME%.
echo Please edit your script so that the JAVA_HOME variable
echo points to the location of your JDK.
goto finish:runWebLogicif not "%JAVA_VM%" == "" goto noResetJavaVM
set JAVA_VM=-hotspot:noResetJavaVM
if not "%MEM_ARGS%" == "" goto noResetMemArgs
set MEM_ARGS=-Xms32m -Xmx200m:noResetMemArgs@rem Set first two positional parameters to SERVER_NAME and ADMIN_URL
if not "%1" == "" if "%SERVER_NAME%" == "" set SERVER_NAME=%1
if not "%2" == "" if "%ADMIN_URL%" == "" set ADMIN_URL=%2set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;e:\bea\sql\msbase.jar;e:\bea\sql\mssqlserver.jar;e:\bea\sql\msutil.jar;%CLASSPATH%set PATH=.;%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%@rem Import extended environmentif exist extEnv.cmd call extEnv.cmd
if not "%EXT_PRE_CLASSPATH%" == "" set CLASSPATH=%EXT_PRE_CLASSPATH%;%CLASSPATH%
if not "%EXT_POST_CLASSPATH%" == "" set CLASSPATH=%CLASSPATH%;%EXT_POST_CLASSPATH%
if not "%EXT_PRE_PATH%" == "" set PATH=%EXT_PRE_PATH%;%PATH%
if not "%EXT_POST_PATH%" == "" set PATH=%PATH%;%EXT_POST_PATH%@rem Get PRE and POST environment
if not "%PRE_CLASSPATH%" == "" set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%
if not "%POST_CLASSPATH%" == "" set CLASSPATH=%CLASSPATH%;%POST_CLASSPATH%
if not "%PRE_PATH%" == "" set PATH=%PRE_PATH%;%PATH%
if not "%POST_PATH%" == "" set PATH=%PATH%;%POST_PATH%@echo.
@echo CLASSPATH=%CLASSPATH%
@echo.
@echo PATH=%PATH%
@echo.
@echo ***************************************************
@echo * To start WebLogic Server, use a username and *
@echo * password assigned to an admin-level user. For *
@echo * server administration, use the WebLogic Server *
@echo * console at http://[hostname]:[port]/console *
@echo ***************************************************@rem Start Server@echo off
if "%ADMIN_URL%" == "" goto runAdmin
@echo on
"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dbea.home="e:\bea" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.management.server=%ADMIN_URL% -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server
goto finish:runAdmin
@echo on
"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dbea.home="e:\bea" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server:finishENDLOCAL