?
Solved

using Protege as an applet

Posted on 2006-06-12
6
Medium Priority
?
415 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
5 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 2000 total points
ID: 16892696
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 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