----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Catharine Barnes wrote:
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> My configuration is as follows:
>
> Apache Jserv: version 1.0
> Apache: 1.3.6
> OS: UnixWare 5
>
> I have tried to read the FAQ but it is currently unavailable.
>
> I have installed JServ and got it running basic servlets OK.
> One of my servlets outputs HTML that loads an applet i.e.
>
> out.println("<html><body>");
> out.println("<applet codebase=\"http://" + request.getServerName() + ":" +
> request.getServerPort() + "\" code=\"package.myapplet\" height=10
> width=10>");
> out.println("</applet></body></html>");
>
> My problem is getting JServ to find the applet.
> The applet is stored with the servlets.
> When I run the servlet I get a class not found error in the Java console
> window.
>
> I thought that I needed to add the path of the servlet in the
> jserv.properties e.g.
>
> wrapper.classpath=/path/
> I have restarted apache since I added this line but it doesn't have any
> effect.
>
> Can anyone tell me where I am going wrong?
>
> Thanks,
> Catharine
You need to let Apache find and serve the applet classes, as JServs only
outputs some HTML code containing APPLET tag, and then the browser will
ask for classes, and Apache will send them directly.
So the classes URL should be outside the servlet mount point.
look at your apache error_log to see which files are requested by the
browser.
Jean-Luc
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]