LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/forumdisplay.php?f=78)
-   -   servlet permission issue on SB computer running tomcat container (http://www.linuxquestions.org/questions/showthread.php?t=4175435479)

bard 11-03-2012 01:03 PM

servlet permission issue on SB computer running tomcat container
 
Hello,

I wrote a servlet in java for controlling hardware remotely.
The servlet resides in a tomcat server running on a embedded linux board.
In this servlet I'm importing a class library that needs to make some system calls.
When I test my servlet I get a "permission denied" error regarding those calls.
How can I run my servlet with root permission or is there a better/safer way to handle this?

Bard

bard 11-04-2012 04:11 AM

I'm thinking to write a second app that communicates with the servlet through sockets. This should be much safer.
Still waiting for some advice!

bard 11-04-2012 01:40 PM

I did a 'work around' with sockets, which solved my problem.
I'm still wondering why I got no answers or suggestions.. Can someone tell why? I'm just a newbie and eager to learn.

Kind regards


All times are GMT -5. The time now is 08:28 AM.