LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2010, 02:09 AM   #1
sree_charan
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
unable to run webapplications in tomcat


the following is the error i get every time i try to run my web application in tomcat 6. im using ubuntu 9.04. i have placed my application in webapps folder correctly but still im unable to run it from the tomcat manager.. any one please help im stuck up i am my college project.

HTTP Status 404 - /SearchDoctors/

type Status report

message /SearchDoctors/

description The requested resource (/SearchDoctors/) is not available.
Apache Tomcat/5.5.28

i have placed my application in /usr/local/tomcat/webapps/SearchDoctors/WEB-INF folder correctly


ill also post the contents of /usr/local/tomcat/webapps/SearchDoctors/WEB-INF/web.xml of my application as i have searched they say problem is with this can anyone please help.the college project still needs a long way to go
view plaincopy to clipboardprint?

1.
2. <?xml version="1.0" encoding="UTF-8"?>
3. <!DOCTYPE web-app
4. PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5. "http://java.sun.com/dtd/web-app_2_3.dtd">
6.
7. <web-app>
8. <display-name>Forms</display-name>
9. <servlet>
10. <servlet-name>Validation</servlet-name>
11. <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
12. <load-on-startup>0</load-on-startup>
13. </servlet>
14. <servlet-mapping>
15. <servlet-name>Validation</servlet-name>
16. <url-pattern>/app</url-pattern>
17. </servlet-mapping>
18. <servlet>
19. <servlet-name>dwr-invoker</servlet-name>
20. <display-name>DWR Servlet</display-name>
21. <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
22. <init-param>
23. <param-name>debug</param-name>
24. <param-value>true</param-value>
25. </init-param>
26. </servlet>
27.
28. <servlet-mapping>
29. <servlet-name>dwr-invoker</servlet-name>
30. <url-pattern>/dwr/*</url-pattern>
31. </servlet-mapping>
32.
33. </web-app>
34.
 
Old 03-04-2010, 11:46 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by sree_charan View Post
the following is the error i get every time i try to run my web application in tomcat 6. im using ubuntu 9.04. i have placed my application in webapps folder correctly but still im unable to run it from the tomcat manager.. any one please help im stuck up i am my college project.

HTTP Status 404 - /SearchDoctors/

type Status report

message /SearchDoctors/

description The requested resource (/SearchDoctors/) is not available.
Apache Tomcat/5.5.28

i have placed my application in /usr/local/tomcat/webapps/SearchDoctors/WEB-INF folder correctly
Obviously you haven't. If you're in college, you should know how to use punctuation, capital letters, and proper grammar, too. And the 404 error is quite plain...it can't be read. So, your choices are
  1. The file isn't there
  2. The file has the wrong permissions
[/RIGHT]
Not much else generates a 404 error, which should be covered well in your class.
Quote:
ill also post the contents of /usr/local/tomcat/webapps/SearchDoctors/WEB-INF/web.xml of my application as i have searched they say problem is with this can anyone please help.the college project still needs a long way to go
view plaincopy to clipboardprint?

1.
2. <?xml version="1.0" encoding="UTF-8"?>
3. <!DOCTYPE web-app
4. PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5. "http://java.sun.com/dtd/web-app_2_3.dtd">
6.
7. <web-app>
8. <display-name>Forms</display-name>
9. <servlet>
10. <servlet-name>Validation</servlet-name>
11. <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
12. <load-on-startup>0</load-on-startup>
13. </servlet>
14. <servlet-mapping>
15. <servlet-name>Validation</servlet-name>
16. <url-pattern>/app</url-pattern>
17. </servlet-mapping>
18. <servlet>
19. <servlet-name>dwr-invoker</servlet-name>
20. <display-name>DWR Servlet</display-name>
21. <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
22. <init-param>
23. <param-name>debug</param-name>
24. <param-value>true</param-value>
25. </init-param>
26. </servlet>
27.
28. <servlet-mapping>
29. <servlet-name>dwr-invoker</servlet-name>
30. <url-pattern>/dwr/*</url-pattern>
31. </servlet-mapping>
32.
33. </web-app>
34.
If 'they' are telling you this, ask 'them' what they're talking about. What URL are you typing in to get the 404 error?
 
Old 03-05-2010, 05:59 AM   #3
sree_charan
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
i got the problem solved. there was a little problem in the organisation of the files within my application..
 
  


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
Unable to run Tomcat 5.5.9 on Fedora core 4 tech_j Linux - Software 2 09-04-2005 09:17 AM
I can't run tomcat hus Programming 2 05-11-2005 11:48 AM
How do you run Tomcat as nobody? vous Linux - Software 11 03-24-2005 01:15 PM
non-root user unable to run tomcat with usb ports mar38 Linux - Software 0 07-21-2004 02:45 AM
Unable to shut down tomcat MakingOfAGeek Linux - Newbie 1 10-26-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 AM.

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