c:\jakarta-struts
).
weblogic.httpd.webApp.strutsexample=
c:/jakarta-struts/webapps/struts-example.war
http://localhost:7001/strutsexample
c:\jakarta-struts\webapps\WEB-INF\_tmp_war_strutsexample
http://localhost:7001/strutsexample
struts.jar
and
/WEB-INF/classes
to the WebLogic classpath. For this reason,
I would suggest deploying applications as war files to
WebLogic. However, the
same example application can be successfully deployed in
extracted format by
modifying weblogic.properties (assuming the war was
extracted to directory webapps/struts-example):
weblogic.httpd.webApp.strutsexample=
c:/jakarta-struts/webapps/struts-example/
And starting WebLogic with the updated WebLogic classpath. For example:
c:\jdk1.3\bin\java -ms16m -mx64m
-classpath c:\weblogic\lib\weblogic510sp8boot.jar;
sessionid
to
JSESSIONID
, if cookies are used for session
tracking and to jsessionid, if sessions are URL-based.
(There are additional
problems related to URL-based sessions, caused from
BEA's way to encode the session
id (J2EE-incompatible) as query-param. Especially <bean:include>
will not work with
URL-based sessions yet. However, using the correct
session name solves at least some
problems.)
weblogic.properties
for
maximum J2EE-compliance and/or for maximum
performance.
weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=-1,\ setEmptyStrings=false,\ compileCommand=./_jspCompiler_.cmd,\ workingDir=/weblogic/myserver/tmp_classfiles,\ keepgenerated=true,\ debug=true,\ verbose=true
In the above example, the batch file (
_jspCompiler_.cmd
) invokes jikes
which results dramatically reduced startup times (jikes is
about three times faster
than javac.) The batchfile contains only a single line:
@jikes -g -nowarn %*
The next configuration could be used when all tests have been done and speed is the major concern ...
weblogic.httpd.initArgs.*.jsp=\ pageCheckSeconds=-1,\ setEmptyStrings=false,\ compileCommand=./_jspCompiler_.cmd,\ workingDir=/weblogic/myserver/tmp_classfiles,\ keepgenerated=false,\ debug=false,\ verbose=false
... together with ...
@jikes -O -nowarn %*
Weblogic supports similar settings through
<context-params>
in
web.xml
(Please read the latest documentation at the BEA website
for details.)
For additional issues, see also More fixes for WLS 5.1 SP8 from the Struts Developer mailing list
Back to Installation