LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-03-2012, 01:03 PM   #1
bard
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 10

Rep: Reputation: Disabled
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
 
Old 11-04-2012, 04:11 AM   #2
bard
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: Disabled
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!
 
Old 11-04-2012, 01:40 PM   #3
bard
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run a servlet using tomcat me4linux Linux - Networking 0 01-28-2007 04:42 AM
New to JSP and the Tomcat Container PATFRA Programming 1 06-28-2006 07:37 PM
Tomcat: package javax.servlet does not exist xpucto Linux - Software 0 03-21-2006 06:45 AM
install Java (Servlet), Tomcat on Fedora need help. learn Fedora 2 02-24-2004 11:28 PM
system.out.println() not working in servlet, Tomcat Ethan Programming 7 07-24-2002 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration