Skip to content

mochaslave/How-to-launch-Wildfly-9.0-with-AspectJ-1.8-LTW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

#Environment requirement

#Run with Eclipse Modify VM arguments

  • replace this line
    -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager,com.manageengine
  • append this line -javaagent:${ASPECTJ_HOME}/lib/aspectjweaver.jar -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:${WILDFLY_HOME}/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.0.Final.jar

Hint: This configuration require fill absolute path, in my case:
${ASPECTJ_HOME} is /Users/LD-Mac/aspectj1.8
${WILDFLY_HOME} is /Users/LD-Mac/wildfly-9.0.0.Final

open launch configuration


Run with CLI

Modify ${WILDFLY_HOME}/bin/standalone.conf

  • find if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
    replace below code after that
    JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,org.jboss.logmanager,com.manageengine"
  • find if [ "x$JAVA_OPTS" = "x" ]; then
    add below three line code after that
    JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.0.Final.jar"
    JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
    JAVA_OPTS="$JAVA_OPTS -javaagent:$ASPECTJ_HOME/lib/aspectjweaver.jar"

Hint: You must config your aspectj home directory to $ASPECTJ_HOME.


Test launch

  1. Launch your Wildfly with upon configuration.
  2. Send a http POST to http://localhost:8080/cms-scheduler/cron/execute with these parameters.
    • workflowTypeName=Helloflow
    • workflowTypeVersion=0.2
    • cronPattern=*/20 * * * * *

    Hint: Recommend use Postman

About

How to launch Wildfly 9.0 with AspectJ 1.8 LTW

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published