Matt, Joe,

thank you two, this solution rocks. I can keep going now.

kindest regards,
nessus.


jkrugler wrote:
> 
> Nessus,
> 
> I have encountered the same issue as you described.  I tracked the problem
> down to struts.xml being included in
> /target/warpath/appfuse-struts-2.0-rc1.warpath.jar.  To fix the problem I
> added struts.xml to the warpathExcludes of the maven-warpath-plugin
> section of my pom.xml.  After making the change mvn clean install should
> do the trick.  I can now run both mvn jetty:run and mvn jetty:run-war
> without a problem.  You still have to delete struts.xml and the lib folder
> as Matt described earlier.
> 
> I am not sure if this is related to
> http://issues.appfuse.org/browse/APF-686.  
> 
> Matt, should I enter this in to JIRA?
> 
> Hope that helps,
> 
> Joe
> 
> 
> 
> 
> 
> nessus wrote:
>> 
>> Matt,
>> 
>> yes, exactly the same problem. I have runmvn archetype:create
>> -DarchetypeGroupId=org.appfuse.archetypes
>> -DarchetypeArtifactId=appfuse-basic-struts
>> -DremoteRepositories=http://static.appfuse.org/releases
>> -DarchetypeVersion=2.0-rc1 -DgroupId=com.mycompany.app
>> -DartifactId=myproject and successive mvn jetty:run-war, at this time I
>> can browse http://localhost:8080 successfully. Everything goes right
>> here.
>> 
>> then I:
>> 1. delete struts.xml from target/classes and run mvn war:inplace, the
>> output shows BUILD SUCCESSFUL.
>> 2. delete struts.xml and lib/*.* from src\main\webapp\WEB-INF\classes,
>> and run mvn jetty:run, it reports exception [etpay] WARN [main]
>> Settings.getLocale(143) | Settings: Could not parse struts.l
>> ocale setting, substituting default VM locale
>> 2007-09-07 15:50:56.206::WARN:  failed struts
>> The package name 'default' at location package -
>> jar:file:/C:/javaapp/etpay/targ
>> et/warpath/appfuse-struts-2.0-rc1.warpath.jar!/struts.xml:18:54 is
>> already been
>> used by another package at location package -
>> file:/C:/javaapp/etpay/target/clas
>> ses/struts.xml:18:54 - package -
>> jar:file:/C:/javaapp/etpay/target/warpath/appfu
>> se-struts-2.0-rc1.warpath.jar!/struts.xml:18:54
>>         at
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.addPackageCo
>> nfig(DefaultConfiguration.java:95) although the cmd suspends here:
>> 
>> 2007-09-07 15:50:56.550::INFO:  Started
>> [EMAIL PROTECTED]:8080
>> [INFO] Started Jetty Server
>> [INFO] Starting scanner at interval of 3 seconds.
>> 
>> and browsing http://localhost:8080 causes error:
>> HTTP ERROR: 503
>> SERVICE_UNAVAILABLE
>> RequestURI=/
>> 
>> Powered by jetty://
>> 
>> I dont know how to crack this. sorry I am new to all these frameworks.
>> could you find a solution.
>> 
>> kindest regards,
>> nessus.
>> 
>> 
>> mraible wrote:
>>> 
>>> If you delete the struts.xml from your target/classes directory and
>>> run "jetty:run" - does it get put back there? Jetty used to ignore the
>>> warpath dependencies - maybe it's reading them now?
>>> 
>>> http://issues.appfuse.org/browse/APF-686
>>> 
>>> Matt
>>> 
>>> On 9/6/07, nessus <[EMAIL PROTECTED]> wrote:
>>>>
>>>>
>>>> Matt,
>>>>
>>>>  I tried all these commands, after mvn war:inplace, I deleted lib and
>>>> classes/struts.xml, and ran mvn clean, but mvn jetty:run produced the
>>>> same
>>>> error as:
>>>>
>>>> [etpay] WARN [main] Settings.getLocale(143) | Settings: Could not parse
>>>> struts.l
>>>> ocale setting, substituting default VM locale
>>>> 2007-09-07 13:12:52.459::WARN:  failed struts
>>>> The package name 'default' at location package -
>>>> jar:file:/E:/javaapp/etpay/targ
>>>>
>>>> et/warpath/appfuse-struts-2.0-rc1.warpath.jar!/struts.xml:18:54 is
>>>> already
>>>> been
>>>> used by another package at location package -
>>>>
>>>> file:/E:/javaapp/etpay/target/clas
>>>>
>>>> ses/struts.xml:18:54 - package -
>>>> jar:file:/E:/javaapp/etpay/target/warpath/appfu
>>>>
>>>> se-struts-2.0-rc1.warpath.jar!/struts.xml:18:54
>>>>         at
>>>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.addPackageCo
>>>> nfig(DefaultConfiguration.java:95)
>>>>
>>>>
>>>> It seems like the struts error. could you help me through?
>>>>
>>>> kindest regards,
>>>> Ness.
>>>>
>>>>
>>>> mraible wrote:
>>>> >
>>>> > You can't have 2 struts jars in your classpath - run "mvn clean"
>>>> > and/or "rm -r src/main/webapp/WEB-INF/lib".
>>>> >
>>>> > Matt
>>>> >
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/exception-in-%22mvn-jetty%3Arun%22-tf4391676s2369.html#a12536081
>>>>
>>>> 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]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/exception-in-%22mvn-jetty%3Arun%22-tf4391676s2369.html#a12589781
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