- This topic has 9 replies, 2 voices, and was last updated 19 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
yeecnMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
yeecnMemberThis message has not been recovered.
yeecnMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
yeecnMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
yeecnMemberThis message has not been recovered.
Riyad KallaMemberYee I received the projects but haven’t had time to evaluate it, I’ll let you know when I do.
Riyad KallaMemberSteps:
1) Unzipped bugs, import projects Model and Web
2) Unzipped both your lib1 and lib2 zips into the Web/WEB-INF/lib directory, everything got mounted. Noticed that Web was still complaining about missing some libraries (myfaces, servletapi, webtest and xdoclet-jsf module) so I removed all those from the classpath.
3) Then I turned on the problem filtering to only show me problems from the current project so I could focus on the Model project.
4) Then I had to Project > Clean the Model project, it rebuild with only 1 warning about an unread local var.
5) Now i swiched to Web, I noticed lots of errors due to the lack of faces in the path, due to a bug in the wizard I just went ahead and added the libraries to it from either a MyFaces download, or by navigating down into the MyEclipse plugins directory, jsf and data/lib dir. Viola, chopped out a huge amount of compile errors.
6) Then I noticed all the validation errors on the half-xml files and such, so I just went and turned off XML validation, you can mark each one derived if you want to sift through each one, I don’t.
7) I cleaned the web project so it would rebuild to make sure all my errors were up to speed. Down to 10 now.
8) Notice some spring errors abou dataSource and userDAO, I’ve not used spring so I have no idea hwo to fix these.
9) In BasePage.java I got 2 generic errors because I have javac.exe from my JDK 1.4.2 install in my path, so ti was not being compiled/validated with JDK 5.0 which is required, for the time being I just made that line read: List messages = new ArrayList();
10) Now I’m just down to some crazy errors in some JSPs (TLDLocationCache business), so I open up 403.jsp first.
11) So I notice that he prefixed the taglibs include with a /, so I removed that and problem fixed (replaced by a different one, I’ll address that next). So I went and ddi the same thing to all the files with the TLDCache issue. (I think this is a bug)
12) Ok so what’s this new error: “invalid END header”, let’s look in taglibs.jsp, looks like it has a problem. Opened taglibs.jsp and it looks ok, although I find it odd to have a @page directive in an include, but that’s just my style.
13) So now I MyEclipse > Run Validation to re-run the JSP validation, woops, lots more errors.
14) I noticed that footer.jsp wants a build.properties file that doesn’t exist, it should be in the root of the source tree if you want it in the root of the output dir. So I removed that line.
15) In the taglibs.jsp file, the fmt URI is wrong, it should be: http://java.sun.com/jstl/fmt
16) Ok now look at your errors, they should almost all be “invalid END header (bad central dir offset). After spending quite a while with this and commenting out sections of the taglib.jsp file to make the error go away, I realized the error is due to an invalid JAR archive, the problem is that it cannot be read, and any time you use ANY taglibs in your taglibs.jsp file, when they go to resolve the URI, it is barfing on one fo the million JARs in your classpath, so I am going to stop here and say that when you find the corrupt JAR, you should fix this project. I would suggest for testing to simply remove ALL the dependencies and redownload them from independent sources if you can, not the original place you got these copies. -
AuthorPosts