Home > Back-end >  Weblogic12c deployment ear, there is something wrong with the configuration data
Weblogic12c deployment ear, there is something wrong with the configuration data

Time:04-20

Say first configuration, weblogic configuration of the data source JNDI name DataSourceRef, target has chosen adminserver
In the project web. XML

DataSourceRef
Javax.mail. SQL. DataSource
Application


Weblogic. XML

DataSourceRef
DataSourceRef


The code
Enclosing the datasource="Java: comp/env/DataSourceRef";

Start an error:
Under Caused by: org. Springframework. Beans. BeanInstantiationException: Failed to instantiate [javax.mail. SQL. The DataSource] : the Factory method 'getDataSource threw the exception. Nested exception is javax.mail. Naming. LinkException: [Root exception is javax.mail. Naming. NameNotFoundException: Unable to resolve. 'DataSourceRef' Resolved '; remaining name 'DataSourceRef]; The Link Remaining Name: 'DataSourceRef'
The at org. Springframework. Beans. Factory. Support. SimpleInstantiationStrategy. Instantiate (SimpleInstantiationStrategy. Java: 185) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. ConstructorResolver. Instantiate (ConstructorResolver. Java: 620) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. ConstructorResolver. InstantiateUsingFactoryMethod (ConstructorResolver. Java: 456) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InstantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory. Java: 1287) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBeanInstance (AbstractAutowireCapableBeanFactory. Java: 1126) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 538) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 498) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. Lambda $doGetBean $0 (AbstractBeanFactory. Java: 320) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 222) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 318) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 199) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Config. DependencyDescriptor. ResolveCandidate (DependencyDescriptor. Java: 273) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. DoResolveDependency (DefaultListableBeanFactory. Java: 1241) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. ResolveDependency (DefaultListableBeanFactory. Java: 1168) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor $AutowiredFieldElement. Inject (AutowiredAnnotationBeanPostProcessor. Java: 595) ~ [spring - beans - 5.1.0. The jar: 5.1.0. RELEASE]
. 63 more
Under Caused by: javax.mail. Naming. LinkException:
The at weblogic. Jndi. Internal. WLNamingManager. GetObjectInstance (WLNamingManager. Java: 114) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. BasicNamingNode. ResolveObject (BasicNamingNode. Java: 1037) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. ApplicationNamingNode. ResolveObject (ApplicationNamingNode. Java: 186) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. BasicNamingNode. ResolveObject (BasicNamingNode. Java: 1009) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. BasicNamingNode. Lookup (BasicNamingNode. Java: 223) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. ApplicationNamingNode. Lookup (ApplicationNamingNode. Java: 132) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. BasicNamingNode. Lookup (BasicNamingNode. Java: 228) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. ApplicationNamingNode. Lookup (ApplicationNamingNode. Java: 132) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
The at weblogic. Jndi. Internal. BasicNamingNode. Lookup (BasicNamingNode. Java: 228) ~ [. Com. Oracle weblogic. Jndi. Jar: 12.2.1.3]
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related