Projekat

Općenito

Profil

Akcije

Prijedlozi #15654

Zatvoren

xwiki, grails, sitemesh

Dodano od Ernad Husremović prije više od 17 godina. Izmjenjeno prije oko 16 godina.

Status:
Odbačeno
Prioritet:
Normalan
Odgovorna osoba:
Početak:
26.10.2008
Završetak:
% završeno:

30%

Procjena vremena:

Opis

http://www.xwiki.org/xwiki/bin/view/Main/WebHome

juče sam naletio članak gdje se pominje kako se sa glassfish v3 može podesiti xwiki ... pa rekoh hadje da pogledam šta je xwiki.

http://blogs.sun.com/alexismp/tags/xwiki

Putting the pieces together

....
GlassFish Embedded does not use OSGi but rather a more traditional class-loader hierarchy so I had to work around a "classical" JAR precedence issue:
• removed the log4j jar from the XWiki application and make it available as a library (appropriate Class-Path: entry in the manifest of the overall JAR).
• used <class-loader delegate="false"/> in sun-web.xml to avoid further library conflicts "(documented here)"http://docs.sun.com/app/docs/doc/819-3672/beagb?a=view

Using the GlassFish Embedded API is pretty straightforward :

import org.glassfish.embed.App;
import org.glassfish.embed.AppServer;

public class XWikiOnGlassFish {
    public static void main(String[] args) throws IOException {

        AppServer glassfish = new AppServer(8080);
        App app = glassfish.deploy( new File("/path/to/xwiki-enterprise-web-1.5.2.war") );
    }
}

Akcije

Također dostupno kao Atom PDF