Interesting - I wonder why the capabilities doc in the war file is older
than the one on your filesystem (Ethan, any ideas)?
From: Heiko Klein [mailto:Heiko.Klein@xxxxxx]
Sent: 23 August 2010 07:42
Cc: David Neufeld; Jonathan Blower
Subject: Re: [thredds] Problems with wms-getCapabilities in thredds4.2
indeed, the war file contained an older capabilities_xml.jsp than the
one installed in work-catalog:
ls -l $TOMCAT/webapps/thredds/WEB-INF/jsp/wms/
...Mar 24 10:43 capabilities_xml.jsp
...Jun 7 00:40 capabilities_xml_1_1_1.jsp
...Aug 20 14:38 capabilities_005fxml_005f1_005f1_005f1_jsp.class
...Aug 20 14:38 capabilities_005fxml_005f1_005f1_005f1_jsp.java
...May 10 08:58 capabilities_005fxml_jsp.class
...May 10 08:58 capabilities_005fxml_jsp.java
Removing $TOMCAT/work/Catalina/localhost/thredds, and restarting tomcat
solved the issue. I'm using tomcat6, but I'm not using the manager, but
used the redeploy on startup feature.
Thanks for your help.
On 2010-08-20 19:05, David Neufeld wrote:
> Heiko, Jon, Ethan,
> I saw similar behavior during my upgrade (in my case I was not able to
> do an undeploy via the tomcat admin interface). After deleting
> work/Catalina/localhost/thredds directory the problem was resolved.
> Using Tomcat 6.0 here.
> - Dave
> On 8/20/2010 10:58 AM, Ethan Davis wrote:
>> Hi Heiko, Jon,
>> The thredds.war file on the FTP site contains
>> /WEB-INF/jsp/wms/capabilities_xml.jsp. So I'm wondering if this error
>> message was caused by an old version of the compiled JSP page getting
>> the way of the new version.
>>> Aug 20, 2010 2:12:00 PM
>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>> java.lang.NoClassDefFoundError: Could not initialize class
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Heiko, could you take a look at the compiled JPS, probably in
>> and see if it is newer than your 4.2 install?
>> Did you do a full undeploy of any old TDS installs before deploying
>> new TDS 4.2? I'm not actually sure that a full undeploy removes the
>> working directory (work/Catalina/localhost/thredds). But most
>> unexplained class not found kinds of problems I've seen seem to clear
>> when any old version is undeployed before deploying the new version.
>> Also, are you running Tomcat 6.0? Tomcat 7.0 is in beta but I
>> it has changed the way it does some of the things that in 6.0 were
>> stored in the working directories.
>> On 8/20/2010 9:08 AM, Jon Blower wrote:
>>> Looks like the /WEB-INF/jspcapabilities_xml.jsp file is missing from
>>> WAR file for some reason. It's present in my copy of the source
>>> Ethan, could you see if it's somehow getting missed out of the build
>>> Thanks for reporting this Heiko,
>>> -----Original Message-----
>>> From: Heiko Klein [mailto:Heiko.Klein@xxxxxx]
>>> Sent: 20 August 2010 15:41
>>> Cc: Jonathan Blower
>>> Subject: Re: Problems with wms-getCapabilities in thredds4.2
>>> A short update. WMS version 1.1.1 getCapabilities works:
>>> On 2010-08-20 16:28, Heiko Klein wrote:
>>>> I just tried upgrading to thredds4.2 snapshot (2010-08-05). I
>>>> the changes described in
>>>> I left the wmsConfig.xml file unchanged, and just copied it to the
>>>> content/thredds catalog.
>>>> Requesting a wms-map works well:
>>>> though the colors look a bit different (different scale?) than in
>>>> thredds 4.1.
>>>> Requesting a capabilities document for the same file (or some
>>>> too) gives a 500 internal server error:
>>>> Error in catalina.out:
>>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>> I attach the complete catalina.out file of a freshly rebootet
>>>> after one request.
>>>> Best regards,
>>> thredds mailing list
>>> For list information or to unsubscribe,
>> thredds mailing list
>> For list information or to unsubscribe,
> thredds mailing list
> For list information or to unsubscribe, visit:
Dr. Heiko Klein Tel. + 47 22 96 30 00
Development Section / IT Department Fax. + 47 22 69 63 55
Norwegian Meteorological Institute http://www.met.no
P.O. Box 43 Blindern 0313 Oslo NORWAY