Problem starting inspectit agent with wildfly

458 views
Skip to first unread message

Dan ny

unread,
Mar 29, 2018, 5:11:04 PM3/29/18
to inspectIT
Hello,


I have followed instructions :


...and yet it *still* keeps failing to startup with the same logmanager problem.

Does anybody have any experience fixing this issue? Any advice?


All the best,

Dan

Ivan Senic

unread,
Mar 30, 2018, 3:02:14 AM3/30/18
to Dan ny, inspectIT
Are you hitting the same problem as described on the Confluence page? Can you send us a log, just to understand what's happening?

Cheers,
Ivan

--
You received this message because you are subscribed to the Google Groups "inspectIT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inspectit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inspectit/5bdec1de-1234-4a28-a1b5-dca33c8968da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted
Message has been deleted

Dan ny

unread,
Mar 30, 2018, 10:37:17 AM3/30/18
to inspectIT
FYI - this is Wildfly 10.0.1 running on Java 8u162

nohup.log shows the following failure:


=========================================================================


  JBoss Bootstrap Environment


  JBOSS_HOME: /System/wildfly


  JAVA: /System/jdk8/bin/java


  JAVA_OPTS:  -server -Xmx18432m -Xmx18432m -Xmn2048m -XX:AutoBoxCacheMax=10000 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:log/gc.log -XX:CMSInitiatingOccupancyFraction=50 -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=15 -XX:TargetSurvivorRatio=90 -Djava.io.tmpdir=/System/tmp -Xbootclasspath/p:/System/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.4.Final.jar -Djava.util.logging.manager=org.jboss.logmanager.LogManager -javaagent:/home/s1/inspectit-agent.jar -Dinspectit.repository=A.B.C.D:9070 -Dinspectit.agent.name=s1aws_load_1 -agentlib:jdwp=transport=dt_socket,address=17001,server=y,suspend=n


=========================================================================


10:29:33,956 INFO  [rocks.inspectit.agent.java.javaagent.JavaAgent] (main) inspectIT Agent: Starting initialization...

10:29:35.274 [main] INFO rocks.inspectit.agent.java.SpringAgent - Location of inspectit-agent.jar set to: /home/s1/inspectit-agent.jar

10:29:35,259 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]

10:29:35,259 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]

10:29:35,259 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]

10:29:35,262 |-INFO in ch.qos.logback.classic.BasicConfigurator@5454d35e - Setting up default configuration.

10:29:35,297 |-WARN in Logger[rocks.inspectit.agent.java.SpringAgent] - No appenders present in context [default] for logger [rocks.inspectit.agent.java.SpringAgent].


10:29:42,227 INFO  [rocks.inspectit.agent.java.javaagent.JavaAgent] (main) Preloading classes ...

10:29:42,228 INFO  [rocks.inspectit.agent.java.javaagent.JavaAgent] (main) Preloading classes complete...

10:29:42,228 INFO  [rocks.inspectit.agent.java.javaagent.JavaAgent] (main) inspectIT Agent: Initialization complete...

Listening for transport dt_socket at address: 17001

10:29:42,418 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final

java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")

at org.jboss.logmanager.Logger.getLogger(Logger.java:57)

at org.jboss.as.server.Main.main(Main.java:87)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.jboss.modules.Module.run(Module.java:330)

at org.jboss.modules.Main.main(Main.java:505)

10:29:42,544 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1

Ivan Senic

unread,
Mar 30, 2018, 10:51:30 AM3/30/18
to Dan ny, inspectIT
Have you added this line to the the standalone.conf file (if you start with run standalone.sh start script)? I don't see this in your startup parameters and I think it should be there once added. Can you check?

JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager"


--
You received this message because you are subscribed to the Google Groups "inspectIT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inspectit+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ivan Senic

unread,
Mar 30, 2018, 10:55:59 AM3/30/18
to Dan ny, inspectIT
Or just add directly to the startup params:

-Djboss.modules.system.pkgs=org.jboss.logmanager

Dan ny

unread,
Mar 30, 2018, 12:10:49 PM3/30/18
to inspectIT
Well spotted Ivan  :)

Adding the JBOSS_MODULES_SYSTEM_PKGS to the startup params fixed it.  All is well  :)
Reply all
Reply to author
Forward
0 new messages