2014-07-24 90 views

回答

1

似乎有玩2.2.3的兼容性問題,使用在Glassfish 3. play2war部署,我得到如下錯誤:

Exception: java.lang.ClassCircularityError thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)" 

對不起,我不知道該修補程序,但使用同一場戰爭部署精細Glassfish上4

對於Play2War,它運行基於我簡單的測試

0

爲Glassfish安裝遊戲框架最好在Apache Tomcat服務器(3或4)遵循循序漸進的SSH代碼:

  • 對於GlassFish主目錄/ your_path/glassfish4 /的glassfish /域/域1/LIB/

    1)下載並解壓縮的glassfish:

    unzip glassfish-4.1*zip 
        rm -rf rm -rf glassfish-4.1.zip 
    

    2)下載和解壓Play框架(罐子)

    unzip play-2.2.6.zip 
    rm -rf play-2.2.6.zip 
    

    3)解壓縮到Glassfish的域的lib目錄:

    查找播放2.2.6 /庫/本地/ '的* .jar' -exec CP -vuni '{}' 「glassfish4/glassfish/domains/domain1/lib /「」;「 find play-2.2.6/repository/local/-iname * .jar -exec cp {} glassfish4/glassfish/domains/domain1/lib/\; 室射頻發揮-2.2.6

    4)下載新的催化劑,創造新application.conf文件:

    unzip typesafe-activator-1.2.12-minimal.zip 
    rm -rf typesafe-activator-1.2.12-minimal.zip 
    cd activator-1.2.12-minimal 
    ./activator new sport-api play-scala 
    cd .. 
    

    5)停止和啓動Glassfish的

    glassfish4/glassfish/bin/asadmin stop-domain glassfish4/glassfish/bin/asadmin start-domain

    6)添加自定義變量的GlassFish:

glassfish4/glassfish/bin/asadmin create-jvm-options -Dconfig.file=/your_path/sport-api/conf/application.conf 
7) Done! Deploy your .war file using play framework features. 

觀測值:您可以下載這個項目的 「打4 GlassFish的」 定製SH安裝GlassFish的4.1。未來的更多功能。 https://github.com/rbsdev/play4glassfish.git

相關問題