wood burning stoves*
The moose likes BEA/Weblogic and the fly likes Problem with weblogic.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem with weblogic.xml" Watch "Problem with weblogic.xml" New topic
Author

Problem with weblogic.xml

hari gutta
Ranch Hand

Joined: Mar 03, 2013
Posts: 33

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Mar 03, 2013
Posts: 33
Thanks for the reply Paul,
I am working on it. I will post when I found significant improvement.

Regards,
Niharika
 
wood burning stoves
 
subject: Problem with weblogic.xml
 
Similar Threads
Spring @Transaction Rollback problem
JNDI datasource lookup problem
Weblogic datasource how to config?
JNDI DataSource lookup problem
Unknown JMS Destination type