You should add the below entry in your build.xml file. <fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>
It looks like you have done entry for party component, so you will be fine to move further.
Still you get error then share your build.xml file. -- Ashish shuchi wrote:
I added a new java class and I think there I am getting the error. I looked at the compiler at it gives following error messages. ************************************************************* [javac] Compiling 1 source file to C:\workspace\ofbiz4.0\framework\testtools\build\classes [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:4: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:5: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletResponse; [javac] ^ [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:6: package org.ofbiz.party.contact does not exist [javac] import org.ofbiz.party.contact.ContactMechWorker; [javac] ^ [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:11: cannot find symbol [javac] symbol : class HttpServletRequest [javac] location: class org.ofbiz.learning.learning.LearningEvents [javac] public static String postalAddressAdvisory(HttpServletRequest [javac] ^ [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:12: cannot find symbol [javac] symbol : class HttpServletResponse [javac] location: class org.ofbiz.learning.learning.LearningEvents [javac] request, HttpServletResponse response){ [javac] ^ [javac] C:\workspace\ofbiz4.0\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:15: cannot find symbol [javac] symbol : variable ContactMechWorker [javac] location: class org.ofbiz.learning.learning.LearningEvents [javac] ContactMechWorker.getContactMechAndRelated(request, partyId, [javac] ^ [javac] 6 errors ******************************************************************** I am not sure what this errors are pointing at. Your help is really appreciated. Thank you.
smime.p7s
Description: S/MIME Cryptographic Signature