簡體   English   中英

Oracle JSF教程:GlassFish 3:updatetool崩潰

[英]Oracle JSF Tutorial: GlassFish 3: updatetool crashes

我正在嘗試在Oracle網站上運行JavaServer Faces教程:

http://docs.oracle.com/javaee/6/tutorial/gexaj.html

但是,當我在Ubuntu Linux 12.04.2 LTS上運行時,得到以下信息:

$ updatetool
WX import error.  Verify the WX widgets are in the PYTHONPATH.
The following can be reported to GlassFish Update Tool 2.3.5 Development Team <dev@updatecenter.java.net>.

Traceback (innermost last):
  File "/home/johndoe/glassfish3/updatetool/vendor-packages/updatetool/common/boot.py", line 283, in init_app_locale
    import wx
  File "wx/__init__.py", line 45, in ?
  File "wx/_core.py", line 4, in ?
 ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

boot.py的第283行具有以下“ import wx”語句:

try:
    # XXX : This still fails badly with segfault on bad locales
    import wx
except:
    typ, val, tback = sys.exc_info()
    if str(typ) == "locale.Error":
        if sys.platform not in ['win32'] and os.environ['LANG'] != 'C':
            UPDATETOOL_LOCALE = _set_unix_locale_vars('C')
            try:
                import wx  
            except: 
                # NOL10N 
                uc_error("The current locale is not supported and we could not fallback to english locale.", 1)
        else:
            # NOL10N
            uc_error("The current locale is not supported and we could not fallback to english locale.", 1)
    else:
        import traceback
        lst = traceback.format_tb(tback) + traceback.format_exception_only(typ, val)
        msgx = _("WX import error.  Verify the WX widgets are in the PYTHONPATH.\nThe following can be reported "\
                "to %(email)s.\n\nTraceback " \
                "(innermost last):\n%(tracefirst)-20s %(tracerest)s") % {'email':INFO.REPORT_TO, 'tracefirst': "".join(lst[:-1]), 'tracerest': lst[-1]}
        uc_error(msgx, 1)

_ = wx.GetTranslation

我正在運行python 2.7.3。 有人知道如何解決此錯誤嗎?

Updatetool使用其自己的32位版本的python,因此您需要安裝i386版本的libjpeg62:

sudo apt-get install libjpeg62:i386

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM