471,896 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

Problem with Tomcat 6.0

118 100+

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


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


it shows the error messages as

Expand|Select|Wrap|Line Numbers
  2. type Exception report
  4. message
  6. description The server encountered an internal error () that prevented it from fulfilling this request.
  8. exception
  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)
  14. root cause
  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)
  25. note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
Could you please suggest the problem. Its the urgent. please help to that.
Jan 7 '09 #1
10 12358
13,262 8TB
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
118 100+
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
13,262 8TB
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
118 100+
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
11,448 Expert 8TB
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,

Jan 7 '09 #6
13,262 8TB
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
118 100+
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
13,262 8TB
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
118 100+
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
13,262 8TB
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

Post your reply

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

Similar topics

2 posts views Thread by bouchia.nazha | last post: by
11 posts views Thread by Wayne Wengert | last post: by
7 posts views Thread by Harolds | last post: by
10 posts views Thread by greenb | last post: by
10 posts views Thread by sssk28 | last post: by
reply views Thread by YellowAndGreen | last post: by

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.