阅读:11700回复:5
在Linux系统下部署实例,未申请Key,启动时报错,显示部署失败。
在Linux系统下部署实例,未申请Key,启动时报错,显示部署失败。
13:39:46,467 ERROR [BaseModelMBean] Exception invoking method init javax.management.RuntimeErrorException: Error invoking method addChild at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 13:39:46,467 ERROR [BaseModelMBean] Exception invoking method init javax.management.RuntimeErrorException: Error invoking method addChild at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301) at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) at org.jboss.web.WebModule.startModule(WebModule.java:83) Caused by: java.lang.ClassFormatError: Incompatible magic value 1397965893 in class file com/sunsheen/jfids/system/servlet/SystemPageFilter at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:84) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:57) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1064) --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo@32bc7018 { url=file:/usr/local/jboss-4.2.2.GA/server/default/deploy/Skycome.war/ } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init) state: FAILED watch: file:/usr/local/jboss-4.2.2.GA/server/default/deploy/Skycome.war/WEB-INF/web.xml altDD: null lastDeployed: 1444455584834 lastModified: 1444366013000 mbeans: --- MBeans waiting for other MBeans --- ObjectName: jboss.web.deployment:war=Skycome.war,id=851210264 State: FAILED Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init) --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.web.deployment:war=Skycome.war,id=851210264 State: FAILED Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init) |
|
最新喜欢:张浩宇 |
沙发#
发布于:2015-10-10 13:56
|
|
|
板凳#
发布于:2015-10-10 15:08
貌似Linux下需要的是libkey.so文件,启动时报错该文件找不到。
Could not find agent library Key on the library path, with error: libKey.so: cannot open shared object file: No such file or directory |
|
地板#
发布于:2015-10-10 17:29
PS,将Key.so更名为libKey.so添加到Bin目录下,还是报同样的错误。
|
|
4楼#
发布于:2015-10-10 19:32
|
|
|
5楼#
发布于:2016-07-28 11:18
windows下可能是jboss没有配置-agentlib:Key ,具体方法如下图
图片:1.png 图片:2.png |
|
|