473,625 Members | 3,239 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 12556
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
4407
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
2849
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); xmlItems.TransformArgumentList = xsltArgList;
10
6857
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 time out after 90 seconds. The user sees a Request timed out error. The app logs a ThreadAborted...
16
4901
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 easily verified: Implement the following in a web service method (just raises a SOAPException with a...
10
1839
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
2073
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 one primary monitor. i have some scenario for behavoiur of such application:
1
2140
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 mysql-connector-java-3.0.17-ga-bin.jar to C:\Program Files\Apache Tomcat 4.0\common\lib
11
7105
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 context.xml, web.xml, build.xml and build.properties files.
0
8259
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8358
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6119
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1504
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.