• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JSP error again

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
userpass.jsp




UserpassCheck.java





And there are three other html files........

I was getting the correct values in the morning and now this:


init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Compiling 2 source files to C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\classes
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: 'catch' without 'try'
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: ')' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: not a statement
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:129: ';' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:136: 'finally' without 'try'
} finally {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:35: 'try' without 'catch' or 'finally'
try {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\UserpassCheck_jsp.java:140: reached end of file while parsing
}
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: 'catch' without 'try'
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: ')' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: not a statement
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:129: ';' expected
} catch (Throwable t) {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:136: 'finally' without 'try'
} finally {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:35: 'try' without 'catch' or 'finally'
try {
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\build\generated\src\org\apache\jsp\userpass_jsp.java:140: reached end of file while parsing
}
14 errors
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\nbproject\build-impl.xml:589: The following error occurred while executing this line:
C:\Users\Agnit\Documents\NetBeansProjects\FirstReal\nbproject\build-impl.xml:285: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As has been said many times, the 1st step to solving all such problems is to stop writing JSP like it's 2001 and to move Java code into a Java class where it belongs.
 
Ranch Hand
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can go to the generated servlet ( present in the work directory of tomcat installation ) and find out what is written on those lines.

Since its your code, you'll find the error quickly. This seems to be something with basic syntax.

You can even open the generated servlet in netBeans as a java Class, and it will assist you in fixing those missing parenthesis' and braces.

But best of all, try to visually find those errors in the JSP.
Better still, follow what Bear said.
 
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the error, it seems that you have a jsp with name UserpassCheck also, and the error seems to be related to that. can you confirm this
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic