Re: Tomcat 5.5 root directory

2010-01-05 Thread File Send
Thanks for reply. Yes, I have default server.xml but I don't see
$CATALINA_BASE/webapps/ROOT anywhere. Can you please suggest what specific
configuration i can set in server.xml.

I am putting my page in $CATALINA_HOME/webapps/ROOT/ but it does not detect
it and gives me following error, however, it detects index.jsp which comes
with tomact. please suggest what is missing here.

HTTP Status 404 - /hello.jsp
--

*type* Status report

*message* */hello.jsp*

*description* *The requested resource (/hello.jsp) is not available.*
Thanks
Joseph


On Mon, Jan 4, 2010 at 12:13 AM, Mark Thomas ma...@apache.org wrote:

 On 04/01/2010 06:57, File Send wrote:
  Hi users,
 
   I am using tomcat 5.5 and its running fine, however, I want to see
 specific
  jsp which I deployed in tomcat. I want to view this page by using url
 like
  http://localhost:8080/my.jsp. In this case, in which directory should i
 keep
  this file (my.jsp). I have tried keeping it in web-apps and other root
  directory but its not showing up.

 Assuming you have a default server.xml,

 $CATALINA_BASE/webapps/ROOT/my.jsp

 Mark



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with1/5/2010
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat

Re: Tomcat 5.5 root directory

2010-01-05 Thread File Send
Thanks for explanation. I am using http://localhost:8080/hello.jsp. I kept
that in $CATALINA_HOME/webapps/ROOT/ and jsp seems to be correct, however,
the issue is still showing up. No modification has made to conf/web.xml and
server.xml. Case is also taken care of.

HTTP Status 404 - /hello.jsp
--

*type* Status report

*message* */hello.jsp*

*description* *The requested resource (/hello.jsp) is not available.*

 Any pointers ??

Thanks,

Joseph
On Tue, Jan 5, 2010 at 1:29 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: File Send [mailto:file.sen...@gmail.com]
  Subject: Re: Tomcat 5.5 root directory
 
  Yes, I have default server.xml but I don't see
  $CATALINA_BASE/webapps/ROOT anywhere.

 For a default Tomcat installation, CATALINA_BASE == CATALINA_HOME; the only
 time the two are different is if you're running multiple Tomcats from a
 single installation.

  Can you please suggest what specific configuration
  i can set in server.xml.

 No changes are needed to server.xml.

  I am putting my page in $CATALINA_HOME/webapps/ROOT/ but it does not
  detect it and gives me following error

 Exactly what URL are you using?  (In your previous message, you referred to
 my.jsp.)  Remember that everything after the host name is case-sensitive,
 even on Windows.  Also, a badly constructed .jsp file might give you a 404
 error (but usually a 500).

  however, it detects index.jsp which comes with tomact.

 The webapps/ROOT/index.jsp file is actually pre-compiled into
 webapps/ROOT/WEB-INF/lib/catalina-root.jar (I have no idea why the
 developers chose to obscure things this way).  Consequently, it is not using
 the JSP servlet at runtime.  The JSP servlet is declared in conf/web.xml; if
 you have changed or corrupted that file, you may well have caused the
 problem with your hello.jsp.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Tomcat 5.5 root directory

2010-01-03 Thread File Send
Hi users,

 I am using tomcat 5.5 and its running fine, however, I want to see specific
jsp which I deployed in tomcat. I want to view this page by using url like
http://localhost:8080/my.jsp. In this case, in which directory should i keep
this file (my.jsp). I have tried keeping it in web-apps and other root
directory but its not showing up.

Thanks,
joseph


directory path

2009-12-07 Thread File Send
Hi Team,

  I have started using Tomcat 5.5.27 recently and now I would like to
integrate with Axis for web service development.However, I could see many
web-inf and lib folders so I am confused where I should keep my library
files. I thought of using this location C:\Documents and Settings\minglau\My
Documents\Tomcat5.5\apache-tomcat-5.5.27\webapps. However, it does not seem
to be appropriate. Another thing - I also wrote jsp and kept it at
C:\Documents and Settings\minglau\My
Documents\Tomcat5.5\apache-tomcat-5.5.27\webapps\ROOT location but its not
getting detected from browser by typing the url
http://localhost:8080/xyz.jsp. Can any one please suggest the answers for
these two issues. I appreciate your help.

Thanks,
Ming


Fwd: Installation directory path for Tomcat 4.0

2009-11-23 Thread File Send
Hi,

I would like to use tomcat 4.0 and configure it in my IBM- Rational
Application developer. In order to configure Tomcat into my IDE, I have
downloaded the tomcat  and I just need to provide the path of the
installation directory.I tried with bin, lib and other directories but RAD
is saying - it does not point to valid tomcat installation. (C:\Documents
and Settings\ming\Desktop\AP\jakarta-tomcat-4.0\bin). Can anyone please
suggest what is the correct directory ? RAD is considering default workbench
JRE.

Thanks,
Ming