geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lasantha Ranaweera <lasan...@opensource.lk>
Subject Re: Error adding HTTPS Listener
Date Mon, 12 Mar 2007 06:08:33 GMT
Please create a JIRA issue and let me know. I think I found the cause of
the error and have a small patch for it.

I tested the above scenario in Tomcat version with latest source code
and looks working fine (I didn't test for Client Auth mode since it will
depends on my browser information).

Thanks,
Lasantha
Karthiga Ratnam wrote:
> Sure I'll open a JIRA for this. I do get an error in Tomcat as well.
> I'm not a developer I'm afraid so can't fix it :D
>
> Thanks
>
> Karthiga
>
> On 3/7/07, David Jencks <david_jencks@yahoo.com> wrote:
>> The portlet needs to be updated to work with the jetty6 gbean
>> wrappers.  Can you open a jira for this?  If you would like to fix it
>> too that would be even better :-)  I don't see the tomcat error, but
>> there's a good chance the portlet needs to be updated for tomcat 6 as
>> well.
>>
>> thanks
>> david jencks
>>
>> On Mar 7, 2007, at 4:46 AM, Karthiga Ratnam wrote:
>>
>> > Hi All,
>> >
>> > As part of my documentation work, I'm currently upgrading "Certificate
>> > Properties File Realm" as a part of adminstering certificates to v2.0
>> > M3.
>> >
>> > I have a couple of issues right now. The following tasks have been
>> > done without any problem with the help of existing CA in Geronimo.
>> >
>> > Create keystore and certificate
>> > Create a Certificate Signing Request (CSR) and import CA reply
>> > Import trusted certificates
>> >
>> > But when it comes to "Adding an HTTPS listener with client
>> > authentication" I keep getting an error for both Jetty and Tomcat (two
>> > different errors).
>> >
>> > Thanks
>> > Karthiga
>> >
>> > Jetty error
>> > 10:48:09,363 INFO  [ConfirmCAHandler] CA Setup is successful.
>> > 10:49:22,374 INFO  [ConfirmClientCertHandler] Certificate with serial
>> > number '2' issued to CN=localhost,OU=Geronimo,O=Apache,L=LL,ST=ST,C=LK
>> > 10:57:13,253 ERROR [JettyManagerImpl] Unable to add GBean
>> > org.apache.geronimo.kernel.config.InvalidConfigException: Cound not
>> > add GBean org.apache.geronimo.configs/jetty6/2.0-M3/car?
>> > ServiceModule=org.apache.geronimo.configs/jetty6/2.0-M3/
>> > car,j2eeType=GBean,name=SSL_Client_Authentication
>> > to configuration org.apache.geronimo.configs/jetty6/2.0-M3/car
>> >        at
>> > org.apache.geronimo.kernel.config.EditableKernelConfigurationManager.a
>> > ddGBeanToConfiguration(EditableKernelConfigurationManager.java:122)
>> >        at
>> > org.apache.geronimo.kernel.config.EditableKernelConfigurationManager.a
>> > ddGBeanToConfiguration(EditableKernelConfigurationManager.java:61)
>> >        at
>> > org.apache.geronimo.kernel.config.EditableKernelConfigurationManager
>> > $$FastClassByCGLIB$$daeffab3.invoke(<generated>)
>> >        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> >        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
>> > (FastMethodInvoker.java:38)
>> >        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
>> > (GBeanOperation.java:127)
>> >        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
>> > (GBeanInstance.java:820)
>> >        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
>> > (RawInvoker.java:57)
>> >        at
>> > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
>> > (RawOperationInvoker.java:35)
>> >        at
>> > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
>> > (ProxyMethodInterceptor.java:96)
>> >        at
>> > org.apache.geronimo.kernel.config.EditableConfigurationManager$
>> > $EnhancerByCGLIB$$f2362049.addGBeanToConfiguration(<generated>)
>> >        at org.apache.geronimo.jetty6.JettyManagerImpl.addConnector
>> > (JettyManagerImpl.java:98)
>> >        at org.apache.geronimo.jetty6.JettyManagerImpl$
>> > $FastClassByCGLIB$$f2d5e245.invoke(<generated>)
>> >        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>> >        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
>> > (FastMethodInvoker.java:38)
>> >        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
>> > (GBeanOperation.java:127)
>> >        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
>> > (GBeanInstance.java:820)
>> >        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
>> > (RawInvoker.java:57)
>> >        at
>> > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
>> > (RawOperationInvoker.java:35)
>> >        at
>> > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
>> > (ProxyMethodInterceptor.java:96)
>> >        at org.apache.geronimo.management.geronimo.WebManager$
>> > $EnhancerByCGLIB$$f289d8f.addConnector(<generated>)
>> >        at
>> > org.apache.geronimo.console.util.PortletManager.createWebConnector
>> > (PortletManager.java:254)
>> >        at
>> > org.apache.geronimo.console.webmanager.ConnectorPortlet.processAction(
>> > ConnectorPortlet.java:107)
>> >        at org.apache.pluto.core.PortletServlet.dispatch
>> > (PortletServlet.java:229)
>> >        at org.apache.pluto.core.PortletServlet.doGet
>> > (PortletServlet.java:158)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>> >        at org.apache.pluto.core.PortletServlet.service
>> > (PortletServlet.java:153)
>> >       at org.mortbay.jetty.servlet.ServletHolder.handle
>> > (ServletHolder.java:491)
>> >        at
>> > org.apache.geronimo.jetty6.InternalJettyServletHolder.handle
>> > (InternalJettyServletHolder.java:62)
>> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> > (ServletHandler.java:367)
>> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> > (SecurityHandler.java:185)
>> >        at
>> > org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle
>> > (JettySecurityHandler.java:133)
>> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> > (SessionHandler.java:181)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle
>> > (ThreadClassloaderHandler.java:46)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle
>> > (ComponentContextHandler.java:47)
>> >        at
>> > org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle
>> > (InstanceContextHandler.java:67)
>> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> > (ContextHandler.java:689)
>> >        at org.mortbay.jetty.webapp.WebAppContext.handle
>> > (WebAppContext.java:391)
>> >       at org.mortbay.jetty.servlet.Dispatcher.include
>> > (Dispatcher.java:192)
>> >        at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke
>> > (PortletInvokerImpl.java:120)
>> >        at org.apache.pluto.invoker.impl.PortletInvokerImpl.action
>> > (PortletInvokerImpl.java:68)
>> >        at org.apache.pluto.PortletContainerImpl.processPortletAction
>> > (PortletContainerImpl.java:164)
>> >        at
>> > org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPo
>> > rtletAction(PortletContainerWrapperImpl.java:82)
>> >        at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>> >        at org.mortbay.jetty.servlet.ServletHolder.handle
>> > (ServletHolder.java:491)
>> >        at
>> > org.apache.geronimo.jetty6.InternalJettyServletHolder.handle
>> > (InternalJettyServletHolder.java:62)
>> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> > (ServletHandler.java:367)
>> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> > (SecurityHandler.java:185)
>> >        at
>> > org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle
>> > (JettySecurityHandler.java:133)
>> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> > (SessionHandler.java:181)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle
>> > (ThreadClassloaderHandler.java:46)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle
>> > (ComponentContextHandler.java:47)
>> >        at
>> > org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle
>> > (InstanceContextHandler.java:58)
>> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> > (ContextHandler.java:689)
>> >        at org.mortbay.jetty.webapp.WebAppContext.handle
>> > (WebAppContext.java:391)
>> >       at org.mortbay.jetty.handler.ContextHandlerCollection.handle
>> > (ContextHandlerCollection.java:146)
>> >        at org.mortbay.jetty.handler.HandlerCollection.handle
>> > (HandlerCollection.java:114)
>> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
>> > (HandlerWrapper.java:139)
>> >        at org.mortbay.jetty.Server.handle(Server.java:285)
>> >        at org.mortbay.jetty.HttpConnection.handleRequest
>> > (HttpConnection.java:457)
>> >        at org.mortbay.jetty.HttpConnection
>> > $RequestHandler.headerComplete(HttpConnection.java:751)
>> >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>> >        at org.mortbay.jetty.HttpParser.parseAvailable
>> > (HttpParser.java:209)
>> >        at org.mortbay.jetty.HttpConnection.handle
>> > (HttpConnection.java:357)
>> >        at org.mortbay.jetty.bio.SocketConnector$Connection.run
>> > (SocketConnector.java:217)
>> >        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
>> > (BoundedThreadPool.java:475)
>> > Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
>> > Could not inject configuration data into the GBean
>> > org.apache.geronimo.configs/jetty6/2.0-M3/car?
>> > ServiceModule=org.apache.geronimo.configs/jetty6/2.0-M3/
>> > car,j2eeType=GBean,name=SSL_Client_Authentication
>> >        at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>
>> > (GBeanInstance.java:375)
>> >        at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean
>> > (BasicKernel.java:354)
>> >        at
>> > org.apache.geronimo.kernel.config.EditableKernelConfigurationManager.a
>> > ddGBeanToConfiguration(EditableKernelConfigurationManager.java:90)
>> >        ... 68 more
>> > Caused by: org.apache.geronimo.kernel.NoSuchAttributeException:
>> > Unknown attribute "minThreads" in gbean
>> > org.apache.geronimo.configs/jetty6/2.0-M3/car?
>> > ServiceModule=org.apache.geronimo.configs/jetty6/2.0-M3/
>> > car,j2eeType=GBean,name=SSL_Client_Authentication
>> >        at
>> > org.apache.geronimo.gbean.runtime.GBeanInstance.getAttributeByName
>> > (GBeanInstance.java:790)
>> >        at
>> > org.apache.geronimo.gbean.runtime.GBeanInstance.setAttribute
>> > (GBeanInstance.java:739)
>> >        at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>
>> > (GBeanInstance.java:370)
>> >        ... 70 more
>> > 10:57:13,259 ERROR [Servlet] Exception caught:
>> > java.lang.NullPointerException
>> >        at
>> > org.apache.geronimo.console.webmanager.ConnectorPortlet.processAction(
>> > ConnectorPortlet.java:108)
>> >        at org.apache.pluto.core.PortletServlet.dispatch
>> > (PortletServlet.java:229)
>> >        at org.apache.pluto.core.PortletServlet.doGet
>> > (PortletServlet.java:158)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>> >        at org.apache.pluto.core.PortletServlet.service
>> > (PortletServlet.java:153)
>> >       at org.mortbay.jetty.servlet.ServletHolder.handle
>> > (ServletHolder.java:491)
>> >        at
>> > org.apache.geronimo.jetty6.InternalJettyServletHolder.handle
>> > (InternalJettyServletHolder.java:62)
>> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> > (ServletHandler.java:367)
>> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> > (SecurityHandler.java:185)
>> >        at
>> > org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle
>> > (JettySecurityHandler.java:133)
>> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> > (SessionHandler.java:181)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle
>> > (ThreadClassloaderHandler.java:46)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle
>> > (ComponentContextHandler.java:47)
>> >        at
>> > org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle
>> > (InstanceContextHandler.java:67)
>> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> > (ContextHandler.java:689)
>> >        at org.mortbay.jetty.webapp.WebAppContext.handle
>> > (WebAppContext.java:391)
>> >       at org.mortbay.jetty.servlet.Dispatcher.include
>> > (Dispatcher.java:192)
>> >        at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke
>> > (PortletInvokerImpl.java:120)
>> >        at org.apache.pluto.invoker.impl.PortletInvokerImpl.action
>> > (PortletInvokerImpl.java:68)
>> >        at org.apache.pluto.PortletContainerImpl.processPortletAction
>> > (PortletContainerImpl.java:164)
>> >        at
>> > org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPo
>> > rtletAction(PortletContainerWrapperImpl.java:82)
>> >        at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>> >        at org.mortbay.jetty.servlet.ServletHolder.handle
>> > (ServletHolder.java:491)
>> >        at
>> > org.apache.geronimo.jetty6.InternalJettyServletHolder.handle
>> > (InternalJettyServletHolder.java:62)
>> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> > (ServletHandler.java:367)
>> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> > (SecurityHandler.java:185)
>> >        at
>> > org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle
>> > (JettySecurityHandler.java:133)
>> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> > (SessionHandler.java:181)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle
>> > (ThreadClassloaderHandler.java:46)
>> >        at
>> > org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle
>> > (ComponentContextHandler.java:47)
>> >        at
>> > org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle
>> > (InstanceContextHandler.java:58)
>> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> > (ContextHandler.java:689)
>> >        at org.mortbay.jetty.webapp.WebAppContext.handle
>> > (WebAppContext.java:391)
>> >       at org.mortbay.jetty.handler.ContextHandlerCollection.handle
>> > (ContextHandlerCollection.java:146)
>> >        at org.mortbay.jetty.handler.HandlerCollection.handle
>> > (HandlerCollection.java:114)
>> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
>> > (HandlerWrapper.java:139)
>> >        at org.mortbay.jetty.Server.handle(Server.java:285)
>> >        at org.mortbay.jetty.HttpConnection.handleRequest
>> > (HttpConnection.java:457)
>> >        at org.mortbay.jetty.HttpConnection
>> > $RequestHandler.headerComplete(HttpConnection.java:751)
>> >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>> >        at org.mortbay.jetty.HttpParser.parseAvailable
>> > (HttpParser.java:209)
>> >        at org.mortbay.jetty.HttpConnection.handle
>> > (HttpConnection.java:357)
>> >        at org.mortbay.jetty.bio.SocketConnector$Connection.run
>> > (SocketConnector.java:217)
>> >        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
>> > (BoundedThreadPool.java:475)
>>
>>
>




Mime
View raw message