• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running a Tomcat example

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
connie lindstrom
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Satya,
Thanks for asking these questions. Let me try working with your ideas before pursuing this any further.
Connie
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic