Why is the server not starting in eclipse?

Hi, I use eclipse Juno release together with the Nuxeo IDE plugins. I am developing with java 7 and the OS is Windows 7. When I try to start the Nuxeo server from the Nuxeo Server view, sometimes it is possible to start the server but often I have try to start it dozens of time until it really starts. In the cases where it does not start, the console only shows:

=== Starting Nuxeo Server (Debug) ===
=== Nuxeo Server Started ===

The console.log contains the following entries

2012-08-16 08:12:26,107 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Nuxeo home:          C:\nx5.5sdk
2012-08-16 08:12:26,107 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Nuxeo configuration: C:\nx5.5sdk\bin\nuxeo-sdk.conf
2012-08-16 08:12:26,232 ERROR [org.nuxeo.launcher.NuxeoLauncher] Unknown option --gui=false
2012-08-16 08:12:26,232 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Include template: C:\nx5.5sdk\templates\common
2012-08-16 08:12:26,232 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Include template: C:\nx5.5sdk\templates\default
2012-08-16 08:12:26,232 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Include template: C:\nx5.5sdk\templates\sdk
2012-08-16 08:12:26,450 WARN  [org.nuxeo.launcher.NuxeoLauncher] Server is not running.
2012-08-16 08:12:26,669 INFO  [org.nuxeo.launcher.config.ServerConfigurator] Detected Tomcat server.
2012-08-16 08:12:26,669 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Configuration files generation (nuxeo.force.generation=true)...
2012-08-16 08:12:26,731 INFO  [org.nuxeo.launcher.config.ConfigurationGenerator] Configuration files generated.
2012-08-16 08:12:27,917 WARN  [org.nuxeo.launcher.NuxeoLauncher] Sent server start command but could not get process ID.

Is there a way to solve this problem? Because clicking on start/stop for several dozens of times is not really a solution.

Best, Dirk

0 votes

2 answers

4532 views

ANSWER

One additional comment: today I am not able to start the server at all :-( I tried it over hundreds of times.
08/16/2012



My problem is that my JRE_HOME pointed to a version different than JAVA_HOME. I changed my JRE_HOME to %JAVA_HOME%/jre, restarted eclipse and then the nuxeo server started correctly.

0 votes



Hello,

I've had a similar problem, when the nuxeo ide showed the two lines you've mentionned but nothing happened:

  • check if the file tomcat/bin/nuxeo-sdk.conf exists. It's created when you set the Nuxeo SDK in Eclipse
  • it seems there are some lock or other conflicts that make this file disappear.
  • until it's fixed in next versions of Nuxeo IDE, the workaround I use is to backup this file when t's created and restore it manually if it's gone
  • also, pay attention if there are non-stopped or blocked tomcat processes running, and eventually some unremoved lock files, before you restart the server.

hope it helps.

0 votes



Thank you for your answer. But in my case the nuxeo-sdk.conf still exists. Non-stopped or blocked tomcat processes cannot cause the problem, I even restarted my computer, but this did not help. But you mentioned that some unremoved lock files could cause the problem. Can you give me more information about where these lock files are located?
08/22/2012

just make a search on *lock files and see if there is one in tomcat directories.
08/22/2012

No, there are no lock files contained in the directories :(
09/05/2012