Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41A7E10B97 for ; Sat, 3 Aug 2013 13:35:18 +0000 (UTC) Received: (qmail 21172 invoked by uid 500); 3 Aug 2013 13:35:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 21106 invoked by uid 500); 3 Aug 2013 13:35:11 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 21097 invoked by uid 99); 3 Aug 2013 13:35:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Aug 2013 13:35:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alots.ssa@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Aug 2013 13:35:03 +0000 Received: by mail-ob0-f179.google.com with SMTP id fb19so2927361obc.38 for ; Sat, 03 Aug 2013 06:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=V4jm8QyuqYV3695sxdQeTqm9M1sFbzaWkYADo2D9+I4=; b=TTFC9z3QS/UC0UCBReJw6nmuNjUdxxsPHZn2BlPRQzkxmtuodBtt5E7fEqJ6Tqa+aq QJC7QzPoVsH0MEUG9osgegkP6DGW98hq3qGwZnBgCT4jJS7O/dZ4pEQ+O0q8MQj4rNeS ff0XX1fuKKGv8m8CsYfR4SSQDIgaOomgNv7lDxJGEQvjwr8a+EyVXEjogzwGUU/v1XWC hEE145lKnkN6FcXP3xSPKn7y7i4OnQsfXRyv1OAzV++7VNj1Y7Z7sTyyjriRqeDZyvrp dd2tRVauxywj8c/JM0H6ol/T7KMeD8zdvBNTRg9N8lDSIi6q3wA082Ls4D2+wtPaCLKQ sb/Q== X-Received: by 10.182.233.137 with SMTP id tw9mr8682161obc.2.1375536882463; Sat, 03 Aug 2013 06:34:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.182.114 with HTTP; Sat, 3 Aug 2013 06:34:22 -0700 (PDT) In-Reply-To: References: From: Alberto SOUZA Date: Sat, 3 Aug 2013 10:34:22 -0300 Message-ID: Subject: Re: javaagent is messing with webapp classpath To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a11c1c556413af204e30b2314 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1c556413af204e30b2314 Content-Type: text/plain; charset=ISO-8859-1 Hi again, the problem is that my agent is generated with same classes that are used inside my webapp. My guess is that tomcat is getting lost with the classloader... On Thu, Aug 1, 2013 at 7:53 PM, Alberto SOUZA wrote: > I see... even if i leave my agent empty? Because i did this test and, just > with the presence of agent, tomcat got lost. And the same agent works fine > in GlassFish(3 and 4) and Jboss(7 and 8). Right now, for some reason, my > impression is that the agent is requesting that every class used for my > application should be in agent jar. For example, if i have a > ServletContextListener, tomcat is forcing the agent to have the jar bundled > in the agent's jar. > > regards > > > > On Thu, Aug 1, 2013 at 7:05 PM, Leon Rosenberg wrote: > >> Hello, >> >> yes, your java agent is probably not well coded :-) >> >> regards >> Leon >> >> >> On Thu, Aug 1, 2013 at 8:33 PM, Alberto SOUZA >> wrote: >> >> > Hi, >> > >> > I have a javaagent that changes some specific classes of my project. >> But, >> > when i start the server using the agent I get a lot of >> > ClassNotFoundException for a lot of classes... Like >> > ServletContextListener. When I don't use the javaagent argument >> everything >> > goes fine. Does anyone have an idea? >> > >> > Thanks!! >> > >> > > --001a11c1c556413af204e30b2314--