Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,292
Community Members
 
Community Events
165
Community Groups

Always Crowd ('s tomcat) is not starting caused by a 'not a valid Win32 application' error

Recently I have set up the Crowd instacen on my Windows Server 2012 machine. I have set it up as described in its documentation and configured it to use a separeate mySQL DB. Running Crowd from start_crowd.bat works fine so far. But I need to run Crows as Windows' service. I installed the service as described in the ducmentation again an altered the jvm settings as recommended. Starting the server from bat-file still works proerly.

 

But if I try to run the Tomcat/Crowd service, it stops soon after startup. Attachted there are the logs, presented until the services crashs in debug log level. For configuration I have upgraded my Java installation to version 9 and ensured, that JAVA_HOME is pointing to the directory of the jdk.

 

Server-Log:

[2018-03-06 23:23:07] [debug] ( prunsrv.c:1679) [ 6940] Commons Daemon procrun log initialized
[2018-03-06 23:23:07] [info] ( prunsrv.c:1683) [ 6940] Commons Daemon procrun (1.0.15.0 32-bit) started
[2018-03-06 23:23:07] [info] ( prunsrv.c:1596) [ 6940] Running 'AtlassianCrowd' Service...
[2018-03-06 23:23:07] [debug] ( prunsrv.c:1374) [15024] Inside ServiceMain...
[2018-03-06 23:23:07] [debug] ( prunsrv.c:844 ) [15024] reportServiceStatusE: 2, 0, 3000, 0
[2018-03-06 23:23:07] [info] ( prunsrv.c:1127) [15024] Starting service...
[2018-03-06 23:23:07] [debug] ( javajni.c:233 ) [15024] loading jvm 'C:\Progra~1\Java\jre-9.0.4\bin\server\jvm.dll'
[2018-03-06 23:23:07] [debug] ( javajni.c:278 ) [15024] Setting DLL search path to 'C:\Progra~1\Java\jre-9.0.4\bin\server'
[2018-03-06 23:23:07] [debug] ( javajni.c:278 ) [15024] Setting DLL search path to 'C:\Progra~1\Java\jre-9.0.4\bin'
[2018-03-06 23:23:07] [error] ( javajni.c:291 ) [15024] %1 is not a valid Win32 application.
[2018-03-06 23:23:07] [error] ( prunsrv.c:1162) [15024] Failed creating java C:\Progra~1\Java\jre-9.0.4\bin\server\jvm.dll
[2018-03-06 23:23:07] [error] ( prunsrv.c:1162) [15024] %1 is not a valid Win32 application.
[2018-03-06 23:23:07] [error] ( prunsrv.c:1536) [15024] ServiceStart returned 1
[2018-03-06 23:23:07] [error] ( prunsrv.c:1536) [15024] %1 is not a valid Win32 application.
[2018-03-06 23:23:07] [debug] ( prunsrv.c:844 ) [15024] reportServiceStatusE: 1, 1066, 0, 1
[2018-03-06 23:23:07] [info] ( prunsrv.c:1598) [ 6940] Run service finished.
[2018-03-06 23:23:07] [info] ( prunsrv.c:1764) [ 6940] Commons Daemon procrun finished

Result of JAVA_HOME system variable output:

echo %JAVA_HOME%
C:\Program Files\Java\jdk-9.0.4 

Results of Java's version:

C:\>java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

 

I have no idea anymore, why the service is not coming up? Is there maybe a issue because of Java's 32/64 bit installation / expectation?

 

Thanks in advance,

Kevin

1 answer

1 accepted

1 vote
Answer accepted
AnnWorley Atlassian Team Mar 06, 2018

Hi Kevin,

You guessed it! It's Tomcat that is expecting the wrong Java. Please follow Crowd 2.8 service 64-bit fails to start - not a valid Win32 application

On a side note, Java 9 is not a supported platform for Crowd, so unexpected behavior could result. Please change to a supported Java version listed on Supported Platforms.

Best of luck,

Ann

Hi Ann,

 

thanks for your reply and the workaround. I fixed the problem with exact this solution. The tomcats runtime was for 32bit system; Replacing them with the ones for 64bit system solved my issue. Crowd now comes up via service and runs without a problem.

 

Thanks again and best regards,

Kevin

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

170 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you