quality@glassfish.java.net

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

From: Judy Tang <Judy.J.Tang_at_Sun.COM>
Date: Tue, 26 Aug 2008 21:33:45 -0700

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
>
>
>