GUJ Discussões   :   últimos tópicos   |   categorias   |   GUJ Respostas

Erro ao startar tomcat pela IDE?


#1

Pessoal estou com um erro ao startar o tomcat pelo eclipse, ja instalei , ja removi, configurei a ide para iniciar o tomcat mais ainda permanece o problema. Ja procurei no forum não encontrei solução, alguem poderia me ajudar??????
Eu preciso configurar a variavel de ambiente do tomcat e o tal de sysdeo?

console que aparece:
28/12/2010 14:21:13 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files (x86)\Windows Live\Shared
28/12/2010 14:21:14 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
28/12/2010 14:21:14 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 674 ms
28/12/2010 14:21:14 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
28/12/2010 14:21:14 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
28/12/2010 14:21:14 org.apache.jasper.EmbeddedServletOptions
GRAVE: The scratchDir you specified: C:\Program Files\apache-tomcat-6.0.29\work\Catalina\localhost\docs is unusable.
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
28/12/2010 14:21:14 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
28/12/2010 14:21:14 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
28/12/2010 14:21:14 org.apache.jasper.EmbeddedServletOptions
GRAVE: The scratchDir you specified: C:\Program Files\apache-tomcat-6.0.29\work\Catalina\localhost\examples is unusable.
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
GRAVE: Error deploying web application directory host-manager
java.io.FileNotFoundException: C:\Program Files\apache-tomcat-6.0.29\conf\Catalina\localhost\host-manager.xml (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1013)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
GRAVE: Error deploying web application directory manager
java.io.FileNotFoundException: C:\Program Files\apache-tomcat-6.0.29\conf\Catalina\localhost\manager.xml (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1013)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
28/12/2010 14:21:14 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
28/12/2010 14:21:14 org.apache.jasper.EmbeddedServletOptions
GRAVE: The scratchDir you specified: C:\Program Files\apache-tomcat-6.0.29\work\Catalina\localhost_ is unusable.
28/12/2010 14:21:14 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28/12/2010 14:21:14 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
28/12/2010 14:21:14 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/39 config=null
28/12/2010 14:21:14 org.apache.catalina.startup.Catalina start
INFO: Server startup in 917 ms




#2

o caminho "C:\Program Files\apache-tomcat-6.0.29\conf\Catalina\localhost\" existe?
o arquivo manager. xml esta salvo nesse diretório??

eu instalaria novamente o tomcat e configuraria no eclipse tb.

att,


#3

[color=red]28/12/2010 16:22:27 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files (x86)\Windows Live\Shared
28/12/2010 16:22:27 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
28/12/2010 16:22:27 org.apache.coyote.ajp.AjpProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
28/12/2010 16:22:27 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1135 ms
28/12/2010 16:22:27 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
28/12/2010 16:22:27 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.5
28/12/2010 16:22:27 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
28/12/2010 16:22:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
28/12/2010 16:22:28 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
28/12/2010 16:22:28 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
28/12/2010 16:22:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
28/12/2010 16:22:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
28/12/2010 16:22:28 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
28/12/2010 16:22:29 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28/12/2010 16:22:29 org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
28/12/2010 16:22:29 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1112 ms
28/12/2010 16:22:29 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.IllegalStateException: No output folder] with root cause
java.lang.IllegalStateException: No output folder
at org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:683)
at org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:199)
at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:516)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:462)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:410)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:587)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:341)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:237)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source) [/color]

Fiz oque me pediu mas oq esta acontecendo agora , isso ocorre quando eu estarto, ja reiniciei, removi reinstalei, instalei o tomcat 7, ele abre o localhost8080 normal, porem na hora que eu entro no diretorio do meu projeto pela url não pode ser recuperada


#4

vê se ajuda:

http://www.guj.com.br/java/125011-iniciante-web-apostila-caelum

http://www.guj.com.br/java/224700-pagina-em-jsp


#5

Ainda persiste com o ultimo problema, não testei com paginas ainda quero apenas enxergar o diretorio que criei fj21-agenda, não acesso nada alem do localhost8080, nem a documentation acessa, da o mesmo erro "url solicitada nao pode ser recuperada", e toda vez que starto vem essas linhas citadas em cima


#6

então vc acessa:

http://localhost8080/fj21-agenda

