tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jang won koh <jw...@ilstu.edu>
Subject tomcat
Date Wed, 20 Dec 2000 03:42:16 GMT
<html>
you are successfully running it.<br>
for testing see this.<br>
<br>
These are all the errors I encountered and fixed overnight during
Tomcat<br>
installation. ):-(<br>
<br>
1. Error Message, &quot;Out of environment space:&quot; --&gt; right
click on startup.bat<br>
and click on property and click memory tab and choose initial
environment<br>
drop-down box and choose 2048 or bigger. It doesn't have to be 2048+ but
a<br>
bigger number has the better chance of working. You can choose property
by<br>
clicking the top left corner of the console window.<br>
<br>
For reference, I saw in a website a guy says - To solve the 'Out of<br>
Environment Space' error you must edit CONFIG.SYS (again, the old MS-DOS
not<br>
so defunct operating system presence). You must add the following
line:<br>
SHELL=C:\COMMAND.COM /E:8192 /P<br>
please replace C:\COMMAND.COM to the correct location if you moved<br>
COMMAND.COM to another location. The &quot;/E:8192&quot; allocates 8k to
be used by<br>
environment variables. The maximum allowed is 32k (35736). The last<br>
parameter, &quot;/P&quot;, is used to make this COMMAND.COM instance
resident in<br>
memory and owner of main environment space (from which every
process<br>
receives a copy).<br>
<br>
2. Error Message, &quot;only DOS 8.3 names may be used in
TOMCAT_HOME!&quot;--&gt; You<br>
are using Windows Explorer folder name find dos name of the
folder(=<br>
directory) using DIR command in DOS console. If you have long dir name
in<br>
windows explorer such as &quot;jakarta-tomcat-3.2.1&quot;, it will show
up as jakart~1<br>
in DOS. Use this 8 character long name.<br>
<br>
2a. Use simple folder(=directory) names for JDK(=J2SDK 1.3) and TOMCAT.
I<br>
used default names &quot;j2sdk1.3&quot; and
&quot;jakarta-tomcat-3.2.1&quot; They caused<br>
conflicts in *.bat files when starting tomcat. Especially DON'T USE
&quot;.&quot; in<br>
those folder names. USE 8 characters-long name, or find matching DOS
DIR<br>
name for the windows explorer long folder names. So I uninstalled
and<br>
reinstalled JDK in the folder,&quot;j2sdk&quot; and tomcat in the folder,
&quot;tomcat&quot;.<br>
<br>
3. Common and Hard-to-find ERROR: Type in SET JAVA_HOME=C:\JDK in the
first<br>
line after REM lines (REM lines are comment lines so they are ignored
in<br>
execution)in startup.bat file. ***** VERY IMPORTANT NOT TO HAVE
SPACES<br>
before and after &quot;=&quot; *****<br>
<br>
4. Include tomcat\lib\servlet.jar and tomcat\lib\jasper.jar(or
jspengine.jar<br>
or somthing similar) in classpath. For example, add a line in<br>
c:\AUTOEXEC.BAT<br>
classpath=e:\java\tomcat\lib\jasper.jar;e:\java\tomcat\lib\servlet.jar;%clas<br>
spath%<br>
<br>
5. Testing. run startup.bat. It should show 2 DOS console windows. 2nd
DOS<br>
console window should show date and contextmanager blah blah in
several<br>
lines. This means tomcat is running.<br>
<br>
6. Testing Servlet. Write and compile a servlet. Move the compile
servlet<br>
class file(let's say HelloWorld.class) to<br>
tomcat\webapps\root\web-inf\classes. In browser, go to<br>
<font color="#0000FF"><u>URL:http//localhost:8080/servlet/HelloWorld</u></font>
. You can replace localhost with<br>
127.0.0.1 or another IP and port number if you know. To test servlets in<br>
tomcat\webapps\test\web-inf\classes or<br>
tomcat\webapps\examples\web-inf\classes<br>
<font color="#0000FF"><u><a href="http://localhost:8080/test/servlet/HelloWorld"
eudora="autourl">http://localhost:8080/test/servlet/</a><a href="http://localhost:8080/test/servlet/HelloWorld"
eudora="autourl">HelloWorld</a></u></font> or replace test with examples.<br>
<br>
7. Testing JSP. Move a jsp file(let's say test.jsp) to<br>
tomcat/webapps/root/jsp. I created that folder. Go to<br>
<font color="#0000FF"><u>URL:http://localhost:8080/jsp/test.jsp.or</u></font>
try the sample <a href="http://localhost:8080/test/jsp/parse.jsp" eudora="autourl"><font
color="#0000FF"><u>http://localhost:8080/test/jsp/parse.</a><a href="http://localhost:8080/test/jsp/parse.jsp"
eudora="autourl">jsp</a></u></font> it's in .....\webapps\test\jsp.<br>
</html>



------=_NextPart_000_78c4_9aa_7526--

Mime
View raw message