Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 60140 invoked from network); 16 Oct 2007 18:38:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2007 18:38:21 -0000 Received: (qmail 62663 invoked by uid 500); 16 Oct 2007 18:38:02 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 62633 invoked by uid 500); 16 Oct 2007 18:38:02 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 62622 invoked by uid 99); 16 Oct 2007 18:38:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 11:38:02 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 18:38:05 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IhrIW-00062C-7K for user@geronimo.apache.org; Tue, 16 Oct 2007 11:37:44 -0700 Message-ID: <13239710.post@talk.nabble.com> Date: Tue, 16 Oct 2007 11:37:44 -0700 (PDT) From: MShah To: user@geronimo.apache.org Subject: Re: classes in a web application cannot be found In-Reply-To: <4714F98C.1050609@joyfulnoisewebdesign.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: moni_sparkle@yahoo.com References: <13237740.post@talk.nabble.com> <4714F000.3000403@joyfulnoisewebdesign.com> <13238423.post@talk.nabble.com> <2E203638-F12E-43F9-91E7-3A5DDF470313@yahoo.com> <4714F98C.1050609@joyfulnoisewebdesign.com> X-Virus-Checked: Checked by ClamAV on apache.org I inserted the code to print the context path and content type and both display perfectly when the page is loaded. However I still get a null pointer and it happens in the call to the constructor of P2K6AppPageAdminCtl: System.out.println("Acco = " + UtilsBean.getdate()); System.out.println("context path = " + request.getContextPath()); System.out.println("content type = " + response.getContentType()); portal = new P2K6AppPageAdminCtl(request, response);%> I have System.out debug messages at the top of the controller, but that never gets printed on the geronimo console. Also this application is working perfectly when deployed in weblogic 8.1, but we want to move it to geronimo to test it and I get this error. Any inputs on how to proceed will be much appreciated. Thanks for your input so far. Best regards, Manisha Jay D. McHugh wrote: > > It kind of looks like the problem is that either the 'request' or > 'response' variables is null rather than Geronimo being unable to find > the 'P2k6AppCtl' class. > > Can you check to make sure that those two variable are not null? > > Jay > > David Jencks wrote: >> >> On Oct 16, 2007, at 10:28 AM, MShah wrote: >> >>> >>> The version of Geronimo is 2.0.1. I am deploying it as a war file. >>> >>> The war file gets deployed to the following location: >>> repository\default\p2k6App\1192229987483\p2k6App-1192229987483.war >>> >>> where in I have the META-INF, WEB-INF and jsp files. In the WEB-INF >>> directory I have to folders called classes and lib. In the lib >>> directory I >>> have all the jar files. In the classes directory I have the class >>> files in >>> the appropriate package structured folders. At the level of the classes >>> directory I have the web.xml file as well. >>> >>> The stack trace is as follows: >>> >>> java.lang.NullPointerException >>> which is right when I am instantiating the class like P2k6AppCtl a = new >>> P2k6AppCtl(request, response); >> >> I don't quite understand how this code would produce a NPE rather than >> a ClassNotFoundException or NoClassDefFoundError. Could you explain? >> >> thanks >> david jencks >> >>> >>> Any input on resolving this will be much appreciated. >>> >>> Thanks, >>> Manisha >>> >>> >>> >>> Jay D. McHugh wrote: >>>> >>>> A couple of questions: >>>> >>>> 1) What version of Geronimo are you using? >>>> 2) Are you deploying your application as a WAR or as an EAR? >>>> 3) What is the file layout of your deployment file (the WAR or EAR)? >>>> 4) Do you have a stack trace? >>>> >>>> Jay >>>> >>>> MShah wrote: >>>>> I am deploying a we application using myeclipse, the application gets >>>>> deployed perfectly, however the classes in the WEB-INF/classes >>>>> directory >>>>> cannot be found. The jars in the lib drectory are being loaded >>>>> correctly >>>>> as >>>>> I am referencing a static variable in the jars and it prints out >>>>> perfectly, >>>>> but when one of the class is being instantiated in the jsp page I >>>>> get a >>>>> nullpointer exception. >>>>> >>>>> Any inputs on resolving this will be much appreciated. >>>>> >>>>> Thanks and regards, >>>>> M. Shah >>>>> >>>> >>>> >>> >>> --View this message in context: >>> http://www.nabble.com/classes-in-a-web-application-cannot-be-found-tf4635417s134.html#a13238423 >>> >>> Sent from the Apache Geronimo - Users mailing list archive at >>> Nabble.com. >>> >> >> >> >> > > -- View this message in context: http://www.nabble.com/classes-in-a-web-application-cannot-be-found-tf4635417s134.html#a13239710 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.