This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Migration problem from Struts 1.2.7 to 1.3.8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Migration problem from Struts 1.2.7 to 1.3.8" Watch "Migration problem from Struts 1.2.7 to 1.3.8" New topic
Author

Migration problem from Struts 1.2.7 to 1.3.8

Anthony Mag
Greenhorn

Joined: Nov 27, 2008
Posts: 14
Hi, my current configuration is tomcat 6.0.18 and jdk 1.5. Here are the steps I followed for the migration.
1. Replaced struts.jar with struts-core-1.3.8.jar
2. Updated taglib .tld files which were under /WEB-INF and also kept the corresponding struts-taglib-1.3.8.jar files in lib directory.
3. Kept the external mappings in web.xml for the tld files though.
4. Updated struts-config.xml with
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
5. As not using any cancel buttons hence did not use the cancellable attribute.
6. Updated validation.xml with specified doctype in strutsupgrade docs.
7. Replaced older jar files with newer versions.

After compiling the files and deploying in Tomcat I get the following error while trying to run.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class jsp.login_jsp or a class it depends onorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ClassNotFoundException: jsp.login_jsp
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

What am I missing out on?
Thankx in advance.
[ November 27, 2008: Message edited by: Anthony Gomes ]

Anthony G,
http://www.mysuccessmantra.com
Tweet @ tonygcal
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Originally posted by Anthony Gomes:

root cause

java.lang.ClassNotFoundException: jsp.login_jsp


Welcome to JavaRanch !!

Looks like some classes are missing. Better you rebuild the project by deleting all the .class files from your app.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Anthony Mag
Greenhorn

Joined: Nov 27, 2008
Posts: 14
Thanks for the reply sagar.
All class files are created during build.
I even deleted all the existing ones in tomcat/work folder.
So the classes are up to date.
Any other pointers?
Furthermore do I need to change the jsp header
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
to
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
and so forth?
[ November 27, 2008: Message edited by: Anthony Gomes ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migration problem from Struts 1.2.7 to 1.3.8
 
Similar Threads
Does anyone get the following error
Error loading WebappClassLoader delegate: false
take in file from client machine
FrontMan: Startup Error.
Error loading WebappClassLoader delegate: false