• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Servlet deployment in WS

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one give me suggestion how to invoke servlet from WSV3.5,
there are two servlet root directories
1. serverroot/servlet
2. serverroot/host/defaulthost/WSsamples_app/servlets
where to deploy or what makes the difference
is I have to create any servlet engine is WSAS, if so any resource link pls.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The default webapp usually has /usr/WebSphere/AppServer/servlets
added to its classpath. You can see the classpaths for a webapp
through the admin console.
If you are trying to access ur servlets thru a different webapp,
then check the classpath for it in the admin console.
For unregistered servlets :
http://ip/webapp/servlet/package.servlet
For registered servlets :
http://ip/webapp/servlet-alias
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
The first root u are talking about is the servlets directory under the Server Root.U can use this place to put the servlet classes , which generally are not to be reloaded.
While invoking the servlet the following type of URL need to be used.
http://host/servlet/package.servletclass
U need to invoke the servlet using full class path.
If u want to invoke the servlets by alias name, if u need to reload your servlets, want to supply initialization parameter,
want to preload your servlets or want the WAS security to secure the servlets then u need to put the servlets in the web application class path.
The URL to invoke the servlets within the web application is as follows:
http://hostname/webapp path/servlet(alias name).
Hope this clarifies your doubt.
regards
Ram
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic