instalacao do tomcat

2002-10-10 Thread mariangelafirmino

Estou instalando o tomcat, tive sucesso ate a instalacao
do mesmo, porém estou tendo problemas ao digitar um
exemplo e visualiza-lo, tem algo a ver com configuraçao
de server.xml. Já instalei tambem o kit SDK. Estou
seguindo o livro JSP - Francisco B.Junior, da editora
Erica. Fiz todos os passos corretamente, mas nao estou
tendo exito. Por favor, se possivel me de um retorno.

Obrigada.

Mariangela.

Obs: Estou enviando parte do codigo da configuracao do
server.xml.
!-- Tomcat Root Context --
!--
  Context path= docBase=ROOT debug=0/
--

!-- Tomcat Manager Context --
Context path=/manager docBase=manager
 debug=0 privileged=true/

!-- Tomcat Examples Context --
Context path=/examples docBase=examples
debug=0
 reloadable=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/
  !-- PersistentManager: Uncomment the section
below to test Persistent
   Sessions.

   saveOnRestart: If true, all active
sessions will be saved
 to the Store when Catalina is shutdown,
regardless of
 other settings. All Sessions found in
the Store will be
 loaded on startup. Sessions past their
expiration are
 ignored in both cases.
   maxActiveSessions: If 0 or greater, having
too many active
 sessions will result in some being
swapped out. minIdleSwap
 limits this. -1 means unlimited sessions
are allowed.
 0 means sessions will almost always be
swapped out after
 use - this will be noticeably slow for
your users.
   minIdleSwap: Sessions must be idle for at
least this long
 (in seconds) before they will be swapped
out due to
   maxActiveSessions. This avoids thrashing
when the site is
 highly active. -1 or 0 means there is no
minimum - sessions
 can be swapped out at any time.
   maxIdleSwap: Sessions will be swapped out
if idle for this
 long (in seconds). If minIdleSwap is
higher, then it will
 override this. This isn't exact: it is
checked periodically.
 -1 means sessions won't be swapped out
for this reason,
 although they may be swapped out for
maxActiveSessions.
 If set to = 0, guarantees that all
sessions found in the
 Store will be loaded on startup.
   maxIdleBackup: Sessions will be backed up
(saved to the Store,
 but left in active memory) if idle for
this long (in seconds),
 and all sessions found in the Store will
be loaded on startup.
 If set to -1 sessions will not be backed
up, 0 means they
 should be backed up shortly after being
used.

   To clear sessions from the Store, set
maxActiveSessions, maxIdleSwap,
   and minIdleBackup all to -1, saveOnRestart
to false, then restart
   Catalina.
  --
  !--
  Manager
className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager
  --
  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

parameternameuser/namevaluesa/value/parameter

parameternamepassword/namevalue/value/parameter

parameternamedriverClassName/name

valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name

valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
/Context
!-- Inicio da configuracao da aplicacao testes
no servidor Tomcat --
Context path=/testes docBase=testes
debug=0 reloadable=true
defaultionSessionTimeOut=30
isWARExpanded=true isWARValidated=false
isInvokerEnabled=true
isWorkDirPersistent=false/

Re: instalacao do tomcat

2002-10-10 Thread Felipe Schnack

  Messages to this list must be written in english, Mariangela.
  The default tomcat installation have examples running. You tried to
start it using the appropriate icon in star tmenu and pointing your
browser to http://localhost:8080/ 

On Wed, 2002-10-09 at 21:51, mariangelafirmino wrote:
 Estou instalando o tomcat, tive sucesso ate a instalacao 
 do mesmo, porém estou tendo problemas ao digitar um 
 exemplo e visualiza-lo, tem algo a ver com configuraçao 
 de server.xml. Já instalei tambem o kit SDK. Estou 
 seguindo o livro JSP - Francisco B.Junior, da editora 
 Erica. Fiz todos os passos corretamente, mas nao estou 
 tendo exito. Por favor, se possivel me de um retorno.
 
 Obrigada.
 
 Mariangela.
 
 Obs: Estou enviando parte do codigo da configuracao do 
 server.xml.
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
 !-- Tomcat Manager Context --
 Context path=/manager docBase=manager 
  debug=0 privileged=true/
 
 !-- Tomcat Examples Context --
 Context path=/examples docBase=examples 
 debug=0
  reloadable=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/
   !-- PersistentManager: Uncomment the section 
 below to test Persistent 
  Sessions.
  
