Newsgroup: it.comp.java
Titolo: [Lungo] [FAQ]Config tomcat

Dotazione
-Linux
-apache
-tomcat come modulo di apache
-#java -version
        java version "1.3.1_02"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
        Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
Ho acquistato JSP, Servlet e MySQL in cui dice che l'installazione base 
funziona subito
ma 
http://localhost:8080
 mi da connessione rifiutata
mentre accetta localhost:80 (quindi apache funzia)
chi mi aiuta? 
avviando tomcat a mano (dopo averlo stoppato)
###################OUTPUT############################################
root@pcstudenti:/usr/share/tomcat/bin# ./tomcat.sh start
Using classpath: /usr/share/tomcat/lib/tomcat.jar
Using JAVA_HOME: /usr/bin/..
Using TOMCAT_HOME: ..
root@pcstudenti:/usr/share/tomcat/bin# 2002-02-06 17:40:00 - 
SessionIdGenerator: Opening /dev/urandom
2002-02-06 17:40:00 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-02-06 17:40:00 - PathSetter: home=/usr/share/tomcat
2002-02-06 17:40:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2002-02-06 17:40:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-02-06 17:40:01 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-admin.xml
2002-02-06 17:40:01 - AutoWebApp: Auto-Adding DEFAULT:/
2002-02-06 17:40:01 - AutoWebApp: Auto-Adding DEFAULT:/cocoon2
2002-02-06 17:40:01 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-02-06 17:40:01 - ContextManager: Tomcat configured and in stable state 
2002-02-06 17:40:01 - ContextManager: Adding  DEFAULT:/examples
2002-02-06 17:40:01 - ContextManager: Adding  DEFAULT:/admin
2002-02-06 17:40:01 - ContextManager: Adding  DEFAULT:/ROOT
2002-02-06 17:40:01 - ContextManager: Adding  DEFAULT:/cocoon2
#############ERRORE1#######################################
2002-02-06 17:40:02 - SimpleRealm: File not found  
/usr/share/tomcat/conf/users/admin-users.xml
EmbededTomcat: Init time 3806
Guessed home=/usr/share/tomcat
java.lang.reflect.InvocationTargetException:
#############ERRORE2###################################
org.apache.tomcat.core.TomcatException: Root cause - Address already in use
        at 
org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(Unknown 
Source)
        at org.apache.tomcat.core.ContextManager.start(Unknown Source)
        at org.apache.tomcat.startup.EmbededTomcat.start(Unknown Source)
        at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
        at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
        at 
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown 
Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown 
Source)
        at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
        at org.apache.tomcat.startup.Main.execute(Unknown Source)
        at org.apache.tomcat.startup.Main.main(Unknown Source)
-- 
Antonello Pasella

         mixed mode)
jdk della sun
grazie ancora all'anima pia che mi risponde
-- 
Antonello Pasella

 ha scritto nel messaggio
news:1319628.gytDmvXUDI@apaella...


 ciao e buon lavoro
anche a te, ho sempre odiato fare il sistemista... adesso mi tocca!
ciao
-- 
Antonello Pasella

        at org.apache.tomcat.core.ContextManager.start(Unknown Source)
La porta 8080 o la 8007 sono gia' in uso: riconfigurale intervenendo sul file server.xml
Per sincerarartene, senza lanciare tomcat, netstat -a | grep 8080 oppure netstat -a | grep
8007 (non so se la sintassi del comando netstat e' corretta, c'ho lo unix un po'
arrugginito :-D) 
Ciao,
    Bruno.
---
| Bruno Bossola
| A Java Software Engineer :-)
| 
http://members.xoom.it/bbruno
| 
http://digilander.iol.it/bbossola

 netstat e' corretta, c'ho lo unix un po' arrugginito :-D)
ok, il file era su 8081 (!? io non l'ho modificato...)
-- 
Antonello Pasella