Home > Ask the SOA Experts > Questions & Answers > Changing the servlet context in Apache 5.x
Ask The SOA Expert: Questions & Answers
EMAIL THIS

Changing the servlet context in Apache 5.x

Jeff  Hanson EXPERT RESPONSE FROM: Jeff Hanson

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 05 October 2005
In Apache 5.0 and 5.5, for every program, I need to change the servlet name, class name, etc in the web.xml file. This doesn't seem to the case in Apache Tomcat 4.0. Why?

>

According to the Tomcat 5.0 release notes:

"Having CGI and SSI available to web applications created security problems when using a security manager (as a malicious Web application could use them to sidestep the security manager access control). In Tomcat 5.0, they have been disabled by default, as our goal is to provide a fully secure default configuration. However, CGI and SSI remain available.

To enable CGI:

  • rename the file $CATALINA_HOME/server/lib/servlets-cgi.renametojar to $CATALINA_HOME/server/lib/servlets-cgi.jar.
  • in $CATALINA_HOME/conf/web.xml, you will need to uncomment 2 areas, the servlet declaration and the servlet mapping. The servlet declaration looks similar to this:

    <servlet>
        <servlet-name>cgi</servlet-name>
        ...
    </servlet>

While the servlet mapping looks similar to this:

    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>

Alternately, these servlet declarations and mappings can be added to your Web application deployment descriptor.

To enable SSI:

  • * rename the file $CATALINA_HOME/server/lib/servlets-ssi.renametojar to $CATALINA_HOME/server/lib/servlets-ssi.jar.
  • in $CATALINA_HOME/conf/web.xml, you will need to uncomment 2 areas, the servlet declaration and the servlet mapping. The servlet declaration looks similar to this:

    <servlet>
        <servlet-name>ssi</servlet-name>
        ...
    </servlet>

While the servlet mapping looks similar to this:

    <servlet-mapping>
        <servlet-name>ssi</servlet-name>
        <url-pattern>*.shtml</url-pattern>
    </servlet-mapping>

Alternately, these servlet declarations and mappings can be added to your Web application deployment descriptor."


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web services development
Java-based Abdera open source tools implement Atom services
Layer 7 secures Oracle ESB, protects SOA applications
Gomez adds new features through platform-wide upgrade
PowerBuilder 12 beta available
RAD Studio 2010 hits the shelves
Oracle brings Fusion Middleware into the modern age
Oracle Fusion Middleware 11g supports SCA, JavaServer Faces development
Investment site turns to Xignite, Amazon cloud computing to power portfolio tracker
SimpleDB shows promise
Yahoo says no deal

Apache Web services
CXF open source framework merges SOAP toolkit with Celtix ESB
SOA for pets uses REST and SOAP
More coders feeling Groovy
SpringSource buys Covalent
Sun acquiring MySQL
IBM says it's sticking by Geronimo
Geronimo's days numbered?
Apache Wicket with Ajax updates
When choice is Ajax or Flex
Apache releases open source ESB

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
ColdFusion  (SearchSOA.com)
Delphi  (SearchSOA.com)
Eclipse  (SearchSOA.com)
elegant solution  (SearchSOA.com)
interaction management  (SearchSOA.com)
message-driven processing  (SearchSOA.com)
Ruby on Rails  (SearchSOA.com)
Tim Berners-Lee  (SearchSOA.com)
Web services  (SearchSOA.com)
Web Services: Glossary  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts