|
We are proud to offer Jsp/Servlet support on our Linux Servers using
Tomcat 5.0.28. Tomcat is an implementation of the official Servlet 2.4 and JSP 2.0
specifications developed by Sun
Microsystems. We are currently running Tomcat 5.0.28 with the Java (TM) 2 SDK 1.4.2 from the IBM.
|
Technical Support |
---|
Other than problems with getting the Wizard examples working, there is no unpaid support for Java Servlets/JSP. They are very powerful and complex components and beyond what we can support for our large volume of web sites. Outside of contracted support, questions will be answered on an "as available" basis.
If you find a valuable Java Servlet/JSP resource you would like to share with others, please let us know and we will add a link and information to this page.
Notes: |
---|
With each tomcat installation we install the Tomcat Web Application Manager which allows you to stop/start/reload your WARS. You can reach this using a url like http://www.yourdomain.com/manager/html/list. This application is password protected with your control panel username and password.
Using the Tomcat Web Application Manager, you can add additional WARS to your website. Once the WAR has been deployed, it will be available by accessing port 8080 on your website. ie - if your new war is named mywar, you will be able to access it using the URL of http://www.yourdomain.com:8080/mywar.
The normal web server listens for requests on port 80. Tomcat listens for requests on port 8080. With the example WAR, we have configured the normal apache server to forward all requests for this directory to the Tomcat server listening on port 8080. You can also access Tomcat directly on port 8080. ie - http://www.yourdomain.com:8080. If you want to incorporate JSP/Servlets within your website without specifying the port, we suggest that you place your files within the example directory and create your links appropriately.
The Tomcat Application Manager allows you to control your WARs. You can stop/start/reload your existing WARs. If you have made a change to your web.xml file, you may have to reload the WAR for Tomcat to recognize your changes.
You can also add a new WAR to Tomcat. This new war will only exist for the duration of the current run of Tomcat. Upon the next system update (daily at 4am, 8am, 12 pm, 4pm, 8pm, 12am) Tomcat may be restarted. If you need to add a new WAR to your website, let us know at service@thebook.com. A new WAR can be either a .war file (ie - myWar.war) or a directory (ie /pub/users/thebook-demo/www/myWar/).
To add a new WAR using the Tomcat Application Manager.
Below is a list of all legal tags that can occur directly within an <web-app>...</web-app> element. They are all optional, but if they appear, they must appear in the order given below.
<icon>
<display-name>
<description>
<distributable>
<context-param>
<filter>
<filter-mapping>
<listener>
<servlet>
<servlet-mapping>
<session-config>
<mime-mapping>
<welcome-file-list>
<error-page>
<taglib>
<resource-env-ref>
<resource-ref>
<security-constraint>
<login-config>
<security-role>
<env-entry>
<ejb-ref>
<ejb-local-ref>
To compile your own servlets via telnet, you would have to use the java compiler.
To compile the java source for HelloWorldExample.java, you would
first cd to java-server/WEB-INF/classes, then give the following command:
javac -classpath /usr/local/etc/tomcat/common/lib/servlet.jar HelloWorldExample.java
If you have additional class files you need to compile against, you would have to adjust the classpasth appropriately.
Helpful JSP Links: |
---|
Here are a few links we have found useful.
http://www.jspin.com/home/references/coderefe/jsp
http://www.onjava.com/pub/a/onjava/excerpt/java_cookbook_ch18/index.html
http://javaboutique.internet.com/tutorials/JSP/
|