Advertisement
Guest User

Untitled

a guest
Mar 13th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. org.apache.jasper.JasperException: Unable to compile class for JSP:
  2.  
  3. An error occurred at line: 31 in the jsp file: /database.jsp
  4. Unhandled exception type ClassNotFoundException
  5. 28: public void createDatabase()
  6. 29: {
  7. 30:
  8. 31: Class.forName("org.sqlite.JDBC");
  9. 32: _Conn = DriverManager.getConnection( "jdbc:sqlite:" + path_abs + "database.db" );
  10. 33: stat = _Conn.createStatement();
  11. 34:
  12.  
  13.  
  14. An error occurred at line: 32 in the jsp file: /database.jsp
  15. Unhandled exception type SQLException
  16. 29: {
  17. 30:
  18. 31: Class.forName("org.sqlite.JDBC");
  19. 32: _Conn = DriverManager.getConnection( "jdbc:sqlite:" + path_abs + "database.db" );
  20. 33: stat = _Conn.createStatement();
  21. 34:
  22. 35: stat.executeUpdate(
  23.  
  24.  
  25. An error occurred at line: 33 in the jsp file: /database.jsp
  26. Unhandled exception type SQLException
  27. 30:
  28. 31: Class.forName("org.sqlite.JDBC");
  29. 32: _Conn = DriverManager.getConnection( "jdbc:sqlite:" + path_abs + "database.db" );
  30. 33: stat = _Conn.createStatement();
  31. 34:
  32. 35: stat.executeUpdate(
  33. 36:
  34.  
  35.  
  36. An error occurred at line: 35 in the jsp file: /database.jsp
  37. Unhandled exception type SQLException
  38. 32: _Conn = DriverManager.getConnection( "jdbc:sqlite:" + path_abs + "database.db" );
  39. 33: stat = _Conn.createStatement();
  40. 34:
  41. 35: stat.executeUpdate(
  42. 36:
  43. 37: "CREATE TABLE `aktualnosci` (" +
  44. 38: " `id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  45.  
  46.  
  47. An error occurred at line: 45 in the jsp file: /database.jsp
  48. Unhandled exception type SQLException
  49. 42: ");"
  50. 43: );
  51. 44:
  52. 45: stat.executeUpdate(
  53. 46: "CREATE TABLE `przedmiot` (" +
  54. 47: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  55. 48: "`nazwa` VARCHAR(50) NOT NULL UNIQUE," +
  56.  
  57.  
  58. An error occurred at line: 53 in the jsp file: /database.jsp
  59. Unhandled exception type SQLException
  60. 50: ");"
  61. 51: );
  62. 52:
  63. 53: stat.executeUpdate(
  64. 54: "CREATE TABLE `sala` (" +
  65. 55: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  66. 56: "`numer` VARCHAR(8) NOT NULL," +
  67.  
  68.  
  69. An error occurred at line: 62 in the jsp file: /database.jsp
  70. Unhandled exception type SQLException
  71. 59: ");"
  72. 60: );
  73. 61:
  74. 62: stat.executeUpdate(
  75. 63: "CREATE TABLE `miejscowosc` (" +
  76. 64: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  77. 65: "`nazwa` VARCHAR(60) NOT NULL," +
  78.  
  79.  
  80. An error occurred at line: 71 in the jsp file: /database.jsp
  81. Unhandled exception type SQLException
  82. 68: ");"
  83. 69: );
  84. 70:
  85. 71: stat.executeUpdate(
  86. 72: "CREATE TABLE `profil` (" +
  87. 73: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  88. 74: "`nazwa` VARCHAR(70) NOT NULL UNIQUE," +
  89.  
  90.  
  91. An error occurred at line: 79 in the jsp file: /database.jsp
  92. Unhandled exception type SQLException
  93. 76: ");"
  94. 77: );
  95. 78:
  96. 79: stat.executeUpdate(
  97. 80: "CREATE TABLE `uzytkownik` (" +
  98. 81: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  99. 82: "`imie` VARCHAR(50) NOT NULL," +
  100.  
  101.  
  102. An error occurred at line: 96 in the jsp file: /database.jsp
  103. Unhandled exception type SQLException
  104. 93: "`haslo` VARCHAR(255) NOT NULL" +
  105. 94: ");"
  106. 95: );
  107. 96: stat.executeUpdate(
  108. 97: "CREATE TABLE `klasa` (" +
  109. 98: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  110. 99: "`nr_klasy` VARCHAR(15) NOT NULL," +
  111.  
  112.  
  113. An error occurred at line: 108 in the jsp file: /database.jsp
  114. Unhandled exception type SQLException
  115. 105:
  116. 106: );
  117. 107:
  118. 108: stat.executeUpdate(
  119. 109: "CREATE TABLE `zajecia` (" +
  120. 110: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  121. 111: "`id_przedmiot` INTEGER NOT NULL REFERENCES przedmiot(id)," +
  122.  
  123.  
  124. An error occurred at line: 119 in the jsp file: /database.jsp
  125. Unhandled exception type SQLException
  126. 116: ");"
  127. 117: );
  128. 118:
  129. 119: stat.executeUpdate(
  130. 120: "CREATE TABLE `terminarz` (" +
  131. 121: "`id_zajecia` INTEGER NOT NULL REFERENCES zajecia(id)," +
  132. 122: "`data` DATE NOT NULL," +
  133.  
  134.  
  135. An error occurred at line: 127 in the jsp file: /database.jsp
  136. Unhandled exception type SQLException
  137. 124: ");"
  138. 125: );
  139. 126:
  140. 127: stat.executeUpdate(
  141. 128: "CREATE TABLE `ocena` (" +
  142. 129: "`id_zajecia` INTEGER REFERENCES zajecia(id)," +
  143. 130: "`id_uczen` INTEGER REFERENCES uzytkownik(id)," +
  144.  
  145.  
  146. An error occurred at line: 136 in the jsp file: /database.jsp
  147. Unhandled exception type SQLException
  148. 133: ");"
  149. 134: );
  150. 135:
  151. 136: stat.executeUpdate(
  152. 137: "CREATE TABLE `uwaga`(" +
  153. 138: "`id_zajecia` INTEGER PRIMARY KEY AUTOINCREMENT REFERENCES zajecia(id)," +
  154. 139: "`id_uczen` VARCHAR(50) NOT NULL REFERENCES uzytkownik(id)," +
  155.  
  156.  
  157. An error occurred at line: 144 in the jsp file: /database.jsp
  158. Unhandled exception type SQLException
  159. 141: ");"
  160. 142: );
  161. 143:
  162. 144: stat.executeUpdate(
  163. 145: "CREATE TABLE `obecnosci`(" +
  164. 146: "`id_zajecia` INTEGER NOT NULL REFERENCES zajecia(id)," +
  165. 147: "`id_uczen` INTEGER NOT NULL REFERENCES uzytkownik(id)," +
  166.  
  167.  
  168. An error occurred at line: 152 in the jsp file: /database.jsp
  169. Unhandled exception type SQLException
  170. 149: "`data` DATE NOT NULL" +
  171. 150: ");"
  172. 151: );
  173. 152: stat.executeUpdate(
  174. 153: "CREATE TABLE `logi`(" +
  175. 154: "`id` INTEGER PRIMARY KEY AUTOINCREMENT," +
  176. 155: "`id_user` INTEGER REFERENCES uzytkownik(id)," +
  177.  
  178.  
  179. An error occurred at line: 160 in the jsp file: /database.jsp
  180. Unhandled exception type SQLException
  181. 157: ");"
  182. 158: );
  183. 159:
  184. 160: stat.close();
  185. 161: _Conn.close();
  186. 162:
  187. 163: }
  188.  
  189.  
  190. An error occurred at line: 161 in the jsp file: /database.jsp
  191. Unhandled exception type SQLException
  192. 158: );
  193. 159:
  194. 160: stat.close();
  195. 161: _Conn.close();
  196. 162:
  197. 163: }
  198. 164:
  199.  
  200.  
  201. Stacktrace:
  202. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
  203. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)
  204. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:449)
  205. org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
  206. org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
  207. org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
  208. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
  209. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
  210. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
  211. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
  212. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  213. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement