This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URGENT! Configuring Servlet  RSS feed

Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!