Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.5k views
in Java FTP by (200 points)
I am trying to use edtFTPj in a Lotus Domino agent. I get the following error when I try to execute the agent. Any one have any ideas what I am missing? I am not really a java developer so forgive me if I'm missing something simple....


INFO [JavaAgent] 20 Oct 2006 10:48:16.771 : Creating SFTP client
Missing resource appletsecurityexception.CheckSecurityAccess
COM.ibm.JEmpower.applet.AppletSecurityException: ??
Missing resource appletsecurityexception.CheckSecurityAccess
COM.ibm.JEmpower.applet.AppletSecurityException: ??
Missing resource appletsecurityexception.CheckSecurityAccess
COM.ibm.JEmpower.applet.AppletSecurityException: ??
at COM.ibm.JEmpower.applet.AppletSecurity.checkSecurityPermission(AppletSecurity.java:1197)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1382)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1318)
at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1711)
at java.security.Provider.check(Provider.java:356)
at java.security.Provider.put(Provider.java:318)
at com.enterprisedt.cryptix.provider.Cryptix.<init>(Unknown Source)
at com.enterprisedt.net.puretls.LoadProviders.init(Unknown Source)
at com.enterprisedt.net.j2ssh.SshClient.<init>(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.<init>(Unknown Source)
at JavaAgent.NotesMain(JavaAgent.java:26)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(NotesThread.java:215)

5 Answers

0 votes
by (162k points)
You will need to grant security permissions to allow the jar to do stuff.

Try java.security.AllPermission to start with. I don't know anything about Domino so you'll need to figure out how Java permissions are set re Domino.
0 votes
by (200 points)
I added the 2 jar files to C:\Lotus\NotesR65\jvm\lib\ext folder and the following is the content of C:\Lotus\NotesR65\jvm\lib\security\java.policy

[snip]

Domino Also has a C:\Lotus\NotesR65\jvm\lib\security\java.security but I'm not sure if I needed to do anything to it or not but I added security.provider.3=com.enterprisedt.cryptix.provider.Cryptix to it any way here is the contents of the file...

[snip]
0 votes
by (162k points)
Try adding


grant codeBase "file:/edtjarlocation/-" {
permission java.security.AllPermission;
};

to both policy files.
0 votes
by (200 points)
nope that didn't work... I added permission java.security.AllPermission; to all the domains section and it worked but that isn't a workable solution. any other ideas?
0 votes
by (162k points)
This is a bit of a late follow up, but we've had another customer provide us with this link:

http://www-1.ibm.com/support/docview.ws ... us&lang=en

Basically ibmjcaprovider.jar had to be deleted.

Categories

...