944,123 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 2048
  • JSP RSS
Jul 4th, 2007
0

Error coming while running an App

Expand Post »
Hi All,

I had developed a small app in Tomcat.
But now i am migrating into Sun-one.
I have deployed the app by making a war file
through the deploy tool.
But i am getting an error while parsing the web.xml file during running the app.

[CODE]
org.apache.jasper.JasperException: File "/struts-bean" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:99)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:159)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:207)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:463)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:528)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1582)
org.apache.jasper.compiler.Parser.parse(Parser.java:176)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:263)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:144)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)






the web.xml

JSP Syntax (Toggle Plain Text)
  1.  
  2. <?xml version="1.0" encoding="ISO-8859-1"?>
  3.  
  4. <!DOCTYPE web-app
  5. PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  6. "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  7.  
  8. <web-app>
  9. <display-name>Struts Blank Application</display-name>
  10.  
  11. <!-- Standard Action Servlet Configuration (with debugging) -->
  12. <servlet>
  13. <servlet-name>action</servlet-name>
  14. <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  15. <init-param>
  16. <param-name>config</param-name>
  17. <param-value>/WEB-INF/struts-config.xml</param-value>
  18. </init-param>
  19. <init-param>
  20. <param-name>debug</param-name>
  21. <param-value>2</param-value>
  22. </init-param>
  23. <init-param>
  24. <param-name>detail</param-name>
  25. <param-value>2</param-value>
  26. </init-param>
  27. <load-on-startup>2</load-on-startup>
  28. </servlet>
  29.  
  30.  
  31. <!-- Standard Action Servlet Mapping -->
  32. <servlet-mapping>
  33. <servlet-name>action</servlet-name>
  34. <url-pattern>*.do</url-pattern>
  35. </servlet-mapping>
  36.  
  37.  
  38. <!-- The Usual Welcome File List -->
  39. <welcome-file-list>
  40. <welcome-file>aswelcome.jsp</welcome-file>
  41. </welcome-file-list>
  42.  
  43.  
  44. <!-- Struts Tag Library Descriptors -->
  45. <taglib>
  46. <taglib-uri>/struts-bean</taglib-uri>
  47. <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  48. </taglib>
  49.  
  50. <taglib>
  51. <taglib-uri>/tags/struts-html</taglib-uri>
  52. <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  53. </taglib>
  54.  
  55. <taglib>
  56. <taglib-uri>/tags/struts-logic</taglib-uri>
  57. <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  58. </taglib>
  59.  
  60. <taglib>
  61. <taglib-uri>/tags/struts-nested</taglib-uri>
  62. <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
  63. </taglib>
  64.  
  65. <taglib>
  66. <taglib-uri>/tags/struts-tiles</taglib-uri>
  67. <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
  68. </taglib>
  69.  
  70. </web-app>



i have the .tld file under the requisite folder.I am new to Sun one.
please help
Similar Threads
Reputation Points: 10
Solved Threads: 2
Light Poster
saurav is offline Offline
28 posts
since Jul 2004
Jul 9th, 2007
0

Re: Error coming while running an App

Hi All,

I have sorted out the problem.

Thanks
Reputation Points: 10
Solved Threads: 2
Light Poster
saurav is offline Offline
28 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: plllllllllllz i need help
Next Thread in JSP Forum Timeline: i need help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC