小编wco*_*sky的帖子

Wildfly部署失败:JBAS014671和WFLYCTL0080 - 拒绝访问

我们使用Deployment Scanner("deployments"文件夹)为Wildfly部署了一个WAR文件.Web应用程序一直有效,直到计算机重新启动 - 当服务器再次加载Web应用程序时,它会失败.值得一提的是,如果重新启动Wildfly服务,我们就没有这个问题,只有在整个操作系统重新启动时才会发生.如果我只是重新启动Wildfly,它会再次起作用.

如果我从deployments文件夹中删除失败的文件标志(healthsafety-server.war.failed),则几秒钟后应用程序将成功部署.

如果通过管理员控制台完成部署,则第一次失败.但是,如果该应用程序被禁用,然后再次启用,它也会起作用.

我们在Windows 10 Home(64位英语)上运行Wildfly 8.2.0 Final,但我们也尝试了Wildfly 9.0.2 Final,我们也有同样的行为.我们在使用Windows 8.1 64位Professional的另一台计算机上遇到了同样的问题.

Wildfly文件夹放在"C:\"文件夹中,并且已向所有用户提供完全控制,包括"所有人".这些步骤也已应用,但问题仍然存在.

这是Wildfly 8.2.0 Finalhealthsafety -server.war.failed文件的内容:

"{\"JBAS014671: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./healthsafety-server\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./healthsafety-server: Failed to start service
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-8.2.0.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\tempea4e3edc0321f2c2\\\\healthsafety-server.war-4135c52d8f677a8a\\\\healthsafety-server.war-7794207299642458131.tmp (Access is denied)
    Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-8.2.0.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\tempea4e3edc0321f2c2\\\\healthsafety-server.war-4135c52d8f677a8a\\\\healthsafety-server.war-7794207299642458131.tmp (Access is denied)
    Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-8.2.0.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\tempea4e3edc0321f2c2\\\\healthsafety-server.war-4135c52d8f677a8a\\\\healthsafety-server.war-7794207299642458131.tmp (Access is denied)
    Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-8.2.0.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\tempea4e3edc0321f2c2\\\\healthsafety-server.war-4135c52d8f677a8a\\\\healthsafety-server.war-7794207299642458131.tmp (Access …

java windows java-ee wildfly

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

如何使用CakePHP防止参数中的SQL注入

使用从用户输入接收的参数时,如何防止在从数据库中获取数据时进行SQL注入:

if(isset($_GET['cityval']) && $_GET['cityval'] !=''){

    $city = $this->request->query('cityval'); 

      $searching .= " and college_city in ($city) ";
    } else {
        $searching .= "";
    }
    if(isset($_GET['scholarship']) && $_GET['scholarship'] !=''){
        $searching .= " and college_scholarship = '".$_GET['scholarship']."' ";
    } else {
        $searching .= "";
    }
Run Code Online (Sandbox Code Playgroud)

我的主要查询如下

$search = $this->Search->query("select * from  colleges where college_id!='' and status='active' $searching order by $order desc limit $start, 10 ");
Run Code Online (Sandbox Code Playgroud)

php cakephp

0
推荐指数
1
解决办法
765
查看次数

标签 统计

cakephp ×1

java ×1

java-ee ×1

php ×1

wildfly ×1

windows ×1