Re: Tomcat 5.5 root directory

2010-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joseph,

On 1/5/2010 8:06 PM, File Send wrote:
 I looked into logs folder but its empty. I have attached here the content of
 ROOT directory. I made permission to read using property. it was not there
 before.
 
 *How to verify which userid tomcat is using and what access it has ?* I have
 no access to admin and it asks me to install admin package. Please let me
 know for more information.

Uh, oh. It sounds like you're using a re-packaged version of Tomcat. Can
you specify your environment?

If you are using, say, Debian's Tomcat package, then the definition of
CATALINA_BASE/webapps/ROOT becomes somewhat muddled. You might have to
use, instead, something like /var/www/webapps/ROOT or whatever setup
Debian's Tomcat package demands. You'll have to read the documentation
for your package maintainer's version of Tomcat, or hope someone on the
list knows how to configure it and happens to read this thread.

This is the danger of running package-managed versions of Tomcat instead
of the official package: readers on this list can rarely help because
each package is configured completely differently.

I hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktElKAACgkQ9CaO5/Lv0PAkvACgrpgxgTNxvLO/hFxQgZVxqpla
8yoAnjlweVtCPdF7bSvOBO3PBNmXn7P8
=bUJM
-END PGP SIGNATURE-

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



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 Caldarale, Charles R
 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



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




RE: Tomcat 5.5 root directory

2010-01-05 Thread Caldarale, Charles R
 From: File Send [mailto:file.sen...@gmail.com]
 Subject: Re: Tomcat 5.5 root directory
 
 Any pointers ??

Look in the Tomcat logs for any messages.

Show us the contents of webapps/ROOT - including permissions.

Verify that the userid Tomcat is running under has at least read access to the 
.jsp file and full access to the work directory (where the generated .java and 
.class files will be written to).

 - 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



Re: Tomcat 5.5 root directory

2010-01-04 Thread Mark Thomas
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