If you run "war:inplace" and then do the following, it should fix your problem:
rm -r src/main/webapp/WEB-INF/lib
rm src/main/webapp/WEB-INF/classes/struts.xml
HTH,
Matt
On 1/31/07, ros <[EMAIL PROTECTED]> wrote:
If I delete everyting from src\main\webapp\WEB-INF\classes jut before mvn
jetty:run then application cant start - action classes not found.
src\main\webapp\WEB-INF\classes created after mvn war:inplace done.
At what moment you recomend to delete contents of the directory?
Actually I have further problem with tutorial at HelloAction:
package test.articact.webapp;
import com.opensymphony.xwork2.ActionSupport;
public class HelloAction extends ActionSupport {
String message;
public String getMessage() {
return message;
}
public String execute() {
message = "Howdy Pardner!";
return SUCCESS;
}
}
and helo.jsp
<%@ include file="/common/taglibs.jsp"%>
<s:action name="howdy" id="action" namespace="default"/>
<strong>Message from struts:</strong>
<span style="color: blue">'<s:property value="$action.message" />'</span>
and struts.xml:
<action name="howdy" class="test.artifact.webapp.HelloAction"/>
returns
Message from struts: ''
No errors in log. Did you pass quick start guide?
Michael Horwitz wrote:
>
> I would recommend you delete the whole of the
> src\main\webapp\WEB-INF\classes. The contents of this directory will be
> automatically generated by Maven.
>
> Mike.
>
>
> On 1/31/07, ros <[EMAIL PROTECTED]> wrote:
>>
>>
>> This works:
>>
>> D:\Temp\appfuse\test>mvn archetype:create -DarchetypeGroupId=org.appfuse
>> -DarchetypeArtifactId=appfuse-basic-struts
>> -DremoteRepositories=http://static.appfuse.org/repository
>> -DarchetypeVersion=1.0-m2 -DgroupId=test.artifact -DartifactId=test
>>
>> D:\Temp\appfuse\test>cd test
>>
>> D:\Temp\appfuse\test>mvn war:inplace
>>
>> D:\Temp\appfuse\test>del src\main\webapp\WEB-INF\lib
>>
>> D:\Temp\appfuse\test>del src\main\webapp\WEB-INF\classes\struts.xml
>>
>> D:\Temp\appfuse\test>mvn jetty:run
>>
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/quickstart-appfuse-2---The-package-name-%27default%27-...-already-been-used-...-tf3145700s2369.html#a8727177
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/quickstart-appfuse-2---The-package-name-%27default%27-...-already-been-used-...-tf3145700s2369.html#a8728566
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]