运行gplus-quickstart时出现Jetty错误

时间:2014-03-20 09:19:11

标签: maven intellij-idea jetty war

我正在尝试使用gplus-quickstart-javaIntelliJ运行Maven,但我有一个我不明白的错误。如果你能告诉我我做错了什么,那就太好了。

我创建了一个空的Maven项目,从google +平台下载了项目的源代码,复制了Signin.java等...并修改了pom.xml文件(我取下了标题):

<packaging>war</packaging>

<dependencies>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.4</version>
    </dependency>
    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-plus</artifactId>
        <version>v1-rev120-1.17.0-rc</version>
    </dependency>
    <dependency>
        <groupId>com.google.api-client</groupId>
        <artifactId>google-api-client</artifactId>
        <version>1.17.0-rc</version>
    </dependency>
    <dependency>
        <groupId>com.google.api-client</groupId>
        <artifactId>google-api-client-jackson2</artifactId>
        <version>1.17.0-rc</version>
    </dependency>
    <dependency>
        <groupId>com.google.api.client</groupId>
        <artifactId>google-api-client</artifactId>
        <version>1.4.0-alpha</version>
    </dependency>
    <dependency>
        <groupId>org.apache.tomcat</groupId>
        <artifactId>servlet-api</artifactId>
        <version>6.0.39</version>
    </dependency>
    <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty</artifactId>
        <version>7.0.0.pre5</version>
    </dependency>
    <dependency>
        <groupId>com.google.appengine</groupId>
        <artifactId>appengine-api-1.0-sdk</artifactId>
        <version>1.9.0</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>com.googlecode.t7mp</groupId>
            <artifactId>maven-t7-plugin</artifactId>
            <version>0.9.6</version>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
    </plugins>
</build>

当我尝试运行时,我得到的错误是:

  

2014-03-20 09:52:48.030 :: INFO:通过org.mortbay.log.StdErrLog登录STDERR   2014-03-20 09:52:48.066 :: INFO:jetty-7.0.0.pre5   2014-03-20 09:52:48.125 ::警告:失败了org.mortbay.jetty.servlet.HashSessionManager@12221f6   显示java.lang.NullPointerException       在org.mortbay.jetty.servlet.AbstractSessionManager.doStart(AbstractSessionManager.java:170)       在org.mortbay.jetty.servlet.HashSessionManager.doStart(HashSessionManager.java:71)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.servlet.SessionHandler.doStart(SessionHandler.java:115)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)       在org.mortbay.jetty.Server.doStart(Server.java:222)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在com.google.plus.samples.quickstart.Signin.main(Signin.java:123)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)       at java.lang.reflect.Method.invoke(Unknown Source)       在com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)   2014-03-20 09:52:48.144 ::警告:SessionHandler @ 18fee4f失败   显示java.lang.NullPointerException       在org.mortbay.jetty.servlet.AbstractSessionManager.doStart(AbstractSessionManager.java:170)       在org.mortbay.jetty.servlet.HashSessionManager.doStart(HashSessionManager.java:71)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.servlet.SessionHandler.doStart(SessionHandler.java:115)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)       在org.mortbay.jetty.Server.doStart(Server.java:222)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在com.google.plus.samples.quickstart.Signin.main(Signin.java:123)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)       at java.lang.reflect.Method.invoke(Unknown Source)       在com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)   2014-03-20 09:52:48.144 :: WARN:启动处理程序时出错   显示java.lang.NullPointerException       在org.mortbay.jetty.servlet.AbstractSessionManager.doStart(AbstractSessionManager.java:170)       在org.mortbay.jetty.servlet.HashSessionManager.doStart(HashSessionManager.java:71)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.servlet.SessionHandler.doStart(SessionHandler.java:115)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)       在org.mortbay.jetty.Server.doStart(Server.java:222)       在org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)       在com.google.plus.samples.quickstart.Signin.main(Signin.java:123)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)       at java.lang.reflect.Method.invoke(Unknown Source)       在com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)   2014-03-20 09:52:48.162 :: INFO:已启动SelectChannelConnector@0.0.0.0:4567

等待你的解决方案(thx)。询问是否有我应该提供的信息。

0 个答案:

没有答案