File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes URGENT! Configuring Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT! Configuring Servlet" Watch "URGENT! Configuring Servlet" New topic

URGENT! Configuring Servlet

Himal Chuli
Ranch Hand

Joined: Aug 06, 2002
Posts: 118
hi folks,
i am working in IBM WebSphere Test Environment for Java and trying to deploy web components. since i am new to it, i am facing problem like followings:
In Tomcat, we could create multiple web application and run whichever we like such As:

These myApp and yourApp servlet context can be defined in servlet.config file in tomcat.
so we can run these two web app like this
this is exactly what i am trying to do in WebSphere Test Environment. now the problem is where can i define these ServletContext.
and also i found a file in
D:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\properties\default.servlet_engine which looks like a configuration file.
it has codes like these

what are $server_root$ and $approot$? where are these value are set?
it would be a great help if anyone could explain me these things.

bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
you might be aware of the fact that WTE(Websphere Test Environment) is a subset of WAS.
when you start the WTE , it checks for three files
1) default.servlet_engine
2) appName.webapp
3) session.xml
you will not require changes in session.xml, while developing a simple application
anyways you define all the applications, in default.servlet_engine...
this is just like server.xml for tomcat. I mean properties file for servlet engine.
this is not application specific...
here is an example for you.
<websphere-webgroup name="check1">
<auto-reload enabled="true" polling-interval="3000"/>
I'm not sure , but according to me the "server_root" is set when we install the VAJ
for this example as <root-uri> is /check1
so to run index.html in check1 you will specify
and there should be a properties file named "check1.weapp" in folder /check1/servlet/
where you need to define all the servlets
this file is similar to web.xml in tomcat
<description>Main Servlet</description>
hope this helps...
I agree. Here's the link:
subject: URGENT! Configuring Servlet
It's not a secret anymore!