NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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



  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: