Jump to content
We've recently updated our Privacy Statement, available here ×

Issue with start tomcat command


g_sh

Recommended Posts

Hi,

I am having an issue trying to start the tomcat in jasper server:

When i run this command locally in the virtual machine it works:
sudo /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat
sudo /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat

And the status is running.

But when i create a playbook with two tasks, I have the attached output (Tomcat started)  start_tomcat.thumb.png.1c35453ffaccf79d13400c223e417e1e.png

and when i run the command: "sudo /opt/jasperreports-server-7.9.0/ctlscript.sh status tomcat" the status is not running.

 

- name: Stop tomcat
  shell: /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat
  become_method: sudo 

- name: Start tomcat
  shell: /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat
  become_method: sudo 

So it starts but it is not running, when i run the playbook.

Any idea?

Thanks,

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

The attached screenshot shows Tomcat has started but don't see any error in screenshot.
could you please check first tomcat is up and running.
You can use below URL to check Tomcat is up or not.

http://<host>:<port>/

If tomcat you get error, then good idea to check the Tomcat error log in catalina.out file.

<Tomcat_Installed_Path>\logs\

Log file : catalina*.out

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...