Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Servlet classpath error

Hi,

Amaral wrote:

I have triyed to pass a float array to a Visad class from a servlet . When I run the servlet I get exeptions. My servlet uses this code to pass the data object to the Visad class. for (i=0; i<40; i++ {
VisadClass.data[0][i] = dd;
}
I get two blocks of exception messages. Below the first line of each.
javax.servlet.ServletException: Invoker service() exception
java.lang.NoClassDefFoundError: visad/ScalarMapListener
Can some one give a hint?
Thanks. Amaral.

This is a classpath error (as Curtis pointed out).

You need to put a copy of visad.jar in the directory

TOMCAT_HOME/webapps/your_web_app/WEB-INF/lib/visad.jar

assuming you're using Tomcat. (Must also do that for every other library you're using.)

You servlets (compiled classes) should go in

(...the same...)/WEB-INF/classes/...

Cheers,

Ugo



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690