Newsgroup: it.comp.java
Titolo: eclipse e tomcat

Sono stata costretta a passare da NETBEANS a ECLIPSE ed ho un problema di
configurazione....
Sicuramente Ecplise č un'IDE potentissimo e molto piů flessibile di
NETBEANS ma in fase di configurazione rimpiango NETBEANS
Ecco il mio problema...premetto che di server ci capisco poco
Ho installato tomcat su eclipse ma ho errori in continuazione
allego 
11-ago-2007 14.04.54 org.apache.coyote.http11.Http11Protocol init
GRAVE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8081
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
	at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
	at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1429)
	at
org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
	at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
11-ago-2007 14.04.55 org.apache.catalina.startup.Catalina load
GRAVE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address already in use: JVM_Bind:8081
	at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1431)
	at
org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
	at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
11-ago-2007 14.04.55 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2843 ms
11-ago-2007 14.04.55 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-ago-2007 14.04.55 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.30
11-ago-2007 14.04.55 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
11-ago-2007 14.04.55 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
11-ago-2007 14.04.55 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:ProgrammiApache
Software FoundationTomcat 5.0confCatalinalocalhostbalancer.xml
11-ago-2007 14.04.57 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:ProgrammiApache
Software FoundationTomcat 5.0confCatalinalocalhostadmin.xml
11-ago-2007 14.05.02 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:ProgrammiApache
Software FoundationTomcat 5.0confCatalinalocalhostmanager.xml
11-ago-2007 14.05.02 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:ProgrammiApache
Software FoundationTomcat
5.0confCatalinalocalhostStatistichePresidioCSE.xml
11-ago-2007 14.05.02 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:Documents and
SettingsDesktopworkspace1StatistichePresidioCSEWEB-INFlibservlet.jar) -
jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
11-ago-2007 14.05.02 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL
file:C:ProgrammiApache Software FoundationTomcat 5.0webappsROOT
11-ago-2007 14.05.02 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL
file:C:ProgrammiApache Software FoundationTomcat 5.0webappstomcat-docs
11-ago-2007 14.05.03 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL
file:C:ProgrammiApache Software FoundationTomcat 5.0webappsjsp-examples
11-ago-2007 14.05.03 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from
URL file:C:ProgrammiApache Software FoundationTomcat
5.0webappsservlets-examples
11-ago-2007 14.05.04 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL
file:C:ProgrammiApache Software FoundationTomcat 5.0webappswebdav
11-ago-2007 14.05.04 org.apache.coyote.http11.Http11Protocol start
GRAVE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8081
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:281)
	at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
	at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
11-ago-2007 14.05.04 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start: 
LifecycleException:  Protocol handler start failed:
java.net.BindException: Address already in use: JVM_Bind:8081
	at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
11-ago-2007 14.05.04 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9359 ms
StandardServer.await: create[8005]: java.net.BindException: Address
already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:496)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
11-ago-2007 14.05.04 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8081
11-ago-2007 14.05.04 org.apache.coyote.tomcat5.CoyoteConnector pause
GRAVE: Protocol handler pause failed
java.lang.NullPointerException
	at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
	at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:648)
sicuramente ho sbagliato alcuni parametri...ma non ne vengo fuori
Qualcuno mi puň aiutare????????
grazie milleeeee
-- 
questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news
 segnala gli abusi ad 
ab...@newsland.it

L'errore parla chiaro:"Address already in use: JVM_Bind:8081"
Tomcat o un'altra applicazione è attiva sulla porta 8081 e quindi
dovresti prima accertarti che nessuna applicazione sia "in ascolto"
sulla porta 8081.
Ciao Riccardo.

 Ciao Riccardo.
il fatto è che ho guardato con netstat -a da prompt di ms-dos, ma non
risulta nessuna applicazione su quella porta...
riproverò
grazie cmq della risposta


 Ciao Riccardo.
il fatto è che ho guardato con netstat -a da prompt di ms-dos, ma non
risulta nessuna applicazione su quella porta...
riproverò
grazie cmq della risposta
ciao luisa


 prompt di ms-dos
Precisiamo: quella č la console di windows(cmd). Il sottosistema a 16-bit č
command(.com ?)

Prova a lanciare il comando
telnet 127.0.0.1 8081 e vedi se
ti da risposta negativa oppure esce una schermata completamente nera
dove cmq tu puoi scrivere da tastiera qualsiasi cosa..
nel secondo caso significa che c'è un programma (molto probabilmente
tomcat..)
in quel momento "acceso" che "lavora" sulla porta 8081.
Se fai "Ctrl-Alt-Canc"e vedi tutti i servizi attivi trovi tomcat?
Ciao Riccardo.