报错信息:
This page allows you to view status information related to this task.   
  Description: [Deployer:149026]Deploy application web0610 on myserver.  
  A description of this task.   
  Status: Deploy Failed  
  The status of this task.   
  Begin Time: Thu Oct 27 11:33:38 CST 2011  
  The time this task was started.   
  End Time: Thu Oct 27 11:33:48 CST 2011  
  The time this task was completed.   
  Exception: Exception:weblogic.management.ApplicationException: start() failed. Module: web0610 Error: weblogic.management.DeploymentException: Error creating bean with name 'dataSource' defined in class path resource [datasource.xml]: Cannot resolve reference to bean 'fasp2010' while setting bean property 'dataSources' with key [2010;dev;fasp0310;财政部2010年;fasp_runtest]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fasp2010' defined in class path resource [datasource.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'fasp2010' Resolved ; remaining name 'fasp2010' - with nested exception: [javax.naming.NameNotFoundException: Unable to resolve 'fasp2010' Resolved ; remaining name 'fasp2010']   
  The exception that occurred while performing this task.   
  Log:   
  A log of the task's activities.  
  [Deployer:149033]preparing application web0610 on myserver  
[Deployer:149033]prepared application web0610 on myserver  
[Deployer:149033]activating application web0610 on myserver  
[Deployer:149033]failed application web0610 on myserver  
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application web0610 on myserver.:  
Exception:weblogic.management.ApplicationException: start() failed.
Module: web0610 Error: weblogic.management.DeploymentException: Error creating bean with name 'dataSource' defined in class path resource [datasource.xml]: Cannot resolve reference to bean 'fasp2010' while setting bean property 'dataSources' with key [2010;dev;fasp0310;财政部2010年;fasp_runtest]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fasp2010' defined in class path resource [datasource.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'fasp2010' Resolved ; remaining name 'fasp2010' - with nested exception:  
[javax.naming.NameNotFoundException: Unable to resolve 'fasp2010' Resolved ; remaining name 'fasp2010']
.  

解决方案 »

  1.   

    看提示消息似乎是:你的datasource.xml文件中关于定义的fasp2010,在注入dataSources时出错。你可以查查看是不是dataSources写错了,或者数据源的连接信息有误?
      

  2.   

    那里是我开始写错了,但是改了fasp2011还是不行。
    找了北京总部2个工程师,都没找到原因,现在终于找到原因了。我登陆http://pc-201110261618:7001/console 发布就能成功,pc-201110261618是主机名。
    我开始一直这样登陆的,http://127.0.0.1:7001/console就始终发布不成功,不知道什么原因。