• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

NX: What's wrong with me server?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Nick Lee
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Nick Lee
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Qusay,

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.
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
best thing is to start it programatically.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Its beetter if you start & bind the registry prgrametically. I followed that approach in SCJD.
Cheers
Srinivas
SCJP,SCJD
 
What's a year in metric? Do you know this metric stuff tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic