Glassfish v4.0无法在Mac OSX 10.6.8 + JDK 7.0 U40上运行 [英] Glassfish v4.0 cannot work on Mac OSX 10.6.8 + JDK 7.0 U40

查看:127
本文介绍了Glassfish v4.0无法在Mac OSX 10.6.8 + JDK 7.0 U40上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用2010 Macbook Pro,并将Mac OSX更新为最新版本,而且我很长时间以来一直在慢速运行。所以昨晚我搜索了一下并做了一些清理,比如修复磁盘权限,但是Mac仍然很慢。有人建议重新安装MacOSX。



我以为这是Mac OSX问题的新版本,我在第一版iPad上也遇到了同样的问题。



重新安装后,电脑变得更快了。但是我遇到了以下问题:
$ b $ ol

  • JDK 7 DMG不支持OSX 10.6.8,但只有OSX 10.7 +

  • Github官方客户端不支持OSX 10.7 +

  • Gooooooogled一次又一次解决第一个问题,那里主要是建议:
    A.使用PackageMaker删除OSX版本条件。
    B.使用Pacifist工具打开从官方下载的DMG文件中的pkg文件。



    由于我在Mac OSX上安装了PackageMaker,因此我选择了A.
    使用PackageMaker打开它,删除限制,然后重新构建它,我成功安装了新的pkg文件:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/ Home



    然后在〜/ .bash_profile上设置JAVA_HOME。

    然后,我下载了glassfish 4.0多语言版本,解压缩和启动域成功。最后这个问题现在已经不存在了。



    在glassfish v4启动后,我尝试登录web控制台:

      http:// localhost:4848 

    然后玻璃鱼服务器实例死亡,glassfish的java进程仍然存在,但没有任何响应,Web控制台启动图标始终在滚动。并且没有创建错误日志,并且不生成生成目录。



    2013-10-15 14:05:20.928 java [797:903] * NSInvocation:warning:类'ThreadUtilities'的对象0x1083c8390没有实现methodSignatureForSelector : - 未来的麻烦
    2013-10-15 14:05:20.930 java [797:903] * NSInvocation:warning:类'ThreadUtilities'的对象0x1083c8390没有实现doesNotRecognizeSelector: - abort
    命令启动域失败。



    这是第一个问题。

    第二个问题是关于github上。由于github的官方不支持OSX 10.6.8,我找到了一个1.0.3版本的旧安装程序。我安装了这个版本,现在只有一个问题,我无法用用户名和密码登录到github,没有错误响应,只是没有响应,我在Windows上遇到过这种情况。但我可以点击github.com上的克隆到桌面按钮。



    有人可以帮我吗?我正在开发基于JDK7的项目。

    为什么每个人都离开雪豹,并且不再支持它,但是旧的Mac电脑应该在2〜3年后停止工作,仅需2〜3年。并且操作系统升级到nex t级别会降低性能。为什么这件事发生?
    是神的神谕吗?

    解决方案

    我有同样的错误(NSInvocation ...) 2006年Macbook Pro(OS X 10.6.8),我已经在其上安装了JDK7以在Eclipse Kepler中开发Java / GWT应用程序。经过搜索后,我了解到一种可能的解决方案是降级到JDK 1.7.0u25(而不是更新40或更高版本),因此我将该版本与1.7.0u45(我已有)一起安装,并解决了问题。所以我建议安装JDK的这个版本,看看能否解决你的问题。


    I had been using 2010 Macbook Pro for a while and had updated the Mac OSX to the latest version, and I had been suffering the slow speed for a long time. So last night I googled and do some cleanup , such as fix disk permissions, but the Mac was still slow. And someone suggest to re-install MacOSX.

    I was thinking it was the new version of Mac OSX's problem, I had the same kind of problems happen on the 1st version IPad either.

    After I reinstalled, the computer became much more faster. But I encountered the following problems:

    1. JDK 7 DMG does not support OSX 10.6.8, but ONLY OSX 10.7+
    2. Github official client does not support OSX 10.7+

    Gooooooogled again and again, to solve the 1st problem, there are mainly to suggestions: A. Using PackageMaker to remove the OSX version condition. B. Using a tool Pacifist to open the pkg file inside the DMG file downloaded from official.

    Since I have PackageMaker installed on Mac OSX, so I choosed A. Open it with PackageMaker, remove the limitation, and build it again, I installed with the new pkg file successfully at: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home

    And then set JAVA_HOME on ~/.bash_profile.

    Then I download the glassfish 4.0 multi-language version, unzipped, and start-domain successfully. and finally the problem killed me for now.

    After glassfish v4 started, I try to login into web console at:

    http://localhost:4848
    

    then glassfish server instance "dies", the java process of glassfish is still there, but without any response, the web console starting icon keeps rolling all the time. And there are no error logs created, and the "generated" directory is not generated.

    2013-10-15 14:05:20.928 java[797:903] * NSInvocation: warning: object 0x1083c8390 of class 'ThreadUtilities' does not implement methodSignatureForSelector: -- trouble ahead 2013-10-15 14:05:20.930 java[797:903] * NSInvocation: warning: object 0x1083c8390 of class 'ThreadUtilities' does not implement doesNotRecognizeSelector: -- abort Command start-domain failed.

    That is the 1st problem.

    The 2nd problem is about github. Since github official does not support OSX 10.6.8, I found an old installer with version 1.0.3. I installed this version, with one ONLY problem for now, I cannot login into github with username and password,no error responses, just no responding, I suffered this once I was on Windows. But I can work with clicking the "Clone into Desktop" button on github.com.

    Can someone help me out? I am working on JDK7 based projects.

    Why everybody is leaving Snow Leopard, and does not support it anymore, but old Mac computers should be die without working software after 2~3 years, just 2~3 years. And OS upgrade to nex t level will DOWNGrade the performance. Why this things happen? Is it the oracle from god?

    解决方案

    I had the same error (NSInvocation...), on my 2006 Macbook Pro (OS X 10.6.8), onto which I had installed JDK7 to develop a Java/GWT application in Eclipse Kepler. After searching around, I learned that one possible solution was to downgrade to JDK 1.7.0u25 (instead of update 40 or higher), so I installed that version alongside 1.7.0u45 (which I already had), and that fixed the problem. So I would recommend installing that version of the JDK and see if that fixes your problem.

    这篇关于Glassfish v4.0无法在Mac OSX 10.6.8 + JDK 7.0 U40上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