Error while running Java service wrapper for JBoss AS 7

柔情痞子 提交于 2019-12-02 07:06:26

I'm not sure which post to answer on since it's been asked 3 times, but I'll do it on this one :-)

First of all that class path doesn't look right. None of those log4j libraries should be in your class path. In fact in future releases those are going away and will be pointed to different libraries in jboss-modules. The server class path should be figured out by jboss-modules.

Also this bit -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl isn't needed and could cause a problem.

Where did you come up with this configuration BTW?

Naytzyrhc

[ coming from here: Problems using java service wrapper with jboss 7 ]

Please take a look at wrapper.app.parameter.2:

wrapper.app.parameter.2=%JBOSS_HOME%\jboss-modules.jar

I think this messes up the parameter parsing, leading to an IllegalArgumentException. Therefore, please remove this line and try again.

Furthermore, as James R. Perkins already pointed out, org.jboss.logging.Logger.pluginClass shouldn't be set. Your class path is also probably not necessary or even a bad idea to set log4j libraries into the classpath (with Jboss).

Lastly, the following property also needs attention:

wrapper.java.additional.9-Djboss.server.default.config=standalone-full-ACE2.xml

please note the missing equal sign.

cheers,

edit after the question was edited:

this is an exception caused because a native library wasn't found. Presumably your ocijdbc dll. Where is the file located? you can configure the locations, the JVM will look for native(jni) libraries using the wrapper.java.library.path property .

Currently, the following locations are specified:

wrapper.java.library.path.1=%OG_HOME%bin wrapper.java.library.path.2=%JBOSS_HOME%\lib

path.1 looks a bit suspicious, since there is no file separator('\'), like it is on path.2 or any place OG_HOME was used in the conf file...

hopes this helps you out.

hi, the Wrapper is pinging the JVM by default every 5sec, which is a completely normal operation. This will also only show up in your log file in debug mode. Once you switch to another loglevel, it shouldn't appear in the log file. what are you meaning by service is not installed? Once your JBoss AS runs fine in console, you can install it as service using either the Install-App.bat file or running:

.\wrapper.exe -i ..\conf\wrapper.conf 

hope this helps you out.

cheers,

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!