Solved

using Protege as an applet

Posted on 2006-06-12
6
372 Views
Last Modified: 2012-06-21
I'm trying to run Protege (http://protege.stanford.edu/) as an applet. However, when I configure it to use the DB it gives me this stack trace. Do I need to sign the applet or something? This applet will only be used internally at our company, so it's acceptable if we have to do something on each user's machine, but it'd obviously be preferable if we could do it on the server side.

java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.net.wallet_location read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:1427)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.OracleDriver.getSystemProperty(OracleDriver.java:1423)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:596)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at edu.stanford.smi.protege.storage.database.RobustConnection.setupConnection(Unknown Source)
    at edu.stanford.smi.protege.storage.database.RobustConnection.<init>(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseFrameDb.<init>(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.addFrameStore(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown Source)
    at edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
    at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
    at edu.stanford.smi.protege.model.Project.loadProjectFromURI(Unknown Source)
    at edu.stanford.smi.protege.ui.ProjectManager.loadProjectFromURI(Unknown Source)
    at edu.stanford.smi.protege.ui.ProjectManager.loadProject(Unknown Source)
    at edu.stanford.smi.protege.Application.init(Unknown Source)
    at edu.stanford.smi.protege.Application.realmain(Unknown Source)
    at edu.stanford.smi.protege.Application$3.run(Unknown Source)
0
Comment
Question by:HappyEngineer
  • 3
  • 2
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16891203
yes, it needs signing. Or changing the security policy file on each box that needs to use it.
Signing would be the easiest though.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 16892696
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 500 total points
ID: 16892702
>> Signing would be the easiest though

Yes, security policy file is not a good approach because it will give permissions to all applets which is not advisable ;-) as its a security-threat.
0
 
LVL 92

Expert Comment

by:objects
ID: 17055500
> Yes, security policy file is not a good approach because it will give permissions to all applets which is not advisable ;-) as its a security-threat.

thats actually incorrect :)
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17079292
Why?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now