...
Add the following
Highlight |
---|
highlighted lines |
Wiki Markup |
---|
{highlight}highlighted lines{highlight} |
...
Panel |
---|
|
<!-- 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 |
---|
<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 |
---|
|
...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" |
|
...
...
...
...
JAVA_OPTS="-javaagent:%CATALINA_BASE%\webapps\openejb\lib\openejb-javaagent.jar" |
|
...
...
...
rem ----- Execute The Requested Command --------------------------------------- echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% ...snip... |
Wiki Markup |
---|
{card:label=Unix} |
Panel |
---|
|
...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 |
...
...
...
then JAVA_OPTS=""-javaagent:$CATALINA_BASE/lib/openejb-javaagent.jar" |
|
...
...
...
# ----- 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... |
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.