从One Websphere实例导出到另一个实例的EAR无法启动

时间:2016-06-28 07:18:02

标签: java ear websphere-7

我从一个IBM websphere环境(7.0)导出了一个EAR文件,并安装在另一个环境中。虽然EAR文件没有错误地部署,但它仍然无法启动。

管理客户端中的错误消息;

  

应用程序CLUSTER001未在群集WSVR0190I: Starting composition unit WebSphere:cuname=MyApplication in BLA WebSphere:blaname=MyApplication. WSVR0200I: Starting application: MyApplication WSVR0204I: Application: MyApplication Application build level: Unknown WSVR0206E: Module, MyApplication.war, of application, MyApplication.ear/deployments/MyApplication, failed to start WSVR0101W: An error occurred starting, MyApplication WSVR0217I: Stopping application: MyApplication WSVR0220I: Application stopped: MyApplication WSVR0194E: Composition unit WebSphere:cuname=MyApplication in BLA WebSphere:blaname=MyApplication failed to start. 中的所有服务器上成功启动。检查日志以获取详细信息。

以下是日志;

        $searchterm =$this->search_resource_model->searchterm_handler($this->input->post('keywords'));

                    //if serachterm is presnt
                             if($searchterm)
                             {
                            //pagenation code
          $offset = ($this->uri->segment(3) != '' ? $this->uri->segment(3): 0);
        $config['total_rows']=$this->search_resource_model->total_count($searchterm);
                            $config['per_page']= 5;
                            $config['first_url'] = '1';
                            $config['prev_link'] = 'Prev';

                            $config['first_link'] = 'First';
                            $config['last_link'] = 'Last';
                            $config['base_url']= base_url().'search/search_by_keywords/'; 
                    $config['uri_segment'] = 3;  
     $data["reso_list"] = $this->search_resource_model->serch_with_kw($config["per_page"], $offset,$searchterm); 


                        //total count to display on view page
                        $data["total_count"]=$config['total_rows']; 

                        //initialize config variable
                        $this->pagination->initialize($config);
                        //create link for pagination
                        $data['paginglinks'] = $this->pagination->create_links();
                             }



//where in searchterm_handler i am setting session
public function searchterm_handler($searchterm)
{
    if($searchterm)
    {
        $this->session->set_userdata('searchterm', $searchterm);
        return $searchterm;
    }
    elseif($this->session->userdata('searchterm'))
    {
        $searchterm = $this->session->userdata('searchterm');
        return $searchterm;
    }
    else
    {
        $searchterm ="";

        return $searchterm;
    }
}

感谢您提前提供任何帮助。

1 个答案:

答案 0 :(得分:0)

在../ ffdc里面的NodeName_exception.log文件中提到的txt文件中发现了实际错误。

“com.ibm.ws.webcontainer.exception.WebAppHostNotFoundException:CLUSTER001_VH_MYAPPLICATION”

虽然源环境具有自定义虚拟主机名,但目标环境没有并且正在使用“default_host”。

解决方案: 在管理控制台中; 应用程序> Websphere应用程序>点击有问题的应用程序>虚拟主机>重新选择default_host作为虚拟主机>点击确定并启动您的应用程序。

或者在EAR内部../WEB-INF ibm-web-bnd.xmi是自动生成的。尝试将virtualHostName更改为“default_host”并尝试部署。这个我没有尝试,但值得检查。