I think you are required to define a context "rma" in your server.xml.
On Mon, 22 Nov 2004 22:56:53 -0700, Nuruthin Ahammed
<nuruthinjava@(protected):
>hi
>
>I have two web contexts in my WebApps directory of Tomcat namely ROOT &
rma.
>Inside rma>web-inf>classes there is one file called Testin.class
>
>My the problem is i can't run the Testin thru browser. I gave the url
>http://localhost:8080/rma/servlet/Testin
>
>My classpath is
>
>CLASSPATH=C:\J2EE\lib\tools.jar;c:\Tomcat\common\lib\servlet.jar;c:\Tomcat\
c
>ommon\lib\mysql.jar;C:\Tomcat\webapps\rma\WEB-INF\classes;.;set
>CATALINA_HOME = c:\Tomcat;
>
>Pls tell me what is problem of this
>
>The servler.xml inside the conf folder is like this:
>
>
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
> <Listener className="
org.apache.catalina.mbeans.ServerLifecycleListener"
> debug="0"/>
> <Listener
>className="
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> debug="0"/>
> <GlobalNamingResources>
> <Environment name="simpleValue" type="
java.lang.Integer" value="30"/>
> <Resource name="UserDatabase" auth="Container"
> type="
org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved">
> </Resource>
> <ResourceParams name="UserDatabase">
> <parameter>
> <name>factory</name>
> <value>
org.apache.catalina.users.MemoryUserDatabaseFactory</value>
> </parameter>
> <parameter>
> <name>pathname</name>
> <value>conf/tomcat-users.xml</value>
> </parameter>
> </ResourceParams>
>
> </GlobalNamingResources>
>
> <Service name="Tomcat-Standalone">
> <Connector className="
org.apache.coyote.tomcat4.CoyoteConnector"
>port="8080" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="100" debug="0" connectionTimeout="20000"
> useURIValidationHack="false" disableUploadTimeout="true" />
>
> <Connector
>className="
org.apache.coyote.tomcat4.CoyoteConnector"
> port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="10" debug="0" connectionTimeout="20000"
> useURIValidationHack="false"
>
>protocolHandlerClassName="
org.apache.jk.server.JkCoyoteHandler"/>
>
> <Engine name="Standalone" defaultHost="localhost"
>debug="0">
> <Logger className="
org.apache.catalina.logger.FileLogger"
> prefix="catalina_log." suffix=".txt"
> timestamp="true"/>
> <Realm className="
org.apache.catalina.realm.UserDatabaseRealm"
> debug="0" resourceName="UserDatabase"/>
> <Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>
> <Logger className="
org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
> <Context path="" docBase="ROOT" debug="0"/>
>
> <!-- Tomcat Examples Context -->
> <Context path="/examples" docBase="examples" debug="0"
> reloadable="true" crossContext="true">
>
> <Logger className="
org.apache.catalina.logger.FileLogger"
> prefix="localhost_examples_log." suffix=".txt"
> timestamp="true"/>
> <Ejb name="ejb/EmplRecord" type="Entity"
> home="com.wombat.empl.EmployeeRecordHome"
> remote="com.wombat.empl.EmployeeRecord"/>
> <Environment name="maxExemptions" type="
java.lang.Integer"
> value="15"/>
> <Parameter name="context.param.name" value="context.param.value"
> override="false"/>
> <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
> type="
javax.sql.DataSource"/>
> <ResourceParams name="jdbc/EmployeeAppDb">
> <parameter><name>user</name><value>sa</value></parameter>
> <parameter><name>password</name><value></value></parameter>
> <parameter><name>driverClassName</name>
> <value>org.hsql.jdbcDriver</value></parameter>
> <parameter><name>driverName</name>
> <value>jdbc:HypersonicSQL:database</value></parameter>
> </ResourceParams>
> <Resource name="mail/Session" auth="Container"
> type="
javax.mail.Session"/>
> <ResourceParams name="mail/Session">
> <parameter>
> <name>mail.smtp.host</name>
> <value>localhost</value>
> </parameter>
> </ResourceParams>
> <ResourceLink name="linkToGlobalResource"
> global="simpleValue"
> type="
java.lang.Integer"/>
> </Context>
>
> </Host>
>
> </Engine>
>
> </Service>
> </Server>
>
>
>Thnakx in advance
>
>___________________________________________________________________________
>To unsubscribe, send email to listserv@(protected)
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
I think you are required to define a context with the name "rma" in your
server.xml.
___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html