LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2010, 08:11 AM   #1
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Rep: Reputation: 18
tomcat jsp issue


hi i sucessfully installed tomcat 5.5.28 , i get the default browser page also i am able to execute the Servlet Examples but when i try to execute the jsp examples i get the following error

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924)
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:44)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.28 logs.


please help its urgent for me
 
Old 04-25-2010, 05:04 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You've got a library (.jar file) mismatch somewhere.

Here are a couple of examples, Googling for your particular error message:

http://www.myeclipseide.com/PNphpBB2...ic-t-6369.html

http://software.itags.org/apache/55829/

http://lists.apple.com/archives/Java.../msg00254.html

STRONG SUGGESTIONS:
1. If you've got GJC Java ... then *uninstall* it

I strongly recommend you install only the Sun JDK (along with the corresponding Sun JRE); preferably 1.6 or higher.

2. Do a search-and-destroy mission for any old copies of servlet.jar or friends you might have on your system:
Quote:
find / -name "servlet*jar" -print 2>/dev/null
3. Carefully check your CLASSPATH, web.xml, IDE project settings and anything else that might be picking up old/incorrect library versions.

'Hope that helps .. PSM

Last edited by paulsm4; 04-25-2010 at 05:20 PM.
 
Old 04-26-2010, 12:44 AM   #3
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
how do i install jdk with jre
they get installed as two separate folders
which path to i give for JAVA_HOME
 
Old 04-26-2010, 12:53 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
JAVA_HOME most probably in /usr/java/jdk.version
 
Old 04-26-2010, 01:07 AM   #5
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
hi paulsm4 suggested me to install JDK with jre how do i install it
when i install jdk the path is /usr/java/jdk1.6.0_20
and the path for jre is /usr/java/jre1.6.0_20
so how do i do this what will be the envireoment variable in this case
 
Old 04-26-2010, 01:09 AM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Pointing to the JDK should be sufficient.

I don't know your distro, but this link provides a lot of good information if you have any problems configuring Java itself:

http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/

And please don't forget the other steps I recommended:

2. Look for any old copies of servlet.jar or friends you might have on your system:

find / -name "servlet*jar" -print 2>/dev/null

3. Carefully check your CLASSPATH, web.xml, IDE project settings and anything else that might be picking up old/incorrect library versions.

Last edited by paulsm4; 04-26-2010 at 01:14 AM.
 
Old 04-26-2010, 01:14 AM   #7
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
still the same no change the Servlet Examples execute but not the jsp examples. also if i write my own jsp code for test it executes but not my main application which is also in java
th output of the command below
find / -name "servlet*jar" -print 2>/dev/null
/usr/share/java/servletapi5.jar
/usr/share/java/servlet.jar
/usr/local/tomcat/server/lib/servlets-webdav.jar
/usr/local/tomcat/server/lib/servlets-default.jar
/usr/local/tomcat/server/lib/servlets-invoker.jar
/usr/local/tomcat/server/lib/servlets-cgi.renametojar
/usr/local/tomcat/server/lib/servlets-ssi.renametojar
/usr/local/tomcat/common/lib/servlet-api.jar
/usr/local/tomcat/common/lib/servlet.jar
/usr/local/tomcat/webapps/customerrelations/WEB-INF/lib/servlet.jar
/usr/local/tomcat/webapps/bss/WEB-INF/lib/servlet.jar
/var/lib/hsqldb/lib/servlet.jar
how do i know which are old

Last edited by fernfrancis; 04-26-2010 at 01:16 AM.
 
Old 04-26-2010, 09:50 PM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. You can figure out which files are which using "ls -l". Files in the same package will likely have the same dates; older files are from older libraries.

2. Q: did you look for GJC (a suggestion in my first post)?
Q: If you found it, did you uninstall it?

3. MOST IMPORTANT:
It sounds like some jsp's and/or servlets are working, and some aren't.
Q: Could you please be as specific as possible about what's working vs what's not? Post code, if at all possible.

Thank you in advance .. PSM

PS:
Please specify, too:
* Your distro and version
* Whether you got your Tomcat 5.5.28 from your distro's package manager, or whether you built it yourself

PPS:
It couldn't hurt to check your Tomcat log, if you haven't already. Here's an example from mine:
Quote:
cd /var/log/tomcat5
less catalina.out =>
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
...
INFO: Find registry server-registry.xml at classpath resource
25-Apr-10 3:06:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15167 ms

Last edited by paulsm4; 04-26-2010 at 09:56 PM.
 
Old 04-27-2010, 04:51 AM   #9
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
thanx a lot problem solved
it swas sumethign to do with my custom code if i remove it out from the webapps folder tomcat seems to be working fine will all inbuild exampples working
there was a bug in my application which was looping around causing the problem
thanx a lot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat jsp problem shan_nathan Linux - Software 1 12-28-2007 02:17 PM
Distro of choice for Tomcat and JSP Gattuso Linux - Newbie 8 07-17-2007 03:48 PM
trying JSP with tomcat Anand Kiran Programming 1 01-16-2007 05:35 AM
New to JSP and the Tomcat Container PATFRA Programming 1 06-28-2006 07:37 PM
tomcat jsp examples 404 treycarroll Linux - Software 1 04-21-2006 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration