Ajuda - erro ao carregar o Tomcat

1 resposta
J

Caros,

Hoje, sem mais nem menos aparentemente, ao iniciar o Tomcat 4.1.18 aparece uma msg de erro “org.xml.sax.SAXParseException: Content is not allowed in prolog”. Na parte do localhost_log pode-se notar final as msgs de erro.

Junto está o web.xml que estou usando, supondo que seja algum erro de redação nele que pudesse causar isso pois no final do log aparece um “Parse error”. Mesmo editando ele e reduzindo ao máximo, continua dando esse problema. Até ontem estava tudo bem.

Grato

log



2004-04-28 09:59:06 HostConfig[localhost]: Deploying configuration descriptor admin.xml

2004-04-28 09:59:07 HostConfig[localhost]: Deploying configuration descriptor manager.xml

2004-04-28 09:59:07 WebappLoader[/manager]: Deploying class repositories to work directory C:Tomcat-4.1.18workStandalonelocalhostmanager

2004-04-28 09:59:07 ContextConfig[/manager]: Configured an authenticator for method BASIC

2004-04-28 09:59:07 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom

2004-04-28 09:59:07 StandardManager[/manager]: Seeding of random number generator has been completed

2004-04-28 09:59:07 StandardWrapper[/manager:default]: Loading container servlet default

2004-04-28 09:59:07 StandardWrapper[/manager:invoker]: Loading container servlet invoker

2004-04-28 09:59:07 HostConfig[localhost]: Deploying web application directory HelloServletApp

2004-04-28 09:59:07 StandardHost[localhost]: Installing web application at context path /HelloServletApp from URL file:C:Tomcat-4.1.18webappsHelloServletApp

2004-04-28 09:59:07 WebappLoader[/HelloServletApp]: Deploying class repositories to work directory C:Tomcat-4.1.18workStandalonelocalhostHelloServletApp

2004-04-28 09:59:07 WebappLoader[/HelloServletApp]: Deploy class files /WEB-INF/classes to C:Tomcat-4.1.18webappsHelloServletAppWEB-INFclasses

2004-04-28 09:59:07 StandardManager[/HelloServletApp]: Seeding random number generator class java.security.SecureRandom

2004-04-28 09:59:07 StandardManager[/HelloServletApp]: Seeding of random number generator has been completed

2004-04-28 09:59:07 StandardWrapper[/HelloServletApp:default]: Loading container servlet default

2004-04-28 09:59:07 StandardWrapper[/HelloServletApp:invoker]: Loading container servlet invoker

2004-04-28 09:59:07 HostConfig[localhost]: Deploying web application directory myApp

2004-04-28 09:59:07 StandardHost[localhost]: Installing web application at context path /myApp from URL file:C:Tomcat-4.1.18webappsmyApp

2004-04-28 09:59:07 WebappLoader[/myApp]: Deploying class repositories to work directory C:Tomcat-4.1.18workStandalonelocalhostmyApp

2004-04-28 09:59:07 WebappLoader[/myApp]: Deploy class files /WEB-INF/classes to C:Tomcat-4.1.18webappsmyAppWEB-INFclasses

2004-04-28 09:59:08 ContextConfig[/myApp] Parse error in application web.xml

org.xml.sax.SAXParseException: Content is not allowed in prolog.

at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)

at org.apache.commons.digester.Digester.parse(Digester.java:1495)


web.xml

?xml version=“1.0” encoding=“ISO-8859-1”?>

<!DOCTYPE web-app
PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN”
http://java.sun.com/dtd/web-app_2_3.dtd”>

<web-app>

<servlet>

<servlet-name>TestingServlet</servlet-name>

<servlet-class>TestingServlet</servlet-class>

</servlet>
<servlet>

<servlet-name>PrimitiveServlet</servlet-name>

<servlet-class>PrimitiveServlet</servlet-class>

</servlet>
<servlet>

<servlet-name>ConfigDemoServlet</servlet-name>

<servlet-class>ConfigDemoServlet</servlet-class>



<param-name> adminEmail </param-name>

<param-value> <a href="mailto:[email removido]">[email removido]</a> </param-value>





<param-name> adminContactNumber </param-name>

<param-value> [telefone removido] </param-value>



</servlet>

<servlet-mapping>
<servlet-name>TestingServlet</servlet-name>
/Testing
</servlet-mapping>

<servlet-mapping>
<servlet-name>PrimitiveServlet</servlet-name>
/Primitive
</servlet-mapping>

<servlet-mapping>
<servlet-name>ConfigDemoServlet</servlet-name>
/ConfigDemo
</servlet-mapping>

</web-app>

1 Resposta

J

Prezado Alex,

Muito obrigado. Realmente o erro foi no copy/paste. Baixei o Gel c32c para testar a verificação, muito bom IDE.

Grato pela atenção.

Jose Carlos

Criado 28 de abril de 2004
Ultima resposta 28 de abr. de 2004
Respostas 1
Participantes 1