File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes (Why do I get this error somtimes) NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "(Why do I get this error somtimes) NoClassDefFoundError" Watch "(Why do I get this error somtimes) NoClassDefFoundError" New topic
Author

(Why do I get this error somtimes) NoClassDefFoundError

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I have a process that calls a servlet. This process can send multiple requests. Something in the neighboorhood of maybe 500 at a time to the Servlet. The Servlet can process the request in about 10 secs or less. The process that calls the Servlet is located on a different box. I am working in a Tomcat enviornment. I get te following stack trace maybe 10% of the time or less. I call the servlet about 250K times a day. But I only get this error 10% or less of the time. My guess is that somehow, I am overloading something to the point where it returns an error that no ClassDefFoundError The class does exists AND each call follows the same routine, so it is not the case where when I get these errors that they are different from what I have been doing with the other 90%.

Please Help.



2006-03-01 00:14:13 StandardWrapperValve[PreRateRatingServlet]: Servlet.service(
) for servlet PreRateRatingServlet threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
/ssl
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:809)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:635)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
)
at intltech.autopay.beans.ECQSClientBean.processResponse(Unknown Source)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I'm going to move this to the Tomcat forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are your calls being made over HTTPS? (SSL)?
Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
They are not. The URL looks like this:

String uri = "http://myserver.com";
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12755
    
    5
You have not supplied two vital bits of data:
1. the Java version
2. the Tomcat version
Bill
(PS does your server.xml even define a SSL Connector?)
Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
JDK jdk142_01
tomcat 4.1.30

No ssl stuff in the server.xml
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: (Why do I get this error somtimes) NoClassDefFoundError
 
Similar Threads
Web services and hosted sites issue!!
(Why do I get this error somtimes) NoClassDefFoundError
Getting ERROR 503 Service not Deployed
Tomcat Server Error: java.lang.NoSuchMethodError
error code problem