Troubleshooting
Problem
Error during yantra deployment 'Unable to access the selected application'.
Symptom
This error comes up on the Weblogic console while deploying Yantra as a EAR mode. The error text is 'Unable to access the selected application'
Error Message
Web logic Console log:
2009-05-27 12:38:34,621:WARN :[ACTIVE] ExecuteThread: '0' for queue:
'weblogic.kernel.Default (self-tuning)': YCPTemplateManager.getAPITemplate:
Default template not found for listInvAvailSafetyFactor [admin]: YCPTemplateM
<May 27, 2009 12:38:59 PM GMT+05:30> <Error> <J2EE> <BEA-160197> <Unable
to load descriptor C:\temp\1\appcgen_yantra.ear/META-INF/application.xml of
module yantra.ear. The error is weblogic.descriptor.DescriptorException: VA
problem: cvc-attribute.4: The value '5' does not equal the fixed value '1.4' of attribute 'version':<null>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:229)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:216)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:376)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:277)
at weblogic.application.compiler.CompilerCtx.setApplicationDescriptor(CompilerCtx.java:127)
at weblogic.application.compiler.AppcUtils.setDDs(AppcUtils.java:141)
Resolving The Problem
Resolution is simple. This is just a mismatch in version. So, we change the version no from 1.4 to 5 in Application.xml. after that it works.
This file is located at yantra.ear/META-INF/application.xml of module yantra.ear as it is clearly visible in the error
This is the line in the xml which needs a change <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
Historical Number
TRB2872
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21560807