Jeff,
My servlets, java and VB apps run fine without any proxy server. For example the same Windows client PC will run a VB program but not an applet in IE6. (scratch, scratch)
Which server is your U2 database running on? From your post I'm guessing it is a different server to the one you are using to serve the applet. As John mentioned, you may need to use the proxy server. I'm a bit rough on this but you were getting an AccessControlException. Applets are special and run inside a sandbox preventing access to the local disk and AFAIK preventing access to any other server apart from the one that served them. If your U2 server is on a separate box, you need the proxy server. Your applet UOJ code talks to the proxy server running on your webserver and this then connects to your u2 server. If your UOJ connection object is attempting to access a different server this would cause the security exception. The stack trace may give you more information and there is a good explanation here ( http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html) You don't have this problem with servlets because the code is on your server, not the client and runs as a regular java application, not an applet and is therefore implicitly trusted. You also wouldn't have it with any other java app because it is not running inside the applet sandbox and is also implicitly trusted. I'm out on a limb here but I think you can get around this by digitally signing your applets but I have no idea what is involved in doing this. The above link seems to cover this. Plan b would be to look at re-architecting. Instead of the applet making the uoj connection, the applet makes a normal url get/post to your server which has a servlet do the uoj stuff. That way you can implement connection pooling etc and don't have to worry about the uoj proxy although you are effectively making your own. This could also cut down on your applet size because it doesn't need the UOJ library. It would be easier to use https to encrypt the traffic between the applet and the server this way. HTH Adrian PS Just scanned the above article prior to sending - according to it the u2 server would only need to be in the same domain, not necesarily be the same server. However you would still need to proxy to get through your firewall assuming you don't want your u2 server on the internet. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
