Firefox could not load the component in Fedora Linux
I have spent the past two hours trying to get Zotero working again. It was working fine on Fedora 11 x86_64 with Firefox 3.5.9 and OOo 3.1.1 (from OOo, not from Fedora repos). But then I upgraded OOo to 3.2.1 and now I can't get it working again.
I have searched the forums and tried a lot of suggestions, but so far no joy. Javatester.org says Firefox is using Sun Java 6.0(18), and I have set the same Java in OOo Options. And the same Java is set as the default in Fedora. I have uninstalled and reinstalled the Firefox plugin (2.09) and the OOo Integration plugin (3.0b2). I have even rebooted the computer.
Any suggestions welcome!
I have searched the forums and tried a lot of suggestions, but so far no joy. Javatester.org says Firefox is using Sun Java 6.0(18), and I have set the same Java in OOo Options. And the same Java is set as the default in Fedora. I have uninstalled and reinstalled the Firefox plugin (2.09) and the OOo Integration plugin (3.0b2). I have even rebooted the computer.
Any suggestions welcome!
[JavaScript Error: "[Exception... "'Error calling method on NPObject! [plugin exception: LiveConnectPermissionNeeded access denied (java.lang.RuntimePermission createClassLoader) ].' when calling method: [nsIFactory::createInstance]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: chrome://zotero/content/xpcom/integration.js :: execCommand :: line 172" data: no]" {file: "chrome://zotero/content/xpcom/integration.js" line: 172}]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/integration.js :: execCommand :: line 172" data: no]" {file: "chrome://zotero/content/xpcom/integration.js" line: 172}]
I hope that helps someone figure out what is wrong and how to fix it. If there is anything else I can do, be sure to holler back!
I'm not sure, maybe the instructions in the documentation (scroll down a little) will work for Fedora
http://www.zotero.org/support/word_processor_plugin_troubleshooting#component_loading_error1
otherwise you'll have to figure this out yourself.
rpm -qa | grep armor
revealed no packages with "armor." I also did it for "armour" and a few other possibilities.
However, bear in mind that my only upgrade was from OOo 3.1.1 to 3.2.1. My OS (Fedora 11) has not changed in over a year. Zotero used to work fine. So I doubt the problem is in apparmor.
But I'd be thrilled if someone could show that I am wrong and that the problem is in apparmor.
Then I ran the command:
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
And it appeared to execute without error. And finally, I ran the command:
[jjj@Devil8 ~]$ sudo /usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so / libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000
[sudo] password for jjj:
alternatives version 1.3.42 - Copyright (C) 2001 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.
usage: alternatives --install <link> <name> <path> <priority>
[--initscript <service>]
[--slave <link> <name> <path>]*
alternatives --remove <name> <path>
alternatives --auto <name>
alternatives --config <name>
alternatives --display <name>
alternatives --set <name> <path>
common options: --verbose --test --help --usage --version
--altdir <directory> --admindir <directory>
From the above it appears that the command failed, although there is not a specific error message.
I wonder what the "20000" at the end of the commands does. Also, should I not remove Iced Tea first? Yumex does not list anything with "ice" in it, so if I need to uninstall it I need to figure out the package name.
sudo /usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000
on a single line, with no slash, and it should work. Without this, you don't install the Sun Java plug-in for Firefox, which explains why OOo integration isn't working.
I think the package you need to remove to uninstall the IcedTea plug-in is called something like "java-1.6.0-openjdk-plugin." This may or may not end up being necessary.
Best news of all is that Zotero is now working in Writer 3.2.1!
A thousand thanks for the help.