无法找到或加载主类org.picketbox.datasource.security.SecureIdentityLoginModule - Wildfly 10

时间:2016-05-25 06:39:09

标签: jboss datasource wildfly wildfly-10

我想在配置数据库连接时加密密码。我被困在生成加密密码的阶段

我写了剧本蝙蝠,内容是:

<?php
        $Directory = new RecursiveDirectoryIterator("../");
        $Iterator = new RecursiveIteratorIterator($Directory);
        // here the .png Match is set
        $Regex = new RegexIterator($Iterator, '/^.+\.png$/i', RecursiveRegexIterator::GET_MATCH);
        // the following part is only for the output of the resulting array $Regex in html
        $output = "<table width='100%' align='center'><table width='50%' align='center'>";
         foreach($Regex as $key => $var) {
                    $output .= '<tr>';
                    foreach($var as $col => $val) {
                        $output .= "<td style='font-size:14px;font-weight:bold;'>" . $col . '</td>';
                    }
                    $output .= '</tr>';
                    foreach($var as $col => $val) {
                        $output .= '<td>' . $val . '</td>';
                    }
                    $output .= '</tr>';
                }
         $output .= '</table></table>';
         echo $output;
?>
        <head>
            <style type="text/css">
                table , tr , td {
                    font: arial;
                    font-size: 13px;
                    font-style: normal;
                    font-weight: normal;
                    border: 1px solid blue;
                    border-collapse: collapse;
                }
            </style>
        </head>

不幸的是,当你启动这个脚本时我收到错误:

java -cp c:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\jboss\logging\main\jboss-logging-3.3.0.Final.jar:c:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-4.9.4.Final.jar:c:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-commons-1.0.0.final.jar:c:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-infinispan-4.9.4.Final.jar org.picketbox.datasource.security.SecureIdentityLoginModule password

我反编译了SecureIdentityLoginModule类,我发现你有主要方法...... 我将服务器用于Wildfly 10.0.0 Final

1 个答案:

答案 0 :(得分:2)

您使用了错误的路径分隔符。在Windows上,它是一个分号;。您正在使用UNIX / Linux路径分隔符:

应该是:

java -cp C:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\jboss\logging\main\jboss-logging-3.3.0.Final.jar;C:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-4.9.4.Final.jar;C:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-commons-1.0.0.final.jar;C:\servers\wildfly-10.0.0.Final\modules\system\layers\base\org\picketbox\main\picketbox-infinispan-4.9.4.Final.jar org.picketbox.datasource.security.SecureIdentityLoginModule password