• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP error again

 
Agnit Chatterjee
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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)

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Aniruddh Joshi
Ranch Hand
Posts: 275
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • 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.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic