java.lang.Exception:未指定证书文件或文件格式无效

时间:2014-03-18 11:49:20

标签: java apache tomcat deployment jboss

通过jboss 5.1.1进行部署时,我遇到了以下错误:

2014-03-18 08:44:57,834 ERROR [org.apache.coyote.http11.Http11AprProtocol] Error initializing endpoint
java.lang.Exception: No Certificate file specified or invalid file format
        at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:660)
        at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:106)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:821)
        at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:313)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
        at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

3 个答案:

答案 0 :(得分:7)

我已经解决了这个问题,就像这样做:

  1. 转到Tomcat安装目录

  2. 找到server.xml

  3. "HTTP/1.1"标记中的协议从"org.apache.coyote.http11.Http11NioProtocol"更改为<Connector>

答案 1 :(得分:0)

对于将来运行此线程的任何人,对于JBoss 5.1.2,我必须将协议设置为org.apache.coyote.http11.Http11Protocol,org.apache.coyote.http11 .Http11NioProtocol不存在。< / p>

答案 2 :(得分:0)

找到server.xml(在此文件夹结构下 - jboss-4.2.3.GA \ server \ ..app文件夹名称.. \ deploy \ jboss-web.deployer),然后从{{1}更改协议标记中的HTTP/1.1

经过org.apache.coyote.http11.Http11NioProtocol

的测试