Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 23141 invoked from network); 9 Nov 2001 16:20:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 16:20:49 -0000 Received: (qmail 13966 invoked by uid 97); 9 Nov 2001 16:19:58 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 13950 invoked by uid 97); 9 Nov 2001 16:19:57 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 13939 invoked from network); 9 Nov 2001 16:19:57 -0000 Message-ID: <28F05913385EAC43AF019413F674A01734AFC7@OCCLUST04EVS1.ugd.att.com> From: "Marx, Mitchell E (Mitch), ALSVC" To: Tomcat Users List Subject: RE: Classloader question: (WAS: How to send email) Date: Fri, 9 Nov 2001 10:28:32 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tomcat 4.0.1/mod_jk (from Tomcat 3.3)/Apache 1.3.20/Java 1.3.1_01 Solaris. Here's an example, where the VM starts in /usr/local/tomcat/config/mmarx. Maybe it is the sun ClassLoader. Any idea how to stop this? - first occurrence (many times) Denied access of /usr/local/tomcat/config/mmarx/javax/sql/DataSource.class from com.att.wn.system.BIPSSecurityManager-> com.att.wn.system.BIPSSecurityManager-> java.io.File-> sun.misc.URLClassPath$FileLoader-> sun.misc.URLClassPath-> java.net.URLClassLoader$1-> java.net.URLClassLoader-> java.lang.ClassLoader-> sun.misc.Launcher$AppClassLoader-> java.lang.ClassLoader-> java.lang.ClassLoader-> java.lang.Class-> org.apache.catalina.startup.ClassLoaderFactory-> org.apache.catalina.startup.ClassLoaderFactory-> org.apache.catalina.startup.Bootstrap - last occurence, many accesses of org/apache/... Denied access of /usr/local/tomcat/config/mmarx/org/apache/catalina/connector/HttpResponseFac ade.class from com.att.wn.system.BIPSSecurityManager-> com.att.wn.system.BIPSSecurityManager-> java.io.File-> sun.misc.URLClassPath$FileLoader-> sun.misc.URLClassPath-> java.net.URLClassLoader$1-> java.net.URLClassLoader-> java.lang.ClassLoader-> sun.misc.Launcher$AppClassLoader-> java.lang.ClassLoader-> org.apache.catalina.loader.StandardClassLoader-> org.apache.catalina.loader.StandardClassLoader-> org.apache.catalina.loader.StandardClassLoader-> org.apache.catalina.loader.StandardClassLoader-> java.lang.ClassLoader-> org.apache.catalina.connector.HttpResponseBase-> org.apache.ajp.tomcat4.Ajp13Response-> org.apache.ajp.tomcat4.Ajp13Connector-> org.apache.ajp.tomcat4.Ajp13Processor-> org.apache.ajp.tomcat4.Ajp13Connector-> org.apache.ajp.tomcat4.Ajp13Connector-> org.apache.catalina.core.StandardService-> org.apache.catalina.core.StandardServer-> org.apache.catalina.startup.Catalina-> org.apache.catalina.startup.Catalina-> org.apache.catalina.startup.Catalina-> org.apache.catalina.startup.Bootstrap The worst offender is JspServlet, which accesses the top level Fri Nov 09 09:52:15 EST 2001|BIPSSecurityManager.checkRWX|unknown|WARNING:76 - Denied access of . and /usr/local/tomcat/config/mmarx from com.att.wn.system.BIPSSecurityManager-> com.att.wn.system.BIPSSecurityManager-> java.io.File-> sun.tools.java.ClassPathEntry-> sun.tools.java.ClassPath-> sun.tools.java.ClassPath-> sun.tools.java.Package-> sun.tools.java.Package-> sun.tools.javac.BatchEnvironment-> sun.tools.java.Environment-> sun.tools.java.Environment-> sun.tools.java.Environment-> sun.tools.java.Environment-> sun.tools.java.Imports-> sun.tools.javac.SourceClass-> sun.tools.java.ClassDeclaration-> sun.tools.javac.Main-> org.apache.jasper.compiler.SunJavaCompiler-> org.apache.jasper.compiler.Compiler-> org.apache.jasper.servlet.JspServlet-> org.apache.jasper.servlet.JspServlet$JspServletWrapper-> org.apache.jasper.servlet.JspServlet$JspServletWrapper-> org.apache.jasper.servlet.JspServlet-> org.apache.jasper.servlet.JspServlet-> javax.servlet.http.HttpServlet-> org.apache.catalina.core.ApplicationFilterChain-> org.apache.catalina.core.ApplicationFilterChain-> org.apache.catalina.core.ApplicationFilterChain$1-> org.apache.catalina.core.ApplicationFilterChain-> org.apache.catalina.core.StandardWrapperValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.ContainerBase-> org.apache.catalina.core.StandardContextValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.valves.CertificatesValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.ContainerBase-> org.apache.catalina.core.StandardContext-> org.apache.catalina.core.StandardHostValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.valves.ErrorDispatcherValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.valves.ErrorReportValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.ContainerBase-> org.apache.catalina.core.StandardEngineValve-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.StandardPipeline-> org.apache.catalina.core.ContainerBase-> org.apache.ajp.tomcat4.Ajp13Processor-> org.apache.ajp.tomcat4.Ajp13Processor-> java.lang.Thread 2001-11-09 10:23:20 ServletPath: /HttpPing.jsp 2001-11-09 10:23:20 PathInfo: null 2001-11-09 10:23:20 RealPath: /usr/local/tomcat/config/mmarx/webapps /ROOT/HttpPing.jsp 2001-11-09 10:23:20 RequestURI: /HttpPing.jsp 2001-11-09 10:23:20 QueryString: null 2001-11-09 10:23:20 Request Params: 2001-11-09 10:23:20 Classpath according to the Servlet Engine is: /usr/local/tomcat/config/mmarx/webapps/ROOT/WEB-INF/classes/: /usr/local/tomcat/classes/: /usr/local/tomcat/lib/jasper-runtime.jar: /usr/local/tomcat/lib/naming-factory.jar: /usr/local/tomcat/lib/jasper-compiler.jar: /usr/local/tomcat/common/classes/: /usr/local/tomcat/common/lib/naming-resources.jar: /usr/local/tomcat/common/lib/jta.jar: /usr/local/tomcat/common/lib/jdbc2_0-stdext.jar: /usr/local/tomcat/common/lib/servlet.jar: /usr/local/tomcat/common/lib/tyrex-0.9.7.0.jar: /usr/local/tomcat/common/lib/activation.jar: /usr/local/tomcat/common/lib/naming-common.jar: /usr/local/tomcat/common/lib/xerces.jar: /usr/local/tomcat/common/lib/mail.jar Mitchell Evan Marx mmarx@att.com AT&T IP Network Configuration & Provisioning Development Phone: 732-420-2350 Pager: 1-888-858-7243 PIN 134940 http://storefront.metrocall.com/metrocall/sendamsg.asp -----Original Message----- From: Craig R. McClanahan [mailto:craigmcc@apache.org] Sent: Thursday, November 08, 2001 7:51 PM To: Tomcat Users List Subject: Re: Classloader question: (WAS: How to send email) On Thu, 8 Nov 2001, Marx, Mitchell E (Mitch), ALSVC wrote: > Date: Thu, 8 Nov 2001 08:59:29 -0500 > From: "Marx, Mitchell E (Mitch), ALSVC" > Reply-To: Tomcat Users List > To: Tomcat Users List > Subject: Classloader question: (WAS: How to send email) > > > Speaking of classloaders, why is the directory where the VM starts added to > the classpath? I use a customized, strict SecurityManager and it shows > Tomcat trying to access files outside the areas listed in the URL below and > the CLASSPATH I specify. > Which version of Tomcat are you using? I don't see where this happens on any version of the 4.x tree -- the only things that catalina.sh puts on the classpath for me are bootstrap.jar and tools.jar. Have you also verified that it's actually Tomcat trying to do the outside references? Walking your way up the stack trace is a good way to figure that out. If so, a bug report (prefereably with a reproducible test case) would be appreciated: http://nagoya.apache.org/bugzilla/ > Mitchell Evan Marx mmarx@att.com > AT&T IP Network Configuration & Provisioning Development > Craig > -----Original Message----- > From: Janek Bogucki [mailto:janekdb@yahoo.co.uk] > Sent: Wednesday, November 07, 2001 7:46 PM > To: Tomcat Users List > Subject: Re: How to send email > > > The Class Loader HOW-TO details the various > classloaders available in Tomcat 4.0 > > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html > > > --- Siomara Pantarotto wrote: > > If I am not wrong... I think TC4 ignores the class > > path. > > Try to put the jar files inside jdk1.3.1\jre\lib\ext > > > > Here I use 3 jar files: mail.jar,activation.jar and > > smtp.jar > > > > CAn someone help in this question and confirm if TC4 > > ignores the > > classpath???? Thanks > > > > Siomara > > > > > > >From: "Barry White" > > >Reply-To: "Tomcat Users List" > > > > >To: "Tomcat Users List" > > > > >Subject: Re: How to send email > > >Date: Wed, 7 Nov 2001 15:35:49 -0500 > > > > > >I was able to get A SendMail example working > > correctly. I installed > > >JavaMail, JAF, and placed mail.jar and > > activation.jar in the /lib directory > > >of Tomcat. I then added javamail.jar and jaf.jar > > to my CLASSPATH. Next I > > >used a sample JSP page (tutorial) that I found on > > the net to send a email, > > >which worked great. Everything is great... yes? > > NO :( > > > > > >The sendmail example that comes with Tomcat still > > doesn't work. I get the > > >same error messages... nothing has changed. > > >Is this example just broken somewhere in the config > > files? > > > > > >Thanks, > > >Barry > > > > > >----- Original Message ----- > > >From: "Siomara Pantarotto" > > >To: > > >Sent: Wednesday, November 07, 2001 2:16 PM > > >Subject: Re: How to send email > > > > > > > > > > Yes > > > > > > > > You need mail.jar, activation.jar and smtp.jar > > packages in order to deal > > > > with emails in your application. > > > > > > > > Check my website for an example: > > > > > > > > www.geocities.com/hisiomara (under tutorials) > > > > > > > > good luck > > > > > > > > sio > > > > > > > > > > > > >From: "Barry White" > > > > >Reply-To: "Tomcat Users List" > > > > > > >To: "Tomcat-Users" > > > > > > >Subject: How to send email > > > > >Date: Wed, 7 Nov 2001 14:18:16 -0500 > > > > > > > > > >I am trying to get the send mail example to run > > on TC 4.0 (win2k). I > > >have > > > > >edited my server.xml file as so: > > > > > > > > > > > > > > > > type="javax.mail.Session"/> > > > > > > > > > > > > > > > mail.smtp.host > > > > > mail.charter.net > > > > > > > > > > > > > > > > > > > >I have changed no other configuration files, > > and have restarted Tomcat > > > > >several times. > > > > > > > > > >Do I need to install any other Java packages > > other than the JDK? > > > > > > > > > >I get the following errors when trying to run > > the example: > > > > > > > > > >ENCOUNTERED EXCEPTION: > > javax.mail.SendFailedException: Sending failed; > > > > >nested exception is: > > javax.mail.MessagingException: Could not connect > > >to > > > > >SMTP host: localhost, port: 25; nested > > exception is: > > > > >java.net.ConnectException: Connection refused: > > connect > > > > >javax.mail.SendFailedException: Sending failed; > > > > > nested exception is: > > > > > javax.mail.MessagingException: Could not > > connect to SMTP host: > > >localhost, > > > > >port: 25; > > > > > nested exception is: > > > > > java.net.ConnectException: Connection > > refused: connect > > > > > at > > javax.mail.Transport.send0(Transport.java:219) > > > > > at > > javax.mail.Transport.send(Transport.java:81) > > > > > at > > SendMailServlet.doPost(SendMailServlet.java:75) > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:1145) > > > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) > > > > > at > > > > > > > > > > >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio > > >n > > > > >FilterChain.java:247) > > > > > at > > > > > > > > > > >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC > > >h > > > > >ain.java:193) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j > > >a > > > > >va:243) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: > > >5 > > > > >66) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > > > > > at > > > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j > > >a > > > > >va:215) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: > > >5 > > > > >66) > > > > > at > > > > > > > > > > >org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas > > >e > > > > >.java:472) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: > > >5 > > > > >64) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > > > > > at > > > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:16 > > >4 > > > > >) > > > > > at > > > > > > > > > > >org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: > > >5 > > > > >66) > > > === message truncated === > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page from News and Sport to Email and > Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: