Hey all, I'm a Tomcat noob so please forgive any doofus terminology.  First
off: Tomcat 4.0 on Win2K Pro with Java 1.3.1, browser is Netscape 6.2.

I'm using Tomcat to build HTML pages from a Java app (duh).  For demo
purposes, I want to have the main web page to be able to start the app as
HTML or an applet (see my HTML file at bottom).  I know the applet is
running (when the page is loaded) because it's painting a button.  Pushing
the button causes my app to run but I get the following error:

java.security.AccessControlException: access denied
(java.net.SocketPermission DGPORT resolve)

OK, so I look through the doc and find something in the catalina.policy
file.  I tried adding permissions to catalina.policy (and starting Tomcat
with the -security option) but nothing changes.  I even tried give ALL
permissions to ALL apps by adding:

grant {
   blah blah blah
   permission java.security.AllPermission;
}

I tried setting "CATALINA_OPTS=-Djava.security.debug=all" to see if that
would give me any clues but I don't see any messages in the output that
contain the word "FAIL".

If I load the page straight from disk (bypassing Tomcat) the applet runs
fine, so I'm pretty sure it's Tomcat that's getting in the way.

Any clues would be mucho appreciated.  Thanks.
DG

HTML page:
<!-- saved from url=(0022)http://internet.e-mail -->
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>VFA Item Database</title>
  </head>
  <body background="img/background.gif">

    <form method="post" action="control/start">

    Run VFA Item database as HTML:
    <input type="hidden" name="zapp"
value="lplr=ItemBase;frame=DonateD.Donate_List;host=localhost;port=3027;fact
or=3">
    <input type="submit" name="zstart" value="Start ItemBase">

    </form>
    <BR><BR>
    To run ItemBase as a Java applet:<BR>
    (requires Java Swing package)<BR>
    <applet code="ItemBaseApplet.class" height=60 width=180
archive="./LightDriver.jar, ./xml.jar" codebase=".">
    </applet>

  </body>
</html>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to