permaculture playing cards
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

running a Tomcat example

connie lindstrom

Joined: Jan 29, 2001
Posts: 5
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

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.
- satya

Take a Minute, Donate an Hour, Change a Life
connie lindstrom

Joined: Jan 29, 2001
Posts: 5
Thanks for asking these questions. Let me try working with your ideas before pursuing this any further.
I agree. Here's the link:
subject: running a Tomcat example
It's not a secret anymore!