tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nickalaus A Painter <napai...@us.ibm.com>
Subject Re: Error deploying web application
Date Tue, 25 Jun 2013 14:27:36 GMT
You're right, we have META-INF/context.xml, not META-INF/MyApp.xml; sorry, 
I was just typing about MyApp.xml and didn't think about it :)


Nickalaus A. Painter
IBM Smarter Water Co-op Developer
Clarkson University 2014
B.S. Mathematics and Computer Science
+18454353546



From:   Tim Watts <tim@cliftonfarm.org>
To:     users@tomcat.apache.org, 
Date:   06/25/2013 10:25 AM
Subject:        Re: Error deploying web application



On Tue, 2013-06-25 at 10:01 -0400, Nickalaus A Painter wrote:

> Jun 25, 2013 9:49:53 AM org.apache.catalina.startup.HostConfig 
> deployDescriptor
> SEVERE: Error deploying configuration descriptor 
> /usr/local/tomcat/apache-tomcat-7.0.37/conf/Catalina/localhost/MyApp.xml
> java.lang.NullPointerException
>         at 

<snip/>

> So does this mean that I have to reconfigure MyApp.xml in that 
directory? 
> Shouldn't Tomcat look in the directory of MyApp once it explodes the 
.war 
> file?  Also, for completeness, here is MyApp.xml:
> 

Relative to the root of your .war file, Tomcat will look for
META-INF/context.xml.  It copies this
to .../Catalina/localhost/MyApp.xml.  You shouldn't have a MyApp.xml
anywhere in your .war file.

HTH
-Tim.


> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE Context>
> <application xmlns="http://java.sun.com/xml/ns/j2ee"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd 
> http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
>     version="2.5">
> 
> <!-- Only one of these "Resource name" blocks may be uncommented at a 
> single time.
>       Altering the commented value will force the system to use that 
> back-end JDBC driver,
>       and thus impacts which database instance you will connect to.
> -->
> 
> <Context path="/MyApp" docBase="MyApp" debug="5" reloadable="true" 
> crossContext="true">
> 
> 
>           <Resource name="jdbc/dbconn" auth="Container"
>                   type="javax.sql.DataSource" 
> driverClassName="com.mysql.jdbc.Driver"
>                   url="jdbc:mysql://localhost:3306/mydatabase"
>                   username="root" password="root" maxActive="50" 
> maxIdle="15" maxWait="-1"/>
> 
> </Context>
> </application>
> 
> Do you need anything else?  Thank you very much for your time!
> 
> Regards,
> Nick
> 
> 
> Nickalaus A. Painter
> IBM Smarter Water Co-op Developer
> Clarkson University 2014
> B.S. Mathematics and Computer Science
> +18454353546
> 
> 
> 
> From:   Mark Thomas <markt@apache.org>
> To:     Tomcat Users List <users@tomcat.apache.org>, 
> Date:   06/25/2013 09:52 AM
> Subject:        Re: Error deploying web application
> 
> 
> 
> On 25/06/2013 14:43, Nickalaus A Painter wrote:
> > While attempting to deploy my web application to our production server 
I 
> 
> > encountered an issue, and after looking in the catalina.out log file, 
> the 
> > following shows up:
> 
> <snip/>
> 
> > Caused by: org.apache.catalina.LifecycleException: Failed to process 
> > either the global, per-host or context-specific context.xml file 
> therefore 
> > the [/MyApp] Context cannot be started.
> >         at 
> > 
> 
org.apache.catalina.startup.FailedContext.startInternal(FailedContext.java:155)
> >         at 
> > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >         ... 11 more
> 
> Before this message, a message will have been logged along the lines of:
> SEVERE: ... Error deploying configuration descriptor <file name here>
> 
> You need to find that log message. It will tell you which context.xml
> file could not be processed and why. My guess would be malformed XML.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

[attachment "signature.asc" deleted by Nickalaus A 
Painter/Poughkeepsie/IBM] 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message