使用SpringSource Tool Suite,2.8.1.RELEASE无法在离线时将Roo Web应用程序部署到localhost

时间:2012-02-24 11:10:01

标签: spring-mvc deployment localhost spring-roo tcserver

我正在尝试使用STS 2.8.1,Windows 7 Professional / SP1,64位部署(运行as->在服务器上运行)基本的Roo Web应用程序(MVC + JSON + HIBERNATE)。

例:

  1. 我在没有互联网连接的情况下启动时不会部署。
  2. 当我有互联网连接时,它将部署,但在我开始Chrome会话之前不会。 (我不认为Chrome是这里的神奇药丸,我只是没有时间测试任何其他网络代理。)
  3. 这是我的日志:

    24.feb.2012 11:33:51 com.springsource.tcserver.security.PropertyDecoder <init>
    INFO: tc Runtime property decoder using memory-based key
    24.feb.2012 11:33:51 com.springsource.tcserver.security.PropertyDecoder <init>
    INFO: tcServer Runtime property decoder has been initialized in 310 ms
    24.feb.2012 11:33:52 org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    24.feb.2012 11:33:52 com.springsource.tcserver.serviceability.rmi.JmxSocketListener    init
    INFO: Started up JMX registry on 127.0.0.1:6969 in 67 ms
    24.feb.2012 11:33:52 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 934 ms
    24.feb.2012 11:33:52 org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    24.feb.2012 11:33:52 org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: VMware vFabric tc Runtime 2.6.1.RELEASE/7.0.20.B.RELEASE
    24.feb.2012 11:33:52 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor MyProject.xml from \\STS281\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\conf\Catalina\localhost
    24.feb.2012 11:33:52 org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:MyProject' did not find a matching property.
    24.feb.2012 11:33:52    com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader start
    INFO: Context [localhost|MyProject] will not be woven
    24.feb.2012 11:33:52 org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class    org.springframework.web.context.ContextLoaderListener
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    

    启动IP堆栈并解析外部主机的任何可能会解决此问题。这似乎有点牵强,特别是因为我在登录Windows域后确认了案例2(这意味着与PDC通信)。我必须在那个人身上找回你们(今晚需要进行一些实验)。

    基本上,我想知道是否有人在这里熟悉我的问题?人们能够重现它吗?

1 个答案:

答案 0 :(得分:0)

这可能不是问题。我现在能够重现它的唯一方法是在STS启动后启动tcServer秒。如果我让STS加载RSS提要,我看不到这种行为。