Apache Tomcat 6.0 Server Unable to Start [message #511553] |
Tue, 02 February 2010 00:17 |
Jason LuBean Messages: 2 Registered: February 2010 |
Junior Member |
|
|
I have been using Galileo version of Eclipse on Windows Vista, developing a "Dynamic Web" project with an Apache Tomcat 6.0 server configuration (version 6.0.24).
I ended up having to switch to the Mac OS and work on the same project. I installed Eclipse Java EE IDE for Web Developers (eclipse-jee-galileo-SR1-macosx-cocoa.tar.gz, Build id: 20090920-1017) and Apache Tomcat 6.0.24. I have the Java compiler set up to use JDK 1.6. I created the "Dynamic Web" project and added a Tomcat 6.0 server to the Servers view and selected the project. When I start Tomcat for the first time, it appears to publish all of the files (the status bar shows that it is publishing the files), but when it attempts to actually start Tomcat (the status bar says "Starting Tomcat.."), after about a minute, I get an error alert that says:
Quote: | Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
|
Nothing prints out in the Console window. I have restarted eclipse and the machine several times and have increased the timeout in the server editor, but I continue to get the same error when I attempt to start the Tomcat server. Nothing shows up in the Console tab for the server.
When I start Eclipse, I do notice some errors listed in the "Error Log" view:
- Unable to retrieve system properties
- Unable to retrieve system properties
- Failed to retrieve default libraries for /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome
- System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
The stack trace for the top two errors is the following:
Quote: |
org.eclipse.core.runtime.CoreException: Unable to retrieve system properties
at org.eclipse.jdt.launching.AbstractVMInstall.abort(AbstractVM Install.java:490)
at org.eclipse.jdt.launching.AbstractVMInstall.evaluateSystemPr operties(AbstractVMInstall.java:440)
at org.eclipse.jdt.internal.launching.environments.ExecutionEnv ironmentAnalyzer.isFoundation1_0(ExecutionEnvironmentAnalyze r.java:142)
at org.eclipse.jdt.internal.launching.environments.ExecutionEnv ironmentAnalyzer.analyze(ExecutionEnvironmentAnalyzer.java:8 9)
at org.eclipse.jdt.internal.launching.environments.Analyzer.ana lyze(Analyzer.java:40)
at org.eclipse.jdt.internal.launching.environments.Environments Manager.analyze(EnvironmentsManager.java:334)
at org.eclipse.jdt.internal.launching.environments.Environments Manager.vmAdded(EnvironmentsManager.java:373)
at org.eclipse.jdt.launching.JavaRuntime.fireVMAdded(JavaRuntim e.java:2292)
at org.eclipse.jdt.launching.JavaRuntime.initializeVMs(JavaRunt ime.java:2662)
at org.eclipse.jdt.launching.JavaRuntime.getVMInstallTypes(Java Runtime.java:510)
at org.eclipse.jdt.launching.JavaRuntime.getVMInstallType(JavaR untime.java:394)
at org.eclipse.jdt.internal.launching.JREContainerInitializer.r esolveVM(JREContainerInitializer.java:108)
at org.eclipse.jdt.internal.launching.JREContainerInitializer.i nitialize(JREContainerInitializer.java:57)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:2608)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1778)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:2652)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2578)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J avaProject.java:2679)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1866)
at org.eclipse.jdt.internal.core.JavaProject.isOnClasspath(Java Project.java:2169)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator .getOverlay(BuildpathIndicatorLabelDecorator.java:47)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator .decorate(BuildpathIndicatorLabelDecorator.java:34)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefin ition.decorate(LightweightDecoratorDefinition.java:269)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er$LightweightRunnable.run(LightweightDecoratorManager.java: 81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.decorate(LightweightDecoratorManager.java:365)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.getDecorations(LightweightDecoratorManager.java:347)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens ureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run (DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|
The other two errors say "An exception stack trace is not available."
The Session Data of the errors is the following:
Quote: | eclipse.buildId=M20090917-0800
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/jason/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -debug -consolelog -keyring /Users/jason/.eclipse_keyring -showlocation
|
Any ideas on what the problem could be?
|
|
|
Re: Apache Tomcat 6.0 Server Unable to Start [message #511705 is a reply to message #511553] |
Tue, 02 February 2010 10:46 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
The lack of output in the Console view suggests that the attempt to
launch Tomcat is failing. After attempting to start Tomcat, switch to
the Debug perspective and look in the Debug window. You should see a
terminated launch. You can right-click on the nested item under the
terminated launch and select Properties. This should display the
command line that is being used to launch Tomcat. You could try that
command in a terminal window to see what happens. If it is using
"javaw", change that to "java". Note that I have no experience on the
Mac, so I don't know if any of this info might be different for the Mac.
Post back with that command line and the terminal window results and
we'll see if there are any useful clues to be found.
Cheers,
Larry
Jason LuBean wrote:
> I have been using Galileo version of Eclipse on Windows Vista,
> developing a "Dynamic Web" project with an Apache Tomcat 6.0 server
> configuration (version 6.0.24).
> I ended up having to switch to the Mac OS and work on the same project.
> I installed Eclipse Java EE IDE for Web Developers
> (eclipse-jee-galileo-SR1-macosx-cocoa.tar.gz, Build id: 20090920-1017)
> and Apache Tomcat 6.0.24. I have the Java compiler set up to use JDK
> 1.6. I created the "Dynamic Web" project and added a Tomcat 6.0 server
> to the Servers view and selected the project. When I start Tomcat for
> the first time, it appears to publish all of the files (the status bar
> shows that it is publishing the files), but when it attempts to actually
> start Tomcat (the status bar says "Starting Tomcat.."), after about a
> minute, I get an error alert that says:
>
> Quote:
>> Server Tomcat v6.0 Server at localhost was unable to start within 45
>> seconds. If the server requires more time, try increasing the timeout
>> in the server editor.
>
>
> Nothing prints out in the Console window. I have restarted eclipse and
> the machine several times and have increased the timeout in the server
> editor, but I continue to get the same error when I attempt to start the
> Tomcat server. Nothing shows up in the Console tab for the server.
>
> When I start Eclipse, I do notice some errors listed in the "Error Log"
> view:
> Unable to retrieve system properties
> Unable to retrieve system properties
> Failed to retrieve default libraries for
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome
> System property http.nonProxyHosts has been set to
> local|*.local|169.254/16|*.169.254/16 by an external source. This value
> will be overwritten using the values from the preferences
>
> The stack trace for the top two errors is the following:
>
> Quote:
>> org.eclipse.core.runtime.CoreException: Unable to retrieve system
>> properties
>> at org.eclipse.jdt.launching.AbstractVMInstall.abort(AbstractVM
>> Install.java:490)
>> at org.eclipse.jdt.launching.AbstractVMInstall.evaluateSystemPr
>> operties(AbstractVMInstall.java:440)
>> at org.eclipse.jdt.internal.launching.environments.ExecutionEnv
>> ironmentAnalyzer.isFoundation1_0(ExecutionEnvironmentAnalyze r.java:142)
>> at org.eclipse.jdt.internal.launching.environments.ExecutionEnv
>> ironmentAnalyzer.analyze(ExecutionEnvironmentAnalyzer.java:8 9)
>> at org.eclipse.jdt.internal.launching.environments.Analyzer.ana
>> lyze(Analyzer.java:40)
>> at org.eclipse.jdt.internal.launching.environments.Environments
>> Manager.analyze(EnvironmentsManager.java:334)
>> at org.eclipse.jdt.internal.launching.environments.Environments
>> Manager.vmAdded(EnvironmentsManager.java:373)
>> at org.eclipse.jdt.launching.JavaRuntime.fireVMAdded(JavaRuntim
>> e.java:2292)
>> at org.eclipse.jdt.launching.JavaRuntime.initializeVMs(JavaRunt
>> ime.java:2662)
>> at org.eclipse.jdt.launching.JavaRuntime.getVMInstallTypes(Java
>> Runtime.java:510)
>> at org.eclipse.jdt.launching.JavaRuntime.getVMInstallType(JavaR
>> untime.java:394)
>> at org.eclipse.jdt.internal.launching.JREContainerInitializer.r
>> esolveVM(JREContainerInitializer.java:108)
>> at org.eclipse.jdt.internal.launching.JREContainerInitializer.i
>> nitialize(JREContainerInitializer.java:57)
>> at org.eclipse.jdt.internal.core.JavaModelManager.initializeCon
>> tainer(JavaModelManager.java:2608)
>> at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC
>> ontainer(JavaModelManager.java:1778)
>> at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore
>> .java:2652)
>> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
>> avaProject.java:2578)
>> at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(J
>> avaProject.java:2679)
>> at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa
>> th(JavaProject.java:1866)
>> at org.eclipse.jdt.internal.core.JavaProject.isOnClasspath(Java
>> Project.java:2169)
>> at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator
>> .getOverlay(BuildpathIndicatorLabelDecorator.java:47)
>> at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator
>> .decorate(BuildpathIndicatorLabelDecorator.java:34)
>> at org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
>> ition.decorate(LightweightDecoratorDefinition.java:269)
>> at org.eclipse.ui.internal.decorators.LightweightDecoratorManag
>> er$LightweightRunnable.run(LightweightDecoratorManager.java: 81)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.ui.internal.decorators.LightweightDecoratorManag
>> er.decorate(LightweightDecoratorManager.java:365)
>> at org.eclipse.ui.internal.decorators.LightweightDecoratorManag
>> er.getDecorations(LightweightDecoratorManager.java:347)
>> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
>> ureResultCached(DecorationScheduler.java:371)
>> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
>> (DecorationScheduler.java:331)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> The other two errors say "An exception stack trace is not available."
>
> The Session Data of the errors is the following:
> Quote:
>> eclipse.buildId=M20090917-0800
>> java.version=1.5.0_22
>> java.vendor=Apple Inc.
>> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
>> Framework arguments: -product org.eclipse.epp.package.jee.product
>> -keyring /Users/jason/.eclipse_keyring -showlocation
>> Command-line arguments: -os macosx -ws cocoa -arch x86 -product
>> org.eclipse.epp.package.jee.product -debug -consolelog -keyring
>> /Users/jason/.eclipse_keyring -showlocation
>
>
> Any ideas on what the problem could be?
|
|
|
Re: Apache Tomcat 6.0 Server Unable to Start [message #511764 is a reply to message #511705] |
Tue, 02 February 2010 18:25 |
Jason LuBean Messages: 2 Registered: February 2010 |
Junior Member |
|
|
Thanks for the suggestion. Here are the properties for the terminated launch:
Path:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome/bin/java
Command Line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome/bin/java -Dcatalina.base=/Users/jason/Documents/src/live/.metadata/.p lugins/org.eclipse.wst.server.core/tmp0 -Dcatalina.home=/Applications/apache-tomcat-6.0.24 -Dwtp.deploy=/Users/jason/Documents/src/live/.metadata/.plug ins/org.eclipse.wst.server.core/tmp0/wtpwebapps -Djava.endorsed.dirs=/Applications/apache-tomcat-6.0.24/endo rsed -Dfile.encoding=MacRoman -Xbootclasspath:/System/Library/Frameworks/JavaVM.framework/ Versions/1.6/Classes/classes.jar:/System/Library/Frameworks/ JavaVM.framework/Versions/1.6/Classes/ui.jar:/System/Library /Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/app le_provider.jar:/System/Library/Frameworks/JavaVM.framework/ Versions/1.6.0/Home/lib/ext/dnsns.jar:/System/Library/Framew orks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/localedata .jar:/System/Library/Frameworks/JavaVM.framework/Versions/1. 6.0/Home/lib/ext/sunjce_provider.jar:/System/Library/Framewo rks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/sunpkcs11.j ar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6. 0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framewor k/Versions/1.6.0/Classes/jsse.jar -classpath /Applications/apache-tomcat-6.0.24/bin/bootstrap.jar org.apache.catalina.startup.Bootstrap start
When I run the command line above in the Terminal window, I get the following error:
-bash: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome/bin/java: Bad CPU type in executable
At least I have something else to look into.
[Updated on: Tue, 02 February 2010 18:30] Report message to a moderator
|
|
|
Re: Apache Tomcat 6.0 Server Unable to Start [message #514316 is a reply to message #511553] |
Sun, 14 February 2010 03:32 |
|
Did you solve this? I have the same problem and find it hard to locate the error:
My properties are:
"C:\Program Files\Java\jre6\bin\javaw.exe" "-Dcatalina.base=C:\Documents and Settings\d034797\Desktop\Documents\16_EclipsePro
jects\20_WebpageExamples\.metadata\.plugins\org.eclipse.wst. server.core\tmp0 " "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0" "-Dwtp.de
ploy=C:\Documents and Settings\d034797\Desktop\Documents\16_EclipseProjects\20_Web pageExamples\.metadata\.plugins\org.eclipse.wst.server.core\ tmp0\wtpwebapps " "
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed" -Dfile.encoding=Cp1252 -classpath "C:\Program Files\Apache Software Founda
tion\Tomcat 6.0\bin\bootstrap.jar" org.apache.catalina.startup.Bootstrap start
I did check the paths and I believe they are correct. If I paste the the line into a command line nothing happens.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04794 seconds