e acontece o erro?

tem algum .jsp criado e configurado no web.xml?


#7

bom amigo
qdo formato o pc e preciso instalar tudo denovo faço isso aqui abaixo ::


INSTALAR TOMCAT

PASSO 1- INCLUIR VARIAVEIS DE AMBIENTE
VARIAVEIS DE AMBIENTE

CRIAR : CATALINA_HOME
ENDEREÇO: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-6.0.26

CRIAR: JAVA_HOME
ENDEREÇO: C:\Program Files (x86)\Java\jdk1.6.0_18

CRIAR: JRE_HOME
ENDEREÇO:C:\Program Files (x86)\Java\jdk1.6.0_18

PASSO 2- COMO INICIALIZAR O TOMCAT

C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.26\bin>startup.bat

ou MELHOR VAI NESTE ARQUIVO e clica QUE ELE INICIA

C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-6.0.26\bin\startup
________________________________________________________________________________________________________________________CONFIGURANDO ECLIPSE GALILEO

ECLIPSE GALILEO + JDK1.6.0_21

Eclipse tem um erro muito grave onde não passar corretamente a partir da memória dos limites eclipse.ini para Java.
Como resultado, o Eclipse rapidamente esgotar a memória e falhas sem aviso prévio e algumas mensagens de erro evidente.
Isto aplica-se apenas a jkd1.6.0_21 bug e mais tarde Windows, Aplica-se pero igualmente para o Eclipse 3.6 (Helios),
Eclipse 3.5 (Ganymade) e Eclipse 3.4 (Europa). Para corrigir isso, vá para a pasta de instalação do Eclipse
(ex.: C: \ eclipse) e adicione no final do arquivo do eclipse.ini está linha abaixo:

-XX: MaxPermSize = 256m


PREFERENCES DO ECLIPSE GALILEO E TOMCAT

windows >> preferences >> Server >> server runtime enviornments >> Add >>vcs adicionam o tomcat>> vai ter opcao default>> OK.
windows >> preferences >> Java >> installed JREs >> ADICIONA JRE6 >>C:\Program Files (x86)\Java\jre6(diretorio)>>ok
windows >> preferences >> Java >> installed JREs >> Executtion enviorments >> clica JAVASE1.6 >> marca checbox da jre6 >> ok.
windows >> preferences >> Java >> compiler >> errors/warnings >> aba potencial programming problems >> item serializable class without serial... marcar "IGNORE" >>Aplly >> ok.

OBS: EU GOSTO MAIS DO TOMCAT 6.029 DO QUE O TOMCAT 7

É ISSO AI ...


#8

Me explica uma coisa, se eu tenho um projeto criado com tal nome xxx, e eu quero acessar apenas o projeto no tomcat, oq deveria aparecer?


#9

eu acho q erro 404 se não tiver nenhuma página criada....rsrs

experimenta criar 1 jsp ou html de hello world e vê se o web.xml esta parecido:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">
	<display-name>projetoXXX</display-name>
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
</web-app>

#10

QUAL ECLIPSE VC ESTÁ USANDO ??

O ECLIPSE FOI INSTALADO AGORA OU VC JÁ TINHA PROJETOS RODANDO AI??


#11

eu uso o galileo


#12

DIEGO

antes desse projeto ele rodava algum projeto ??? ou não ???

já tentou criar o que o amigo acima disse

criar um hello world por exemplo >>>>

index.jsp
e escrever uma mensagem só de hello e tls..???? e tentar compilar ele ....

tenta ai e fala aqui..

tudo é possível qdo falamos de Erro ....
baixa o eclipse denovo , baixa o tomcat denovo ...pode ocorrer que os arquivos estejam com problema tbém ....

flow


#13

cara se eu te fala uma coisa se nem acredita, tava dando erro 404 pq minhas configurações de segurança estava bloqueado o site
fala serio...
oq so tenh o chrome aqui,
cara muito opbrigado pela atenção mesmo, vc praticamente ficou por conta de solucionar meu problema
muito obrigado mesme pela atenção


#14

heheh

vivendo e aprendendo.

só coloca o [Resolvido] ai dps,

att,


#15

q bom q resolveu aí

mude de navegador pra não trazer mais dores de cabeça aíí

flow


#16