Forum LAMS for Tech-Heads - General Forum: Ant compile the lams_central and lams_common source file fail!!!


 
You may request notification for Ant compile the lams_central and lams_common source file fail!!!.
Search: 

1: Ant compile the lams_central and lams_common source file fail!!!
05/10/11 02:05 AM
[ Reply | Forward ]
I try to add an interface method in LearningDesignDao.java file for test. and run the deploy-lams-jar ant targert in lams_common success! .
Then when I call this new interface method in WorkspaceManagementService.java but run the deploy-jar ant targert in lams_central compile fail ! .
the error is my lams_central java file can't find the new interface method in lams_common porject.
And I am sure my code has no error...just lams_central's ant targert can't find my new method in lams_common...
How can I compile this situation ... thank you

Posted by leo luo

2: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 1 05/10/11 05:06 PM
[ Reply | Forward ]
Hi Leo,

I'm finding it hard to understand what you are trying to do. So if you could send me your code on email, I can have a look.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 2 05/12/11 02:12 AM
[ Reply | Forward ]
I add a method in LearningDesignDao.java:

public List getAllLearningDesignsInXtjy(){
  //here is nothing ,I just for a test
}

then add this method in ILearningDesignDao.java:

public List getAllLearningDesignsInXtjy();


at last I call this method in WorkspaceManagementService.java:

this.learningDesignDAO.getAllLearningDesignsInXtjy();

that's all,and I run the ant deploy-jar target. I get a compile
error :

[javac] F:\projects\trunk\src\lams2.3.4\lams_central\src\java\org\lamsfoundation\lams\workspace\service\WorkspaceManagementService.java:1253: Can not find symbol
    [javac] symbol: method getAllLearningDesignsInXtjy()
    [javac] position: interface org.lamsfoundation.lams.learningdesign.dao.ILearningDesignDAO
    [javac]         List<LearningDesign> list = this.learningDesignDAO.getAllLearningDesignsInXtjy();

Posted by leo luo

5: Re: Re: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 3 05/12/11 10:44 PM
[ Reply | Forward ]
Hi Leo,

This should works.

Just make sure you do a complete re-build:

cd /usr/local/lams2
cd lams_build/
ant rebuild-db
ant assemble-ear
ant deploy-ear
ant deploy-tools
ant copyfiles


Thanks,

Ernie

Posted by Ernie Ghiglione

4: Re: Re: Ant compile the lams_central and lams_common source file fail!!!mea
In response to 2 05/12/11 02:16 AM
[ Reply | Forward ]
means the ant compilter can't find the new method what I add.

Posted by leo luo

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum