geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-4114) newly created APR HTTPS connector failed to start
Date Wed, 11 Jun 2008 18:44:45 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-4114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604303#action_12604303
] 

Lin Sun commented on GERONIMO-4114:
-----------------------------------

Add the missing getSslPassword method in trunk rev 666775 and branch 2.1 rev 666772.

With this change, I am able to move further into this new error -

10:12:25,562 ERROR [StandardService] Connector.initialize
LifecycleException:  Protocol handler initialization failed: java.lang.Exception: Unable to
load certificate key C:\working\server\target\assembly\var\security\keystores\geronimo-default
(error:0906D06C:PEM routines:PEM_read_bio:no start line)
	at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)

Then I realized the sslCertificateFile isn't right as the keystore file is used here.   So
I downloaded OpenSSL (which is used by the Tomcat APR) windows version from http://www.slproweb.com/products/Win32OpenSSL.html.
  After installing it, i used the demo certificatefile (cacert.pem) and keyfile provided (cakey.pem)
- located at C:\OpenSSL\bin\PEM\demoCA dir.

If I supply only sslCertificateFile in the create APT HTTPS connector portlet, I still got
the above unable to load certificate key error.   After I supply both the sslCertificateFile
 and sslCertificateKeyFile, the above error went away (which makes sense that I need to supply
the certificate and key together).

Then I got the following error:

14:11:08,171 INFO  [Http11AprProtocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0-8081
14:11:08,171 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=eeeeeeee"
LifecycleException:  service.getName(): "null";  Protocol handler start failed: java.lang.Exception:
Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port)
is normally permitted.  
	at org.apache.catalina.connector.Connector.start(Connector.java:1138)

After Changing the port a few times to resolve the port conflict and I was able to get the
connector started ( I used 84431).


> newly created APR HTTPS connector failed to start
> -------------------------------------------------
>
>                 Key: GERONIMO-4114
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4114
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 2.1.1
>            Reporter: Lin Sun
>            Assignee: Lin Sun
>             Fix For: 2.1.2, 2.2
>
>
> Create APR HTTPs connector via admin console with the following parameters:
>      uniqueName: test-apr-https
>      address: localhost
>      port: 8999
>      sslCertificateFile: var/security/keystores/geronimo-default
>      sslPassword: secret
>      sslProtocol: all (default)
>      
>      others remain default.   Click save to save the connector but the connector failed
to start.   
>  errors as below:
>  ------------------------------------------------------------------------
>  18:10:25,916 ERROR [ConnectorPortlet] Unable to retrieve value of property sslPassword
> java.lang.IllegalArgumentException: No such method found (getSslPassword on org.apache.geronimo.tomcat.connector.Http11APRProtocol$$EnhancerByCGLIB$$fea1e4b4)
> 		 at org.apache.geronimo.console.BasePortlet.getProperty(BasePortlet.java:95)
> 		 at org.apache.geronimo.console.webmanager.ConnectorPortlet.doView(ConnectorPortlet.java:311)
> 		 at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> 		 at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> 		 at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
> 		 at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 		 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 		 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 		 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 		 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 		 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
> 		 at org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
> 		 at org.apache.pluto.core.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:101)
> 		 at org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:173)
> 		 at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:152)
> 		 at jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:87)
> 		 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 		 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 		 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 		 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 		 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 		 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
> 		 at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
> 		 at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fforEach_005f0(default_002dtheme_jsp.java:219)
> 		 at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService(default_002dtheme_jsp.java:105)
> 		 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 		 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 		 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 		 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 		 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
> 		 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> 		 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
> 		 at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:151)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 		 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 		 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 		 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 		 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 		 at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
> 		 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> 		 at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
> 		 at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
> 		 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 		 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 		 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 		 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
> 		 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> 		 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 		 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> 		 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> 		 at java.lang.Thread.run(Thread.java:810)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message