Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Release Branch 12.04
-
None
-
JDK - Java version "1.6.0_31"
Description
I downloaded the latest release of branch 12.04 (rev 1407413) and did my usual work of loading the project through eclipse. Once the project was built and loaded I was faced with classpath errors preventing me from even starting the framework.
There were exactly 5 errors relating to the name of tomcat libraries. I list below the errors and definitions in .classpath in the project. I noticed the difference is a dot instead of a dash in the entries against the actual files. However, when I renamed them, I get more errors.
THE ERRORS AS SHOWN IN ECLIPSE:
Description Resource Path Location Type
Project 'apache-ofbiz-12.04' is missing required library: 'framework/catalina/lib/tomcat-7.0.32.catalina-tribes.jar' apache-ofbiz-12.04 Build path Build Path Problem
Project 'apache-ofbiz-12.04' is missing required library: 'framework/catalina/lib/tomcat-7.0.32.catalina-ha.jar' apache-ofbiz-12.04 Build path Build Path Problem
Project 'apache-ofbiz-12.04' is missing required library: 'framework/catalina/lib/tomcat-7.0.32.tomcat-embed-core.jar' apache-ofbiz-12.04 Build path Build Path Problem
Project 'apache-ofbiz-12.04' is missing required library: 'framework/catalina/lib/tomcat-7.0.32.tomcat-embed-jasper.jar' apache-ofbiz-12.04 Build path Build Path Problem
Project 'apache-ofbiz-12.04' is missing required library: 'framework/catalina/lib/tomcat-7.0.32.tomcat-embed-logging-log4j.jar' apache-ofbiz-12.04 Build path Build Path Problem
The project cannot be built until build path errors are resolved apache-ofbiz-12.04 Unknown Java Problem
THE ENTRIES IN ".classpath" :
<classpathentry kind="lib" path="framework/catalina/lib/tomcat-7.0.32.catalina-ha.jar"/>
<classpathentry kind="lib" path="framework/catalina/lib/tomcat-7.0.32.catalina-tribes.jar"/>
<classpathentry kind="lib" path="framework/catalina/lib/tomcat-7.0.32.tomcat-embed-core.jar"/>
<classpathentry kind="lib" path="framework/catalina/lib/tomcat-7.0.32.tomcat-embed-jasper.jar"/>
<classpathentry kind="lib" path="framework/catalina/lib/tomcat-7.0.32.tomcat-embed-logging-log4j.jar"/>
ONCE ERRORS FIXED, ADDITIONAL ERRORS BELOW:
Description Resource Path Location Type
The method getContextPath() is undefined for the type ServletContext ControlServlet.java /apache-ofbiz-12.04/framework/webapp/src/org/ofbiz/webapp/control line 74 Java Problem
The method getContextPath() is undefined for the type ServletContext CatalogUrlServlet.java /apache-ofbiz-12.04/applications/product/src/org/ofbiz/product/category line 159 Java Problem
The method getContextPath() is undefined for the type ServletContext CatalogUrlFilter.java /apache-ofbiz-12.04/applications/product/src/org/ofbiz/product/category line 345 Java Problem
The method getContextPath() is undefined for the type ServletContext CatalogUrlFilter.java /apache-ofbiz-12.04/applications/product/src/org/ofbiz/product/category line 420 Java Problem
The method getContextPath() is undefined for the type ServletContext ContentUrlFilter.java /apache-ofbiz-12.04/applications/content/src/org/ofbiz/content/content line 153 Java Problem