`
huangxx
  • 浏览: 322691 次
  • 来自: ...
社区版块
存档分类
最新评论

jetty eclipse plugin 问题

阅读更多
Hi,

I'm trying to use Jetty to debug a Java Web application. I installed the JST plugin like described on this page: http://docs.codehaus.org/display/JETTY/Web+Tooling+Support

Now I have a basic web application (tapestry5 archetype or eclipse default web application template) and I add it to Jetty server. Then I try to start Jetty and I get an error:

Publishing to Jetty6.x... (Time of error......)
Reason:
java.lang.NullPointerException
Could not publish to the server.

In the console, I have:

2008-03-25 18:31:58.627::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2008-03-25 18:31:58.783::INFO: jetty-6.1.8
2008-03-25 18:31:58.815::INFO: Opened C:\jetty-6.1.8\logs\2008_03_25.request.log
2008-03-25 18:31:58.861::INFO: Started SelectChannelConnector@127.0.0.1:8080

And in Eclipse log file, I have:

!ENTRY org.eclipse.wst.server.core 4 0 2008-03-25 18:32:00.187
!MESSAGE Could not publish to the server.
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities.getDeployUriOfComponent(ComponentUtilities.java:327)
at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.getURI(J2EEFlexProjDeployable.java:429)
at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.guessModuleName(AntPublisher.java:259)
at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.getPublishProperties(AntPublisher.java:224)
at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:110)
at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:84)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:749)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:835)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669)
at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Julien HENRY - 25/Mar/08 08:07 AM Hi, I'm trying to use Jetty to debug a Java Web application. I installed the JST plugin like described on this page: http://docs.codehaus.org/display/JETTY/Web+Tooling+Support Now I have a basic web application (tapestry5 archetype or eclipse default web application template) and I add it to Jetty server. Then I try to start Jetty and I get an error: Publishing to Jetty6.x... (Time of error......) Reason: java.lang.NullPointerException Could not publish to the server. In the console, I have: 2008-03-25 18:31:58.627::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-03-25 18:31:58.783::INFO: jetty-6.1.8 2008-03-25 18:31:58.815::INFO: Opened C:\jetty-6.1.8\logs\2008_03_25.request.log 2008-03-25 18:31:58.861::INFO: Started SelectChannelConnector@127.0.0.1:8080 And in Eclipse log file, I have: !ENTRY org.eclipse.wst.server.core 4 0 2008-03-25 18:32:00.187 !MESSAGE Could not publish to the server. !STACK 0 java.lang.NullPointerException at org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities.getDeployUriOfComponent(ComponentUtilities.java:327) at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.getURI(J2EEFlexProjDeployable.java:429) at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.guessModuleName(AntPublisher.java:259) at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.getPublishProperties(AntPublisher.java:224) at org.eclipse.jst.server.generic.core.internal.publishers.AntPublisher.publish(AntPublisher.java:110) at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.publishModule(GenericServerBehaviour.java:84) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:749) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:835) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


<script type="text/javascript"></script>

Alfie Kirkpatrick - 20/May/08 02:23 AM
This error is cause by Eclipse 3.3.2 and the plugin works ok on 3.3.0. If you can get hold of the Europa 'fall' release it will work for you. This issue is also logged as JETTY-577.
Alfie Kirkpatrick - 20/May/08 02:23 AM This error is cause by Eclipse 3.3.2 and the plugin works ok on 3.3.0. If you can get hold of the Europa 'fall' release it will work for you. This issue is also logged as JETTY-577.


<script type="text/javascript"></script>

Alfie Kirkpatrick - 20/May/08 02:55 AM
This is fixed with WST 2.0.2 which is available on the Eclipse update site. I searched for new features to install and drilled into patches and installed all the WST and JST 2.0.2 patches. It's now working for me. Looks like they found this on the day of the winter release... https://bugs.eclipse.org/bugs/show_bug.cgi?id=219627.

By the way, I'm also working on a variation of the Jetty eclipse plugin that runs the war exploded, and am reasonably confident this will work in most cases.

Alfie Kirkpatrick - 20/May/08 02:55 AM This is fixed with WST 2.0.2 which is available on the Eclipse update site. I searched for new features to install and drilled into patches and installed all the WST and JST 2.0.2 patches. It's now working for me. Looks like they found this on the day of the winter release... https://bugs.eclipse.org/bugs/show_bug.cgi?id=219627. By the way, I'm also working on a variation of the Jetty eclipse plugin that runs the war exploded, and am reasonably confident this will work in most cases.


<script type="text/javascript"></script>

Alfie Kirkpatrick - 20/May/08 02:56 AM
Sorry, I searched for updates to existing features – oops. Also, this affects all generic server plugins including JBoss and Glassfish.
Alfie Kirkpatrick - 20/May/08 02:56 AM Sorry, I searched for updates to existing features – oops. Also, this affects all generic server plugins including JBoss and Glassfish.
分享到:
评论

相关推荐

    Jetty Eclipse Plugin.rar

    Jetty Eclipse Plugin是一款用于Eclipse集成开发环境的插件,旨在简化在Eclipse中调试和运行基于Jetty服务器的应用程序。Jetty是一个轻量级、高性能的Java Web服务器和Servlet容器,广泛应用于开发、测试和部署Web...

    eclipse-jetty-plugin-master_源码.rar

    Eclipse Jetty Plugin是用于Eclipse IDE的插件,它允许开发者在开发环境中直接集成Jetty服务器,便于进行Web应用的测试和调试。这个“eclipse-jetty-plugin-master_源码.rar”文件包含的是该插件的源代码,涵盖了...

    eclipse jetty插件安装(离线版)

    Eclipse Jetty插件是开发Java Web应用时非常实用的工具,它允许开发者在Eclipse集成开发环境中直接启动和测试Jetty服务器,而无需通过命令行或其他方式。本篇文章将详细讲解如何离线安装Eclipse Jetty插件,并介绍其...

    jetty-plugin jar.zip

    Eclipse Jetty Plugin是Eclipse IDE的一个插件,它允许开发者在本地环境中快速启动和管理Jetty服务器,而无需通过外部命令行或者手动配置。这个"jetty-plugin.jar.zip"文件就是提供了这样一个离线安装的插件,尤其...

    阿里巴巴Eclipse Jetty容器插件

    使用"eclipse-jetty-plugin"这个压缩包文件,你可以按照以下步骤安装和使用插件: 1. 下载并解压"eclipse-jetty-plugin"。 2. 打开Eclipse,进入“Help” -&gt; "Install New Software"菜单。 3. 在“Work with”...

    Jetty插件_eclipse

    - **日志和调试**:Eclipse集成的控制台视图可以帮助你查看服务器的日志输出,进行问题排查和调试。 总的来说,Eclipse Jetty插件通过提供便捷的开发环境集成,使得Java Web开发者可以更加高效地利用Jetty服务器。...

    eclipse-jetty插件

    8. `plugin.xml`文件是Eclipse插件的核心配置文件,它定义了插件的功能、依赖和其他元数据。开发者可以通过修改此文件来定制插件的行为。 9. `runjettyrun`目录可能包含了运行Jetty服务器的相关脚本或配置,使得...

    eclipse中配置使用jetty调试web项目

    本篇文章将详细讲解如何在Eclipse中配置和使用Jetty来调试Web项目。 首先,我们需要理解Eclipse与Jetty结合的优势。Jetty可以直接嵌入到Java应用中,无需外部服务器进程,这使得它非常适合于快速开发和测试。而在...

    jetty 学习资料合集

    Jetty Eclipse Plugin则是一个用于集成Jetty到Eclipse开发环境中的插件,方便开发者进行调试和测试Web应用程序。 在这个“jetty 学习资料合集”中,我们可能会涵盖以下关键知识点: 1. **Jetty基础**:了解Jetty的...

    eclipse 整合 jetty 调试

    **Eclipse 整合 Jetty 调试详解** 在Java Web开发中,Eclipse作为常用的集成开发环境,提供了强大的代码编辑、调试和项目管理功能。Jetty则是一款轻量级、高性能的嵌入式HTTP服务器和Servlet容器,广泛应用于各种...

    Eclipse+maven+jetty开发环境搭建

    本教程将深入探讨如何使用Eclipse集成开发环境(IDE)、Maven项目管理和构建工具,以及Jetty轻量级服务器来搭建一个完整的Java Web开发环境。以下是详细步骤和相关知识点: 1. **Eclipse IDE**: Eclipse 是一个开源...

    Eclipse Maven项目中配置Jetty

    在Eclipse中配置Maven项目以使用Jetty服务器是一个常见的任务,这主要适用于开发和测试阶段,因为它提供了快速的启动和重启能力。Jetty是一个轻量级、高性能的开源HTTP服务器和Servlet容器,广泛用于Java Web应用。...

    Eclipse+maven+jetty环境配置

    ### Eclipse+maven+jetty环境配置详解 #### 一、前言 在Java Web开发领域,集成开发环境(IDE)的选择对于提升开发效率至关重要。Eclipse作为一款老牌且功能强大的开源IDE,一直受到广大开发者的青睐。而在项目...

    jetty-maven-springMVC-mybitas-eclipse集成demo

    jetty-maven-springMVC-mybitas-eclipse集成demo 数据库配置:/jetty-maven/src/main/resources/applicationContext.xml 数据库导入到test数据库:/jetty-maven/src/main/resources/hms_user.sql 配置好maven环境,...

    Eclipse+Maven创建webapp项目集成jetty服务器

    这篇博客“Eclipse+Maven创建webapp项目集成jetty服务器”将指导你如何将这些工具结合在一起,创建一个可以快速运行和调试的Web应用环境。 首先,让我们详细了解一下每个组件: 1. **Eclipse**:Eclipse是一款强大...

    jetty和eclpise集成jar包

    8. **Maven集成**:如果你的项目使用Maven构建,可以配置Jetty Maven Plugin,通过执行`mvn jetty:run`命令,直接在命令行中启动和测试应用,这样也可以与Eclipse集成,实现开发流程的一致性。 9. **日志和错误处理...

    eclipse jetty 3.9.0插件 离线安装包

    在描述中提到,你需要下载一个名为"jetty_plugin"的压缩包文件,这个压缩包包含了插件的核心组件。打开压缩包,你会看到一个名为`net.sourceforge.eclipsejetty.launcher_3.9.0.jar`的文件,这是Eclipse Jetty插件的...

    maven 创建web project 配置jetty运行

    &lt;groupId&gt;org.eclipse.jetty &lt;artifactId&gt;jetty-maven-plugin &lt;version&gt;9.4.35.v20201120 &lt;contextPath&gt;/my-context-path &lt;/plugin&gt; &lt;!-- Maven WAR plugin to package the application as a WAR file...

    Maven Jetty 插件的问题(css/js等目录死锁)的解决

    打开本地Maven仓库中对应Jetty版本的目录,路径通常为`C:\Users\用户名\.m2\repository\org\eclipse\jetty\jetty-webapp\7.1.6.v20100715`。 3. **修改`webdefault.xml`文件** 在Jetty的`jetty-webapp-7.1.6.v...

    jetty服务器

    同时,资源中还包含了一个Eclipse Jetty插件(jetty-plugin.zip)。这个插件是为了方便Eclipse用户在开发环境中集成Jetty,实现快速启动、调试和测试Web应用。通过Eclipse插件,开发者可以直接在IDE内部启动Jetty...

Global site tag (gtag.js) - Google Analytics