LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2008, 04:08 PM   #1
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Rep: Reputation: 17
Cannot start application


I have Apache 2.2/Tomcat 5.5 installed on RHEL 5.1.
I have my servlets in /usr/local/tomcat5/webapps/cgi-bin.
I am unable to access or run the servlets.
When I go to tomcat manager is tells me that the application cgi-bin cannot be started.
When I try to start it I get:

FAIL - Application at context path /cgi-bin could not be started

What do I need to do?

Thanks for any help.
 
Old 07-18-2008, 05:35 PM   #2
FranDango
Member
 
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
I'm not sure if this is relevant to your problem, but if even the tomcat manager treats your cgi-bin directory as an application, then you might want to add a trailing slash to the URL to enforce treatment as a directory. Unless your application is really named 'cgi-bin'.

Linux Archive

Last edited by FranDango; 09-20-2008 at 05:44 AM.
 
Old 07-22-2008, 08:50 AM   #3
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
FranDango,

Thanks for your response. Where exactly would I add that trailing slash? It IS already included in my ScriptAlias in /etc/httpd/conf/httpd.conf.

SS
 
Old 07-24-2008, 03:47 AM   #4
FranDango
Member
 
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
How do you launch the servlets?
Have you seen your tomcat installation work at all with any sample applications?

My only experience with tomcat stems from using OpenLaszlo, but that one uses it's own customized tomcat install, which didn't need anything to be added or changed in httpd.conf.
Even in your case I would guess that this has to do with some setting in the tomcat configuration rather, though I'm not sure about this.
 
Old 07-24-2008, 07:01 AM   #5
sir_com
Member
 
Registered: Feb 2008
Posts: 31

Rep: Reputation: 15
One more thing to check

Have your script contains this line

content=text/html

this is must ........
 
Old 07-25-2008, 08:35 AM   #6
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
FranDango:
I launch the servlets with the URL http://{localhost}/cgi-bin/ClassName.
I can run the examples provided by tomcat with a URL like:
http://{localhost}/servlets-examples/servlet/HelloWorld
I also found that I can move my servlets to the tomcat admin area and run them using:
http://{localhost}/cgi-bin/servlet/MyServlet
But I need it to work without the "/servlet" piece (or hundreds of our users would have to change their bookmarks.

sir_com:
Which script are you referring to?
 
Old 07-25-2008, 11:22 AM   #7
FranDango
Member
 
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
Could this be some permission issue? If you can run http://{localhost}/cgi-bin/ClassName with some existing servlet and http://{localhost}/cgi-bin/servlet/MyServlet with your own servlet, but not something like http://{localhost}/cgi-bin/MyServlet, then my first guess would be that user 'tomcat' (or whatever is user is set to run the tomcat server) does not have the permission to execute your servlet in cgi-bin directly. Su to root and test out some permission settings. I'm not sure if this is the solution, but it's worth a look.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Start an application louann5840 Linux - Newbie 7 03-23-2007 12:27 PM
after dhclient... , I can't start any application laurentwahl Linux - Networking 15 04-21-2006 11:25 PM
How to start application? ddragas Linux - Newbie 5 02-02-2006 03:35 PM
How to start an application when the fedora start ivonne Fedora 0 11-16-2004 12:16 PM
How to start an application when the fedora start ivonne Fedora 9 11-12-2004 01:40 PM


All times are GMT -5. The time now is 08:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration