Browser not started with link



17 years ago
8 years ago


(Reporter: georg.colle, Assigned: joshua.xia)



Firefox Tracking Flags

(Not tracked)



(1 attachment)



17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120
BuildID:    2001112012

Mozilla 0.9.6 canot be started after placing symbolic link 
"" to 
/usr/java/.../j2re1.4.0/plugin/i386/ns610/ in
.../mozilla/plugins. The feedback agent is started instead.

Reproducible: Always
Steps to Reproduce:
1.create symbolic link to jdk1.4.0 beta3 oji
2.start mozilla-script

Actual Results:  Mozilla browser not shown on the screen. Instead feedback agent

Expected Results:  start

Linux-Version: SuSE 7.3
j2sdk-Version: 1.4.0 Beta 3
Have you submitted any talkback reports?  If so, could you list the IDs here?

Also, are you spoofing your useragent by any chance?

Comment 2

17 years ago
The proper method for installing the 1.4 JRE on Linux is to link it to the
/components folder, or run regxpcom on it.

Comment 3

17 years ago
Please try to make symlink not to ./dist/bin/plugins
but to ./dist/bin/components.

Please close as dupe of 109033 if above helps.

Comment 4

17 years ago
Putting the link to jre 1.4.0 into mozilla/components has no effect. I just
re-installed jre 1.3.1 according to the installing instructions and am now
waiting for the final version of jre 1.4.0.

Comment 5

17 years ago
What do you mean "has no effect"? mozilla does not start?
java plugin is not found? 
Does removal of the link helps to get mozilla to start again?
Did you try to remove/rename ~/.mozilla ?


Comment 6

17 years ago
"No effect" means that the plugin is not recognized. And it remains unrecognized
after deleting ~/.mozilla.

Comment 7

17 years ago
Ok, so i assume mozilla with link to OJI lib from components starts normally
but applets do not work.

What does about:plugins page say?
Does it mention java plugin?

Is there any suspicious output when you start mozilla from command line?


Comment 8

17 years ago
It is true that mozilla starts normally with a link to OJI-lib placed in
components, but is that link processed at all? I have some doubts especially
because of the dialog box with the request to download an appropriate java
plugin the browser displays every time it has to start a java applet.

The about:plugins page shows only the default plugin
/usr/local/mozilla/plugins/ No java plugin is mentioned.

Starting mozilla from the command line does not produce any output.

Could the difficulties we are concerned with have to do with the fact that I
placed mozille in /usr/local instead of my home directory?

Comment 9

17 years ago
Does the browser need environment variables to find the jdk1.4.0ß3-Plugin in
mozilla/components, such as "SHLIB_PATH", "MOZILLA_DIR", "LD_LIBRARY_PATH",
"ADDON_PATH", or "LIBPATH"? If yes, we have found the error because KDE sets
them by default to /opt/mozilla or /opt/mozilla/components, respectively,
whereas mozilla is placed acually in /usr/local/mozilla.
Ever confirmed: true

Comment 10

17 years ago
When I tried the method suggested, I get the following error:

[root@samba mozilla]# ./ ./regxpcom
Load FAILED with error:
/usr/local/java/jre/plugin/i386/ns610/ undefined symbol:
Registration successful for

When the browser starts up, it doesn't show anything related to java in

I have compiled Mozilla with gcc-3.1 (CVS). The java plugin is from j2sdk 1.4.0
release candidate.

I also tried the symbolic link trick. What else should be done to fix this ?

Comment 11

17 years ago
Added myself to CC list.

Comment 12

17 years ago
kitty: I guess your problem is different and due to changed C++ mangling in 
         new gcc version (see bug 116444)

Comment 13

17 years ago
georg: Could you please try ./ ./regxpcom
       ./ /usr/bin/ldd /usr/local/mozilla/plugins/libjava* 
    post output here?

Comment 14

17 years ago
Created attachment 78937 [details]
ldd and regxpcom output as well as startup snippet

Comment 15

17 years ago
I'm not the origional reporter, but I have the same problem, minus the crash. 
Currently I'm on a CVS build from (12-apr-2002) with all the default options.

Mozilla does not crash on startup however, merely fails to correctly load the
plugin with the undefined symbol error message.

Comment 16

17 years ago
charles: Please try to make symlink from components/ instead of plugins/.
         What is you mozilla version? Did you built it youself?
          If so then what is your gcc version?

Comment 17

17 years ago
I, too am experiencing a similar problem using a nightly build from
a couple days ago on Solaris 8 w/JDK 1.4.0.

 Solaris 8, SunOS kathadin 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-60
 Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.9+) Gecko/20020417, build
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)

[1] Following the suggestion to symlink in 
the mozilla components dir, mozilla starts correctly but 
  a) visiting results in a prompt to download
     the plugin.
  b) choosing Help->About Plugins core dumps the browser with the 
     following backtrace (signal 9):
#0  0xff1af890 in nsNativeComponentLoader::SelfRegisterDll ()
   from /export/share/mozilla/
(gdb) bt
#0  0xff1af890 in nsNativeComponentLoader::SelfRegisterDll ()
   from /export/share/mozilla/
#1  0xff1b0acc in nsNativeComponentLoader::AutoRegisterComponent ()
   from /export/share/mozilla/
#2  0xff1af4ac in nsNativeComponentLoader::RegisterComponentsInDir ()
   from /export/share/mozilla/
#3  0xff1af36c in nsNativeComponentLoader::AutoRegisterComponents ()
   from /export/share/mozilla/
#4  0xff1ad568 in nsComponentManagerImpl::AutoRegisterImpl ()
   from /export/share/mozilla/
#5  0xff1addbc in nsComponentManagerImpl::AutoRegister ()
   from /export/share/mozilla/
#6  0xfd35dd90 in nsPluginHostImpl::ReloadPlugins ()
   from /export/share/mozilla/components/
#7  0xfd94e5a0 in PluginArrayImpl::Refresh ()
   from /export/share/mozilla/components/
#8  0xfd94e838 in PluginArrayImpl::Refresh ()
   from /export/share/mozilla/components/
#9  0xff1cf774 in XPTC_InvokeByIndex () from /export/share/mozilla/
#10 0xfe906594 in XPCWrappedNative::CallMethod ()
   from /export/share/mozilla/components/
#11 0xfe90c17c in XPC_WN_CallMethod ()
   from /export/share/mozilla/components/
#12 0xff2b6f80 in js_Invoke () from /export/share/mozilla/
#13 0xff2bea80 in js_Interpret () from /export/share/mozilla/
#14 0xff2b73e4 in js_Execute () from /export/share/mozilla/
#15 0xff296314 in JS_EvaluateUCScriptForPrincipals ()
   from /export/share/mozilla/
#16 0xfd92e5d0 in nsJSContext::EvaluateString ()
   from /export/share/mozilla/components/
#17 0xfd78c7dc in nsScriptLoader::EvaluateScript ()
   from /export/share/mozilla/components/
#18 0xfd78c430 in nsScriptLoader::ProcessRequest ()
   from /export/share/mozilla/components/
#19 0xfd78c194 in nsScriptLoader::ProcessScriptElement ()
   from /export/share/mozilla/components/
#20 0xfd5f8544 in nsHTMLScriptElement::SetDocument ()
   from /export/share/mozilla/components/
---Type <return> to continue, or q <return> to quit---
#21 0xfd5c6dd8 in nsGenericHTMLContainerElement::AppendChildTo ()
   from /export/share/mozilla/components/
#22 0xfd61bf68 in HTMLContentSink::ProcessSCRIPTTag ()
   from /export/share/mozilla/components/
#23 0xfd616fd0 in HTMLContentSink::AddLeaf ()
   from /export/share/mozilla/components/
#24 0xfdb347bc in CNavDTD::AddLeaf ()
   from /export/share/mozilla/components/
#25 0xfdb32484 in CNavDTD::HandleScriptToken ()
   from /export/share/mozilla/components/
#26 0xfdb33da4 in CNavDTD::OpenContainer ()
   from /export/share/mozilla/components/
#27 0xfdb30648 in CNavDTD::HandleDefaultStartToken ()
   from /export/share/mozilla/components/
#28 0xfdb313e0 in CNavDTD::HandleStartToken ()
   from /export/share/mozilla/components/
#29 0xfdb2f9f0 in CNavDTD::HandleToken ()
   from /export/share/mozilla/components/
#30 0xfdb2ec04 in CNavDTD::BuildModel ()
   from /export/share/mozilla/components/
#31 0xfdb43084 in nsParser::BuildModel ()
   from /export/share/mozilla/components/
#32 0xfdb42d74 in nsParser::ResumeParse ()
   from /export/share/mozilla/components/
#33 0xfdb44b1c in nsParser::OnDataAvailable ()
   from /export/share/mozilla/components/
#34 0xfdacf04c in nsDocumentOpenInfo::OnDataAvailable ()
   from /export/share/mozilla/components/
#35 0xfdf46040 in nsJARChannel::OnDataAvailable ()
   from /export/share/mozilla/components/
#36 0xfdeff004 in nsOnDataAvailableEvent::HandleEvent ()
   from /export/share/mozilla/components/
#37 0xfdeecfe4 in nsARequestObserverEvent::HandlePLEvent ()
   from /export/share/mozilla/components/
#38 0xff1b506c in PL_HandleEvent () from /export/share/mozilla/
#39 0xff1b4f9c in PL_ProcessPendingEvents ()
   from /export/share/mozilla/
#40 0xff1b6048 in nsEventQueueImpl::ProcessPendingEvents ()
---Type <return> to continue, or q <return> to quit---
   from /export/share/mozilla/
#41 0xfde2fa88 in nsAppShell::SetDispatchListener ()
   from /export/share/mozilla/components/
#42 0xfde2f73c in keysym2ucs ()
   from /export/share/mozilla/components/
#43 0xfedf6020 in g_io_unix_dispatch (source_data=0xea280, 
    current_time=0xffbedf48, user_data=0x1b1810) at giounix.c:135
#44 0xfedf7cfc in g_main_dispatch (dispatch_time=0xffbedf48) at gmain.c:656
#45 0xfedf8598 in g_main_iterate (block=-18752180, dispatch=1) at gmain.c:877
#46 0xfedf87ac in g_main_run (loop=0x1c2b28) at gmain.c:935
#47 0xfef4a488 in gtk_main () at gtkmain.c:524
#48 0xfde30024 in nsAppShell::Run ()
   from /export/share/mozilla/components/
#49 0xfe84e968 in nsAppShellService::Run ()
   from /export/share/mozilla/components/
#50 0x19580 in getCountry ()
#51 0x19f4c in main ()

2) Removing all traces of libjavaplugin*.so from the mozilla directory
and attempting to use regxpcom to register this so /also/ results
in a core dump:

./regxpcom /opt/javadev/jdk1.4/jre/plugin/sparc/ns610/ )
Bus error (core dumped)

#0  0xff2af890 in nsNativeComponentLoader::SelfRegisterDll ()
   from /export/share/mozilla/
#1  0xff2b0acc in nsNativeComponentLoader::AutoRegisterComponent ()
   from /export/share/mozilla/
#2  0xff2adac4 in nsComponentManagerImpl::AutoRegisterComponent ()
   from /export/share/mozilla/
#3  0xff2adda4 in nsComponentManagerImpl::AutoRegister ()
   from /export/share/mozilla/
#4  0x10dd8 in Register ()
#5  0x11204 in ProcessArgs ()
#6  0x11330 in main ()

= ============

Is there a C++ compiler mismatch going on here?
dj dot hagberg at sun dot com

Comment 18

17 years ago
I've been getting this bug for a couple of months now with j2sdk1.4.  I was
hoping that it would go away, but it hasn't, most recently segfaulting Linux
nightly 2002052507.

I stick it in the following place:
ln -s $JAVA_HOME/jre/plugin/i386/ns610/

I've also tried it with the ns600 plugin.  The segfault is:
/usr/local/mozilla/mozilla/ line 72: 16570 Segmentation fault   
  $prog ${1+"$@"}

I'm using Redhat Linux 7.3

Comment 19

16 years ago
I ran into this bug on Mozilla 1.1 running on Solaris 9 with J2SE1.4. The trick
of renaming ~/.mozilla/plugins to ~/.mozilla/components worked in that Mozilla
stopped crashing, but the Java plug-in itself did not register in the
about:plugins page.

I can add two more pieces of information:

* I tested that plugins are working in general by installing and testing the
Flash 5 plugin. It registers in the about:plugins page and viewing test pages
works fine. BTW, both ~/.mozilla/plugins and ~/.mozilla/components work for the
Flash 5 plugin.

* I tried different JRE versions (1.4 and 1.3.1) and different versions of the shared library.

Comment 20

16 years ago
There were some history behind some problems of linking java plugin lib to
"components" directory and running regxpcom. The right way to link the java
plugin lib now is to link it to "plugins" directory. If you currently have a
link to "components", remove (or unlink it) first, then link to "plugins". 
Just get a recent mozilla and JRE (download them from and, then you can either go to a site using java (applet) and you
will be prompted to download JRE, or you can link JRE to "plugins" yourself.
Either way, the Java plugin should work.

Comment 21

16 years ago
Chris Petersen is a new QA contact for oji component. His email is:
Assignee: joe.chou → petersen
fixing small error for (filter with : SPAMMAILSUCKS)
Assignee: petersen → joe.chou
QA Contact: pmac → petersen

Comment 23

16 years ago
reassign to me
Assignee: joe.chou → joshua.xia

Comment 24

16 years ago
Reporter: Can you try latest JRE as comment 20 said? Thanks
Closing because this works for me on Linux(RH8.0) mozilla1.2 JRE1.4.1_01
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
Summary: Browser not started with link → Browser not started with link


8 years ago
Component: Java: OJI → Java: OJI
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.