Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat restart script from Jersey Restful API failing

Manjunatha Devraja
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to restart a Tomcat server after SSL certificate added to keystore from Java code, which is a restful webservice in Jersey.

Following is the code snippet :

This is opening cmd window and showing:

Files\java\jre7\java.exe" unexpected at this time
and nothing is happening.

The script is working fine if I run directly from cmd and also above code is also working fine when I'm running as normal Java application.

The issue is happening only when it is called inside a REST call.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic