Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Wiki Markup
{deck}

Add the following

Highlight
highlighted lines
Wiki Markup
{highlight}highlighted lines{highlight}

...

Panel
titleconf/server.xml

<!-- Note: A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
-->
<Server port="8005" shutdown="SHUTDOWN">
  

...

Highlight
<!--

...

OpenEJB

...

plugin

...

for

...

tomcat

...

-->

...


  

...

Highlight
<Listener className="org.apache.openejb.loader.OpenEJBListener"

...

/>

...

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
...snip...

Update the Tomcat annotations-api.jar file

...

Simply, add the following

Highlight
highlighted lines
Wiki Markup
{highlight}highlighted lines{highlight}

...

Wiki Markup
{deck:id=update script}
Wiki Markup
{card:label=Windows}
Panel
titlebin/catalina.bat

...snip...
if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuli
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
:noJuli

...

Highlight
rem Add OpenEJB javaagent
if not exist "%CATALINA_BASE%\webapps\openejb\lib\openejb-javaagent.jar"

...

goto

...

noOpenEJBJavaagent

...


set

...

JAVA_OPTS="-javaagent:%CATALINA_BASE%\webapps\openejb\lib\openejb-javaagent.jar"

...

%JAVA_OPTS%

...


:noOpenEJBJavaagent

...

rem ----- Execute The Requested Command ---------------------------------------

echo Using CATALINA_BASE: %CATALINA_BASE%
echo Using CATALINA_HOME: %CATALINA_HOME%
...snip...

Wiki Markup
{card}
Wiki Markup
{card:label=Unix}
Panel
titlebin/catalina.sh

...snip...
# Set juli LogManager if it is present
if -r "$CATALINA_BASE"/conf/logging.properties; then
  JAVA_OPTS="$JAVA_OPTS "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" "-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
fi

...

Highlight
# Add OpenEJB javaagent
if -r "$CATALINA_BASE"/webapps/lib/openejb-javaagent.jar

...

;

...

then
  JAVA_OPTS=""-javaagent:$CATALINA_BASE/lib/openejb-javaagent.jar"

...

$JAVA_OPTS"

...


fi

...

# ----- Execute The Requested Command -----------------------------------------

# Bugzilla 37848: only output this if we have a TTY
if $have_tty -eq 1; then
  echo "Using CATALINA_BASE: $CATALINA_BASE"
...snip...

Wiki Markup
{card}
Wiki Markup
{deck}

NOTE: The example above is an excerpt from the middle of the bin/catalina.sh file. Search for "Execute" in the file to locate the correct position in the file to add the new lines.