Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is impossible deploy wars and run TomCat as user tomcat and no as ROOT ?

Discussion in 'General Discussion' started by 000, Jun 11, 2013.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    66
    Hi,

    when I run [/usr/local/jakarta/tomcat/bin/./startup.sh;] as ROOT {catalina.out} return:
    PHP:
            Jun 112013 6:57:48 PM org.apache.catalina.startup.HostConfig deployWAR
            INFO
    Deploying web application archive /home/user/public_html/sample.war
    ( OK!, ALL FINE!! )

    when I run [/usr/local/jakarta/tomcat/bin/./startup.sh;] as user tomcat {catalina.out} return:

    PHP:
            Jun 112013 6:52:47 PM org.apache.catalina.startup.HostConfig deployWAR
            SEVERE
    Error deploying web application archive /home/user/public_html/sample.war
            java
    .lang.IllegalStateExceptionContainerBase.addChildstartorg.apache.catalina.LifecycleExceptionFailed to start component [StandardEngine[Catalina].StandardHost[khnoc.com].StandardContext[/sample]]
            
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
            
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
            
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
            
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1654)
            
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            
    at java.lang.Thread.run(Thread.java:722)
    Some idea to fixed this?

    ¿or no is possible?

    THANKS
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, you should restart Tomcat as the "root" user instead of the "tomcat" user. This is the expected behavior.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    66
    Thanks Michael
    Yu say restar.

    Is the same critery to start ?

    Then start OR restart is tasks to run as ROOT ?

    ( you can see: my english no is very fluid )

    :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Yes, start/stop/restart should occur as the "root" user.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice