Interesting. Are you trying to access a static method
 from an *instance* of the class?  I got a similar
 looking error message from doing that. What I don't
 understand is WHY?  On my desktop JVM I can access
 any methods (static or not) from an instance of a
 class, but can't do so in a JSP.


--- Martin Smith <[EMAIL PROTECTED]> wrote:
> Gladly.  Thanks for helping - -
>
> *root cause*
>
> javax.servlet.ServletException: WP.SS.HelloStatic()Ljava/lang/String;
>         at
> 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
>         at org.apache.jsp.WP_jsp._jspService(WP_jsp.java:293)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
>         at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
>         at 
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
>         at java.lang.Thread.run(Thread.java:536)
>
> ------------------------------------------------------------------------
>
>
>       Apache Tomcat/4.1.18
>
>
>
> Martin wrote:
>
> >Could you tell us what the message below ''root cause" says
> >Regards,
> >-Martin
> >----- Original Message -----
> >From: "Martin Smith" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, February 02, 2003 9:19 PM
> >Subject: Using own classes from jsp
> >
> >
> >
> >
> >>This is a very basic question, but :
> >>
> >>Why can't I access a java class (not bean) I made from a JSP?
> >>
> >>I'm running Catalina 4.1.18 standalone and j2sdk1.4.1_01.
> >>
> >>The class is in a package, under my webapps' WEB-INF/classes directory.
> >>
> >>I'm importing the package in the jsp.
> >>
> >>The class is definitely being found, since I can get it to complain
> >>about attempted static access to a dynamic method by introducing a
> >>deliberate error.
> >>
> >>Here's the first few lines of the "root cause" error message (I'm trying
> >>to return a String from static method HelloStatic; other variations
> >>return a similar message) :
> >>
> >>javax.servlet.ServletException: WP.SS.HelloStatic()Ljava/lang/String;
> >>        at
> >>
> >>
> >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> >l.java:533)
> >
> >
> >>        at org.apache.jsp.WP_jsp._jspService(WP_jsp.java:293)
> >>
> >>Can someone put me out of my misery?
> >>
> >>Thanks,
> >>
> >>Martin
> >>
> >>
> >>
> >>
> >===========================================================================
> >
> >
> >>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >>
> >>
> >JSP-INTEREST".
> >
> >
> >>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >>
> >>
> >DIGEST".
> >
> >
> >>Some relevant archives, FAQs and Forums on JSPs can be found at:
> >>
> >> http://java.sun.com/products/jsp
> >> http://archives.java.sun.com/jsp-interest.html
> >> http://forums.java.sun.com
> >> http://www.jspinsider.com
> >>
> >>
> >>
> >
> >
> >
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to