【问题标题】:Eclipse Error in Tomcat7 ServerTomcat7 服务器中的 Eclipse 错误
【发布时间】:2012-06-25 06:19:50
【问题描述】:

我已经在端口号 8080 上使用 Eclipse Helios 1.3.2 配置了 Tomcat 7。Tomcat 服务和一切都已安装。

当我从 Eclipse 启动服务器时,它会执行一些过程并将状态显示为已启动。但是当我尝试点击http://localhost:8080 时,它说所请求的资源(/)不可用。 也就是说,实际上服务器并未启动。

但是,当我通过运行 Tomcat7.exe 或 Tomcat7w.exe 从 Windows 资源管理器启动服务器时,它启动良好,我可以通过引用 http://localhost:8080 看到 Apache 主页。

以下是服务器启动日志。

Jul 02, 2012 1:20:12 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Perforce;O:\ora1106w\bin;C:\Program Files\Java\jdk1.6.0_12\bin;;C:\Program Files\WinMerge;C:\Users\KNIRAV\Downloads\eclipse-jee-helios-SR2-win32\eclipse;;.
Jul 02, 2012 1:20:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 02, 2012 1:20:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2012 1:20:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5674 ms
Jul 02, 2012 1:20:17 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 02, 2012 1:20:17 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
Jul 02, 2012 1:20:18 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [126] milliseconds.
Jul 02, 2012 1:20:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02, 2012 1:20:18 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2012 1:20:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1788 ms

请问有什么解决办法吗?

【问题讨论】:

  • 请注意,deploy.wsdd 特定于 Axis 1.x,不在 Axis2 中使用。您需要澄清您的问题并明确指出您是要创建 Axis 1.x 还是 Axis2 服务。
  • @AndreasVeithen - 我只想在 Axis2 上创建。我的问题是如何摆脱错误?错误截屏链接已粘贴。
  • 该错误消息来自 Axis 1.x 工具。如果您想使用 Axis2,那么调试该错误没有任何意义。

标签: java eclipse jakarta-ee tomcat7


【解决方案1】:

没有问题。当您从 Eclipse 启动 Tomcat 时,不会部署根应用程序。只有您通过服务器视图部署的项目可用。

您是否尝试在服务器上部署项目?

【讨论】:

  • 是的,你完全正确!我部署了其中一个项目并且成功了。
  • 我部署了一个非常基本的 Web 服务项目。在这里,我试图从 java 类生成 web 服务。它抛出错误IWAB0489E Error when deploying Web service to Axis runtime axis-admin failed with {http://xml.apache.org/axis/}HTTP (400)Bad Request 。我正在使用 Axis2。请指导,可能是什么错误?
  • 我对 Axis2 + Eclipse 没有太多经验,抱歉。也许这个 eclipse 插件可以帮到你:axis.apache.org/axis2/java/core/tools/eclipse/…
猜你喜欢
  • 2014-12-31
  • 1970-01-01
  • 1970-01-01
  • 2021-04-27
  • 1970-01-01
  • 2011-06-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多