473,508 Members | 2,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Tomcat 6.0

118 New Member
Hi,

i am first installing the tomcat 5.5 in my hosting server system and created the one folder(like test) in webapps and place all the jsp files.And also created the another folder(like test2) and place all related files in that.

Now i give the url as http://localhost:8080/test/sample.jsp

http://localhost:8080/test1/home.jsp

Both are working fine.

Now i installed tomcat 6.0 and move the all the files in tomcat 5.5 into tomcat 6.0

Then i give the url as http://localhost:8080/test/sample.jsp

And when i give the another url as

http://localhost:8080/test1/home.jsp

it shows the error messages as

Expand|Select|Wrap|Line Numbers
  1.  
  2. type Exception report
  3.  
  4. message
  5.  
  6. description The server encountered an internal error () that prevented it from fulfilling this request.
  7.  
  8. exception
  9.  
  10. javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
  11.     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
  12.     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  13.  
  14. root cause
  15.  
  16. java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
  17.     org.apache.jsp.my_002dphotos_jsp._jspInit(my_002dphotos_jsp.java:22)
  18.     org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
  19.     org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
  20.     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
  21.     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
  22.     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
  23.     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  24.  
  25. note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
  26.  
Could you please suggest the problem. Its the urgent. please help to that.
Jan 7 '09 #1
10 12542
r035198x
13,262 MVP
Most likely there are some offending (to Tomcat 6) jars in your application's WEB-INF/lib directry. What jars do you have there?
Jan 7 '09 #2
swethak
118 New Member
Thank you for Reply. in another directory i,e test1 i place WEB-INF folder and it consists only web.xml .I didn't place any jar files..

please suggest that further solution
Jan 7 '09 #3
r035198x
13,262 MVP
Stop tomcat, delete the whole "work" directory (back it up first if you get a bad feeling about this) and then restart the server.
Jan 7 '09 #4
swethak
118 New Member
another folder test also there in that webapps files in that folder works fine. the problem is i place the another directory test1 and put the file .It shows above error.It is the hosting server.When i remove that work directory is there any effect to that test directory files.Please suggest
Jan 7 '09 #5
JosAH
11,448 Recognized Expert MVP
Tomcat version 6.0.x. implements Servlets 2.5 and JSPs 2.1; version 5.5.x implements the versions 2.4 and 2.0 respectively. If there are compiled JSPs and/or servlets in that directory you can bet that things will go wrong.

kind regards,

Jos
Jan 7 '09 #6
r035198x
13,262 MVP
The work directory is where tomcat compiles the jsp files into. When you delete the work directory and restart tomcat, it will simply recompile all the jsp files again. The work directory is separate from the webapps so your test directory will remain intact. A safer approach then is to open the work directory, find the folder that has the same name as the app you are trying to install and delete that one alone.
When tomcat starts next time it will recompile using the correct specification version.
Jan 7 '09 #7
swethak
118 New Member
i made changes like that.But i didn't get.I get the same error.Please suggest the reply how i can resolve my problem
Jan 7 '09 #8
r035198x
13,262 MVP
Some additional information could help then.

1.)When you say "Now i installed tomcat 6.0 and move the all the files in tomcat 5.5 into tomcat 6.0", which files did you move from directory to which directory?
2.)Does your application use any class files or jar files? If so, what are they?
3.) What appears when you just type just http://localhost:8080 in the browser?
Jan 7 '09 #9
swethak
118 New Member
1.When i install tomcat 6.0 default we get some directories. I added the directories which are in tomcat5.5 and not in the tomcat 6.

These are commons ,server,shared folders.

2. in my test1 folder WEB-INF i place only web.xml. i didn't include classes and jar files.

3. When i give the url as http://localhost:8080/ like this i get the tomcat home page.

Please suggest the solution
Jan 7 '09 #10
r035198x
13,262 MVP
1.) Is the problem.
You did something very wrong there. All you needed to do was to install your application to the newer version of tomcat. Your application is that folder that you had put into the webapps folder. You should have moved only the test and test2 folders in tomcat 5.5's webapps folder to tomcat 6.0's webapps. As it is now you have pretty much corrupted your installation of tomcat 6.0.
Copy your applications (the test and test2 folders only) to a safe location, delete the whole tomcat 6.0 folder and extract it again from the compressed file that you downloaded.
Now copy your applications (the test and test2 folders only) into
tomcat 6.0's webapps folder and start tomcat.
Jan 7 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5863
by: bouchia.nazha | last post by:
Hello I have encountered a problem using tomcat, linux and ssl. My problem seem to be a JVM memory deallocation problem on Linux. This is my configuration: OS: Redhat7.2 Tomcat: 4.0 Jdk:...
11
4397
by: Wayne Wengert | last post by:
I am using VS.NET 2003, VB.NET, ADO.NET and an Access 2000 database. I want to display a list of all tables in an Access database. I want to put that list of table names in a listbox so the user...
7
2828
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
10
6842
by: greenb | last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call several stored procedures back to back to perform updates. They don't return any data. Sometimes the total execution...
16
4870
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
10
1830
by: sssk28 | last post by:
i have installed fedora core 6 and i am getting following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this...
2
2058
by: gamiravi.d | last post by:
Hi, I have one c++ application to get number of monitors from system. I am calling .exe of c++ application using java api through tomcat server in browser on window vista. right now I have two...
1
2132
by: sethupnr | last post by:
when i'm using a simple JSP-mysql code it shows some HTTP status 500 error.But simple JSP program without databse is running , Please help how to solve this problem. I'm new to JSP. my...
11
7090
by: mjahabarsadiq | last post by:
Hi I have created a web application. I am using ant to build the war and deploy in tomcat. The war file is deployed under "TOMCATE_HOME/work/standalone/localhost/onlineres.war". I have my...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.