簡體   English   中英

運行動態Web應用程序時Eclipse崩潰

[英]Eclipse crashes when running dynamic web app

我正在嘗試使用Apache Tomcat v7.0在eclipse 3.7(indigo)中運行動態Web應用程序。 當我嘗試運行(運行>在服務器上運行)eclipse崩潰時,該項目為空。

我在Ubuntu 13.04上運行。

當我從命令行運行eclipse時。 我得到錯誤 -

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9a0c4c2009, pid=7501, tid=140300945577728
#
# JRE version: 7.0_21-b02
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libsoup-2.4.so.1+0x6e009]  soup_session_feature_detach+0x19
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try                 "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/swapnilg/hs_err_pid7501.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

日志文件內容

請幫我。 我甚至嘗試過更改JDK,Tomcat和eclipse版本。

它崩潰是因為eclipse試圖打開內部瀏覽器來顯示webapp。 我不知道為什么會發生這種錯誤,也許是ubuntu的日食錯誤。

一種解決方法是使用Servers View而不是Run As來運行服務器。 轉到Servers View->Right Click the Server->Run

當我更改瀏覽器以訪問運行Web應用程序時,為我工作。

操作系統:UBUNTU 14.04 Eclipse:Eclipse kepler服務器:Apache tomcat 7

這是 - Window-->Web browser-->Default Web Browser.

我也在啟動TOMCAT時遇到了同樣的錯誤,但是在從eclipse增加Java的堆大小之后,它開始工作了。

即使我遇到同樣的問題,也嘗試了多種解決方案。 當我在eclipse.ini文件中添加-Dorg.eclipse.swt.browser.DefaultType = mozilla時,我得到了解決方法。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM