JkCoyoteHandler with SSL
While using Apache2.0.47 and Tomcat 4.1.24 integrated with JBOSS 3.2.1 on a Win2000 box. I get the following exception from the Tomcat JkCoyoteHandler when making a https call If I hit the ok button several times when it pops up the Select your Certificate box in windows it processes the request as you can see by the output I'm able to correctly process the SSL information being sent across the wire. The Certificate is a pk7 which was built from x509 Any help with this issue would be greatly appreciated. I've struggled long and hard with the SSL communication between Apache and Tomcat and it looks like I'm very close to having it. Except for the following error. One last thing: mod_sll.so (came with the Apache2.0 distribution) mod_jdk_2.0.46.dll 19:43:29,503 INFO [Server] JBoss (MX MicroKernel) [3.2.1 (build: CVSTag=JBoss_3 _2_1 date=200305041533)] Started in 1m:39s:313ms 19:44:49,248 ERROR [JkCoyoteHandler] Certificate convertion failed java.security.cert.CertificateException: Unable to initialize, java.io.IOExcepti on: DerInputStream.getLength(): lengthTag=127, too big. at sun.security.x509.X509CertImpl.init(X509CertImpl.java:289) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Facto ry.java:94) at java.security.cert.CertificateFactory.generateCertificate(Certificate Factory.java:389) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:395) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapte r.java:310) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22 1) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:619) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too b ig. at sun.security.util.DerInputStream.getLength(DerInputStream.java:502) at sun.security.util.DerInputStream.getLength(DerInputStream.java:476) at sun.security.util.DerValue.init(DerValue.java:233) at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:358) at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1608) at sun.security.x509.X509CertImpl.init(X509CertImpl.java:286) ... 13 more . . 19:45:12,001 INFO [Engine] CoyoteAdapter Requested cookie session id is 01BD9D C9B2EF687EE90F8FAD8147B49F 19:45:12,001 ERROR [JkCoyoteHandler] Certificate convertion failed java.security.cert.CertificateException: Unable to initialize, java.io.IOExcepti on: DerInputStream.getLength(): lengthTag=102, too big. at sun.security.x509.X509CertImpl.init(X509CertImpl.java:289) at sun.security.provider.X509Factory.engineGenerateCertificate(X509Facto ry.java:94) at java.security.cert.CertificateFactory.generateCertificate(Certificate Factory.java:389) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:395) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapte r.java:310) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22 1) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:619) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=102, too b ig. at sun.security.util.DerInputStream.getLength(DerInputStream.java:502) at sun.security.util.DerInputStream.getLength(DerInputStream.java:476) at sun.security.util.DerValue.init(DerValue.java:233) at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:358) at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1608) at sun.security.x509.X509CertImpl.init(X509CertImpl.java:286) ... 13 more 19:46:56,281 INFO [Engine] action: Processing a POST for /logon 19:46:56,291 INFO [Engine] action: Setting locale 'en_US'
RE: Tomcat Administration Webapp - HTML Prototype Available
I looked at the mocked up admin tool and didn't see anything for setting up virtual hosts configurations. -Ben -Original Message- From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig R. McClanahan Sent: Friday, November 02, 2001 7:18 PM To: [EMAIL PROTECTED] Subject: Tomcat Administration Webapp - HTML Prototype Available Some of the user interface folks at Sun were kind enough to build a mockup of what an Administration Webapp for Tomcat 4 might look like. You can see the mockup for yourself at: http://jakarta.apache.org/~craigmcc/TomcatAdminPrototype/ Please take a look and provide feedback to TOMCAT-DEV to guide the development of this application. A couple of notes: * The mockup uses a fancy JavaScript implementation of a tree control in the left frame. We would probably want to use something that wasn't so browser-dependent in the real application. * None of the Available Actions options actually do anything - this is just a model to give people a feel for how navigation would work. Craig McClanahan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
receiving java.net.SocketException
Can someone please tell me what is happening here: 2001-10-31 21:39:46 - Ctx() : IOException in R( /) - java.net.SocketException: C onnection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.tomcat.modules.server.Http10.doWrite(Unknown Source) at org.apache.tomcat.modules.server.HttpResponse.doWrite(Unknown Source) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown Source) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Unknown Source) at org.apache.tomcat.core.OutputBuffer.flush(Unknown Source) at org.apache.tomcat.core.OutputBuffer.close(Unknown Source) at org.apache.tomcat.core.Response.finish(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection( Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2001-10-31 21:39:46 - ErrorHandler: Error loop for R( /) error java.net.SocketEx ception: Connection aborted by peer: socket write error I have a jsp that brings up a popup window and then closes it once the user hits the submit button to send the data. It looks like the error happens when the call self.close() happens. The jsp is list below: script language=JavaScript function windowOpen() { WinId = window.open('','newwin','toolbar=no,location=no,directories=no,status=no,men ubar=no,resizable=no,copyhistory=no,scrollbars=no,width=300,height=150,top=2 00,left=300'); if (!WinId.opener) WinId.opener = self; Text = 'form '; Text += 'onSubmit=opener.location=\'/bce/servlet/PurchReq?userID=\' + userID.value + \'passwd=\' + passwd.value;self.close()'; Text += 'div align=centercenterpstrongUserID\/strongnbsp;nbsp :input type=text name=userID size=20\/p\/center\/div'; Text += 'div align=centercenterpstrongPassword\/strong :input type=password name=passwd size=20\/p\/center\/div'; Text += 'div align=centercenterp'; Text += 'input type=submit value=Submit name=B1nbsp;'; Text += 'input type=reset value=Reset name=B2'; Text += '\/p\/center\/div'; Text += '\/form'; WinId.document.open(); WinId.document.write(Text); WinId.document.close(); } windowOpen(); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.lang.NoSuchMethod
I'm getting a java.lang.NoSuchMethod error when executing the following: // Retrieve the context for this object HttpSession session = req.getSession(); ServletContext context = session.getServletContext(); The error seems to be happening on the call to getServletContext() The Class that this incures in is instantiated from a servlet and passed the HttpServletRequest on the call to execute(...) method. The Class is defined as so: class MainCommand implements Command { private String next; public MainCommand(String next) { this.next = next; } public String execute(HttpServletRequest req) throws CommandException { // Retrieve the context for this object HttpSession session = req.getSession(); ServletContext context = session.getServletContext(); return next; } } Does any one have any clue why this would be happening? The call according to the JDOC is valid. -Ben
JDBC DataSource setting
Does Tomcat 3.2.1 support setting a JDBC DataSource I know that I've seen messages about Tomcat 4.0 supporting it? If so how do I go about setting this up Tomcat 3.2.1? -Ben
FW: Handler Thread Problem
Kevin, I wanted to take the timeout to thanks you for your help with solving this problem. I had been trying for several weeks to resolve this. YOUR the MAN The information you gave me was the clue I needed to fix this problem. It's working perfectly!! Again Thank you. -Ben