LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   unable to run webapplications in tomcat (https://www.linuxquestions.org/questions/linux-server-73/unable-to-run-webapplications-in-tomcat-793083/)

sree_charan 03-04-2010 02:09 AM

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.

TB0ne 03-04-2010 11:46 AM

Quote:

Originally Posted by sree_charan (Post 3885141)
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?

sree_charan 03-05-2010 05:59 AM

i got the problem solved. there was a little problem in the organisation of the files within my application..


All times are GMT -5. The time now is 03:11 AM.