JSP Error

Reply

Join Date: Nov 2007
Posts: 62
Reputation: tactfulsaint is an unknown quantity at this point 
Solved Threads: 0
tactfulsaint tactfulsaint is offline Offline
Junior Poster in Training

JSP Error

 
0
  #1
Aug 3rd, 2008
this error was displayed after i package and deployed my jsp file. i dont know any help?



  1.  
  2. HTTP Status 500 -
  3.  
  4. --------------------------------------------------------------------------------
  5.  
  6. type Exception report
  7.  
  8. message
  9.  
  10. description The server encountered an internal error () that prevented it from fulfilling this request.
  11.  
  12. exception
  13.  
  14. org.apache.jasper.JasperException: Unable to compile class for JSP
  15.  
  16. Generated servlet error:
  17. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:30: 'try' without 'catch' or 'finally'
  18. [javac] try {
  19. [javac] ^
  20.  
  21.  
  22. Generated servlet error:
  23. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:60: 'else' without 'if'
  24. [javac] else{
  25. [javac] ^
  26.  
  27.  
  28. Generated servlet error:
  29. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:68: illegal start of type
  30. [javac] } catch (Throwable t) {
  31. [javac] ^
  32.  
  33.  
  34. Generated servlet error:
  35. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:78: expected
  36. [javac] }
  37. [javac] ^
  38.  
  39.  
  40. Generated servlet error:
  41. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:79: 'class' or 'interface' expected
  42. [javac] }
  43. [javac] ^
  44.  
  45.  
  46. Generated servlet error:
  47. [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\customer\war-ic_war\org\apache\jsp\Authentication_jsp.java:80: 'class' or 'interface' expected
  48. [javac] ^
  49. [javac] 6 errors
  50.  
  51.  
  52.  
  53.  
  54. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:88)
  55. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:337)
  56. org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:429)
  57. org.apache.jasper.compiler.Compiler.compile(Compiler.java:489)
  58. org.apache.jasper.compiler.Compiler.compile(Compiler.java:468)
  59. org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  60. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
  61. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
  62. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  63. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
  64. javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
  65. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  66. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  67. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  68. java.lang.reflect.Method.invoke(Method.java:585)
  69. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
  70. java.security.AccessController.doPrivileged(Native Method)
  71. javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
  72. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
  73. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
  74. java.security.AccessController.doPrivileged(Native Method)
  75. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
  76.  
  77.  
  78. note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
  79.  
  80.  
  81. --------------------------------------------------------------------------------
  82.  
  83. Sun-Java-System/Application-Server
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,617
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 466
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: JSP Error

 
0
  #2
Aug 3rd, 2008
Another attempt at writing the entire logic in JSP? Anyways the message is pretty self explanatory; the JSP engine was unable to compile the JSP to a Servlet due to compile time errors. J2EE tutorial 1.5 / 1.4 along with a good book might do a lot more good than following some old/outdated online tutorials.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC