Giter Site home page Giter Site logo

Comments (3)

tfonteyn avatar tfonteyn commented on May 28, 2024

Thanks for this :)

I found a couple of issues/causes already:

name attribute is "read-only" which means it should not have been returned by the API I access
=> manually to be removed from these two:

/profile="testp"/subsystem="jca"/workmanager="default"/long-running-threads="default":add(core-threads="50",keepalive-time={"time" => "10","unit" => "SECONDS"},max-threads="50",name="default",queue-length="50")

/profile="testp"/subsystem="jca"/workmanager="default"/short-running-threads="default":add(core-threads="50",keepalive-time={"time" => "10","unit" => "SECONDS"},max-threads="50",name="default",queue-length="50")

Same in the next two, but "thread-pool=x" address can also be present in other sections of the confirguration.
=> same thing, wherever thread-pool is used, remove the name attribute

/profile="testp"/subsystem="batch-jberet"/thread-pool="batch":add(keepalive-time={"time" => "30","unit" => "SECONDS"},max-threads="10",name="batch")
/profile="testp"/subsystem="ejb3"/thread-pool="default":add(keepalive-time={"time" => "100","unit" => "MILLISECONDS"},max-threads="10",name="default")

These are no real surprise to me as similar things happened in AS 7.x; see the source code of the cloner where I deal with exceptions like this. So adding these will be easy enough.

What is worse is after repairing those, and running the batch, I end up with:

...
[[email protected]:9999 / #] run-batch
The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): WFLYCTL0063: Composite operation was rolled back

an no indication anywhere what went wrong. Will dig into this when I have some more time.

Side note: yes, the order is important which is why it has to be in one big batch. Re-ordering the commands .. suffice to say I tried and failed.

from profilecloner.

tfonteyn avatar tfonteyn commented on May 28, 2024

aha....

2016-02-01 15:10:23,432 DEBUG [org.jboss.as.controller.management-operation](management-handler-thread - 4) WFLYCTL0017: Operation ("add") failed - address: ([
("profile" => "testp"),
("subsystem" => "security"),
("security-domain" => "jaspitest"),
("authentication" => "jaspi")
]) - failure description: [
"WFLYCTL0207: Validation failed for auth-modules",
"WFLYCTL0097: Wrong type for module-options. Expected [OBJECT] but was STRING"

from profilecloner.

tfonteyn avatar tfonteyn commented on May 28, 2024
            <security-domain name="jaspitest" cache-type="default">
                <authentication-jaspi>
                    <login-module-stack name="dummy">
                        <login-module code="Dummy" flag="optional"/>
                    </login-module-stack>
                    <auth-module code="Dummy"/>
                </authentication-jaspi>
            </security-domain>

becomes:

/profile="testp"/subsystem="security"/security-domain="jaspitest":add(cache-type="default")
/profile="testp"/subsystem="security"/security-domain="jaspitest"/authentication="jaspi":add(auth-modules=[{code="Dummy",flag=undefined,login-module-stack-ref=undefined,module-options=undefined,module=undefined}])
/profile="testp"/subsystem="security"/security-domain="jaspitest"/authentication="jaspi"/auth-module="Dummy":add(code="Dummy")
/profile="testp"/subsystem="security"/security-domain="jaspitest"/authentication="jaspi"/login-module-stack="dummy":add(login-modules=[{code="Dummy",flag="optional",module=undefined,module-options=undefined}])
/profile="testp"/subsystem="security"/security-domain="jaspitest"/authentication="jaspi"/login-module-stack="dummy"/login-module="Dummy":add(code="Dummy",flag="optional")

Looks like a WildFly bug :( as it should not return those undefined attributes :(

from profilecloner.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.