• 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

Can't find servlet in jboss-3.0.4_tomcat-4.1.1.2

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have standalone Tomcat 4.1.x set up, with a servlet in /webapps/portfolio/WEB-INF/classes/testsend.class.
It's invoked from a java application like so:
URL myConnection = new URL("http://joelhost:8080/portfolio/servlet/testsend?id=" + acctnum);
I have an entry in server.xml:
<Context path="/portfolio" docBase="portfolio" debug="0" reloadable="true" />
This works fine; the application invokes the servlet which returns a serialized hashtable using an ObjectInputStream
I set up a .WAR file with the same directory structure to deploy under JBoss/Tomcat.
I made the same entry in the server.xml file as above. However, when I frire up the application, I get a java.io.FileNotFoundException: http://joelhost:8080/portfolio/servlet/testsend?id=1701
 
Joel Cohen
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind. I figured it out - I needed to uncomment the mapping for the invoker servlet in the web.xml file
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic