Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Failed to start QB server on Mac #3266

Laba42 ·
I try to start QB on a iMac OSX 10.10.3 ( Yosemite ) , but I get the following message

Georgs-iMac:bin Georg$ ./server.sh console
Running QuickBuild Server...
wrapper | --> Wrapper Started as Console
wrapper | Java Service Wrapper Standard Edition 64-bit 3.5.26
wrapper | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.com
wrapper | Licensed to PMEase Inc. for QuickBuild
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | WrapperStartStopApp:
jvm 1 | WrapperStartStopApp Error: Encountered an error running start main: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getTimeStamp()J
jvm 1 | WrapperStartStopApp Error: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getTimeStamp()J
jvm 1 | WrapperStartStopApp Error: at com.pmease.quickbuild.bootstrap.LogLayout.format(LogLayout.java:15)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:234)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.Category.callAppenders(Category.java:203)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.Category.forcedLog(Category.java:388)
jvm 1 | WrapperStartStopApp Error: at org.apache.log4j.Category.log(Category.java:853)
jvm 1 | WrapperStartStopApp Error: at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:304)
jvm 1 | WrapperStartStopApp Error: at com.pmease.quickbuild.bootstrap.Bootstrap.init(Bootstrap.java:215)
jvm 1 | WrapperStartStopApp Error: at com.pmease.quickbuild.bootstrap.Bootstrap.main(Bootstrap.java:125)
jvm 1 | WrapperStartStopApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | WrapperStartStopApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
jvm 1 | WrapperStartStopApp Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1 | WrapperStartStopApp Error: at java.lang.reflect.Method.invoke(Method.java:606)
jvm 1 | WrapperStartStopApp Error: at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:316)
jvm 1 | WrapperStartStopApp Error: at java.lang.Thread.run(Thread.java:745)
wrapper | <-- Wrapper Stopped


The class org.apache.log4j.spi.LoggingEvent. and method getTimeStamp() exists in jar file log4j-1.2.15.jar and in wrapper.conf

#encoding=UTF-8
# Configuration files must begin with a line specifying the encoding
# of the the file.

#********************************************************************
# Wrapper License Properties (Ignored by Community Edition)
#********************************************************************
# Professional and Standard Editions of the Wrapper require a valid
# License Key to start. Licenses can be purchased or a trial license
# requested on the following pages:
# http://wrapper.tanukisoftware.com/purchase
# http://wrapper.tanukisoftware.com/trial

# Include file problems can be debugged by removing the first '#'
# from the following line:
##include.debug

# The Wrapper will look for either of the following optional files for a
# valid License Key. License Key properties can optionally be included
# directly in this configuration file.
#include ../conf/wrapper-license.conf
#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf

# The following property will output information about which License Key(s)
# are being found, and can aid in resolving any licensing problems.
#wrapper.license.debug=TRUE

#********************************************************************
# Wrapper Localization
#********************************************************************
# Specify the locale which the Wrapper should use. By default the system
# locale is used.
#wrapper.lang=en_US # en_US or ja_JP

# Specify the location of the Wrapper's language resources. If these are
# missing, the Wrapper will default to the en_US locale.
#wrapper.lang.folder=../lang

wrapper.restart.reload_configuration=TRUE

#********************************************************************
# Wrapper
Properties
#********************************************************************
# Java Application
# Locate the java binary on the system PATH:
wrapper.java.command=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/bin/java
# Tell the Wrapper to log the full generated Java command line.
#wrapper.java.command.loglevel=INFO

# Java Main class. This class must implement the WrapperListener interface
# or guarantee that the WrapperManager class is initialized. Helper
# classes are provided to do this for you. See the Integration section
# of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp

# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=../plugins/com.pmease.quickbuild.bootstrap
wrapper.java.classpath.2=../plugins/com.pmease.quickbuild.bootstrap/lib/wrapper.jar
wrapper.java.classpath.3=../plugins/com.pmease.quickbuild.bootstrap/lib/slf4j-api-1.7.2.jar
wrapper.java.classpath.4=../plugins/com.pmease.quickbuild.bootstrap/lib/jul-to-slf4j-1.7.2.jar
wrapper.java.classpath.5=../plugins/com.pmease.quickbuild.bootstrap/lib/log4j-1.2.15.jar
wrapper.java.classpath.6=../plugins/com.pmease.quickbuild.bootstrap/lib/joda-time-2.0.jar
wrapper.java.classpath.7=../plugins/com.pmease.quickbuild.bootstrap/lib/commons-codec-1.10.jar
wrapper.java.classpath.8=../plugins/com.pmease.quickbuild.bootstrap/lib/hessian-4.0.38.jar
wrapper.java.classpath.9=../plugins/com.pmease.quickbuild.bootstrap/lib/commons-logging-1.0.4.jar
wrapper.java.classpath.10=../plugins/com.pmease.quickbuild.bootstrap/lib/servlet-api-3.0.20100224.jar
wrapper.java.classpath.11=../plugins/com.pmease.quickbuild.bootstrap/lib/slf4j-log4j12-1.7.2.jar
wrapper.java.classpath.12=../plugins/com.pmease.quickbuild.bootstrap/lib/commons-io-1.4.jar
wrapper.java.classpath.13=../plugins/com.pmease.quickbuild.bootstrap/lib/commons-lang-2.4.jar


# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=.
wrapper.java.library.path.2=./lib
wrapper.java.library.path.3=../plugins/com.pmease.quickbuild.libs
wrapper.java.library.path.append_system_path=TRUE

# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE
# Java Additional Parameters
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-Xverify:none
#wrapper.java.additional.3=-Dreset

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=512

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=2048

# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=com.pmease.quickbuild.bootstrap.Bootstrap
wrapper.app.parameter.2=1
wrapper.app.parameter.3=start
wrapper.app.parameter.4=com.pmease.quickbuild.bootstrap.Bootstrap
wrapper.app.parameter.5=FALSE
wrapper.app.parameter.6=1
wrapper.app.parameter.7=stop

#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Enables Debug output from the Wrapper.
# wrapper.debug=TRUE

# Format of output for the console. (See docs for formats)
wrapper.console.format=PM

# Log Level for console output. (See docs for log levels)
wrapper.console.loglevel=INFO

# Log file to use for wrapper output logging.
wrapper.logfile=../logs/console.log

# Format of output for the log file. (See docs for formats)
wrapper.logfile.format=PM

# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=250k

# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
wrapper.logfile.maxfiles=1

# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=NONE

#********************************************************************
# Wrapper General Properties
#********************************************************************
# Allow for the use of non-contiguous numbered properties
wrapper.ignore_sequence_gaps=TRUE

# Do not start if the pid file already exists.
wrapper.pidfile.strict=TRUE

# Title to use when running as a console
wrapper.console.title=QuickBuild Server

#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.

# Name of the service
wrapper.name=QuickBuild Server

# Display name of the service
wrapper.displayname=QuickBuild Server

# Description of the service
wrapper.description=QuickBuild Server

# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=

# Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START

# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false

# Specify NT service account. Leave empty to use local system account.
wrapper.ntservice.account=
wrapper.ntservice.password=

# Optionally mount NT network shares
#wrapper.share.1.location=\server\share
#wrapper.share.1.target=Z:
#wrapper.share.1.account=domain\user
#wrapper.share.1.password=userpass
#wrapper.share.1.startup.premapped=CONTINUE
#wrapper.share.1.startup.failure=SHUTDOWN
#wrapper.share.1.startup.max_retries=5
#wrapper.share.1.startup.retry_interval=10
#wrapper.share.1.shutdown.unmap=TRUE
#wrapper.share.1.shutdown.unmap.force=TRUE

wrapper.jvm_exit.timeout=60

# Disable timeouts
wrapper.startup.timeout=0
wrapper.shutdown.timeout=0
wrapper.ping.timeout=0
wrapper.cpu.timeout=3600
wrapper.ping.interval=3600


Any Ideas what is wrong?

Georg
  • replies 10
  • views 6891
  • stars 0
robinshen ADMIN ·
This is odd. I downloaded latest QB 6.0.20 and installed JDK 1.7.0_80 on Yosemite and QB can be started without any problems. Can you please download QB again just in case some files are damaged?
Laba42 ·
with 6.0.20 same error message. I have also tried Java 7_U79 and 7_U80
it's not important, I just wanted to try it at home on a Mac.
robinshen ADMIN ·
Can you please check if file "<QB dir>/plugins/com.pmease.quickbuild.bootstrap/lib/log4j-1.2.15.jar" is there and is not corrupted? Occasionally we have users extracting QB with gnu tar and as it does not handle long path names, some files are just dropped to cause QB behave abnormally.
Laba42 ·
The file <QB dir>/plugins/com.pmease.quickbuild.bootstrap/lib/log4j-1.2.15.jar exist and i can normaly open it, for me the file is not corrupted.
robinshen ADMIN ·
Can you please check your CLASSPATH env to see if it includes some old version of log4j which might be conflicts with QB's shipped log4j?
Laba42 ·
Georgs-iMac:bin root# echo $CLASSPATH

Georgs-iMac:bin root# echo $JAVA_HOME

Both are empty! can it be? i must say that i am new on MAC OS X


Georg
robinshen ADMIN ·
This is expected. Can you pease run below command to see if there are other log4j jar, which may help finding the issue.

sudo find / -name 'log4j*.jar'
Laba42 ·
/Applications/Quickbuild/addons/traymonitor/lib/log4j-1.2.15.jar
/Applications/Quickbuild/plugins/com.pmease.quickbuild.bootstrap/lib/log4j-1.2.15.jar
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Java/Extensions/log4j-1.2.13.jar
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.appstore: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.appstore.PluginXPCService: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.calculator: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.iChat: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.iPhoto: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.internetaccounts: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.lateragent: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.mail/Data/Library/Application Scripts: No such file or directory
find: /Volumes/Time Machine Backups 1/Backups.backupdb/Georgs iMac/2015-06-21-035933/Macintosh HD/Users/Sabine/Library/Containers/com.apple.mail/Data/Library/Application Support: No such file or directory
find: fts_read: No such file or directory
robinshen ADMIN ·
This seems fine. I have no idea why it is not working, I tested on a new Mac virtual machine, a MacBook and a Mac desktop and everything is working fine...
Laba42 ·
Is ok,
as i wrtote for me it's not important, I just wanted to try it at home on a Mac.

Georg