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 http://localhost:8080/myApp/index.jsp http://localhost:8080/yourApp/yourindex.jsp 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. thanks.
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"> <description>check1</description> <document-root>$approot$/web</document-root> <classpath>$approot$/servlets$psep$$server_root$/servlets</classpath> <root-uri>/check1</root-uri> <auto-reload enabled="true" polling-interval="3000"/> <shared-context>false</shared-context> </websphere-webgroup> 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 http://localhost:8080/check1 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 <servlet> <name>MainServlet</name> <description>Main Servlet</description> <code>com.check1.common.MainServlet</code> <servlet-path>/MainServlet</servlet-path> <autostart>true</autostart> </servlet> hope this helps...