Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Unable to compile class for JSP

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I just installed a working WebSphere 4 Application on Websphere 5 (win). Some pages get compiled, other fail. I get the following message:

code:
--------------------------------------------------------------------------------
Error Code: 0Target Servlet: nullError Stack: org.apache.jasper.JasperException: Unable to compile class for JSP D:\WebSphere\AppServer\temp\node\server1\App\App.war\_errorreport.java:14: Class or interface declaration expected. import javax.servlet.*; ^ D:\WebSphere\AppServer\temp\node\server1\App\App.war\_errorreport.java:21: class org.apache.jsp._errorreport must be declared abstract. It does not define void _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) from class com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase. public class _errorreport extends com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase { ^ ...... (and so on)End of error-page:at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:129) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.loadJSP(JspServlet.java:939) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:285) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:321) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:675) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.webapp.WebApp.handleError(WebApp.java:1029) at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:891) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:121) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
--------------------------------------------------------------------------------
Any Ideas???
thanks
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the actual .java file that the App Server creates and see if you can follow the error messages better.
According to the error message, you should be able to find the .java file here:
D:\WebSphere\AppServer\temp\node\server1\App\App.war\_errorreport.java

Also, if you enclose your code in UBB [CODE] tags it will preserve all the whitespace and stuff
If you can't figure out the error message after looking at the .java file -- try stripping down your JSP -- that might help you figure things out. Or try posting it here, maybe we'll be able to spot the error.
Good luck!
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic