2013-06-27 61 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时,我得到了解决方法。