|
![]() |
![]() JSP uses the wrong JDK versionOn Win32, Resin tries to find Java in the following order:
Apache won't start on Win32The error message might be something like:
srun/install.sh won't compile with Apache 1.3.9This appears to be a problem with Apache for some versions of Unix. Apache's apxs script is missing loader commands. You'll have to modify the apxs script (in /usr/local/apache/bin/apxs) to look something like:
Apache/IIS cannot contact to servlet runnerThe particular error message is something like:
The servlet runner process needs to be started. In resin1.1/bin the srun executable will start the servlet runner. The srun executable will start Java and wait for connections from the web server. File not foundThe web server (IIS or Apache) and the servlet runner (srun), need to find the web pages. The resin.conf file configures srun. You need to add a 'app-dir' property, to tell srun where to look for the root directory.
browser returns test.jsp sourceIf you're running Resin with IIS or Apache, the web server might not know how to handle *.jsp files. On Apache, the httpd.conf needs to add Resin. On IIS, the IIS configuration needs to dispatch *.jsp files to srun_iis.dll.Both may need restarting to see the changes. To test if this is the problem, stop the srun executable. If you browse http://localhost/test.jsp, you should get the 'Cannot connect to servlet runner' message. How to get debugging informationResin can write debugging information to standard output or to any file. To add debugging information add a directive to the resin.conf file.
Resin doesn't update changed servlets and JSP pagesResin has a delay for testing updated servlets and JSP pages. The configuration variable for both is 'class-update-interval' in resin.conf. It's an application-level variable. The default is 15 seconds. So Resin will only check every 15 seconds for an updated page. You can set this value to 0 for development work.
If you want Resin to check servlets for updates every hour, your resin.conf might look like:
Java JSP doesn't compileThe JRE does not contain a Java compiler. You either need to get the JDK or use another compiler. To configure another compiler use:
How do I get exception line numbers?For debugging, it is crucial to get proper line numbers. Unfortunately, Java JITs (just-in-time compilers) remove the line numbers.For development we recomment you turn jit compiling off. On unix, start the server as:
How do I enable session url rewriting?This is only supported in Resin 1.1.b1 and later. You can disable cookies in the resin.conf with a configuration like
How do I keep the generated .java files?By default, Resin removes the generated .java files from a .jsp. To keep the files, you need to add a special logging statement. (Don't worry, it won't generate any output.)
How do I use multiple resin.conf files?This is especially important if you want to use a different
workspace for development than deployment. Just call the
|