小编ftr*_*ian的帖子

pgpool-II身份验证失败

我正在使用pgpool-II 3.2.1中的两个PostgreSQL 9.1配置为主热备用.

当尝试从PGAdmin进行身份验证时,我得到:

Error connecting to the server: FATAL:  password authentication failed for user "postgres"
Run Code Online (Sandbox Code Playgroud)

在pgpool日志中,我看到:

2012-11-01 14:40:13 LOG:   pid 3023: connection received: host=89.xxx.xxx.xxx port=57150
2012-11-01 14:40:13 DEBUG: pid 3023: Protocol Major: 1234 Minor: 5679 database:  user: 
2012-11-01 14:40:13 DEBUG: pid 3023: SSLRequest from client
2012-11-01 14:40:13 DEBUG: pid 3023: pool_ssl: SSL requested but SSL support is not available
2012-11-01 14:40:13 DEBUG: pid 3023: read_startup_packet: application_name: pgAdmin III - Browser
2012-11-01 14:40:13 DEBUG: pid 3023: Protocol Major: 3 Minor: …
Run Code Online (Sandbox Code Playgroud)

postgresql pgpool postgresql-9.1

6
推荐指数
2
解决办法
2万
查看次数

使用静态资源配置jetty的上下文路径

我有一个maven应用程序配置为启动Jetty并从../client加载静态.配置如下:

<plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>8.1.4.v20120524</version>
            <configuration>
                <scanIntervalSeconds>25</scanIntervalSeconds>
                <connectors>
                    <connector implementation="org.eclipse.jetty.server.bio.SocketConnector">
                        <port>9095</port>
                        <maxIdleTime>60000</maxIdleTime>
                    </connector>
                </connectors>
                <webAppSourceDirectory>../client/</webAppSourceDirectory>
                <webAppConfig>
                    <resourceBases>
                        <resourceBase>src/main/webapp</resourceBase>
                        <resourceBase>../client/</resourceBase>
                    </resourceBases>
                </webAppConfig>
            </configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)

我想要做的是只在/ API资源库下移动webapp.为了更明确,我想要映射:

src/main/webapp      --->     /API
../client/           --->     /
Run Code Online (Sandbox Code Playgroud)

jetty maven-jetty-plugin

4
推荐指数
1
解决办法
3090
查看次数

Couchbase如何实现强大的一致性

我搜索了Couchbase如何在集群内实现强一致性的解释.所有这些都是使用membase的结果吗?

membase couchbase

3
推荐指数
2
解决办法
2388
查看次数

如何在ActionListener正在进行时更新swing UI

在我的下面的代码中,我希望在应用程序加载数据时清除TextArea.我还添加了一个重绘()但仍然没有清除.我是否必须以不同方式通知它以强制重画?

    button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
            textArea.setText("");
            textArea.repaint();


            String result = //call a REST API
            textArea.setText(result);
        }
    });
Run Code Online (Sandbox Code Playgroud)

java swing

3
推荐指数
1
解决办法
3567
查看次数