saveOnRestart: If true, all active 
 sessions will be saved
  to the Store when Catalina is shutdown, 
 regardless of
  other settings. All Sessions found in 
 the Store will be 
  loaded on startup. Sessions past their 
 expiration are
  ignored in both cases.
maxActiveSessions: If 0 or greater, having 
 too many active 
  sessions will result in some being 
 swapped out. minIdleSwap
  limits this. -1 means unlimited sessions 
 are allowed.
  0 means sessions will almost always be 
 swapped out after
  use - this will be noticeably slow for 
 your users.
minIdleSwap: Sessions must be idle for at 
 least this long
  (in seconds) before they will be swapped 
 out due to 
maxActiveSessions. This avoids thrashing 
 when the site is 
  highly active. -1 or 0 means there is no 
 minimum - sessions
  can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out 
 if idle for this
  long (in seconds). If minIdleSwap is 
 higher, then it will
  override this. This isn't exact: it is 
 checked periodically.
  -1 means sessions won't be swapped out 
 for this reason,
  although they may be swapped out for 
 maxActiveSessions.
  If set to = 0, guarantees that all 
 sessions found in the
  Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up 
 (saved to the Store,
  but left in active memory) if idle for 
 this long (in seconds), 
  and all sessions found in the Store will 
 be loaded on startup.
  If set to -1 sessions will not be backed 
 up, 0 means they
  should be backed up shortly after being 
 used.
 
To clear sessions from the Store, set 
 maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart 
 to false, then restart 
Catalina.
   --
 !--
   Manager 
 className=org.apache.catalina.session.PersistentManager
   debug=0
   saveOnRestart=true
   maxActiveSessions=-1
   minIdleSwap=-1
   maxIdleSwap=-1
   maxIdleBackup=-1
 Store 
 className=org.apache.catalina.session.FileStore/
   /Manager
 --
   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
 
 parameternameuser/namevaluesa/value/parameter
 
 parameternamepassword/namevalue/value/parameter
 
 parameternamedriverClassName/name
   
 valueorg.hsql.jdbcDriver/value/parameter
 parameternamedriverName/name
   
 valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams
   Resource name=mail/Session 

Re: instalacao do tomcat

2002-10-10 Thread Andre de Jesus

mariangelafirmino wrote:

Estou instalando o tomcat, tive sucesso ate a instalacao 
do mesmo, porém estou tendo problemas ao digitar um 
exemplo e visualiza-lo, tem algo a ver com configuraçao 
de server.xml. Já instalei tambem o kit SDK. Estou 
seguindo o livro JSP - Francisco B.Junior, da editora 
Erica. Fiz todos os passos corretamente, mas nao estou 
tendo exito. Por favor, se possivel me de um retorno.

Obrigada.

Mariangela.

  

Olá

Tomcat is really very simple to install:

First you will need a recent SDK (ex: 1.4.0 ou 1.4.1).

Next you install Tomcat, and if all goes well it will detect the 
presence of the SDK (if not, you can always change some registry keys so 
that it does).

Finally you need to make sure that tomcat is running, either as a system 
service (like: windows services) or as a separate process. When tomcat 
is running, by typing http://localhost:8080; the documentation page 
should appear.

If you find that tomcat can't execute for some reason, you could try to 
run startup.bat (or startup.sh) - in the tomcat binaries directory - 
from the command line (DOS, bash or cygwin - much better than DOS) to 
find out why.

If tomcat is running but you cannot see your example, then this could 
mean one of the following:

You are not typing the correct url.

You are typing the correct url but the server.xml or web.xml does not 
have the correct configuration.

The url is correct but your JSP or servlet has an error or can't access 
some external resources.


However, note that the examples that come with tomcat (in 
http://localhost:8080/examples/jsp/index.html) do not have errors and 
should run out of the box, with no additional configurations needed.


In any case, you should post a more detailed description (steps taken, 
error messages, etc) so that our response can be more helpful.



Andre de Jesus


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]