tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bioinfo Gu <bioinfowis...@yahoo.com>
Subject RE: Tomcat 5.0.27 deploy problem
Date Wed, 21 Jul 2004 16:37:30 GMT
Hello Shapira,
 
Thank you very much for prompt reply. I just change web.xml file in $CATLINA_HOME/webapps/mytest/WEB-INF
dir. and then use 'ant all' , 'ant remove' and 'ant install' to reinstall mytest app. There
still have some error in $CATALINE_HOME/logs/catalina.out:
 
I also list my web.xml file:
 
Thank you very much.
 
Gu
[root@hydra12 WEB-INF]# more web.xml
  <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <!DOCTYPE web-app (View Source for full doctype...)> 
- <web-app>
- <!--  General description of your web application 
  --> 
  <display-name>My Web Application</display-name> 
  <description>This is version X.X of an application to perform a wild and wonderful
task, based on servlets and JSP pages. It was 
written by Dave Developer (dave@mycompany.com), who should be contacted for more information.</description>

- <!-- 
 Context initialization parameters that define shared
         String constants used within your application, which
         can be customized by the system administrator who is
         installing your application.  The values actually
         assigned to these parameters can be retrieved in a
         servlet or JSP page by calling:
             String value =
               getServletContext().getInitParameter("name");
         where "name" matches the <param-name> element of
         one of these initialization parameters.
         You can define any number of context initialization
         parameters, including zero.
    
  --> 
- <context-param>
  <param-name>webmaster</param-name> 
  <param-value>myaddress@mycompany.com</param-value> 
  <description>The EMAIL address of the administrator to whom questions and comments
about this application should be addressed.</d
escription> 
  </context-param>
- <!-- 
 Servlet definitions for the servlets that make up
         your web application, including initialization
         parameters.  With Tomcat, you can also send requests
         to servlets not listed here with a request like this:
           http://localhost:8080/{context-path}/servlet/{classname}
         but this usage is not guaranteed to be portable.  It also
         makes relative references to images and other resources
         required by your servlet more complicated, so defining
         all of your servlets (and defining a mapping to them with
         a servlet-mapping element) is recommended.
         Servlet initialization parameters can be retrieved in a
         servlet or JSP page by calling:
             String value =
               getServletConfig().getInitParameter("name");
         where "name" matches the <param-name> element of
         one of these initialization parameters.
         You can define any number of servlets, including zero.
    
  --> 
- <servlet>
  <servlet-name>Hello</servlet-name> 
  <description>my test</description> 
  <servlet-class>mypackage.Hello</servlet-class> 
  <load-on-startup>5</load-on-startup> 
  </servlet>
- <!-- 
 Define mappings that are used by the servlet container to
         translate a particular request URI (context-relative) to a
         particular servlet.  The examples below correspond to the
         servlet descriptions above.  Thus, a request URI like:
           http://localhost:8080/{contextpath}/graph
         will be mapped to the "graph" servlet, while a request like:
           http://localhost:8080/{contextpath}/saveCustomer.do
         will be mapped to the "controller" servlet.
         You may define any number of servlet mappings, including zero.
         It is also legal to define more than one mapping for the same
         servlet, if you wish to.
    
  --> 
- <servlet-mapping>
  <servlet-name>controller</servlet-name> 
  <url-pattern>*.do</url-pattern> 
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>graph</servlet-name> 
  <url-pattern>/graph</url-pattern> 
  </servlet-mapping>
- <!-- 
 Define the default session timeout for your application,
         in minutes.  From a servlet or JSP page, you can modify
         the timeout for a particular session dynamically by using
         HttpSession.getMaxInactiveInterval(). 
  --> 
- <session-config>
  <session-timeout>30</session-timeout> 
- <!--  30 minutes 
  --> 
  </session-config>
  </web-app>

 
 
 
Jul 21, 2004 12:31:09 PM org.apache.catalina.core.ContainerBase log
INFO: Removing web application at context path /mytest
Jul 21, 2004 12:31:16 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /mytest from URL file:/usr/local/jakarta-tomcat-5.0.27/webapps/mytest/build
Jul 21, 2004 12:31:16 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 1 column 8: The processing instruction target matching "[xX][mM][lL]"
is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is
not allowed.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)
        at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:922)
        at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:320)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        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(Thread.java:534)
Jul 21, 2004 12:31:16 PM org.apache.catalina.startup.ContextConfig applicationConfig
SEVERE: Parse error in application web.xml
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is
not allowed.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)
        at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:922)
        at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:320)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        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(Thread.java:534)
Jul 21, 2004 12:31:16 PM org.apache.catalina.startup.ContextConfig applicationConfig
SEVERE: Occurred at line 1 column 8
Jul 21, 2004 12:31:16 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Jul 21, 2004 12:31:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jul 21, 2004 12:31:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors


"Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:

Hi,
Check $CATALINA_HOME/logs for any errors and post them if found.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: bioinfo Gu [mailto:bioinfowistar@yahoo.com]
>Sent: Wednesday, July 21, 2004 12:05 PM
>To: tomcat-user@jakarta.apache.org
>Subject: Tomcat 5.0.27 deploy problem
>
>Hello Everybody,
>
>I am installing Tomcat 5.0.27 on Fedora Linux. I have make one new
>application for testing in tomcatroot/webapps/mytest. I am using 'ant'
to
>deploy my application mytest.
>
>Here is the srceenshot:
>
>[root@hydra12 mytest]# ant install
>Buildfile: build.xml
>prepare:
> [mkdir] Created dir: /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build
> [mkdir] Created dir: /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build/WEB-INF
> [mkdir] Created dir: /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build/WEB-INF/classes
> [copy] Copying 1 file to /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build
> [mkdir] Created dir: /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build/WEB-INF/lib
>compile:
> [javac] Compiling 1 source file to /usr/local/jakarta-tomcat-
>5.0.27/webapps/mytest/build/WEB-INF/classes
>install:
> [deploy] OK - Deployed application at context path /mytest
>
>BUILD SUCCESSFUL
>Total time: 2 seconds
>[root@hydra12 mytest]#
>
>>From Tomcat web application manager, I can see mytest application, but
I
>can not start it, the error is :
>
>FAIL - Application at context path /mytest could not be started
>
>when I click mytest from web application manager page:
> The requested resource (/mytest/) is not available.
>
>I am new to Tomcat, could anybody points out where I am wrong?
>
>Thanks a lot,
>
>Gu
>
>
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! Mail - Helps protect you from nasty viruses.



This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged. This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


		
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message