JkCoyoteHandler with SSL

2003-08-15 Thread Ben Sifuentes
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.(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.(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.(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.(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.(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.(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'
19:46:56,291 INFO  [Engine] actio

RE: Tomcat Administration Webapp - HTML Prototype Available

2001-11-02 Thread Ben Sifuentes

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:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




receiving java.net.SocketException

2001-10-31 Thread Ben Sifuentes

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:


java.lang.NoSuchMethod

2001-10-27 Thread Ben Sifuentes

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

2001-05-30 Thread Ben Sifuentes

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




JDBC DataSource setting

2001-05-29 Thread Ben Sifuentes

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

2001-05-08 Thread Ben Sifuentes

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





RE: Handler Thread Problem

2001-05-02 Thread Ben Sifuentes

Sure can. Here is the info you requested.

Verions & System Info:
Apache 1.3.14
Tomcat 1.0
Windows NT 4.00.1381


A little about the setup:

My server is currently using a VirtualHost configuration running 3 separate
applications. Each using a separate port for Tomcat and utilizing there own
threadpool. Also I'm currently running Apache from port 80

Application 1 - using port 8007
Application 2 - using port 8008
Application 3 - using port 8009


Again thanks for the response!!!
-Ben

-Original Message-
From: kevin seguin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Handler Thread Problem


can you provide some more info?  like, tomcat version, os, etc.?  i want
to say i saw something like this a long time ago, and it was a problem
in mod_jk somewhere.  but trying to remember past last week is difficult
at best :)

Ben Sifuentes wrote:
>
> Can somebody take the time to help me figure out this problem. I've tried
> several times to get this problem resolved but with no luck. You guys are
my
> last hope!!
>
> Thanks,
> -Ben
>
> -Original Message-
> From: Ben Sifuentes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 1:41 PM
> To: Tomcat-Dev
> Subject: Handler Thread Problem
>
> Anybody know why I'm getting this?
>
> I get th following exception on the server side:
>
> Redirecting to /recruiting/jsp/Login.jsp...
> Redirecting to /recruiting/jsp/Login.jsp?showLoginError=true...
> HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> java.io.IOException: Stream broken
> at
>
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
> 2ConnectionHandler.java:386)
> at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:134)
> at
> org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
> at java.lang.Thread.run(Thread.java:484)
>
> Thanks,
> -Ben




RE: Handler Thread Problem

2001-05-02 Thread Ben Sifuentes

Can somebody take the time to help me figure out this problem. I've tried
several times to get this problem resolved but with no luck. You guys are my
last hope!!

Thanks,
-Ben

-Original Message-
From: Ben Sifuentes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:41 PM
To: Tomcat-Dev
Subject: Handler Thread Problem


Anybody know why I'm getting this?

I get th following exception on the server side:

Redirecting to /recruiting/jsp/Login.jsp...
Redirecting to /recruiting/jsp/Login.jsp?showLoginError=true...
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java:386)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:134)
at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
at java.lang.Thread.run(Thread.java:484)

Thanks,
-Ben




Handler Thread Problem

2001-05-01 Thread Ben Sifuentes

Anybody know why I'm getting this?

I get th following exception on the server side:

Redirecting to /recruiting/jsp/Login.jsp...
Redirecting to /recruiting/jsp/Login.jsp?showLoginError=true...
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java:386)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:134)
at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
at java.lang.Thread.run(Thread.java:484)

Thanks,
-Ben