Nexus: installed, but won't start
I just downloaded Nexus 1.0.2 and attempted install on a Linux Redhat Enterprise 64 bit box. I attempted the simplest out-of-the-box execution, and it will not start. The JVM is exiting with usage information. Any quick pointers?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?There seems to be an issue with the 64bit jsw binaries. Give the 32 bit ones a try.
-
Thanks Brian, but no cigar. Same outcome. JVM usage information.
I got the same download to work fine on my windows box with no trouble at all, and I really like the interface, and the features Nexus offers. I'm evaluating it for my company as a potential replacement for Archiva. Any other ideas? -
Inappropriate?Can you paste your wrapper logs?
-
Inappropriate?STATUS | wrapper | 2008/10/02 15:12:03 | Launching a JVM...
ERROR | wrapper | 2008/10/02 15:12:03 | JVM exited while loading the application.
INFO | jvm 5 | 2008/10/02 15:12:03 | Usage: java [-options] class [args...]
INFO | jvm 5 | 2008/10/02 15:12:03 | (to execute a class)
INFO | jvm 5 | 2008/10/02 15:12:03 | or java [-options] -jar jarfile [args...]
INFO | jvm 5 | 2008/10/02 15:12:03 | (to execute a jar file)
INFO | jvm 5 | 2008/10/02 15:12:03 |
INFO | jvm 5 | 2008/10/02 15:12:03 | where options include:
INFO | jvm 5 | 2008/10/02 15:12:03 | -d32 use a 32-bit data model if available
INFO | jvm 5 | 2008/10/02 15:12:03 |
INFO | jvm 5 | 2008/10/02 15:12:03 | -d64 use a 64-bit data model if available
INFO | jvm 5 | 2008/10/02 15:12:03 | -server to select the "server" VM
INFO | jvm 5 | 2008/10/02 15:12:03 | The default VM is server.
INFO | jvm 5 | 2008/10/02 15:12:03 |
INFO | jvm 5 | 2008/10/02 15:12:03 | -cp <class />
INFO | jvm 5 | 2008/10/02 15:12:03 | -classpath <class />
INFO | jvm 5 | 2008/10/02 15:12:03 | A : separated list of directories, JAR archives,
INFO | jvm 5 | 2008/10/02 15:12:03 | and ZIP archives to search for class files.
INFO | jvm 5 | 2008/10/02 15:12:03 | -D<name>=<value>
INFO | jvm 5 | 2008/10/02 15:12:03 | set a system property
INFO | jvm 5 | 2008/10/02 15:12:03 | -verbose[:class|gc|jni]
INFO | jvm 5 | 2008/10/02 15:12:03 | enable verbose output
INFO | jvm 5 | 2008/10/02 15:12:03 | -version print product version and exit
INFO | jvm 5 | 2008/10/02 15:12:03 | -version:<value>
INFO | jvm 5 | 2008/10/02 15:12:03 | require the specified version to run
INFO | jvm 5 | 2008/10/02 15:12:03 | -showversion print product version and continue
INFO | jvm 5 | 2008/10/02 15:12:03 | -jre-restrict-search | -jre-no-restrict-search
INFO | jvm 5 | 2008/10/02 15:12:03 | include/exclude user private JREs in the version search
INFO | jvm 5 | 2008/10/02 15:12:03 | -? -help print this help message
INFO | jvm 5 | 2008/10/02 15:12:03 | -X print help on non-standard options
INFO | jvm 5 | 2008/10/02 15:12:03 | -ea[:<packagename>...|:<classname>]
INFO | jvm 5 | 2008/10/02 15:12:03 | -enableassertions[:<packagename>...|:<classname>]
INFO | jvm 5 | 2008/10/02 15:12:03 | enable assertions
INFO | jvm 5 | 2008/10/02 15:12:03 | -da[:<packagename>...|:<classname>]
INFO | jvm 5 | 2008/10/02 15:12:03 | -disableassertions[:<packagename>...|:<classname>]
INFO | jvm 5 | 2008/10/02 15:12:03 | disable assertions
INFO | jvm 5 | 2008/10/02 15:12:03 | -esa | -enablesystemassertions
INFO | jvm 5 | 2008/10/02 15:12:03 | enable system assertions
INFO | jvm 5 | 2008/10/02 15:12:03 | -dsa | -disablesystemassertions
INFO | jvm 5 | 2008/10/02 15:12:03 | disable system assertions
INFO | jvm 5 | 2008/10/02 15:12:03 | -agentlib:<libname>[=<options>]
INFO | jvm 5 | 2008/10/02 15:12:03 | load native agent library <libname>, e.g. -agentlib:hprof
INFO | jvm 5 | 2008/10/02 15:12:03 | see also, -agentlib:jdwp=help and -agentlib:hprof=help
INFO | jvm 5 | 2008/10/02 15:12:03 | -agentpath:<pathname>[=<options>]
INFO | jvm 5 | 2008/10/02 15:12:03 | load native agent library by full pathname
INFO | jvm 5 | 2008/10/02 15:12:03 | -javaagent:<jarpath>[=<options>]
INFO | jvm 5 | 2008/10/02 15:12:03 | load Java programming language agent, see java.lang.instrument
FATAL | wrapper | 2008/10/02 15:12:03 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2008/10/02 15:12:03 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2008/10/02 15:12:03 | <--></options></jarpath></options></pathname></libname></options></libname></classname></packagename></classname></packagename></classname></packagename></classname></packagename></value></value></name> -
Inappropriate?By the way, I also tried starting Nexus from the command line, using just a Java command as it is documented in Chapter 16 of Maven: The Definitive Guide. I get the same exact results there as well.
-
Inappropriate?What jdk are you using? Clearly the jvm doesn't like the parameters being passed to it, which is something i haven't seen before.
-
Inappropriate?Try the command line doc'd here:
http://nexus.sonatype.org/faq.html -
This reply was removed on 10/03/08.
see the change log -
Inappropriate?you can set wrapper.debug=true in the wrapper.conf and it will print out the exact command line so you can try eliminating options.
What os is this? -
Inappropriate?# uname -a
Linux XXX.probuild.com 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
# pwd
/usr/local/bin/nexus-webapp-1.0.2
Here was the output from the wrapper.log when debug was set to true:
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[0] : java
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[1] : -Dbasedir=../../..
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[2] : -Djava.io.tmpdir=../../../runtime/tmp
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[3] : -XX:+HeapDumpOnOutOfMemoryError
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[4] : -Dsun.net.inetaddr.ttl=3600
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[5] : -Djava.library.path=./lib
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[6] : -classpath
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[7] : ../../../lib/plexus-platform-jsw-1.5.jar:../../../conf/
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[8] : -Dwrapper.key=Avm93SxpLxlv8MwW
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[9] : -Dwrapper.port=32000
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[10] : -Dwrapper.jvm.port.min=31000
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[11] : -Dwrapper.jvm.port.max=31999
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[12] : -Dwrapper.debug=TRUE
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[13] : -Dwrapper.pid=15941
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[14] : -Dwrapper.version=3.2.3
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[15] : -Dwrapper.native_library=wrapper
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[16] : -Dwrapper.service=TRUE
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[17] : -Dwrapper.cpu.timeout=10
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[18] : -Dwrapper.jvmid=4
DEBUG | wrapper | 2008/10/03 10:10:08 | Command[19] : org.codehaus.plexus.classworlds.launcher.Launcher -
Inappropriate?Ok. I'm convinced now, that it has nothing to do with Nexus at all.
If I do the following:
$ java TestSystemProps
I get a printout of all the system properties as the Java program name suggests.
However, if I do it this way:
$ java -Dfoo=bar TestSystemProps
I get the same error I receive when trying to start Nexus using the script, or the command line. Something is wrong with either my Java installation, or the OS on the box. I will re-post when I've figured out the problem.
Thanks.
I’m unconcerned
-
Inappropriate?Dude.
What a pain-in-the-ass that was. I figured out that the default java executable on that Linux box was pointing to a JRE instead of a JDK. A significant difference between the two being that the JRE executable does not accept system property parameters on the command line. So, I changed wrapper.conf to point to the JDK java executable instead, and it started right up with no problems.
Sorry I didn't get to that in the first place, but I had made the incorrect assumption that the Linux box was set up correctly to begin with. A mistake I won't likely make again the future.
Thanks for your support.
I’m relieved
-
That is annoying, isn't it? It seems like, no matter how long I've been doing this, something like this happens at least once every few months and I have to sacrifice multiple days to something like this. Glad to see you solved the problem (and happy that it didn't have anything to do with Nexus). I wonder if there is a way for us to catch this error - note that the JVM is a JRE and fail fast? -
Inappropriate?my jdk path is right but i can not start nexus service!
http://getsatisfaction.com/sonatype/t... -
Inappropriate?Make sure a jdk java.exe is on your path. The parameters we set by default require a jdk not just a jre. If you don't want a jdk, then remove the java params in wrapper.conf (i think it's the memory -XX ones that it doesn't like)
-
Inappropriate?my jdk path is right but i can not start nexus service!
-
Inappropriate?DEBUG | wrapper | 2008/12/04 13:07:09 | Service command: D:\nexus\nexus-webapp-1.1.1\bin\jsw\windows-x86-32\wrapper.exe -s D:\nexus\nexus-webapp-1.1.1\conf\wrapper.conf
ERROR | wrapper | 2008/12/04 13:07:09 | CreateService failed - 指定的服务已存在。 (0x431)
STATUS | wrapper | 2008/12/04 13:07:11 | --> Wrapper Started as Console
DEBUG | wrapper | 2008/12/04 13:07:11 | Using tick timer.
DEBUG | wrapperp | 2008/12/04 13:07:11 | server listening on port 32000.
STATUS | wrapper | 2008/12/04 13:07:11 | Launching a JVM...
DEBUG | wrapper | 2008/12/04 13:07:11 | command: "D:\jdk\jdk1.5.0_06\bin\java.exe" -Dbasedir=../../.. -Djava.io.tmpdir=../../../runtime/tmp -XX:+HeapDumpOnOutOfMemoryError -Dsun.net.inetaddr.ttl=3600 -Djava.library.path="./lib" -classpath "../../../lib/plexus-platform-jsw-1.6.4.jar;../../../conf/" -Dwrapper.key="j7YtUQHX0LSu9M1A" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.codehaus.plexus.classworlds.launcher.Launcher
DEBUG | wrapper | 2008/12/04 13:07:11 | JVM started (PID=3848)
INFO | jvm 1 | 2008/12/04 13:07:11 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 1 | 2008/12/04 13:07:11 | Could not create the Java virtual machine.
DEBUG | wrapper | 2008/12/04 13:07:11 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2008/12/04 13:07:11 | JVM exited while loading the application.
DEBUG | wrapper | 2008/12/04 13:07:12 | JVM was only running for 0 seconds leading to a failed restart count of 1.
DEBUG | wrapper | 2008/12/04 13:07:12 | Waiting 5 seconds before launching another JVM.
STATUS | wrapper | 2008/12/04 13:07:16 | Launching a JVM...
DEBUG | wrapper | 2008/12/04 13:07:16 | command: "D:\jdk\jdk1.5.0_06\bin\java.exe" -Dbasedir=../../.. -Djava.io.tmpdir=../../../runtime/tmp -XX:+HeapDumpOnOutOfMemoryError -Dsun.net.inetaddr.ttl=3600 -Djava.library.path="./lib" -classpath "../../../lib/plexus-platform-jsw-1.6.4.jar;../../../conf/" -Dwrapper.key="bQqvJkkK6c1Mrofn" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=2 org.codehaus.plexus.classworlds.launcher.Launcher
DEBUG | wrapper | 2008/12/04 13:07:16 | JVM started (PID=4772)
INFO | jvm 2 | 2008/12/04 13:07:16 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 2 | 2008/12/04 13:07:16 | Could not create the Java virtual machine.
DEBUG | wrapper | 2008/12/04 13:07:16 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2008/12/04 13:07:16 | JVM exited while loading the application.
DEBUG | wrapper | 2008/12/04 13:07:16 | JVM was only running for 0 seconds leading to a failed restart count of 2.
DEBUG | wrapper | 2008/12/04 13:07:16 | Waiting 5 seconds before launching another JVM.
STATUS | wrapper | 2008/12/04 13:07:20 | Launching a JVM...
DEBUG | wrapper | 2008/12/04 13:07:20 | command: "D:\jdk\jdk1.5.0_06\bin\java.exe" -Dbasedir=../../.. -Djava.io.tmpdir=../../../runtime/tmp -XX:+HeapDumpOnOutOfMemoryError -Dsun.net.inetaddr.ttl=3600 -Djava.library.path="./lib" -classpath "../../../lib/plexus-platform-jsw-1.6.4.jar;../../../conf/" -Dwrapper.key="2i9nZHyUUMR9mD_Z" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=3 org.codehaus.plexus.classworlds.launcher.Launcher
DEBUG | wrapper | 2008/12/04 13:07:20 | JVM started (PID=5668)
INFO | jvm 3 | 2008/12/04 13:07:20 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 3 | 2008/12/04 13:07:20 | Could not create the Java virtual machine.
DEBUG | wrapper | 2008/12/04 13:07:20 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2008/12/04 13:07:20 | JVM exited while loading the application.
DEBUG | wrapper | 2008/12/04 13:07:20 | JVM was only running for 0 seconds leading to a failed restart count of 3.
DEBUG | wrapper | 2008/12/04 13:07:20 | Waiting 5 seconds before launching another JVM.
STATUS | wrapper | 2008/12/04 13:07:24 | Launching a JVM...
DEBUG | wrapper | 2008/12/04 13:07:24 | command: "D:\jdk\jdk1.5.0_06\bin\java.exe" -Dbasedir=../../.. -Djava.io.tmpdir=../../../runtime/tmp -XX:+HeapDumpOnOutOfMemoryError -Dsun.net.inetaddr.ttl=3600 -Djava.library.path="./lib" -classpath "../../../lib/plexus-platform-jsw-1.6.4.jar;../../../conf/" -Dwrapper.key="ABKxHpBxciJYkv2h" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=4 org.codehaus.plexus.classworlds.launcher.Launcher
DEBUG | wrapper | 2008/12/04 13:07:24 | JVM started (PID=4628)
INFO | jvm 4 | 2008/12/04 13:07:24 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 4 | 2008/12/04 13:07:24 | Could not create the Java virtual machine.
DEBUG | wrapper | 2008/12/04 13:07:24 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2008/12/04 13:07:24 | JVM exited while loading the application.
DEBUG | wrapper | 2008/12/04 13:07:25 | JVM was only running for 0 seconds leading to a failed restart count of 4.
DEBUG | wrapper | 2008/12/04 13:07:25 | Waiting 5 seconds before launching another JVM.
STATUS | wrapper | 2008/12/04 13:07:29 | Launching a JVM...
DEBUG | wrapper | 2008/12/04 13:07:29 | command: "D:\jdk\jdk1.5.0_06\bin\java.exe" -Dbasedir=../../.. -Djava.io.tmpdir=../../../runtime/tmp -XX:+HeapDumpOnOutOfMemoryError -Dsun.net.inetaddr.ttl=3600 -Djava.library.path="./lib" -classpath "../../../lib/plexus-platform-jsw-1.6.4.jar;../../../conf/" -Dwrapper.key="xIrkBUkzplsPCavo" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=5184 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=5 org.codehaus.plexus.classworlds.launcher.Launcher
DEBUG | wrapper | 2008/12/04 13:07:29 | JVM started (PID=2772)
INFO | jvm 5 | 2008/12/04 13:07:29 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
INFO | jvm 5 | 2008/12/04 13:07:29 | Could not create the Java virtual machine.
DEBUG | wrapper | 2008/12/04 13:07:29 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2008/12/04 13:07:29 | JVM exited while loading the application.
DEBUG | wrapper | 2008/12/04 13:07:29 | JVM was only running for 0 seconds leading to a failed restart count of 5.
FATAL | wrapper | 2008/12/04 13:07:29 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2008/12/04 13:07:29 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2008/12/04 13:07:29 | <-- Wrapper Stopped -
Inappropriate?The log says your jdk doesn't like this option:
INFO | jvm 1 | 2008/12/04 13:07:11 | Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
Remove it from wrapper.conf and you should be fine.
1 person says
this answers the question
-
Inappropriate?D:\jdk\jdk1.5.0_06\bin\java.exe
-
Inappropriate?my other application base on java is ok just like eclipse ,only the nexus is not right ,now it is working after i remove the
#wrapper.java.additional.3=-XX:+HeapDumpOnOutOfMemoryError
and
#wrapper.java.command=java
in the Wrapper.conf。
I think it is ugly on this score.
Loading Profile...



EMPLOYEE