Rosa applet question

Zolla Michalak michalak at
Wed Nov 29 11:46:48 EST 2000


I don't think the rosa applet code will work from the cgi-bin. I have 
it in the same directory with our HTML files, in a directory called
"rosa". I link to it in the .php3 file like this:

printf("<APPLET NAME=\"RosaApplet\" ARCHIVE=\"./rosa/rosa.jar\"
CODE=\"Rosa2000\" WIDTH=\"%f\" HEIGHT=\"%f\" MAYSCRIPT>\n",
$gpoMap->width, $gpoMap->height);

   Zolla Michalak
   Support Systems Analyst
   Hydrology and Water Resources
   University of Arizona
   michalak at
   (520) 626-8521
   FAX: (520) 626-2488

On Wed, 29 Nov 2000, Robert Chavez wrote:

> I've been playing around with the DMSolutions Rosa applet and am having some
> trouble getting it set up properly.  I've been getting some java errors that
> I haven't seen before and I was wondering if anyone had some suggestions as
> to what the problem is.
> I'm running this on Red Hat Linux 6.2 using jdk1.2.2, but I've also tried
> jdk1.1.7v3 and got the same results.  Paths and classpaths are fine, and
> netscape's java40.jar is in the correct place and in the class path. The
> HTML is generated from a CGI script, so I've moved the jar and class files
> into the cgi-bin under the assumption that this is where they need to be.
> I'm no applet guru, so I've probably just overlooked something obvious.  Any
> ideas?
> Thanks,
> Rob Chavez
> Programmer/GIS Specialist
> Perseus Project
> Here's my applet HTML code, I haven't appended the whole HTML file here as
> it's quite long:
> <APPLET NAME="RosaApplet" ARCHIVE="rosa.jar" CODE="Rosa2000.class"
> <PARAM NAME="IMG_URL" VALUE="". /mapimages/ . 18895975509219.gif ."">
> <PARAM NAME="TB_BUTTONS" VALUE="zoomin|zoomout|recenter|pquery">
> <PARAM NAME="TB_BUT_zoomin_IMG" VALUE="/icons/icon_zoomin.gif">
> <PARAM NAME="TB_BUT_zoomin_IMG_PR" VALUE="/icons/tool_zoomin_2.gif">
> <PARAM NAME="TB_BUT_zoomin_HINT" VALUE="Zoom in: Click the button|and the
> map will zoom in">
> <PARAM NAME="TB_BUT_zoomin_INPUT" VALUE="auto_rect">
> <PARAM NAME="TB_BUT_zoomin_NAME" VALUE="zoomdir">
> <PARAM NAME="TB_BUT_zoomout_IMG" VALUE="/icons/icon_zoomout.gif">
> <PARAM NAME="TB_BUT_zoomout_IMG_PR" VALUE="/icons/tool_zoomout_2.gif">
> <PARAM NAME="TB_BUT_zoomout_HINT" VALUE="Zoom out: Click the button|and the
> map will zoom out">
> <PARAM NAME="TB_BUT_zoomout_INPUT" VALUE="submit">
> <PARAM NAME="TB_BUT_zoomout_NAME" VALUE="zoomdir">
> <PARAM NAME="TB_BUT_zoomout_VALUE" VALUE="-1">
> <PARAM NAME="TB_BUT_recentre_IMG" VALUE="/icons/icon_recentre.gif">
> <PARAM NAME="TB_BUT_recentre_IMG_PR" VALUE="/icons/tool_recentre_2.gif">
> <PARAM NAME="TB_BUT_recentre_HINT" VALUE="Recenter: Click the button|and the
> map will recenter">
> <PARAM NAME="TB_BUT_recentre_INPUT" VALUE="auto_point">
> <PARAM NAME="TB_BUT_recentre_NAME" VALUE="zoomdir">
> <PARAM NAME="TB_BUT_recentre_VALUE" VALUE="2">
> <PARAM NAME="TB_BUT_pquery_IMG" VALUE="/icons/icon_info.gif">
> <PARAM NAME="TB_BUT_pquery_IMG_PR" VALUE="./images/tool_info_2.gif">
> <PARAM NAME="TB_BUT_pquery_HINT" VALUE="Point Query: Click a point on the
> map|for information about that point">
> <PARAM NAME="TB_BUT_pquery_INPUT" VALUE="auto_rect">
> <PARAM NAME="TB_BUT_pquery_NAME" VALUE="zoomdir">
> The error messages are the following (from the Netscape java console):
> Netscape Communications Corporation -- Java 1.1.5
> Type '?' for options.
> Symantec Java! ByteCode Compiler Version 210.065
> Copyright (C) 1996-97 Symantec Corporation
> <null>
>   at Code)
>   at Code)
> * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
>   at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
>   at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
>   at netscape.applet.AppletClassLoader.<init>(Compiled Code)
>   at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
>   at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> Code)
>   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
>   at Code)
>   at
> netscape.applet.DerivedAppletFrame$
> Code)
> # Unable to load archive /cgi-bin/rosa.jar: <null>
> # Applet exception: class Rosa2000 could not be loaded

More information about the mapserver-users mailing list