Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment error in Weblogic12.2.1  RSS feed

 
Lakshmipathi Aveti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

While deploying the ear in Weblogic 12.2.1 server. I am getting the below mentioned exception.....

<Oct 27, 2016 3:31:14 PM IST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "MyApplication".
weblogic.application.ModuleException: weblogic.application.naming.EnvironmentException: [J2EE:160223]The resource-env-ref..... declared in the standard descriptor or annotation has no JNDI name mapped to it. The resource-env-ref must be mapped to a JNDI name using the resource-env-description element of the weblogic proprietary descriptor or corresponding annotation.

Caused By: weblogic.application.naming.EnvironmentException: [J2EE:160223]The resource-env-ref......... declared in the standard descriptor or annotation has no JNDI name mapped to it. The resource-env-ref must be mapped to a JNDI name using the resource-env-description element of the weblogic proprietary descriptor or corresponding annotation.


Please help on this.......... thanks in Advance.....!!!

 
Rob Spoor
Sheriff
Posts: 21019
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

The message says that you have a resource-env-ref value that isn't the JNDI name of anything available. Can you show us your web.xml?
 
Lakshmipathi Aveti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,

Please find the shared file.


Note : Same ear is working in 12.1.3 version and it is not working in 12.2.1 version.

 
Rob Spoor
Sheriff
Posts: 21019
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing in there that should cause any errors. Do you also have any ejb-jar.xml files or other XML files that contain any resource-env-ref elements? Can you show the contents of these elements?

If you post any code (snippets), please Use Code Tags next time. I've added them for you this time.
 
Lakshmipathi Aveti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,

resource-env-ref tag is not available in my entire source.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!