日期:2014-05-20  浏览次数:20859 次

求助!weblogic发布失败- -
报错信息:
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']
.

------解决方案--------------------
看提示消息似乎是:

你的datasource.xml文件中关于定义的fasp2010,在注入dataSources时出错。

你可以查查看是不是dataSources写错了,或者数据源的连接信息有误?