The amp.fullSource is set to false.

If I remove the import statement for the BaseAction, Eclipse is still unable
to locate the class. 
The package name the generated webapp.action is looking for is
org.appfuse.webapp.action.BaseAction.

I don't think this happened when I was using RC1.   Did the location of the
BaseAction change? What library/repository should contain it?  

Doing a delta on my POM files what changed from RC1 and 2:
-Addidtion of the jdbc dependencies (jdbc.groupId,jdbc.artifactId, &
jdbc.version)
-The AMP declaration is now earlier in the install group.

The appgen:remove will delete object models regardless of how the model was
created. Is this expected?


mraible wrote:
> 
> Are the package names wrong - is that why it can't find them? What are the
> package names and what do you think they should be? AMP keys off the <
> amp.fullSource> property in your pom.xml. If it's false, it uses
> org.appfuse.
> If it's true, it uses your pom.xml's groupId.
> 
> The good news is you can use "appfuse:remove" to remove any generated
> code.
> 
> Matt
> 
> On 9/20/07, mettamara <[EMAIL PROTECTED]> wrote:
>>
>>
>> I am experiencing the same issue. I upgraded from 2RC1 to 2.0 tonight.
>> After
>> the upgrade, the AMP generation output code is extending BaseAction and
>> BaseActionTestCase. Neither of these classes can be  found by my IDE
>> (eclipse).
>>
>> When I was using RC1 the code generation was able to find the BaseAction
>> at
>> org.appfuse.webapp.action.BaseAction;
>>
>> However, if I remove the generated test classes I am able to run the
>> cargo
>> from maven.
>>
>>
>>
>> Tony.Cesc wrote:
>> >
>> > Hi All,
>> >
>> > I can't build when I upgrade my project to official Appfuse 2. It seems
>> > the org.appfuse package wasn't there.
>> > Do you have any suggestion? (Non-official Appfuse 2 is ok)
>> >
>> > Thanks,
>> >
>> > Tony
>> >
>> > ====
>> > My Console:
>> >
>> > D:\Workspace\DPI>mvn jetty:run-war
>> > [INFO] Scanning for projects...
>> > [INFO] Searching repository for plugin with prefix: 'jetty'.
>> > [INFO]
>> >
>> -------------------------------------------------------------------------
>> > ---
>> > [INFO] Building myproject
>> > [INFO]    task-segment: [jetty:run-war]
>> > [INFO]
>> >
>> -------------------------------------------------------------------------
>> > ---
>> > [INFO] Preparing jetty:run-war
>> > [INFO] [aspectj:compile {execution: default}]
>> > [WARNING] bad version number found in C:\Documents and
>> Settings\Tony\.m2\
>> > repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jar expected 1.5.2a
>> > found 1.5
>> > .3
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] BaseAction cannot be resolved to a type
>> > [ERROR] GenericManager cannot be resolved to a type
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] GenericManager cannot be resolved to a type
>> > [ERROR] personManager cannot be resolved or is not a field
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] The method getText(String) is undefined for the type ChatAction
>> > [ERROR] INPUT cannot be resolved
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] BaseAction cannot be resolved to a type
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] ERROR cannot be resolved
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] GenericDaoHibernate cannot be resolved to a type
>> > [ERROR] The constructor Object(Class<Person>) is undefined
>> > [ERROR] The method getHibernateTemplate() is undefined for the type
>> > PersonDaoHib
>> > ernate
>> > [ERROR] The method getHibernateTemplate() is undefined for the type
>> > PersonDaoHib
>> > ernate
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] GenericDao cannot be resolved to a type
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] BaseAction cannot be resolved to a type
>> > [ERROR] GenericManager cannot be resolved to a type
>> > [ERROR] GenericManager cannot be resolved to a type
>> > [ERROR] personManager cannot be resolved or is not a field
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] The method getText(String) is undefined for the type
>> PersonAction
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] cancel cannot be resolved
>> > [ERROR] delete cannot be resolved
>> > [ERROR] personManager cannot be resolved
>> > [ERROR] The method getText(String) is undefined for the type
>> PersonAction
>> > [ERROR] INPUT cannot be resolved
>> > [ERROR] SUCCESS cannot be resolved
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] GenericManager cannot be resolved to a type
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] BaseObject cannot be resolved to a type
>> > [ERROR] The import org.appfuse cannot be resolved
>> > [ERROR] GenericManagerImpl cannot be resolved to a type
>> > [ERROR] The constructor Object(PersonDao) is undefined
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Compiler errors :
>> > error at import org.appfuse.service.GenericManager;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:1
>> > 6:0::0 The import org.appfuse cannot be resolved
>> > error at import org.appfuse.webapp.action.BaseAction;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:1
>> > 8:0::0 The import org.appfuse cannot be resolved
>> > error at public class ChatAction extends BaseAction implements
>> > SessionAware {
>> >                                 ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:3
>> > 3:0::0 BaseAction cannot be resolved to a type
>> > error at private GenericManager<Person, Long> personManager;
>> >         ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:4
>> > 9:0::0 GenericManager cannot be resolved to a type
>> > error at person = personManager.get(pid);
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:7
>> > 1:0::0 personManager cannot be resolved
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:7
>> > 8:0::0 SUCCESS cannot be resolved
>> > error at public void setPersonManager(GenericManager<Person, Long>
>> > personManager
>> > ) {
>> >                              ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:8
>> > 6:0::0 GenericManager cannot be resolved to a type
>> > error at this.personManager = personManager;
>> >      ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:8
>> > 7:0::0 personManager cannot be resolved or is not a field
>> > error at person = personManager.get(pid);
>> >          ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:2
>> > 32:0::0 personManager cannot be resolved
>> > error at person = personManager.save(person);
>> >          ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:2
>> > 42:0::0 personManager cannot be resolved
>> > error at saveMessage(getText(key));
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:2
>> > 47:0::0 The method getText(String) is undefined for the type ChatAction
>> > error at return INPUT;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:2
>> > 50:0::0 INPUT cannot be resolved
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\ChatAction.java:2
>> > 52:0::0 SUCCESS cannot be resolved
>> > error at import org.appfuse.webapp.action.BaseAction;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\LoginAction.java:
>> > 17:0::0 The import org.appfuse cannot be resolved
>> > error at public class LoginAction extends BaseAction implements
>> > SessionAware {
>> >                                  ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\LoginAction.java:
>> > 30:0::0 BaseAction cannot be resolved to a type
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\LoginAction.java:
>> > 94:0::0 SUCCESS cannot be resolved
>> > error at return ERROR;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\LoginAction.java:
>> > 98:0::0 ERROR cannot be resolved
>> > error at import org.appfuse.dao.hibernate.GenericDaoHibernate;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\hibernate\PersonDaoHibernat
>> > e.java:14:0::0 The import org.appfuse cannot be resolved
>> > error at public class PersonDaoHibernate extends
>> > GenericDaoHibernate<Person, Lon
>> > g>
>> >                                         ^^^^^^^^^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\hibernate\PersonDaoHibernat
>> > e.java:26:0::0 GenericDaoHibernate cannot be resolved to a type
>> > error at super(Person.class);
>> > ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\hibernate\PersonDaoHibernat
>> > e.java:35:0::0 The constructor Object(Class<Person>) is undefined
>> > error at return getHibernateTemplate().find("from Person where
>> > lastname=?",
>> >        ^^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\hibernate\PersonDaoHibernat
>> > e.java:48:0::0 The method getHibernateTemplate() is undefined for the
>> type
>> > Perso
>> > nDaoHibernate
>> > error at return getHibernateTemplate().find(
>> >        ^^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\hibernate\PersonDaoHibernat
>> > e.java:63:0::0 The method getHibernateTemplate() is undefined for the
>> type
>> > Perso
>> > nDaoHibernate
>> > error at import org.appfuse.dao.GenericDao;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\PersonDao.java:13:0::0
>> > The
>> > import org.appfuse cannot be resolved
>> > error at public interface PersonDao extends GenericDao<Person, Long> {
>> >                                    ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\dao\PersonDao.java:25:0::0
>> > Gene
>> > ricDao cannot be resolved to a type
>> > error at import org.appfuse.service.GenericManager;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :13:0::0 The import org.appfuse cannot be resolved
>> > error at import org.appfuse.webapp.action.BaseAction;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :15:0::0 The import org.appfuse cannot be resolved
>> > error at public class PersonAction extends BaseAction {
>> >                                   ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :27:0::0 BaseAction cannot be resolved to a type
>> > error at private GenericManager<Person, Long> personManager;
>> >         ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :31:0::0 GenericManager cannot be resolved to a type
>> > error at public void setPersonManager(GenericManager<Person, Long>
>> > personManager
>> > ) {
>> >                              ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :43:0::0 GenericManager cannot be resolved to a type
>> > error at this.personManager = personManager;
>> >      ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :44:0::0 personManager cannot be resolved or is not a field
>> > error at persons = personManager.getAll();
>> >           ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :62:0::0 personManager cannot be resolved
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :64:0::0 SUCCESS cannot be resolved
>> > error at personManager.remove(person.getId());
>> > ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :100:0::0 personManager cannot be resolved
>> > error at saveMessage(getText("person.deleted"));
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :101:0::0 The method getText(String) is undefined for the type
>> > PersonAction
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :103:0::0 SUCCESS cannot be resolved
>> > error at person = personManager.get(id);
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :113:0::0 personManager cannot be resolved
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :118:0::0 SUCCESS cannot be resolved
>> > error at if (cancel != null) {
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :129:0::0 cancel cannot be resolved
>> > error at if (delete
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :132:0::0 delete cannot be resolved
>> > error at person = personManager.save(person);
>> >          ^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :144:0::0 personManager cannot be resolved
>> > error at saveMessage(getText(key));
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :146:0::0 The method getText(String) is undefined for the type
>> > PersonAction
>> > error at return INPUT;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :148:0::0 INPUT cannot be resolved
>> > error at return SUCCESS;
>> >
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\webapp\action\PersonAction.java
>> > :150:0::0 SUCCESS cannot be resolved
>> > error at import org.appfuse.service.GenericManager;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\service\PersonManager.java:13:0
>> > ::0 The import org.appfuse cannot be resolved
>> > error at public interface PersonManager extends GenericManager<Person,
>> > Long> {
>> >                                        ^^^^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\service\PersonManager.java:24:0
>> > ::0 GenericManager cannot be resolved to a type
>> > error at import org.appfuse.model.BaseObject;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\model\Person.java:11:0::0
>> > The i
>> > mport org.appfuse cannot be resolved
>> > error at public class Person extends BaseObject {
>> >                             ^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\model\Person.java:30:0::0
>> > BaseO
>> > bject cannot be resolved to a type
>> > error at import org.appfuse.service.impl.GenericManagerImpl;
>> >        ^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\service\impl\PersonManagerImpl.
>> > java:15:0::0 The import org.appfuse cannot be resolved
>> > error at public class PersonManagerImpl extends
>> GenericManagerImpl<Person,
>> > Long>
>> >
>> >                                        ^^^^^^^^^^^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\service\impl\PersonManagerImpl.
>> > java:27:0::0 GenericManagerImpl cannot be resolved to a type
>> > error at super(personDao);
>> > ^^^^^^^
>> >
>> D:\Workspace\DPI\src\main\java\com\myproject\app\service\impl\PersonManagerImpl.
>> > java:43:0::0 The constructor Object(PersonDao) is undefined
>> >
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] For more information, run Maven with the -e switch
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 4 seconds
>> > [INFO] Finished at: Wed Sep 19 11:00:54 ICT 2007
>> > [INFO] Final Memory: 13M/24M
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Does-Appfuse2-move-package--tf4478670s2369.html#a12809748
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-Appfuse2-move-package--tf4478670s2369.html#a12828768
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to