cancel
Showing results for 
Search instead for 
Did you mean: 

The alfrescoTomcat service terminated with service-specific error 1 (0x1).

heywoodkenobi
Champ in-the-making
Champ in-the-making
Did an install of 4.2 Community on a freshly built 2003R2 64bit server today.  Tomcat won't start and throws up this error.  Any ideas?

More details on edit:

commons-daemon log:

Starting service…

[2014-03-17 14:09:12] [error] [  660] Failed creating java

[2014-03-17 14:09:12] [error] [  660] ServiceStart returned 1

[2014-03-17 14:09:12] [info]  [ 1664] Run service finished.

[2014-03-17 14:09:12] [info]  [ 1664] Commons Daemon procrun finished

8 REPLIES 8

abarisone
Star Contributor
Star Contributor
Hi,
you're using Win2008R2 64bit, aren't you? Also with bundled PostgreSQL?
Did you installed the 1.7 JDK or are you using the installer bundled one?
Are JAVA_HOME and CATALINA_HOME environment variables set?

Regards,
Andrea

mangar
Star Contributor
Star Contributor
I am having the same problem with the installer for 4.2.f Win64.

This is a fresh install.  The JDK is working, PostgreSQL installs and is wirking.  Tomcat fails.

abarisone
Star Contributor
Star Contributor
Hi,
please post your logs so we can have a look.

Regards,
Andrea

stondini
Champ in-the-making
Champ in-the-making
Same problem with log :

c:\alfresco-4.2.f\tomcat\bin>catalina.bat configtest

Using CATALINA_BASE:   "c:\alfresco-4.2.f\tomcat"
Using CATALINA_HOME:   "c:\alfresco-4.2.f\tomcat"
Using CATALINA_TMPDIR: "c:\alfresco-4.2.f\tomcat\temp"
Using JRE_HOME:        "C:\ALFRES~1.F\java"
Using CLASSPATH:       "c:\alfresco-4.2.f\tomcat\bin\bootstrap.jar;
c:\alfresco-4.2.f\tomcat\bin\tomcat-juli.jar"
Error: Could not find or load main class ++JvmOptions=-XX:-DisableExplicitGC

It seams there is a problem with the command line. The double quotes

The command line is :
"C:\ALFRES~1.F\java\bin\java" ++JvmOptions="-XX:-DisableExplicitGC" ++JvmOptions="-XX:ReservedCodeCacheSize=128m" –JvmMs 128 –JvmMx 768 ++JvmOptions="-XX:MaxPermSize=256M"  -Djava.util.logging.config.file="C:\alfresco-4.2.f\tomcat\conf\logging.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager   -Djava.endorsed.dirs="C:\alfresco-4.2.f\tomcat\endorsed" -classpath "C:\alfresco-4.2.f\tomcat\bin\bootstrap.jar;C:\alfresco-4.2.f\tomcat\bin\tomcat-juli.jar" -Dcatalina.base="C:\alfresco-4.2.f\tomcat" -Dcatalina.home="C:\alfresco-4.2.f\tomcat" -Djava.io.tmpdir="C:\alfresco-4.2.f\tomcat\temp" org.apache.catalina.startup.Bootstrap  start

Error: Could not find or load main class ++JvmOptions=-XX:-DisableExplicitGC

102020
Champ on-the-rise
Champ on-the-rise
This is a problem with 4.2.f x64 bundle. I can confirm, it's not environment issue, it's developer mess up.
Try 4.3.a, it works: http://dev.alfresco.com/downloads/nightly/dist/

lolu
Champ on-the-rise
Champ on-the-rise
Whew! I am so glad I found this post!

I installed 4.2.f on Win Server 2008 r2 and couldn't get Alfresco to run - tomcat failed to start because it couldn't load Java (same error as the first post). I have been tweaking the environment variables and everything else. Was about to start a topic when I found this. Thanks.

Will try the 4.2.a version.

Is the 4.2.f error going to be fixed anytime soon?

krutik_jayswal
Elite Collaborator
Elite Collaborator

Remove below configuration from setenv.bat file inside "alfresco-community\tomcat\bin" path of alfresco installation.

Few of the things from below configuration will be needed for running image magick and other things.But by removing it you will be able to start server using catalina.bat file in in windows server.

For making other things run , still need to figure out the solution

set JAVA_OPTS=++JvmOptions="-XX:+DisableExplicitGC" ++JvmOptions="-XX:+UseConcMarkSweepGC" ++JvmOptions="-XX:+UseParNewGC" ++JvmOptions="-XX:ReservedCodeCacheSize=128m" ++JvmOptions="-Dalfresco.home=C:\alfresco-community" --JvmMs 512 --JvmMx 8133
rem ##### IMAGEMAGICK ENV #####
set JAVA_OPTS=%JAVA_OPTS% --Environment "PATH='C:\alfresco-community\alfresco-pdf-renderer;C:\alfresco-community\imagemagick;C:\alfresco-community\java\bin;C:\alfresco-community/postgresql/bin;C:\alfresco-community/common\bin;%PATH%'#MAGICK_HOME=C:\ALFRES~1\IMAGEM~1#MAGICK_CODER_MODULE_PATH=C:\ALFRES~1\IMAGEM~1\modules\coders#MAGICK_CONFIGURE_PATH=C:\ALFRES~1\IMAGEM~1#"