|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Java Firefox Extension in Firefox 3?Hi-
Has anyone attempted to use the Java Firefox Extension (or similar techniques for calling Java from chrome js) in a Firefox 3 beta? On the mac (OSX 10.5.2) my extension fails silently when when the first call to java is made. Was working fine in FF2. The XqUSEme extension- https://addons.mozilla.org/en-US/firefox/addon/5515 - which also uses java is similarly broken on FF3. Wondering if anyone at SIMILE has already investigated this issue... thanks -Bill _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
Re: Java Firefox Extension in Firefox 3?Bill,
I think we have seen a problem where if there is one exception thrown then the LiveConnect bridge just stops working altogether (until you restart Firefox). We got around that by catching all exceptions before they hit the LiveConnect bridge. That was a few months ago and it might have been with Firefox 2.0.0.1x rather than Firefox 3; and Ryan Lee was the last person to track it. I don't think we have really tried to keep up with Firefox 3. Please let us know if you make any progress on this front. Thanks! David Bill Orcutt wrote: > Hi- > > Has anyone attempted to use the Java Firefox Extension (or similar > techniques for calling Java from chrome js) in a Firefox 3 beta? On > the mac (OSX 10.5.2) my extension fails silently when when the first > call to java is made. Was working fine in FF2. The XqUSEme extension- https://addons.mozilla.org/en-US/firefox/addon/5515 > - which also uses java is similarly broken on FF3. Wondering if > anyone at SIMILE has already investigated this issue... > > thanks > > -Bill > _______________________________________________ > General mailing list > General@... > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
|
|
|
Re: Java Firefox Extension in Firefox 3?Bill,
I seem to have gotten the Java Firefox Extension to work on Firefox 3: http://simile.mit.edu/repository/java-firefox-extension/java-firefox-extension-2.0.0.xpi Once it's installed and Firefox is restarted, the Error Console should say FooComponent.initialize { Greetings: Hello World! } FooComponent.initialize The string "Hello World!" comes from Java. Also you should be able to invoke Tools -> Java Firefox Extension: Do It! and get an alert of 43. You should also be able to open a new window, invoke that same menu command, and get 44. This shows that there is only one instance of the Test class shared across windows. The fix was to move the Java class instantiation code out of the XPCOM code back into the chrome code. The chrome code http://simile.mit.edu/repository/java-firefox-extension/firefox/chrome/content/scripts/browser-overlay.js has to do more work now, which makes it a little less pretty, but it works. On the other hand, we can do away entirely with all that policy setting hack! Frankly, I don't know why I didn't use this method before! :-) Let me know if you find any problem. David Bill Orcutt wrote: > Thanks David- > > FWIW, Here are the errors that are reported to the console: > > Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]: > initialization error: Can't load class netscape/javascript/JSObject > Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]: MRJ > Plugin JEP: JavaScript-to-Java LiveConnect failed -- no security > manager! > Mar 7 14:02:57: --- last message repeated 6 times --- > Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]: > initialization error: Can't load class java/lang/Object > Mar 7 14:02:39 dhcp108 [0x0-0x1c01c].org.mozilla.firefox[347]: > LiveConnect was unable to reflect one or more components of the Java > runtime. > > The blog post below suggests that LiveConnect is going away in Mozilla > 2.0- perhaps they've already crippled it: > > http://boomswaggerboom.wordpress.com/2007/04/16/javaplugin-cleanup-for-mozilla-20/ > > cheers > > -Bill > > > > On Mar 3, 2008, at 11:04 AM, general-request@... wrote: > >> Bill, >> >> I think we have seen a problem where if there is one exception thrown >> then the LiveConnect bridge just stops working altogether (until you >> restart Firefox). We got around that by catching all exceptions before >> they hit the LiveConnect bridge. That was a few months ago and it >> might >> have been with Firefox 2.0.0.1x rather than Firefox 3; and Ryan Lee >> was >> the last person to track it. >> >> I don't think we have really tried to keep up with Firefox 3. Please >> let >> us know if you make any progress on this front. Thanks! >> >> David >> >> Bill Orcutt wrote: >> >>> Hi- >>> >>> Has anyone attempted to use the Java Firefox Extension (or similar >>> techniques for calling Java from chrome js) in a Firefox 3 beta? On >>> the mac (OSX 10.5.2) my extension fails silently when when the first >>> call to java is made. Was working fine in FF2. The XqUSEme >>> extension- https://addons.mozilla.org/en-US/firefox/addon/5515 >>> - which also uses java is similarly broken on FF3. Wondering if >>> anyone at SIMILE has already investigated this issue... >>> >>> thanks >>> >>> -Bill >>> _______________________________________________ >>> General mailing list >>> General@... >>> http://simile.mit.edu/mailman/listinfo/general >>> >>> > > _______________________________________________ > General mailing list > General@... > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
|
|
|
longwell semantic-bank: what's a profile?Dear all,
I'm trying to get an instance of longwell semantic-bank running. I'm clearly missing some important step. I have no problem getting it running at localhost:8080 jjc% ./longwell -c tstbank [INFO] MAVEN_OPTS: ' -Djava.awt.headless=true -Dslf4j=true -Dlog4j.configuration=file:./src/main/webapp/WEB-INF/log4j.properties -Djava.security.auth.login.config=file:./src/main/resources/jaas.config -Dlongwell.configuration=tstbank -Djetty.port=8080 -Xms32M -Xmx256M' And I don't seem to have any problem logging into it using myopenid. All the expected data are there and I can browse it in the usual longwell way, but If I try to delete anything I get: 10:42:57.054 [..l.command.RemoveCommand] Unauthorized user attempted to remove from profile (120985ms) If I try publishing an item from my piggybank using the coin icon with the up arrow, I get this: 10:57:26.477 [..l.command.UploadCommand] java.lang.RuntimeException: Could not find profile with id: aHR0cDovL2pqY3J1bXAubXlvcGVuaWQuY29t (667669ms) (by the way, didn't piggy-bank items used to have a publish button along with the delete and tag buttons?) If I navigate to a web page in FF and execute the 'view this page in my banks' menu command in the piggy-bank menu, I get this: 10:59:12.215 [..ll.command.FocusCommand] java.lang.RuntimeException: Could not find profile with id: tstbank (9ms) java.lang.RuntimeException: Could not find profile with id: tstbank at edu.mit.simile.longwell.Longwell.getProfile(Longwell.java:165) at edu.mit.simile.longwell.Message.getProfile(Message.java:57) at edu.mit.simile.longwell.command.CommandBase.createContext(CommandBase.java:38) at edu.mit.simile.longwell.command.FocusCommand.execute(FocusCommand.java:22) at edu.mit.simile.longwell.LongwellServlet.doGet(LongwellServlet.java:576) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.jetty.nio.BlockingChannelConnector$Connection.run(BlockingChannelConnector.java:163) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) And logwell takes me to an empty page, while firebug reports: uncaught exception: Permission denied to call method XMLHttpRequest.open Clearly there is something about creating a profile that I'm missing. I'm not even sure what a 'profile' is in this context. The configuration.properties file for this instance has simply: # ---------- Extension --------------- longwell.configuration.extends=semantic-bank # ----------- Templates ---------------- longwell.template.header=components/sourcenotes-header.vt Perhaps there is something else I need to do here? My intention is to do some testing to see if the semantic bank might be the right tool for the application I have in mind. I need also to find out if it is possible to add and subtract items from the semantic-bank programmatically from some context other than piggy-bank. Is it possible, for example, to upload existing rdf data to the semantic-bank via curl or from a php page? Any clues? Jon _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
Re: longwell semantic-bank: what's a profile?It's been some time since we worked on either Piggy Bank or Longwell.
Considering upcoming transitions, I don't know how much we can put into support for either. This may be a case of logging an issue and coming back to it in due time. Jon Crump wrote: > 10:42:57.054 [..l.command.RemoveCommand] Unauthorized user attempted to > remove from profile (120985ms) Which version of Firefox and PB are you using? > If I try publishing an item from my piggybank using the coin icon with the > up arrow, I get this: > > 10:57:26.477 [..l.command.UploadCommand] java.lang.RuntimeException: Could > not find profile with id: aHR0cDovL2pqY3J1bXAubXlvcGVuaWQuY29t (667669ms) > > (by the way, didn't piggy-bank items used to have a publish button along > with the delete and tag buttons?) The publish button was removed for the upload coin, since OpenID login needed to go through the browser and couldn't be initiated in an integrated way from inside a web page. > And logwell takes me to an empty page, while firebug reports: uncaught > exception: Permission denied to call method XMLHttpRequest.open > > Clearly there is something about creating a profile that I'm missing. I'm > not even sure what a 'profile' is in this context. > Perhaps there is something else I need to do here? Profiles should be an internal-to-the-code matter. How did you set up your Semantic Bank account in PB? > My intention is to do some testing to see if the semantic bank might be > the right tool for the application I have in mind. I need also to find out > if it is possible to add and subtract items from the semantic-bank > programmatically from some context other than piggy-bank. Is it possible, > for example, to upload existing rdf data to the semantic-bank via curl or > from a php page? It is not presently possible to do so unless you can automate your OpenID credentials. -- Ryan Lee ryanlee@... MIT CSAIL Research Staff http://simile.mit.edu/ http://people.csail.mit.edu/ryanlee/ _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
Re: longwell semantic-bank: what's a profile?Ryan, Thanks alot for taking a stab at this.
On Wed, 12 Mar 2008, Ryan Lee wrote: > > Which version of Firefox and PB are you using? FF 2.0.0.12 PB 3.1.2 MacBook 2.2 GHz Intel Core 2 Duo OS X 10.5.2. logging in with http://jjcrump.myopenid.com and password seems to succeed and results in: Mar 13, 2008 1:15:06 PM com.janrain.url.UrlConnectionFetcher interpretResponse WARNING: Unable to find a charset >> If I try publishing an item from my piggybank using the coin icon with the >> up arrow, I get this: >> >> 10:57:26.477 [..l.command.UploadCommand] java.lang.RuntimeException: Could >> not find profile with id: aHR0cDovL2pqY3J1bXAubXlvcGVuaWQuY29t (667669ms) attempting to remove an item from tstbank gets: 13:17:08.610 [..l.command.RemoveCommand] Unauthorized user attempted to remove from profile (3703836ms) > Profiles should be an internal-to-the-code matter. How did you set up > your Semantic Bank account in PB? Tools -> PiggyBank -> My Semanti Bank Accounts -> add bank address: http://localhost:8080/tstbank account type: OpenID The Longwell code is recent SVN: At revision 9124. /Applications/Simile/longwell/src/main/webapp/tstbank/configuration.properties has only: # ---------- Extension --------------- longwell.configuration.extends=semantic-bank # ----------- Templates ---------------- longwell.template.header=components/sourcenotes-header.vt and the longwell.store.type = memory at: /Applications/Simile/longwell/src/main/webapp/WEB-INF/longwell.properties In case it's helpful, below I've included the full trace upon starting semantic-bank: [ElCid:/Applications/Simile/longwell] jjc% ./longwell -c tstbank [INFO] MAVEN_OPTS: ' -Djava.awt.headless=true -Dslf4j=true -Dlog4j.configuration=file:./src/main/webapp/WEB-INF/log4j.properties -Djava.security.auth.login.config=file:./src/main/resources/jaas.config -Dlongwell.configuration=tstbank -Djetty.port=8080 -Xms32M -Xmx256M' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] ---------------------------------------------------------------------------- [INFO] Building SIMILE Longwell [INFO] task-segment: [jetty:run] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing jetty:run [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [jetty:run] [INFO] Configuring Jetty for project: SIMILE Longwell [INFO] Webapp source directory = /Applications/Simile/longwell/src/main/webapp [INFO] web.xml file = /Applications/Simile/longwell/src/main/webapp/WEB-INF/web.xml [INFO] Classes = /Applications/Simile/longwell/target/classes 2008-03-12 13:09:51.562::INFO: Logging to STDERR via org.mortbay.log.StdErrLog [INFO] Context path = / [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] Webapp directory = /Applications/Simile/longwell/src/main/webapp [INFO] Starting jetty 6.1.6rc1 ... 2008-03-12 13:09:52.870::INFO: jetty-6.1.6rc1 2008-03-12 13:09:53.613::INFO: No Transaction manager found - if your webapp requires one, please configure one. 13:09:56.497 [..ell.LongwellClassLoader] Classloader and classloader watcher initialized (0ms) 13:09:56.508 [..ongwell.LongwellServlet] > load longwell properties (11ms) 13:09:56.548 [..ongwell.LongwellServlet] Loading properties for configuration 'tstbank' from /Applications/Simile/longwell/src/main/webapp/tstbank/configuration.properties (40ms) 13:09:56.561 [..ongwell.LongwellServlet] tstbank extends semantic-bank (13ms) 13:09:56.577 [..ongwell.LongwellServlet] Loading properties for configuration 'semantic-bank' from /Applications/Simile/longwell/src/main/webapp/semantic-bank/configuration.properties (16ms) 13:09:56.594 [..ongwell.LongwellServlet] semantic-bank extends longwell (17ms) 13:09:56.613 [..ongwell.LongwellServlet] Loading properties for configuration 'longwell' from /Applications/Simile/longwell/src/main/webapp/longwell/configuration.properties (19ms) 13:09:56.627 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/longwell/classes (14ms) 13:09:56.627 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/longwell/classes does not exist (0ms) 13:09:56.627 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/longwell/lib (0ms) 13:09:56.627 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/longwell/lib does not exist (0ms) 13:09:56.628 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/semantic-bank/classes (1ms) 13:09:56.628 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/semantic-bank/classes does not exist (0ms) 13:09:56.629 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/semantic-bank/lib (1ms) 13:09:56.643 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/semantic-bank/lib does not exist (14ms) 13:09:56.644 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/tstbank/classes (1ms) 13:09:56.644 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/tstbank/classes does not exist (0ms) 13:09:56.645 [..ell.LongwellClassLoader] Processing class repository: /Applications/Simile/longwell/src/main/webapp/tstbank/lib (1ms) 13:09:56.645 [..ell.LongwellClassLoader] Repository /Applications/Simile/longwell/src/main/webapp/tstbank/lib does not exist (0ms) 13:09:56.645 [..ongwell.LongwellServlet] Starting configuration: tstbank (0ms) 13:09:56.645 [..ongwell.LongwellServlet] < load longwell properties (0ms) 13:09:56.645 [..ongwell.LongwellServlet] > load OpenID store (0ms) 13:09:56.705 [..ongwell.LongwellServlet] < load OpenID store (60ms) 13:09:56.705 [..ongwell.LongwellServlet] > initialize fresnel (0ms) 13:09:56.706 [..ongwell.LongwellServlet] < initialize fresnel (1ms) 13:09:56.706 [..ongwell.LongwellServlet] > initialize XSLT transformations (0ms) 13:09:57.189 [..ongwell.LongwellServlet] < initialize XSLT transformations (483ms) 13:09:57.189 [..ongwell.LongwellServlet] > initialize velocity (0ms) 13:09:57.441 [..ongwell.LongwellServlet] < initialize velocity (252ms) 13:09:57.629 [..ongwell.LongwellServlet] > initialize the longwell engine (188ms) 13:09:57.823 [..mile.longwell.Utilities] Read 5 statements from 'file:/Applications/Simile/longwell/src/main/webapp/WEB-INF/fresnel-defaults.n3' (194ms) 13:09:57.840 [..mile.longwell.Utilities] Read 5 statements from 'file:/Applications/Simile/longwell/src/main/webapp/tstbank/fresnel.n3' (17ms) 13:09:57.852 [..mile.longwell.Utilities] Read 5 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/fresnel.n3' (12ms) 13:09:57.865 [..gwell.RepositoryFactory] Enabling smooshing on the triple store (13ms) 13:09:57.882 [..imile.longwell.Longwell] Configuration file watcher initialized. (17ms) 13:09:57.882 [..ongwell.LongwellServlet] < initialize the longwell engine (0ms) 13:09:57.882 [..ongwell.LongwellServlet] > load data into longwell (0ms) 13:09:57.900 [..mile.longwell.Utilities] Read 31 statements from 'file:/Applications/Simile/longwell/src/main/webapp/WEB-INF/configurations.n3' (18ms) 13:09:58.941 [..mile.longwell.Utilities] Read 10 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/doap-facade.n3' (1041ms) 13:09:59.058 [..mile.longwell.Utilities] Read 12 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/foaf-facade.n3' (117ms) 13:09:59.174 [..mile.longwell.Utilities] Read 95 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/ontoweb-bibtex-facade.n3' (116ms) 13:09:59.293 [..mile.longwell.Utilities] Read 9 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/public-facade.n3' (119ms) 13:09:59.301 [..ngwell.QueryBasedFacade] org.openrdf.query.QueryEvaluationException: No info on property http://simile.mit.edu/2005/04/ontologies/publishing#status (8ms) 13:09:59.341 [..mile.longwell.Utilities] Read 10 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/rss-facade.n3' (40ms) 13:09:59.376 [..mile.longwell.Utilities] Read 0 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/today's-items-facade.n3' (35ms) 13:09:59.393 [..mile.longwell.Utilities] Read 9 statements from 'file:/Applications/Simile/longwell/src/main/webapp/longwell/data/web-page-facade.n3' (17ms) 13:09:59.454 [..mile.longwell.Utilities] Read 82 statements from 'file:/Applications/Simile/longwell/src/main/webapp/tstbank/data/sealImages.n3' (61ms) 13:09:59.535 [..ongwell.LongwellServlet] < load data into longwell (81ms) 13:09:59.535 [..ongwell.LongwellServlet] > index the longwell data (0ms) 13:09:59.543 [..ongwell.LongwellServlet] < index the longwell data (8ms) 2008-03-12 13:09:59.032::INFO: Started BlockingChannelConnector@...:8080 [INFO] Started Jetty Server [INFO] Starting scanner at interval of 5 seconds. _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
| Free Forum Powered by Nabble | Forum Help |