Galera, tem um tempo que eu n mexo com Java, e esses dias resolvi pegar um pouco pra mexer.
To fazendo uma aplicação web com Struts e Hibernate, e deu esse erro aqui:
[code]HTTP Status 503 - Servlet action is currently unavailable
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.[/code]
Quando não é aquele é esse:
[code]HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:769)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:745)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
Apache Tomcat/4.1.31[/code]
Ah, meu struts-config é esse:
[code]<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="frmCadastraCertificacao" type="br.com.cast.projetofinal.form.FormCertificacao" />
<form-bean name="frmCadastraMunicipio" type="br.com.cast.projetofinal.form.FormMunicipio" />
</form-beans>
<action-mappings>
<action path="/certificacao" type ="br.com.cast.projetofinal.controle.CtrlCertificacao" parameter="acao" name="frmCadastraCertificacao">
<forward name="index" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexcert.jsp" />
<forward name="montainclusao" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexmontainclusao.jsp" />
<forward name="montalista" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexmontalista.jsp" />
<forward name="operacao" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexok.jsp" />
<forward name="erro" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexerro.jsp" />
<forward name="pesq" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexmontalista.jsp" />
<forward name="retornapag" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexpesquisa.jsp" />
<forward name="retornaeditar" path="/WEB-INF/aplicacao/projetofinal/visao/certificacao/indexalterar.jsp" />
</action>
<action path="/municipio" type ="br.com.cast.projetofinal.controle.CtrlMunicipio" parameter="acao" name="frmCadastraMunicipio">
<forward name="index" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexmunicipio.jsp" />
<forward name="montainclusao" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexmontainclusao.jsp" />
<forward name="montalista" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexmontalista.jsp" />
<forward name="operacao" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexok.jsp" />
<forward name="erro" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexerro.jsp" />
<forward name="pesq" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexmontalista.jsp" />
<forward name="retornapag" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexpesquisa.jsp" />
<forward name="retornaeditar" path="/WEB-INF/aplicacao/projetofinal/visao/municipio/indexalterar.jsp" />
</action>
<action path="/login" type="br.com.cast.projetofinal.controle.CtrlLogin" name="frmLogin">
<forward name="index" path="/WEB-INF/aplicacao/projetofinal/visao/login/indexlogin.jsp" />
<forward name="ok" path="/WEB-INF/aplicacao/projetofinal/visao/login/indexok.jsp" />
<forward name="erro" path="/WEB-INF/aplicacao/projetofinal/visao/login/indexerro.jsp" />
<forward name="logado" path="/WEB-INF/aplicacao/projetofinal/visao/login/indexlogado.jsp" />
</action>
</action-mappings>
</struts-config>
[/code]
e se localiza dentro do WebInf. Sinceramente n sei o que pode ser. Alguem pode me ajudar? :roll: