struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Pearson" <e...@cariboulake.com>
Subject RE: Got Struts working with Weblogic 5.1 (sp5+)
Date Mon, 09 Oct 2000 20:29:18 GMT

Here's my startweblogic.cmd file.  Let me know if this doesn't help.

  -- Erik

--
Erik Pearson                                       Caribou Lake Software
erik@cariboulake.com                         http://www.cariboulake.com/
612.837.9802x20 (office)
612.868.1392 (cell)


@echo off
@rem $Id: startWebLogic.cmd,v 1.1 2000/09/14 16:59:52 erik Exp $

@rem This script can be used to start WebLogic Server. It contains
@rem following variables:
@rem
@rem JAVA_HOME      - Determines the version of Java used to start
@rem                  WebLogic Server. This variable must point to the
@rem                  root directory of a JDK or JRE installation. See
@rem                  the WebLogic platform support page
@rem                  (http://www.weblogic.com/docs51/platforms/index.html)
@rem                  for an up-to-date list of supported JVMs on Windows
NT.
@rem                  Because of packaging differences between versions of
Java,
@rem                  this script will not work with a JRE 1.1.7
installation.
@rem PRE_CLASSPATH  - Use this variable to prepend jar files or directories
to
@rem                  the WEBLOGIC_CLASSPATH.
@rem POST_CLASSPATH - Use this variable to append jar files or directories
to
@rem                  the end of the WEBLOGIC_CLASSPATH.
@rem
@rem When setting these variables below, please use short file names (8.3).
@rem To display short (MS-DOS) filenames, use "dir /x". File names with
@rem spaces will break this script.
@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 For additional information, refer to Installing and Setting up WebLogic
@rem Server (/install/index.html in your local documentation set or on the
@rem Internet at http://www.weblogic.com/docs51/install/index.html).

SETLOCAL

@rem Set user-defined variables. Note that JAVA_HOME will be taken
@rem from the environment, if it is already defined.
if "%JAVA_HOME%" == "" set JAVA_HOME=.\jre1_2\jre
@rem if "%JAVA_HOME%" == "" set JAVA_HOME=\progra~1\micros~1.2

set PRE_CLASSPATH=c:\weblogic\lib\weblogic510sp5.jar
set POST_CLASSPATH=

set
PRE_JAVA_CLASSPATH=c:\weblogic\lib\weblogic510sp5boot.jar;C:\java\jaxp1.0.1\
jaxp.jar;C:\java\jaxp1.0.1\parser.jar
set POST_JAVA_CLASSPATH=

@rem Check that script is being run from WebLogic root directory
if not exist license\WebLogicLicense.xml goto wrongplace
if not exist weblogic.policy goto wrongplace
goto checkJRE

:wrongplace
echo startWebLogic.cmd: must be run from the WebLogic installation
directory. 1>&2
goto finish

:checkJRE
if exist %JAVA_HOME%\lib\nul goto whichJRE
if exist %JAVA_HOME%\classes\nul goto whichJRE
echo.
echo The JRE wasn't found in directory %JAVA_HOME%.
echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
echo variable points to the root directory of your Java installation.
goto finish

:whichJRE
echo on
set PATH=.\bin;%PATH%
@if exist %JAVA_HOME%\Bin\JView.exe goto runWebLogicJview
@if exist %JAVA_HOME%\..\JView.exe goto runWebLogicJview
@if exist %JAVA_HOME%\lib\classes.zip goto setJava117
set JAVA_CLASSPATH=.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar
goto runWebLogicJava

:setJava117
set
JAVA_CLASSPATH=%JAVA_HOME%\lib\classes.zip;.\classes\boot;.\eval\cloudscape\
lib\cloudscape.jar
goto runWebLogicJava

:runWebLogicJava

if "%PRE_JAVA_CLASSPATH%" NEQ "" set
JAVA_CLASSPATH=%PRE_JAVA_CLASSPATH%;%JAVA_CLASSPATH%

if "%POST_JAVA_CLASSPATH%" NEQ "" set
JAVA_CLASSPATH=%JAVA_CLASSPATH%;%POST_JAVA_CLASSPATH%

set
WEBLOGIC_CLASSPATH=.\license;.\classes;.\lib\weblogicaux.jar;.\myserver\serv
erclasses

if "%PRE_CLASSPATH%" NEQ "" set
WEBLOGIC_CLASSPATH=%PRE_CLASSPATH%;%WEBLOGIC_CLASSPATH%

if "%POST_CLASSPATH%" NEQ "" set
WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%POST_CLASSPATH%

%JAVA_HOME%\bin\java -ms64m -mx64m -classpath
%JAVA_CLASSPATH% -Dweblogic.class.path=%WEBLOGIC_CLASSPATH% -Dweblogic.home=
. -Djava.security.manager -Djava.security.policy==.\weblogic.policy
weblogic.Server
goto finish

:runWebLogicJview
echo Jview sucks!
goto finish

set CLASSPATH=%windir%\Java\Classes\classes.zip

if "%PRE_CLASSPATH%" NEQ "" set CLASSPATH=%CLASSPATH%;%PRE_CLASSPATH%

set
CLASSPATH=%CLASSPATH%;.\license;.\classes\boot;.\classes;.\lib\weblogicaux.j
ar;.\myserver\serverclasses;.\eval\cloudscape\lib\cloudscape.jar;.\lib\rmiFo
rMs.zip

if "%POST_CLASSPATH%" NEQ "" set CLASSPATH=%CLASSPATH%;%POST_CLASSPATH%

if not exist %JAVA_HOME%\bin\jview.exe goto winntJview
%JAVA_HOME%\bin\jview /d:weblogic.system.disableWeblogicClassPath=true
weblogic.Server
goto finish

:winntJview
echo Jview sucks!
goto finish

%JAVA_HOME%\..\..\winnt\jview
/d:weblogic.system.disableWeblogicClassPath=true weblogic.Server

:finish
ENDLOCAL

> -----Original Message-----
> From: Fredrik Larsson STO [mailto:fredrikl@mind.com]
> Sent: Monday, October 09, 2000 2:21 AM
> To: struts-user@jakarta.apache.org
> Subject: RE: Got Struts working with Weblogic 5.1 (sp5+)
>
>
> What do you have in your classpath when you compile WebAppStartup?
>
> I'm having some troubles since it needs
> com.sun.java.util.collections.Iterator and
> com.sun.java.util.collections.List
>
> Btw nice hack :-)
>
> /Fredrik
>
> -----Original Message-----
> From: Erik Pearson [mailto:erik@cariboulake.com]
> Sent: den 3 oktober 2000 16:19
> To: struts-user@jakarta.apache.org
> Cc: Erik Pearson; joel@cariboulake.com; Dave Andreason; Steve Hanten
> Subject: Got Struts working with Weblogic 5.1 (sp5+)
>
>
>
> After a considerable amount of chasing around e-mails on this subject on
> both this and Bea's newsgroups, I was finally able to get the
> Struts example
> working with Weblogic (verified with sp5 and sp6).  Here are the details:
>
> <snip/>
>

Mime
View raw message