Okay, I'm bouncing this around on a few different forums, but since I am using Perl CGI - I thought I'd brush it by ya'll too.
Problem: I have a Perl script that is creating an HTML page that includes an applet. When my browser views the page, the applet does not load and gives the following message:
load: class myApplet not found
The Apache error_log reads:
[Tue Apr 3 13:59:59 2001] [error] (8)Exec format error: exec of /usr/
+local/apache/cgi-bin/agency/PieChartApplet.class failed
What I guess is trying to happen is that Apache is trying to 'execute' the applet instead of 'serving' it. I can take a static html file and myApplet into an htdocs directory and view it from a browser no problem, but not when my perl script creates the HTML page.
Question: Has anyone seen this before and is there a Perl workaround that will handle this?
I'm using the latest version of Apache and Perl (and Perl's CGI module). I believe my permissions and ownership for myApplet are correct. It looks like this might be an Apache issue, but I have not been able to find anything on it yet.
Thanks in advance.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.