tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriano Monteiro <py.adri...@gmail.com>
Subject Re: Problems with servlets
Date Thu, 21 Apr 2005 14:32:17 GMT
Oh man...
I can't believe...

Why the hell those java language developers do that with us? There is
no need of this...
It's sad and painful develop something in JAVA

Regards...

2005/4/21, Molden, Robert (GE Infrastructure) <Robert.Molden@gefanuc.com>:
>         public class Auth extends HttpServlet
> 
> -----Original Message-----
> From: Adriano Monteiro [mailto:py.adriano@gmail.com]
> Sent: Thursday, April 21, 2005 9:31 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Problems with servlets
> 
> Hi guys...
> 
> I was trying to run an application, and I've got the following message:
> 
> 21/04/2005 10:06:33 org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet Auth as unavailable
> 21/04/2005 10:06:33 org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Allocate exception for servlet Auth
> java.lang.IllegalAccessException: Class
> org.apache.catalina.core.StandardWrapper can not access a member of
> class Auth with modifiers ""
>         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
>         at java.lang.Class.newInstance0(Class.java:344)
>         at java.lang.Class.newInstance(Class.java:303)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:750)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> 21/04/2005 10:08:45 org.apache.catalina.core.StandardWrapperValve invoke
> INFO: Servlet Auth is currently unavailable
> 
> What could be the problem?
> The Auth servlet is just a simple test that I'm making, here is its source code:
> 
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
> 
> class Auth extends HttpServlet
>  {
>         public void doGet (HttpServletRequest req, HttpServletResponse res)
>                 throws ServletException, IOException
>          {
>                 String username = req.getParameter ("username");
>                 String password = req.getParameter ("password");
> 
>                 PrintStream browser = new PrintStream (res.getOutputStream());
> 
>                 browser.println ("<html>");
>                 browser.println ("<head><title>Ok...</title></head>");
>                 browser.println ("<body>USerName: " + username + "<br>Password:
" +
> password + "<br></body></html>");
> 
>          }
> 
>  }
> 
> Regards,
> 
> --
> 
> Adriano Monteiro Marques
> www.gopython.com.br
> py.adriano@gmail.com
> 
> I'm FREE... Are you?
> (PYTHON powered)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 

Adriano Monteiro Marques
www.gopython.com.br
py.adriano@gmail.com

I'm FREE... Are you?
(PYTHON powered)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message