Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Something is going very wrong with my TOMCAT / WTP e JSP
Something is going very wrong with my TOMCAT / WTP e JSP [message #165327] Wed, 29 March 2006 20:44 Go to next message
Eclipse User
Originally posted by: angelogalvao.gmail.com

I don't kwon if this happen with someone...

I have my web project in eclipse 3.1.2 with wtp 1.0.1 - 200602171228, runnig in tomcat 5.5.16, and my JSP don't compile...

I look for everything and i'dont find nothing about...

PS: my JAVA_HOME it's right...


look teh exeception


<b>IN BROWSER:</b>

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspExcepti on(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:572)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.ArrayIndexOutOfBoundsException: -2
org.eclipse.jdt.internal.compiler.parser.Parser.consumeBinar yExpression(Parser.java:1324)
org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule( Parser.java:5960)
org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8492)
org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8657)
org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8622)
org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Pa rser.java:7420)
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:289)
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:315)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:403)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



<b>AND IN CONSOLE</b>

java.lang.ArrayIndexOutOfBoundsException: -2
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeBinar yExpression(Parser.java:1324)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule( Parser.java:5960)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8492)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8657)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8622)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Pa rser.java:7420)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:289)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:315)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:403)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
java.lang.ArrayIndexOutOfBoundsException: -2
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeBinar yExpression(Parser.java:1324)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule( Parser.java:5960)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8492)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8657)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8622)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Pa rser.java:7420)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:289)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:315)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:403)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
29/03/2006 17:40:47 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ArrayIndexOutOfBoundsException: -2
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeBinar yExpression(Parser.java:1324)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule( Parser.java:5960)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8492)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8657)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:8622)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Pa rser.java:7420)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:289)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:315)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTComp iler.java:403)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 7)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
at org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)




<b>MY JSP</b>

A
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #165358 is a reply to message #165327] Thu, 30 March 2006 13:39 Go to previous messageGo to next message
Marc Adams is currently offline Marc Adams
Messages: 15
Registered: July 2009
Junior Member
Angelo,

I think this is more of an issue with your JSP code. However it didn't
make it in your last post. All I got was the compile error. Could you try
and post your JSP code again?
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #165367 is a reply to message #165358] Thu, 30 March 2006 13:46 Go to previous messageGo to next message
Eclipse User
Originally posted by: angelogalvao.gmail.com

MY JSP:

A

just that....



but i resolve the problem... Something that i dont understand. Maybe it's problem with tomcat or with AspectJ...


I have to put the aspectJ in commons/lib for the DBCP work, and i just copy every lib os aspectj 1.5 and put in the commons/lib directory of tomcat. In this proccess i copy the aspectj.jar too e THIS make the JSP don't compile , i don't understand why. O.o
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #165419 is a reply to message #165367] Thu, 30 March 2006 20:17 Go to previous messageGo to next message
Chris Gage is currently offline Chris Gage
Messages: 73
Registered: July 2009
Member
Your Tomcat must have access to a Java SDK not just a JRE...
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #165451 is a reply to message #165419] Thu, 30 March 2006 23:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: dumpster.schoenhaber.de

Chris Gage wrote:

> Your Tomcat must have access to a Java SDK not just a JRE...

Tomcat 5.5 doesn't need a JDK.

Regards
mks
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #168094 is a reply to message #165451] Sun, 30 April 2006 13:27 Go to previous messageGo to next message
Eclipse User
Originally posted by: ruthenio.gmail.com

I have the same problem and I donĀ“t know how to resolve, I ask some help.
I have WTP 1.0.1, Tomcat 5.5.17. and java 1.5. I had a problem with aspectjtools.jar and changed by aspectjtools-1.5.0.jar, my old problem was fixed , but now this problem is happening:

java.lang.ArrayIndexOutOfBoundsException: -2
org.eclipse.jdt.internal.compiler.parser.Parser.consumeBinar yExpression(Parser.java:1324)

my JSP is listed bellow

someone could say what I have to do ?

Thanks a lot.


<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Success !!</title>
</head>
<body>

success !!! <br>
<c:out value="${sessionScope.codigo}" /><br>
<c:out value="${sessionScope.nome}" /><br>

</body>
</html>
Re: Something is going very wrong with my TOMCAT / WTP e JSP [message #168102 is a reply to message #168094] Sun, 30 April 2006 13:29 Go to previous message
Eclipse User
Originally posted by: ruthenio.gmail.com

my jsp


<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>        
    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sucesso !!</title>
</head>
<body>

  sucesso !!! <br>
  <c:out value="${sessionScope.codigo}" /><br>
  <c:out value="${sessionScope.nome}" /><br>
  
  
  


</body>
</html>

Previous Topic:export to war with module dpendencies
Next Topic:how to see servlet source code of a jsp page in eclipse
Goto Forum:
  


Current Time: Thu Sep 18 05:50:57 GMT 2014

Powered by FUDForum. Page generated in 0.04984 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software