banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Cài đặt JForum trên Linux  XML
  [Article]   Cài đặt JForum trên Linux 27/03/2013 23:23:53 (+0700) | #31 | 274443
[Avatar]
ComandC
Member

[Minus]    0    [Plus]
Joined: 09/11/2012 07:48:51
Messages: 40
Offline
[Profile] [PM]
em đã cài xong Tomcat và java. Nhưng em bị lỗi này: các anh giúp em với ạ smilie

Code:
MESSAGE: java.net.ConnectException: Connection refused

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
	at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
	at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
	at java.sql.DriverManager.getConnection(DriverManager.java:579)
	at java.sql.DriverManager.getConnection(DriverManager.java:243)
	at net.jforum.SimpleConnection.getConnection(SimpleConnection.java:94)
	at net.jforum.SimpleConnection.init(SimpleConnection.java:74)
	at net.jforum.view.install.InstallAction.configureDatabase(InstallAction.java:679)
	at net.jforum.view.install.InstallAction.doInstall(InstallAction.java:172)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at net.jforum.Command.process(Command.java:114)
	at net.jforum.view.install.InstallAction.process(InstallAction.java:915)
	at net.jforum.InstallServlet.service(InstallServlet.java:141)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)


** END NESTED EXCEPTION **


Attempted reconnect 3 times. Giving up.
One Trip More Experience
[Up] [Print Copy]
  [Article]   Cài đặt JForum trên Linux 29/03/2013 12:52:37 (+0700) | #32 | 274499
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
@ComandC: Bạn cài MySQL chưa? Tạo user, db, grant quyền chưa? Thử login từ command line xem.

PS: "ngày xưa" mình dùng root. "Bây giờ" nên tạo một user khác có full quyền trên jforum db.
Let's build on a great foundation!
[Up] [Print Copy]
  [Article]   Cài đặt JForum trên Linux 30/03/2013 14:05:31 (+0700) | #33 | 274530
[Avatar]
ComandC
Member

[Minus]    0    [Plus]
Joined: 09/11/2012 07:48:51
Messages: 40
Offline
[Profile] [PM]

quanta wrote:
@ComandC: Bạn cài MySQL chưa? Tạo user, db, grant quyền chưa? Thử login từ command line xem.
 


Mình cài MySQL rồi bạn. Mình thay bản JDK 7 bằng bản JDK 6 thì nó lại hoạt động bình thường smilie Thấy lạ ghê à smilie
One Trip More Experience
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|