Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with weblogic.xml

 
hari gutta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hey, when I am trying to deploy my war I am getting the below exception :

Unable to access the selected application.
Exception in AppMerge flows' progression
Exception in AppMerge flows' progression
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'description@http://xmlns.oracle.com/weblogic/weblogic-web-app weblogic-version@http://xmlns.oracle.com/weblogic/weblogic-web-app security-role-assignment@http://xmlns.oracle.com/weblogic/weblogic-web-app run-as-role-assignment@http://xmlns.oracle.com/weblogic/weblogic-web-app resource-description@http://xmlns.oracle.com/weblogic/weblogic-web-app resource-env-description@http://xmlns.oracle.com/weblogic/weblogic-web-app ejb-reference-description@http://xmlns.oracle.com/weblogic/weblogic-web-app service-reference-description@http://xmlns.oracle.com/weblogic/weblogic-web-app message-destination-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app session-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app jsp-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app auth-filter@http://xmlns.oracle.com/weblogic/weblogic-web-app container-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app charset-params@http://xmlns.oracle.com/weblogic/weblogic-web-app virtual-directory-mapping@http://xmlns.oracle.com/weblogic/weblogic-web-app url-match-map@http://xmlns.oracle.com/weblogic/weblogic-web-app security-permission@http://xmlns.oracle.com/weblogic/weblogic-web-app context-root@http://xmlns.oracle.com/weblogic/weblogic-web-app wl-dispatch-policy@http://xmlns.oracle.com/weblogic/weblogic-web-app servlet-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app work-manager@http://xmlns.oracle.com/weblogic/weblogic-web-app component-factory-class-name@http://xmlns.oracle.com/weblogic/weblogic-web-app logging@http://xmlns.oracle.com/weblogic/weblogic-web-app library-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app fast-swap@http://xmlns.oracle.com/weblogic/weblogic-web-app coherence-cluster-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app' instead of 'resource-env-ref@http://xmlns.oracle.com/weblogic/weblogic-web-app' here in element weblogic-web-app@http://xmlns.oracle.com/weblogic/weblogic-web-app:<null>


I get this error after adding the below statements in weblogic.xml :



I added the below lines in web.xml too :

<resource-ref>
<res-ref-name>jms/QCF/H</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Application</res-auth>
</resource-ref>

Before this the application gets deployed without any exceptions.

Thanks,
Niharika
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that error message is a bit horrendous, but here's the important part of it:

Expected elements ... instead of 'resource-env-ref...


In other words, you inserted that resource-env-ref element in the wrong place. The elements have to be in a particular order (which is defined by the schema, but should be documented). So take it back out, find the documentation which specifies the order of the elements, and put it back in the right place.
 
hari gutta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Paul,
I am working on it. I will post when I found significant improvement.

Regards,
Niharika
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic