cancel
Showing results for 
Search instead for 
Did you mean: 

Exit code 1

aarin_gend
Champ in-the-making
Champ in-the-making
Hello,

i cant start tomcat, instalation was fine but tomcat don’t want to start.
Commons Daemon procrun stderr initialized / error

And log from Alfresco Manager tool
Starting Tomcat Server…
Exit code: 1
Stdout:

Stderr:
Unable to start tomcat

I was read forum, and google about this but no solution.
I use windows 8 Pro, and work in company Domain AD

ty for any help
10 REPLIES 10

kaynezhang
World-Class Innovator
World-Class Innovator
Many things can cause this problem,for example :
You don't have java jdk or jre installed;
Operating system can't reserve enought memory space that you configured using -XXSmiley TongueermSize=****M -XX:MaxPermSize=***M
You 'd better check your jdk and JVM options carefully.

mitpatoliya
Star Collaborator
Star Collaborator
Agree most of the times JVM Space issue cause this error.
Following link can help you to configure that.
https://wiki.alfresco.com/wiki/JVM_Tuning

Still you need to check your log files to get idea on what is wrong. Try to start it with different options avilable startup.batch,alfresco-manager.exe etc…

aarin_gend
Champ in-the-making
Champ in-the-making
i have log from commons-daemon.2014-04-18.log

[2014-04-16 13:44:25] [info]  [ 6100] Commons Daemon procrun (1.0.15.0 64-bit) started
[2014-04-16 13:44:26] [info]  [ 6100] Service alfrescoTomcat name alfrescoTomcat
[2014-04-16 13:44:26] [info]  [ 6100] Service 'alfrescoTomcat' installed
[2014-04-16 13:44:26] [info]  [ 6100] Commons Daemon procrun finished
[2014-04-16 13:56:33] [info]  [ 4900] Commons Daemon procrun (1.0.15.0 64-bit) started
[2014-04-16 13:56:33] [info]  [ 4900] Running 'alfrescoTomcat' Service…
[2014-04-16 13:56:33] [info]  [ 2824] Starting service…
[2014-04-16 13:56:34] [error] [ 2824] Failed creating java
[2014-04-16 13:56:34] [error] [ 2824] ServiceStart returned 1
[2014-04-16 13:56:34] [info]  [ 4900] Run service finished.
[2014-04-16 13:56:34] [info]  [ 4900] Commons Daemon procrun finished

kaynezhang
World-Class Innovator
World-Class Innovator
It seems it is a mismatch between tomcat6.exeand the JVM, in terms of which is 32/64 bit.I have encounted before,check this
http://mail-archives.apache.org/mod_mbox/tomcat-users/201005.mbox/%3C4BE29BCF.7040703@ice-sa.com%3E

Problem is, i cant run this file, i cant do anything


Microsoft Windows [Version 6.3.9600]
© 2013 Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\Users\bartosz.bakowski>cd/

C:\>cd/Alfresco2/tomcat/bin

C:\Alfresco2\tomcat\bin>startup
Using CATALINA_BASE:   "C:\Alfresco2\tomcat"
Using CATALINA_HOME:   "C:\Alfresco2\tomcat"
Using CATALINA_TMPDIR: "C:\Alfresco2\tomcat\temp"
Using JRE_HOME:        "C:\ALFRES~1\java"
Using CLASSPATH:       "C:\Alfresco2\tomcat\bin\bootstrap.jar;C:\Alfresco2\tomca
t\bin\tomcat-juli.jar"
C:\Alfresco2\tomcat\bin>configtest.bat
Using CATALINA_BASE:   "C:\Alfresco2\tomcat"
Using CATALINA_HOME:   "C:\Alfresco2\tomcat"
Using CATALINA_TMPDIR: "C:\Alfresco2\tomcat\temp"
Using JRE_HOME:        "C:\ALFRES~1\java"
Using CLASSPATH:       "C:\Alfresco2\tomcat\bin\bootstrap.jar;C:\Alfresco2\tomca
t\bin\tomcat-juli.jar"
C:\Alfresco2\tomcat\bin>catalina debug
Using CATALINA_BASE:   "C:\Alfresco2\tomcat"
Using CATALINA_HOME:   "C:\Alfresco2\tomcat"
Using CATALINA_TMPDIR: "C:\Alfresco2\tomcat\temp"
Using JAVA_HOME:       "C:\ALFRES~1\java"
Using CLASSPATH:       "C:\Alfresco2\tomcat\bin\bootstrap.jar;C:\Alfresco2\tomca
t\bin\tomcat-juli.jar"
Initializing jdb …
> run
run ++JvmOptions=-XX:-DisableExplicitGC ++JvmOptions=-XX:ReservedCodeCacheSize=1
28m –JvmMs 128 –JvmMx 768 ++JvmOptions=-XX:MaxPermSize=256M -Djava.util.loggin
g.config.file=C:\Alfresco2\tomcat\conf\logging.properties -Djava.util.logging.ma
nager=org.apache.juli.ClassLoaderLogManager -sourcepath C:\Alfresco2\tomcat\..\.
.\java -Djava.endorsed.dirs=C:\Alfresco2\tomcat\endorsed -classpath C:\Alfresco2
\tomcat\bin\bootstrap.jar;C:\Alfresco2\tomcat\bin\tomcat-juli.jar -Dcatalina.bas
e=C:\Alfresco2\tomcat -Dcatalina.home=C:\Alfresco2\tomcat -Djava.io.tmpdir=C:\Al
fresco2\tomcat\temp org.apache.catalina.startup.Bootstrap start
java.io.IOException: Cannot run program "C:\ALFRES~1\java\jre\bin\java": CreateP
rocess error=740, ??dana operacja wymaga podniesienia uprawni
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
        at java.lang.Runtime.exec(Runtime.java:617)
        at java.lang.Runtime.exec(Runtime.java:485)
        at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLau
ncher.java:180)
        at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:132)
        at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLaunche
r.java:235)
        at com.sun.tools.example.debug.tty.VMConnection.launchTarget(VMConnectio
n.java:495)
        at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:3
26)
        at com.sun.tools.example.debug.tty.Commands.commandRun(Commands.java:559
)
        at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:491)
        at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:765)
        at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1067)
Caused by: java.io.IOException: CreateProcess error=740, ??dana operacja wymaga
podniesienia uprawni
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:376)
        at java.lang.ProcessImpl.start(ProcessImpl.java:136)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
        … 11 more

Fatal error:
Unable to launch target VM.

C:\Alfresco2\tomcat\bin>

kaynezhang
World-Class Innovator
World-Class Innovator
Which user are you using to run alfresco ,I suggest you use Administrator
Or you can Disable the UAC
http://technet.microsoft.com/en-us/library/dd759070.aspx

Disable of UAC dont work, i use administrator account, i try this on other PC with win7 and have the same probem, fresh instalation of alfresco. still searching for solution

samj
Champ in-the-making
Champ in-the-making
Any solution for this? I'm having the same problem?

kaynezhang
World-Class Innovator
World-Class Innovator
Try to install alfresco in drives other than C: drive.
And you 'd better make sure there should not be any blank spaces in the install path