Skip to content
Martynas Jusevičius edited this page Oct 14, 2015 · 32 revisions

Running standalone Client

To run Graphity Client:

Using Client in your application

To add Graphity Client dependency:

  • for a stable version

  • for a SNAPSHOT version

  • add Graphity Client as a Maven dependency in your project using an IDE, or in the pom.xml file. <classifier>classes</classifier> addresses the jar artifact built into war. The <type>war</type> dependency enables reuse of static resources from Graphity Client, such as Twitter Bootstrap

      <dependencies>
          <dependency>
              <groupId>org.graphity</groupId>
              <artifactId>client</artifactId>
              <version>1.1.3</version>
              <classifier>classes</classifier>
          </dependency>
          <dependency>
              <groupId>org.graphity</groupId>
              <artifactId>client</artifactId>
              <version>1.1.3</version>
              <type>war</type>
          </dependency>
      </dependencies>
    
  • to import static resources enabled by the <type>war</type> dependency, add a Maven overlay under <configuration> of maven-war-plugin:

      <overlays>
          <overlay>
              <groupId>org.graphity</groupId>
              <artifactId>client</artifactId>
          </overlay>
      </overlays>
    
  • add or edit main/webapp/WEB-INF/web.xml with Configuration

Building from source

  • install Graphity Core dependency
  • checkout the source code
  • build it as jar using Maven (dependency Maven profile: mvn -Pdependency package)
  • build it as war using Maven (standalone Maven profile: mvn -Pstandalone package)

Deployment

When you produce a WAR file of Graphity application, it needs to be deployed on a servlet container. We run and test on Tomcat 7, but Tomcat 8 and others such as Glassfish or Jetty should also work. You might need to configure Tomcat options, for example:

-XX:MaxPermSize=256m -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
Clone this wiki locally