Tomcat Problems
I've just started using Tomcat and servlet.
I've installed Tomcat in E:\Program Files\Apache Group\Tomcat 5.0 Default Java is J2SDK1.4.2_05 I copied servlet-api.jar from Tomcat's library and put it into J2SDK1.4.2_05's library Here's my java file Code:
import java.io.*; Code:
<?xml version="1.0" encoding="ISO-8859-1"?> Code:
<Context path="E:/Program Files/Apache Group/Tomcat 5.0/webapp docBase="/webapp" debug="0" reloadable="true"> |
I'm in unfamiliar territory here but did you miss a quote from:
Code:
<Context path="E:/Program Files/Apache Group/Tomcat 5.0/webapp(HERE??) docBase="/webapp" debug="0" reloadable="true"> |
Looks like he did forget a quote there. My suggestions are
A) No need to edit your server.conf for this webapp. Just give it it's own directory under webapps B) If that doesn't work Try taking all the ServerUtilities stuff out so you can better diagnose your problem. If none of those work. PM me and I can have a look at your whole source tree |
I upgraded Tomcat and didn't change anything in the server.xml file. Turns out that I forgot to extend the java class to HttpServlet :rolleyes:
|
Whoops. I just saw that. Nice catch.
|
Maybe related or maybe not, but when I try to install Jakarta, the installer says there's no JDK installed and that I need to set a JAVA_HOME environment variable and exits. I've installed J2EE, which presumably should have set JAVA_HOME, but it didn't. I'm clueless as to how to get this thing to work.
|
There is no reason to presume that installing the jdk will set JAVA_HOME for you. You should be ok once you set that environment variable. If you are using Linux, just stick it in /etc/profile.
|
The thing is, I don't know how to set an environment variable in Windows XP.
|
Oh that is not too tricky. Lets see I am a bit rusty. Try this: Right click my computer; Click on the 'Advanced' tab at the top; at the bott om there should be a button 'Enviromental Variables'
|
Thanks, CCJ. I was trying to do it from the command line. Makes me wonder why our smart-alecky tech support people find it so hard to give a straight answer like that.
|
FYI, I also note that you misspelled "Dispatcher" in your web.xml's servlet-class tag.
|
All times are GMT -8. The time now is 03:28 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project