Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Does not run the classes

Subject: Does not run the classes

2004-11-23       - By Nuruthin Ahammed

 Back
Reply:     1     2     3     4  

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) and include in the body
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

©2008 junlu.com - Jax Systems, LLC, U.S.A.