teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

削除

2019/05/29 10:20

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,113 +1,2 @@
1
- # Apacheとtomcatの連携できくなりまし
1
+ こちら急ぎ削除必要とため
2
- ```
3
- webサーバ、apサーバ、dbサーバを構築中です。
4
- webサーバにはapache、apサーバにはTomcat、dbサーバにはPostgreSQLをインストールしています。
5
- 現在、apサーバにてJDBCインストール・設定を行っており、
6
- TomcatからJDBCを使用してデータベースPostgreSQLにアクセスしようとしております。
7
- 下記サイトを参考にしました。
2
+ 削除させていただきました。
8
- http://www.javaroad.jp/opensource/js_tomcat8.htm
9
-
10
- しかし、URLを打ってもHTTP Status 500が表示されてしまいます。
11
- いろいろ試みましたが、解決に至っておりません。
12
- ```
13
- #発生している問題・エラーメッセージ
14
- ```
15
- ☆表示される画面
16
- HTTP Status 500 – Internal Server Error
17
-
18
-
19
- Type Exception Report
20
-
21
- Message Unable to compile class for JSP:
22
-
23
- Description The server encountered an unexpected condition that prevented it from fulfilling the request.
24
-
25
- Exception
26
- org.apache.jasper.JasperException: Unable to compile class for JSP:
27
-
28
- An error occurred at line: 1 in the jsp file: /showTable.jsp
29
- Syntax error on token "import", delete this token
30
- 1: <% page import="java.sql.*,
31
- 2: javax.sql.*,
32
- 3: javax.naming.InitialContext,
33
- 4: javax.naming.Context" %>
34
-
35
-
36
- An error occurred at line: 1 in the jsp file: /showTable.jsp
37
- String literal is not properly closed by a double-quote
38
- 1: <% page import="java.sql.*,
39
- 2: javax.sql.*,
40
- 3: javax.naming.InitialContext,
41
- 4: javax.naming.Context" %>
42
-
43
-
44
- An error occurred at line: 1 in the jsp file: /showTable.jsp
45
- Syntax error on tokens, delete these tokens
46
- 1: <% page import="java.sql.*,
47
- 2: javax.sql.*,
48
- 3: javax.naming.InitialContext,
49
- 4: javax.naming.Context" %>
50
-
51
-
52
- An error occurred at line: 2 in the jsp file: /showTable.jsp
53
- Syntax error on token ",", ; expected
54
- 1: <% page import="java.sql.*,
55
- 2: javax.sql.*,
56
- 3: javax.naming.InitialContext,
57
- 4: javax.naming.Context" %>
58
- 5:
59
-
60
-
61
- An error occurred at line: 3 in the jsp file: /showTable.jsp
62
- String literal is not properly closed by a double-quote
63
- 1: <% page import="java.sql.*,
64
- 2: javax.sql.*,
65
- 3: javax.naming.InitialContext,
66
- 4: javax.naming.Context" %>
67
- 5:
68
- 6: <html>
69
-
70
-
71
- An error occurred at line: 3 in the jsp file: /showTable.jsp
72
- Syntax error on token ".", ; expected
73
- 1: <% page import="java.sql.*,
74
- 2: javax.sql.*,
75
- 3: javax.naming.InitialContext,
76
- 4: javax.naming.Context" %>
77
- 5:
78
- 6: <html>
79
-
80
-
81
- Stacktrace:
82
- org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
83
- org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
84
- org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:590)
85
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
86
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
87
- org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
88
- org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)
89
- org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
90
- org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
91
- org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
92
- javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
93
- org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
94
-
95
- ☆pg_logには何も表示されません...。
96
-
97
- ```
98
- #pg_hba.conf
99
- ```
100
- # "local" is for Unix domain socket connections only
101
- local all all md5
102
- # IPv4 local connections:
103
- host all all 127.0.0.1/32 ident
104
- # IPv6 local connections:
105
- host all all ::1/128 ident
106
- # Allow replication connections from localhost, by a user with the
107
- # replication privilege.
108
- #local replication postgres peer
109
- #host replication postgres 127.0.0.1/32 ident
110
- #host replication postgres ::1/128 ident
111
- ```
112
-
113
- どうしたらいいかおしえていただけますか。お願いいたします。