質問編集履歴

1

削除

2019/05/29 10:20

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,225 +1,3 @@
1
- # Apachetomcatの連携ができくなりまし
1
+ こちら急ぎ削除が必要となため
2
2
 
3
- ```
4
-
5
- webサーバ、apサーバ、dbサーバを構築中です。
6
-
7
- webサーバにはapache、apサーバにはTomcat、dbサーバにはPostgreSQLをインストールしています。
8
-
9
- 現在、apサーバにてJDBCインストール・設定を行っており、
10
-
11
- TomcatからJDBCを使用してデータベースPostgreSQLにアクセスしようとしております。
12
-
13
- 下記サイトを参考にしました。
3
+ 削除させていただきました。
14
-
15
- http://www.javaroad.jp/opensource/js_tomcat8.htm
16
-
17
-
18
-
19
- しかし、URLを打ってもHTTP Status 500が表示されてしまいます。
20
-
21
- いろいろ試みましたが、解決に至っておりません。
22
-
23
- ```
24
-
25
- #発生している問題・エラーメッセージ
26
-
27
- ```
28
-
29
- ☆表示される画面
30
-
31
- HTTP Status 500 – Internal Server Error
32
-
33
-
34
-
35
-
36
-
37
- Type Exception Report
38
-
39
-
40
-
41
- Message Unable to compile class for JSP:
42
-
43
-
44
-
45
- Description The server encountered an unexpected condition that prevented it from fulfilling the request.
46
-
47
-
48
-
49
- Exception
50
-
51
- org.apache.jasper.JasperException: Unable to compile class for JSP:
52
-
53
-
54
-
55
- An error occurred at line: 1 in the jsp file: /showTable.jsp
56
-
57
- Syntax error on token "import", delete this token
58
-
59
- 1: <% page import="java.sql.*,
60
-
61
- 2: javax.sql.*,
62
-
63
- 3: javax.naming.InitialContext,
64
-
65
- 4: javax.naming.Context" %>
66
-
67
-
68
-
69
-
70
-
71
- An error occurred at line: 1 in the jsp file: /showTable.jsp
72
-
73
- String literal is not properly closed by a double-quote
74
-
75
- 1: <% page import="java.sql.*,
76
-
77
- 2: javax.sql.*,
78
-
79
- 3: javax.naming.InitialContext,
80
-
81
- 4: javax.naming.Context" %>
82
-
83
-
84
-
85
-
86
-
87
- An error occurred at line: 1 in the jsp file: /showTable.jsp
88
-
89
- Syntax error on tokens, delete these tokens
90
-
91
- 1: <% page import="java.sql.*,
92
-
93
- 2: javax.sql.*,
94
-
95
- 3: javax.naming.InitialContext,
96
-
97
- 4: javax.naming.Context" %>
98
-
99
-
100
-
101
-
102
-
103
- An error occurred at line: 2 in the jsp file: /showTable.jsp
104
-
105
- Syntax error on token ",", ; expected
106
-
107
- 1: <% page import="java.sql.*,
108
-
109
- 2: javax.sql.*,
110
-
111
- 3: javax.naming.InitialContext,
112
-
113
- 4: javax.naming.Context" %>
114
-
115
- 5:
116
-
117
-
118
-
119
-
120
-
121
- An error occurred at line: 3 in the jsp file: /showTable.jsp
122
-
123
- String literal is not properly closed by a double-quote
124
-
125
- 1: <% page import="java.sql.*,
126
-
127
- 2: javax.sql.*,
128
-
129
- 3: javax.naming.InitialContext,
130
-
131
- 4: javax.naming.Context" %>
132
-
133
- 5:
134
-
135
- 6: <html>
136
-
137
-
138
-
139
-
140
-
141
- An error occurred at line: 3 in the jsp file: /showTable.jsp
142
-
143
- Syntax error on token ".", ; expected
144
-
145
- 1: <% page import="java.sql.*,
146
-
147
- 2: javax.sql.*,
148
-
149
- 3: javax.naming.InitialContext,
150
-
151
- 4: javax.naming.Context" %>
152
-
153
- 5:
154
-
155
- 6: <html>
156
-
157
-
158
-
159
-
160
-
161
- Stacktrace:
162
-
163
- org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
164
-
165
- org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
166
-
167
- org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:590)
168
-
169
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
170
-
171
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
172
-
173
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
174
-
175
- org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)
176
-
177
- org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
178
-
179
- org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
180
-
181
- org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
182
-
183
- javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
184
-
185
- org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
186
-
187
-
188
-
189
- ☆pg_logには何も表示されません...。
190
-
191
-
192
-
193
- ```
194
-
195
- #pg_hba.conf
196
-
197
- ```
198
-
199
- # "local" is for Unix domain socket connections only
200
-
201
- local all all md5
202
-
203
- # IPv4 local connections:
204
-
205
- host all all 127.0.0.1/32 ident
206
-
207
- # IPv6 local connections:
208
-
209
- host all all ::1/128 ident
210
-
211
- # Allow replication connections from localhost, by a user with the
212
-
213
- # replication privilege.
214
-
215
- #local replication postgres peer
216
-
217
- #host replication postgres 127.0.0.1/32 ident
218
-
219
- #host replication postgres ::1/128 ident
220
-
221
- ```
222
-
223
-
224
-
225
- どうしたらいいかおしえていただけますか。お願いいたします。