简体   繁体   English

Oracle JSF教程:GlassFish 3:updatetool崩溃

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

I am trying to run the JavaServer Faces tutorial on the Oracle site: 我正在尝试在Oracle网站上运行JavaServer Faces教程:

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

However when I run on Ubuntu Linux 12.04.2 LTS I get the following: 但是,当我在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

Line 283 of boot.py has the following "import wx" statement: 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

I am running python 2.7.3. 我正在运行python 2.7.3。 Anyone know how to fix this error? 有人知道如何解决此错误吗?

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