. 1st changes for a remote deployment tool . better README file git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@647299 13f79535-47bb-0310-9956-ffa450edef68
76 lines
4.3 KiB
Plaintext
76 lines
4.3 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
Websphere Application Server Community Edition (WASCE) 2 or Geronimo 2.0.3 Setup - 2008-04-08 - Jacques Le Roux
|
|
Refer to the Guidelines in the OFBiz documentation : http://docs.ofbiz.org/x/Ah
|
|
To use OFBiz with WASCE 2 or Geronimo 2.0.3 follow the following steps (all steps assume WASCE 2 or Geronimo 2.0.3 is already installed and working)
|
|
|
|
=======================================================================================================================================================
|
|
In function of your OS, copy in the geronimo script (.sh or .bat), the 2 lines below in (at the top)
|
|
of the doneSetArgs section (Windows)
|
|
or the <<elif [ "$1" = "run" ]>> block (Linux)
|
|
|
|
For the ofbiz.home value:
|
|
On Windows dont' worry about the /or \ in , they work both.
|
|
On Linux depending on your distribution you might need to put inside quotes around the ofbizHome value, then don't forget to escape them
|
|
For instance on Ubuntu 6.06 LTS inside quotes are needed, but don't put them for Suze 10...
|
|
|
|
Note :
|
|
If you prefer on WASCE you may use the setven scvript to set your env value. Notably if you want to separate things and have more var to set
|
|
Then copy the 2 lines below in the setJavaOpts section (Windows) or somewhere in the setEnv script you will find in GERONIMO_HOME/bin (Linux)
|
|
This script does not exist in Geronimo but is anticipated and taken into account.
|
|
If you need it, you may concatenate pre-existing JAVA_OPTS, same for CLASSPATH. But it's not needed for OFBiz alone.
|
|
=======================================================================================================================================================
|
|
|
|
<#assign classpath = ""/>
|
|
<#list classpathDirs as dir>
|
|
<#assign classpath = classpath + dir + pathSeparatorChar/>
|
|
</#list>
|
|
<#assign classpath = classpath?substring(0, classpath?length - 1)/>
|
|
|
|
Windows
|
|
-------
|
|
set JAVA_OPTS=-Dofbiz.home="${ofbizHome}" -Xms256M -Xmx512M -XX:MaxPermSize=128M -Duser.language=en
|
|
set CLASSPATH=${classpath}
|
|
|
|
Linux
|
|
-----
|
|
Add this 2 lines after the
|
|
elif [ "$1" = "run" ]; then
|
|
line
|
|
JAVA_OPTS="-Dofbiz.home="${ofbizHome}" -Xms256M -Xmx512M -XX:MaxPermSize=128M -Duser.language=en"
|
|
CLASSPATH="${classpath}"
|
|
|
|
|
|
=======================================================================================================================================================
|
|
Change also this line of the geronimo script in the doneSetArgs section (Windows) or in the <<elif [ "$1" = "run" ]>> block (Linux)
|
|
=======================================================================================================================================================
|
|
Windows
|
|
-------
|
|
Replace the line
|
|
%_EXECJAVA% %JAVA_OPTS% %GERONIMO_OPTS% %JAVA_AGENT_OPTS% -Djava.ext.dirs="%GERONIMO_BASE%\lib\ext;%JRE_HOME%\lib\ext" -Djava.endorsed.dirs="%GERONIMO_BASE%\lib\endorsed;%JRE_HOME%\lib\endorsed" -Dorg.apache.geronimo.base.dir="%GERONIMO_BASE%" -Djava.io.tmpdir="%GERONIMO_TMPDIR%" -jar %_JARFILE% %_LONG_OPT% %CMD_LINE_ARGS%
|
|
by
|
|
%_EXECJAVA% %JAVA_OPTS% %GERONIMO_OPTS% %JAVA_AGENT_OPTS% -Djava.ext.dirs="%GERONIMO_BASE%\lib\ext;%JRE_HOME%\lib\ext" -Djava.endorsed.dirs="%GERONIMO_BASE%\lib\endorsed;%JRE_HOME%\lib\endorsed" -Dorg.apache.geronimo.base.dir="%GERONIMO_BASE%" -Djava.io.tmpdir="%GERONIMO_TMPDIR%" -cp .;%_JARFILE%;%CLASSPATH% %_LONG_OPT% %CMD_LINE_ARGS% %MAINCLASS%
|
|
|
|
Linux
|
|
-----
|
|
Replace the line
|
|
-jar "$GERONIMO_HOME"/bin/server.jar $LONG_OPT "$@"
|
|
by
|
|
-classpath ".":"$GERONIMO_HOME"/bin/server.jar:"$CLASSPATH" org.apache.geronimo.cli.daemon.DaemonCLI $LONG_OPT "$@" |