Error loading class "org.tanukisoftware.wrapper.WrapperSimpleApp"

3,022 views
Skip to first unread message

Khanh Dao

unread,
Apr 8, 2014, 8:47:14 AM4/8/14
to concour...@googlegroups.com
When start concourse server from the console, I got this error:

[19:36:09]knd (develop) : ~/Code/concourse/concourse-server
$
./scripts/concourse console
Running Concourse Server...
wrapper  
| --> Wrapper Started as Console
wrapper  
| Java Service Wrapper Community Edition 64-bit 3.5.24
wrapper  
|   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
wrapper  
|     http://wrapper.tanukisoftware.com
wrapper  
|
wrapper  
| Launching a JVM...
jvm
1    | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  
| JVM exited while loading the application.
wrapper  
| Launching a JVM...
jvm
2    | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  
| JVM exited while loading the application.
wrapper  
| Launching a JVM...
jvm
3    | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  
| JVM exited while loading the application.
wrapper  
| Launching a JVM...
jvm
4    | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  
| JVM exited while loading the application.
wrapper  
| Launching a JVM...
jvm
5    | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper  
| JVM exited while loading the application.
wrapper  
| There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  
|   There may be a configuration problem: please check the logs.
wrapper  
| <-- Wrapper Stopped

My current suspect is in /conf/.concourse.conf, which sets: 

wrapper.java.command=/usr/bin/java

However, I check with that java version, it is 1.7

$  /usr/bin/java -version

java version
"1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

I'm not why I couldn't load the loader. Any tips please? Thanks.

Jeff Nelson

unread,
Apr 8, 2014, 9:01:37 AM4/8/14
to concourse-devs
Great question. The issue you're seeing is happening because you're running the script from source and it doesn't have the class paths correctly configured. 

If you want to start Concourse from the command line, you'll need to build it first (from the root of the concourse repo):
$ pwd
/Dropbox/Cinchapi/code/java/concourse
$ ./gradlew clean build installer

After that finishes, you'll have a .bin file in the concourse-server/build/distributions directory
$ ls concourse-server/build/distributions | egrep bin
concourse-server-0.4.0.88-SNAPSHOT.bin

Then you can install the concourse-server by executing the bin file
$ cd concourse-server/build/distributions/
$ sh concourse-server-0.4.0.88-SNAPSHOT.bin 
Creating directory concourse-server
Verifying archive integrity... All good.
Uncompressing Concourse Server..............................................................................
Please type your administrative password to allow the installer to make some (optional) system-wide changes.
Password:
[WARN] The installer was unable to place the Concourse scripts on your PATH, but you can run them directly from /Dropbox/Cinchapi/code/java/concourse/concourse-server/build/distributions/concourse-server/bin.

Then you can go to the concourse-server/bin directory and start the server
$ cd concourse-server/bin/
$ ./concourse console
Running Concourse Server...
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 64-bit 3.5.24
wrapper  |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
wrapper  | 
wrapper  | Launching a JVM...
jvm 1    | WrapperManager: Initializing...
jvm 1    |  _____
jvm 1    | /  __ \
jvm 1    | | /  \/ ___  _ __   ___ ___  _   _ _ __ ___  ___
jvm 1    | | |    / _ \| '_ \ / __/ _ \| | | | '__/ __|/ _ \
jvm 1    | | \__/\ (_) | | | | (_| (_) | |_| | |  \__ \  __/
jvm 1    |  \____/\___/|_| |_|\___\___/ \__,_|_|  |___/\___|
jvm 1    | 
jvm 1    | Copyright (c) 2013-2014, Cinchapi Software Collective, LLC. All Rights Reserved.
jvm 1    | The Concourse server has started


--
You received this message because you are subscribed to the Google Groups "Concourse Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concourse-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Khanh Dao

unread,
Apr 9, 2014, 12:00:08 AM4/9/14
to concour...@googlegroups.com
Thanks Jeff for the clear explanation.
Reply all
Reply to author
Forward
0 new messages