473,566 Members | 3,225 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 12547
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

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

Similar topics

2
5870
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: 1.3.1_07
11
4401
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 can select the table they want to use. How can I do this? -- ------------------------------------ Wayne Wengert wayne@wengert.org
7
2839
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 parameter to the XSLT stylesheet XsltArgumentList xsltArgList = new XsltArgumentList(); xsltArgList.AddParam("pmID", "", pmID);...
10
6852
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 time can take 2-3 minutes, but even though I have set the executionTimeout in web.config to a high number of seconds (2400), the request will still...
16
4882
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 Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be...
10
1832
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 request. exception
2
2068
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 monitors attached in the system.one primary and other secondary. but when i call c++ application using java api through tomcat server, it lists only...
1
2136
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 configurations are... i installed j2sdk in C:\j2sdk1.4.2_16 then installed jakarte-tomcat in C:\Program Files\Apache Tomcat 4.0 folder copied...
11
7095
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 source files in "D:\Sadiq\Projects\Onlineres". The folder structure is as follows. 1) D:\Sadiq\Projects\Onlineres: This folder is having the...
0
7686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7903
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6272
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5488
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5216
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3630
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2093
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 we have to send another system
0
930
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.