After adding prefer-application-package in Weblogic file getting errors











up vote
0
down vote

favorite












I had added the tag like prefer-application-packages in the Weblogic XML file. When I tried build of application I am getting error like below.



<20 Nov, 2018 12:23:53 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor deploywar/WEB-INF/weblogic.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
[java] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
[java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)









share|improve this question
























  • Pleas eprovide at least the error message and the weblogic.xml file.
    – Emmanuel Collin
    Nov 20 at 8:42










  • The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
    – halfer
    Nov 20 at 8:46










  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:46










  • <weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
    – Aslam
    Nov 20 at 9:46










  • Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
    – Emmanuel Collin
    Nov 20 at 10:25

















up vote
0
down vote

favorite












I had added the tag like prefer-application-packages in the Weblogic XML file. When I tried build of application I am getting error like below.



<20 Nov, 2018 12:23:53 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor deploywar/WEB-INF/weblogic.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
[java] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
[java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)









share|improve this question
























  • Pleas eprovide at least the error message and the weblogic.xml file.
    – Emmanuel Collin
    Nov 20 at 8:42










  • The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
    – halfer
    Nov 20 at 8:46










  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:46










  • <weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
    – Aslam
    Nov 20 at 9:46










  • Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
    – Emmanuel Collin
    Nov 20 at 10:25















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I had added the tag like prefer-application-packages in the Weblogic XML file. When I tried build of application I am getting error like below.



<20 Nov, 2018 12:23:53 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor deploywar/WEB-INF/weblogic.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
[java] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
[java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)









share|improve this question















I had added the tag like prefer-application-packages in the Weblogic XML file. When I tried build of application I am getting error like below.



<20 Nov, 2018 12:23:53 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor deploywar/WEB-INF/weblogic.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
[java] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
[java] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)






xml weblogic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 8:45









halfer

14.2k758106




14.2k758106










asked Nov 20 at 7:05









Aslam

43




43












  • Pleas eprovide at least the error message and the weblogic.xml file.
    – Emmanuel Collin
    Nov 20 at 8:42










  • The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
    – halfer
    Nov 20 at 8:46










  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:46










  • <weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
    – Aslam
    Nov 20 at 9:46










  • Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
    – Emmanuel Collin
    Nov 20 at 10:25




















  • Pleas eprovide at least the error message and the weblogic.xml file.
    – Emmanuel Collin
    Nov 20 at 8:42










  • The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
    – halfer
    Nov 20 at 8:46










  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
    – halfer
    Nov 20 at 8:46










  • <weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
    – Aslam
    Nov 20 at 9:46










  • Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
    – Emmanuel Collin
    Nov 20 at 10:25


















Pleas eprovide at least the error message and the weblogic.xml file.
– Emmanuel Collin
Nov 20 at 8:42




Pleas eprovide at least the error message and the weblogic.xml file.
– Emmanuel Collin
Nov 20 at 8:42












The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
– halfer
Nov 20 at 8:46




The error message was hidden in an unformatted set of angle brackets. Please familiarise yourself with the Markdown formatting tools here.
– halfer
Nov 20 at 8:46












Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 20 at 8:46




Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.
– halfer
Nov 20 at 8:46












<weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
– Aslam
Nov 20 at 9:46




<weblogic-web-app xmlns="bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="bea.com/ns/weblogic/weblogic-web-app bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"> <description> TAG Application </description> <jsp-descriptor> <keepgenerated>true</keepgenerated> </jsp-descriptor> <container-descriptor> <prefer-web-inf-classes> <package-name>com.rsa.jsafe.*</package-name> </prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
– Aslam
Nov 20 at 9:46












Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
– Emmanuel Collin
Nov 20 at 10:25






Your weblogic.xml file is not correct. Use either prefer-web-inf-classes tag or package-name but not both at the same time. Refer to this documentation for a correct understanding of this descriptor
– Emmanuel Collin
Nov 20 at 10:25



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387848%2fafter-adding-prefer-application-package-in-weblogic-file-getting-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387848%2fafter-adding-prefer-application-package-in-weblogic-file-getting-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'