*
The moose likes Servlets and the fly likes running a Tomcat example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "running a Tomcat example" Watch "running a Tomcat example" New topic
Author

running a Tomcat example

connie lindstrom
Greenhorn

Joined: Jan 29, 2001
Posts: 5
Hi,
As suggested, went to the _How to make your first JSP page work on Tomcat? It got me up and running the jsp examples in the default Tomcat directory.
Now, it would be nice to have a working directory other than \examples\, for now mydev, per the below example. I thought I followed these instructions, but am to the part about calling the �mydev� directory. Have assiduously followed the directions and am still missing it -
1.Modify the file Server.xml. Add a new Context tag within the ContextManager tag
2. < Context path="/mydev" docbase="webapps/mydev" debug="0" reloadable="true" >
3. < /Context >

The above code was added just below the existing �<Context path=/examples . . .>� code block.
Upon selecting an example, in the mydev directory, this message appears -

Any suggestions would bea ppreciated.
Thanks again for getting me this far, Connie
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

connie:
I would first check to see whether the package structure
in different files involved is correct or not....
also, are you compiling all the .java files?
or are you just accessing the jsp file and assuming that
the java files will be compiled.
To help you, I would need to know more info of what files
you are putting in your mydev directory....
Let me know when you get a chance.
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
connie lindstrom
Greenhorn

Joined: Jan 29, 2001
Posts: 5
Satya,
Thanks for asking these questions. Let me try working with your ideas before pursuing this any further.
Connie
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: running a Tomcat example