|
Hi,
I am very new to ofbiz development.
I am getting build errors after adding a new component in hot-deploy folder.
The error is as follows
-----------------------------------------------------------------------------------------------------------
[javac15] Compiling 9 source files to C:\opetaps_release09.04\framework\testtools\build\classes
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:5: package javax.servlet.http does not exist
[javac15] import javax.servlet.http.HttpServletRequest;
[javac15] ^
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:6: package javax.servlet.http does not exist
[javac15] import javax.servlet.http.HttpServletResponse;
[javac15] ^
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:7: package org.ofbiz.party.contact does not exist
[javac15] import org.ofbiz.party.contact.ContactMechWorker;
[javac15] ^
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:10: cannot find symbol
[javac15] symbol : class HttpServletRequest
[javac15] location: class org.ofbiz.learning.learning.LearningEvents
[javac15] public static String postalAddressAdvisory(HttpServletRequest request, HttpServletResponse response){
[javac15] ^
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:10: cannot find symbol
[javac15] symbol : class HttpServletResponse
[javac15] location: class org.ofbiz.learning.learning.LearningEvents
[javac15] public static String postalAddressAdvisory(HttpServletRequest request, HttpServletResponse response){
[javac15] ^
[javac15] C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\learning\learning\LearningEvents.java:13: cannot find symbol
[javac15] symbol : variable ContactMechWorker
[javac15] location: class org.ofbiz.learning.learning.LearningEvents
[javac15] ContactMechWorker.getContactMechAndRelated(request, partyId,
[javac15] ^
[javac15] Note: C:\opetaps_release09.04\framework\testtools\src\org\ofbiz\testtools\ModelTestSuite.java uses unchecked or unsafe operations.
[javac15] Note: Recompile with -Xlint:unchecked for details.
[javac15] 6 errors
----------------------------------------------------------------------------------------------------------
what should i do to correct these build errors.
I have created a new class "LearningEvents.java" for this .
Pls provide needful help
|