Armando, Here is my first thought. An exception is thrown because http://www.java.sun is an invalid URL. Try it in your browser. I think the url you're looking for is: http://java.sun.com Have fun, --Isaac Sparrow -------------------------------------- Staff Engineer / Webmaster VisiComp, Inc http://www.visicomp.com ----- Original Message ----- From: "Armando Carreon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 13, 2000 5:43 PM Subject: SendRedirect exception trouble... > Hi all !! > > Does anybody know why using this code: > response.sendRedirect("http://www.java.sun"); > throws me an exception ? .. > > java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream > read at: java.net.SocketInputStream.socketRead(Native Method) .. etc ... > > Before this line I have just a response.setContentType("text/html"); > > It doesn`t work with Netscape 4.7, with explorer 5 the exception doesn`t appear . > !! > > Any help appreciated ! > > > Rick Goeltz wrote: > > > > would you share a copy of the servlet runner you have working in VADD > > > > Below is a URL to an article that describes how to run Tomcat within > > VisualAge for Java (VAJ). It is written for the free version of VAJ, which > > has a 750 class limit. This is a good read, even if you implement your > > installation differently. > > > > http://sheldonwosnick.tripod.com/Tomcat/Tomcat31Release.html > > > > There is no "one way" to configure VAJ for servlets, Tomcat, and your > > app. Next, I'll try to describe what I do (my notes may not be accurate > > due to changes over time): > > > > . Install Tomcat and have it running standalone with your app. This is > > important because we are going to use the same ./conf. > > > > . In VAJ, create a project named Servlet. > > > > . Import into the Servlet project the following jars (classes and resources): > > . servlet.jar > > . webserver.jar > > . jasper.jar > > > > At this point, there should be no errors listed under the Problems tab. If > > something is missing, go to tomcat/lib to find it. > > > > If necessary, add (for 3.2, 3.1 slightly different): > > . jaxp.jar > > . parser.jar > > > > . org.apache.tomcat.startup.Tomcat > > . Include your app's project in the classpath > > . Go to the Program tab and add a property > > . tomcat.home=c:/Programs/Tomcat > > . On the Classpath tab > > . Add servlet.jar and jasper.jar to the classpath > > > > Optional: edit ./conf/server.xml and remove the path from each > > <logger. Therefore, the logs will be managed in the VAJ console window, > > very handy. > > > > If you are running Struts: > > > > . org.apache.tomcat.startup.Tomcat > > . Add to the classpath app/WEB-INF/classes for each app that uses Struts > > > > Run org.apache.tomcat.startup.Tomcat and check the log(s) at the > > console. Optional, clear the console for future reference. Now hit your > > page(s) with the browser. > > > > At this point, you have a sub-second incremental compile and test cycle, > > plus an interactive debugger ;) > > > > I don't debug JSP because I put very little Java in JSP pages ;) > > > > If you have questions and/or additions/corrections, please send them > > directly to me at [EMAIL PROTECTED], not to the list, and we'll post a summary. > > > > Thanks. > > > > Rick > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
