geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MShah <moni_spar...@yahoo.com>
Subject Re: classes in a web application cannot be found
Date Tue, 16 Oct 2007 19:36:49 GMT

I have a System.out.println as the very first line in the constructor and
that never gets called.  When I invoke the jsp all I get is a NullPointer
Exception, there is no other exception on the geronimo console.  Any
feedback will be much appreciated.

Best regards,
Manisha 


Kevan Miller wrote:
> 
> 
> On Oct 16, 2007, at 1:37 PM, 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?
> 
> Agreed. Would seem that the NPE must be within the constructor itself  
> or in methods invoked by the constructor.
> 
> Manisha can you provide the stack trace of the NPE?
> 
> --kevan
> 
> 

-- 
View this message in context: http://www.nabble.com/classes-in-a-web-application-cannot-be-found-tf4635417s134.html#a13240989
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message