File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Policy problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Policy problem?" Watch "Policy problem?" New topic

Policy problem?

Andreas Bystrom
Ranch Hand

Joined: Mar 05, 2003
Posts: 32
When I try to use RMI from a servlet I get this exception: Software caused connection abort: socket write error

I think that it can have somethign to do with policys. I have 2 jar files that my application uses that in turn uses two jar files that does stuff over RMI. These jar-files are located in {catalina.home}/common/lib/. This jar files also has a properties file that it uses. This file is located in myapp/WEB-INF/classes/file.conf

Do I need to set any policys for this application? I use tomcat 5.0.25 on an XP machine.

I use a network sniffer "ethereal" to look at what is really sent. What I can see is a exception that looks something like this:
"access denied to classloader ... ... access denied /C:/java/jakarta-tomcat-5.0.25/webapps/myapp//WEB-INF/classes/- read". This exception is sent from the RMI server to the application computer.

Anyone have an ide of what I have missed?

// Andreas
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13028
Sure looks to me like you have to set a policy for that application.
Be aware that at least one version of Tomcat 5 had a really strange bug related to application of a policy to an application using RMI - I finally dropped back to Tomcat 4.
I agree. Here's the link:
subject: Policy problem?
It's not a secret anymore!