2013-06-27 62 views
3

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

Log File Content

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

+3

請張貼錯誤日誌:'/家庭/ swapnilg/hs_err_pid7501.log' – fmodos

+0

它是一個相當大的文件.. –

+0

該日誌是必要的更好的理解誤差,後期只是相對於這個錯誤 – fmodos

回答

2

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

+0

我增加了日食堆大小 --launcher.XXMaxPermSize 1024米 -XX:MaxPermSize參數=1024米 -Xms1024m -Xmx1024m –

3

它崩潰,因爲eclipse正試圖打開內部瀏覽器來顯示webapp。我不知道爲什麼會出現這個錯誤,也許是Ubuntu的eclipse錯誤。

解決辦法之一是使用Servers View而不是Run As來運行服務器。前往Servers View->Right Click the Server->Run

+3

它在Eclipse中的錯誤,你可以避免打開裏面的瀏覽器eclipse通過在eclipse.ini中加入這個:'-Dorg.eclipse.swt.browser.DefaultType = mozilla' – zengr

3

爲了我,當我改變瀏覽器訪問運行網絡應用程序。

操作系統:Ubuntu的14.04 的Eclipse:Eclipse的開普勒 服務器:Apache Tomcat上7

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

+0

這對我有用 –

0

連我都面臨同樣的問題,並試圖多種解決方案。當我在eclipse.ini文件中添加 -Dorg.eclipse.swt.browser.DefaultType = mozilla時,我得到了解決方法。