Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 88361 invoked from network); 13 Jul 2003 18:32:03 -0000 Received: from rzserv2.fh-lueneburg.de (HELO rzserv2.fhnon.de) (193.174.32.3) by daedalus.apache.org with SMTP; 13 Jul 2003 18:32:03 -0000 Received: from omnibook ([192.168.110.37]) by rzserv2.fhnon.de (8.11.6+Sun/8.9.3) with ESMTP id h6DIW6Q29760 for ; Sun, 13 Jul 2003 19:32:06 +0100 (WEST) Received: from bbowe by omnibook with local (Exim 3.35 #1 (Debian)) id 19blXv-0001Ah-00 for ; Sun, 13 Jul 2003 20:26:03 +0200 Date: Sun, 13 Jul 2003 20:26:03 +0200 From: Bastian Bowe To: "'Cactus Users List'" Subject: Re: NullPointerException with Tomcat Howto Message-ID: <20030713182603.GA2353@omnibook> Mail-Followup-To: Bastian Bowe , 'Cactus Users List' References: <20030712210443.GA13867@omnibook> <000901c3491c$5c78abf0$2502a8c0@vma> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c3491c$5c78abf0$2502a8c0@vma> User-Agent: Mutt/1.3.28i Sender: Bastian Bowe X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Vincent, the problem was probably the Debian GNU/Linux packaging of Tomcat. I had to add grant codeBase "file:${catalina.home}/webapps/cactusTest/WEB-INF/lib/-" { permission java.security.AllPermission; }; to /etc/tomcat4/policy.d/04webapps.policy. (The files in /etc/tomcat4/policy.d will generate /etc/tomcat4/catalina.policy on /etc/init.d/tomcat4 restart) I found that out by using the new commons-logging 1.0.3. That gave me a different Exception. I googled for it and found http://www.mail-archive.com/cactus-user@jakarta.apache.org/msg02026.html Thanks for your help. On Sun, Jul 13, 2003 at 10:54:25AM +0200, Vincent Massol wrote: > Hi Bastian, > > I've personally not had any issue with Tomcat 4.0.3. Normally > commons-logging is quite flexible and would try various configs before > failing. > > I think the best way is to report this to commons-dev and try to find > the solution with the commons-logging folks. I don't think it is related > to Cactus and I'm not expert enough in commons-logging to provide you > right-away with an answer. > > As a trial, can you try to do *exactly* what was in the tomcat howto > (just to verify if it works in your environment)? > > Thanks > -Vincent > > > -----Original Message----- > > From: Bastian Bowe [mailto:BaBowe@gmx.de] > > Sent: 12 July 2003 23:05 > > To: cactus-user@jakarta.apache.org > > Subject: NullPointerException with Tomcat Howto > > > > Hello, > > > > I'm trying to get through the howto_tomcat.html from the Cactus > > documentation. > > > > When running > > > http://localhost:8082/cactusTest/ServletTestRunner?suite=TestSampleServl > et > > (You see I didn't follow the Howto very strictly. But I was really > > carefull) I get the following output: > > ...tomcatstuff... > > org.apache.commons.logging.LogConfigurationException: > > org.apache.commons.logging.LogConfigurationException: > > java.lang.NullPointerException > > at > > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp > l. > > java:509) > > at > > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp > l. > > java:285) > > at > > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp > l. > > java:255) > > at > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381) > > at > > > org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet > Te > > stRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142) > > at > > > org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne > r. > > java;org/apache/cactus/util/log/LogAspect.aj(1k):101) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > ti > > onFilterChain.java:247) > > at > > > org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilt > er > > Chain.java:197) > > at > > > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC > ha > > in.java:176) > > at java.security.AccessController.doPrivileged(Native Method) > > .... > > hope that's enough. > > > > I've found some text about people who wanted to integrate tomcat into > > IDEA. They've had the same (or at least very similar) output. The > > solution was to set > > CATALINA_OPTS="- > > Dorg.apache.commons.logging.LogFactory=org.apache.commons.loggin > > g.impl.LogFactoryImpl" but that didn't solve the problem for me. > > > > I'm using Debian GNU/Linux Woody with Tomcat 4.0.3-3woody2 with j2ee > > 1.3.1 and j2sdk1.4.1_02 > > > > Regards > > -- > > Bastian Bowe > > Sent using Debian GNU/Linux - http://www.debian.org > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org -- Bastian Bowe Sent using Debian GNU/Linux - http://www.debian.org