quality@glassfish.java.net

Re: Issue 4946 - Servlet using ant api fails on GFv3 TP2

From: Preetam Deshpande <preetamd_at_gmail.com>
Date: Wed, 27 Aug 2008 10:34:16 -0700

Hi Judy,

Thanks for your response.
I used latest v3 promote build and could deploy the application and
access it successfully.

The issue no longer seems to be existing with v3 prelude version.
Please let me know how to submit the same.

Thanks
Preetam

On Tue, Aug 26, 2008 at 9:33 PM, Judy Tang <Judy.J.Tang_at_sun.com> wrote:
> Hi Preetam,
>
> Thanks so much for creating a test for a issue. Would you please try the
> latest v3 promote build. In the
> FishCAT FAQ, A.2, it shows you where to get the latest promote build.
>
> http://wiki.glassfish.java.net/Wiki.jsp?page=FishCATFAQ
>
> "The same application works on v2 environment without any issues. Thus
> I tried to look for ant libraries on v3. On v2 ant libraries were
> present under glassfish home directory which is missing in v3-tp2."
>
> Let's see if any one can help you with your ant library question.
>
> Thanks,
> Judy
> Preetam Deshpande wrote:
>
>> Hi group,
>>
>> I have created a glassfish environment on linux with glassfish v3-tp2,
>> I tried to create a test for defect
>> (https://glassfish.dev.java.net/issues/show_bug.cgi?id=4946)
>>
>> I could successfully deploy an application with a servlet that uses
>> ant api to read the file contents. Further when I tried to access this
>> servlet from browser I encountered the following error message in the
>> browser:
>>
>> <snip>
>> exception
>> javax.servlet.ServletException: PWC1244: Servlet execution threw an
>> exception
>> root cause
>> java.lang.NoClassDefFoundError: org/apache/tools/ant/util/FileUtils
>> </snip>
>>
>> Further the server logs had more details with exception trace
>> <snip>
>>
>> [#|2008-08-18T00:14:31.973-0700|INFO|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=Thread-4;|Loading
>> application antapiusage at /antapiusage|#]
>>
>>
>> [#|2008-08-18T00:14:31.994-0700|INFO|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=12;_ThreadName=Thread-4;|Deployment
>> of antapiusage done is 243 ms|#]
>>
>>
>> [#|2008-08-18T00:14:44.307-0700|INFO|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|Servlet
>> processing do get..|#]
>>
>>
>> [#|2008-08-18T00:14:44.322-0700|SEVERE|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=Thread-4;|StandardWrapperValve[antapiusageservlettest]:
>> PWC1406: Servlet.service() for servlet antapiusageservlettest threw
>> exception
>> java.lang.NoClassDefFoundError: org/apache/tools/ant/util/FileUtils
>> at
>> antapiusage.AntApiUsageServlet.getFileURL(AntApiUsageServlet.java:152)
>> at antapiusage.AntApiUsageServlet.doGet(AntApiUsageServlet.java:84)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
>> </snip>
>>
>> The same application works on v2 environment without any issues. Thus
>> I tried to look for ant libraries on v3. On v2 ant libraries were
>> present under glassfish home directory which is missing in v3-tp2.
>>
>> Could you please have a look into it and help me with some inputs. Let
>> me know if you need more information.
>>
>> Looking forward to hear from you.
>>
>> Thanks
>> Preetam
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>



-- 
Thanks
Preetam
"There is no limit to hard work"