开发者

workmanager throws errors in weblogic.xml

开发者 https://www.devze.com 2023-03-07 11:17 出处:网络
I saw no post related to the problem I am facing. I recently added work-manager under weblogic.xml which I think is a DTD file.

I saw no post related to the problem I am facing. I recently added work-manager under weblogic.xml which I think is a DTD file. But as soon as I add this tag into weblogic.xml, I get the following error:

The content of element type "weblogic-web-app" must match "(description?,weblogic-version?,security-role- assignment*,run-as-role-assignment*,reference-descriptor?,session-descriptor?,jsp-descriptor?,auth- filter?,container-descriptor?,charset-params?,virtual-directory-mapping*,url-match- map?,preprocessor*,preprocessor-mapping*,security-permission?,context-root?,wl-dispatch-policy?,servlet- descriptor*,init-as*,destroy-as*)".

Following is a sample weblogic.xml where I made the change:

I am able to successfully deploy my code to weblogic. But I could not test the flow yet. I am on it now. But I am worried if my code changes actually work because I am getting this error.

Am I missing adding any reference to the work-manager?

Documentation shows:

The work开发者_如何转开发-manager element is a sub-element of the <weblogic-web-app> element. You can define the following elements within the work-manager element.

Let me know if I missed anything here.


Here is a valid example:

<?xml version="1.0" encoding="UTF-8"?>

<weblogic-web-app
xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">

    <wl-dispatch-policy>MyWorkManager</wl-dispatch-policy>

    <work-manager>
        <name>MyWorkManager</name>
        <min-threads-constraint>
            <name>MyWorkManager-MinThreads</name>
            <count>50</count>
        </min-threads-constraint>
        <max-threads-constraint>
            <name>MyWorkManager-MaxThreads</name>
            <count>50</count>
        </max-threads-constraint>
    </work-manager>
</weblogic-web-app>
0

精彩评论

暂无评论...
验证码 换一张
取 消