hi,I meet some problems when I run my Server. java -Djava.security.policy=test.policy suncertify.server.CSRSServer The result is: CSRSServer error: access denied (java.io.FilePermission db-1x3.db write) Does anybody know what this problem is,or met the same problem before? It seems like sth wrong with my RemoteData. [ June 04, 2003: Message edited by: Nick Lee ]
Well your problem resloves around your RMISecurityManager and your policy file. We have determined here that you do not need to use a SecurityManager and therefore no policy file either. If you remove them both you will not the the File Permission error. If you were to use a policy file just add the all permissions permission and it would work too. However, I highly suggest you do without the Security Manager, etc. Mark
Thanks Mark,problem resolved after I copy the policy file into the proper folder,but another exception pop up: CSRSServer error: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect Do u know what is it for?
The problem is within where you start rmiregistry. let us say: C:\Assignment> which contains classes and source folders. sorry, I am not familiar with the new assignment but if it is like the old one which contains: package suncertify.db; Then you need to start rmiregistry within this path: C:\Assignment\classes>start rmiregistry everything will work fine ( and I hope you will not get another Exception about Serialization !) Please, let me know if it works
The problem is within where you start rmiregistry. let us say: C:\Assignment> which contains classes and source folders. sorry, I am not familiar with the new assignment but if it is like the old one which contains: package suncertify.db; Then you need to start rmiregistry within this path: C:\Assignment\classes>start rmiregistry everything will work fine ( and I hope you will not get another Exception about Serialization !) Please, let me know if it works
I know what's wrong with my server I use 1125 as the port of registry,but the haven't point it out in the command line: rmiregistry 1125 so,after I change it to 1099 or use "rmiregistry 1125",it can work well. thanks for ur comments,thanks alot.