Thanks! That worked. 

I don't know if it's a viable solution, but at least it's been narrowed down
somewhat.

--jon


mraible wrote:
> 
> You might try JDK 5 - I've seen some issues with Maven and JDK 6 in the
> past.
> 
> Matt
> 
> On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>>
>> [EMAIL PROTECTED] ~/workspace/myproject
>> $ echo $CLASSPATH
>>
>>
>> [EMAIL PROTECTED] ~/workspace/myproject
>> $ mvn -version
>> Maven version: 2.0.7
>> Java version: 1.6.0_02
>> OS name: "windows vista" version: "6.0" arch: "x86"
>>
>> [EMAIL PROTECTED] ~/workspace/myproject
>> $ ls -al /cygdrive/c/Program\ Files/Java/jdk1.6.0_02/jre/lib/ext/
>> total 1269
>> drwx------+  2 4294967295 4294967295   4096 Aug  1 09:39 .
>> drwx------+ 14 4294967295 4294967295  12288 Aug  1 09:40 ..
>> -rwx------   1 4294967295 4294967295   8241 Jul 12 01:43 dnsns.jar
>> -rwx------   1 4294967295 4294967295 837648 Jul 12 04:00 localedata.jar
>> -rwx------   1 4294967295 4294967295    521 Aug  1 09:37 meta-index
>> -rwx------   1 4294967295 4294967295 170257 Aug  1 09:37
>> sunjce_provider.jar
>> -rwx------   1 4294967295 4294967295  31632 Aug  1 09:37 sunmscapi.jar
>> -rwx------   1 4294967295 4294967295 224493 Aug  1 09:37 sunpkcs11.jar
>>
>>
>> Thanks for your help!
>>
>> --jon
>>
>>
>>
>> mraible wrote:
>> >
>> > On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I deleted my maven settings.xml file (.m2/settings.xml) and
>> >> my local repository (.m2/repository), and tried again with M5.
>> >>
>> >> Same error.
>> >>
>> >> I am on Windows Vista.
>> >
>> > Well *that's* the problem then! Just kidding. ;-)
>> >
>> > It's probably a classpath issue. What JDK are you using? What version
>> > of Maven? Do you have anything in your system classpath (or
>> > jre/lib/ext directory)?
>> >
>> > Matt
>> >
>> >>
>> >> --jon
>> >>
>> >>
>> >> mraible wrote:
>> >> >
>> >> > I tried to reproduce with M5 and RC1-SNAPSHOT. Here's what I found:
>> >> >
>> >> > M5:
>> >> >
>> >> > 1. mvn archetype:create -DarchetypeGroupId=org.appfuse
>> >> > -DarchetypeArtifactId=appfuse-basic-struts
>> >> > -DremoteRepositories=http://static.appfuse.org/repository
>> >> > -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app
>> >> > -DartifactId=myproject
>> >> >
>> >> > 2. cd myproject;mvn war:inplace;rm
>> >> > src/main/webapp/WEB-INF/classes/struts.xml;rm -r
>> >> > src/main/webapp/WEB-INF/lib;mvn jetty:run
>> >> >
>> >> > 3. Edit pom.xml (trivial change in some text), Jetty reloads, no
>> error.
>> >> >
>> >> > RC1:
>> >> >
>> >> > 1. mvn archetype:create -DarchetypeGroupId=org.appfuse
>> >> > -DarchetypeArtifactId=appfuse-basic-struts
>> >> > -DremoteRepositories=http://static.appfuse.org/repository
>> >> > -DarchetypeVersion=2.0-rc1-SNAPSHOT -DgroupId=com.mycompany.app
>> >> > -DartifactId=myproject2
>> >> >
>> >> > 2. cd myproject2;mvn war:inplace;rm
>> >> > src/main/webapp/WEB-INF/classes/struts.xml;rm -r
>> >> > src/main/webapp/WEB-INF/lib;mvn jetty:run -Djetty.port=9000
>> >> >
>> >> > 3. Edit pom.xml, restart, issue doesn't happen.
>> >> >
>> >> > I'm on OS X.
>> >> >
>> >> > Matt
>> >> >
>> >> > On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> I'm having trouble restarting the webapp after making a change in
>> one
>> >> >> of the jetty watched files. In this case, I've made a
>> inconsequential
>> >> >> change
>> >> >> to pom.xml.
>> >> >>
>> >> >> I've replicated the behavior in the downloaded tutorial/archetype
>> >> >> (archetypeArtifactId=appfuse-basic-struts).
>> >> >>
>> >> >> Stack trace is below. From research I've done on the specific
>> error,
>> >> it
>> >> >> seems to be
>> >> >> due (possibly) to the ordering of xerces jars in the classpath
>> (maven
>> >> >> dependencies).
>> >> >>
>> >> >> Any help would be appreciated.
>> >> >>
>> >> >> Thanks!
>> >> >>
>> >> >> --jon
>> >> >>
>> >> >> [INFO] Restarting webapp ...
>> >> >> 2007-08-09 13:45:29.936:/:INFO:  Closing Spring root
>> >> >> WebApplicationContext
>> >> >> [INFO] Reconfiguring scanner after change to pom.xml ...
>> >> >> 2007-08-09 13:45:30.919:appfuse:INFO:  Initializing Spring root
>> >> >> WebApplicationContext
>> >> >> AbandonedObjectPool is used
>> >> >> ([EMAIL PROTECTED])
>> >> >>    LogAbandoned: false
>> >> >>    RemoveAbandoned: true
>> >> >>    RemoveAbandonedTimeout: 60
>> >> >> 2007-08-09 13:45:35.973:appfuse:INFO:
>> >> >> org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf:
>> log4j
>> >> >> 2007-08-09 13:45:36.114::WARN:  failed struts
>> >> >> 2007-08-09 13:45:36.114::WARN:  failed
>> >> >>
>> >>
>> [EMAIL 
>> PROTECTED]/,file:/C:/Users/jlorusso/workspace/myproject/target/work/webapp/}
>> >> >> [ERROR] Error reconfiguring/restarting webapp after change in
>> watched
>> >> >> files
>> >> >> Caught exception while loading file struts-default.xml - [unknown
>> >> >> location]
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:795)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:132)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>> >> >>         at
>> >> >> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>> >> >>         at
>> >> >>
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:95)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:545)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1137)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:420)
>> >> >>         at
>> >> >>
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:461)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:38)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(Jetty6PluginWebApplication.java:138)
>> >> >>         at
>> >> >>
>> >>
>> org.mortbay.jetty.plugin.Jetty6RunWar$1.changesDetected(Jetty6RunWar.java:129)
>> >> >>         at
>> org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:158)
>> >> >> Caused by: java.lang.ClassCastException:
>> >> >> org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
>> be
>> >> cast
>> >> >> to
>> >> >> org.apache.xerces.xni.parser.XMLParserConfiguration
>> >> >>         at org.apache.xerces.parsers.DOMParser.<init>(Unknown
>> Source)
>> >> >>         at org.apache.xerces.parsers.DOMParser.<init>(Unknown
>> Source)
>> >> >>         at
>> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown
>> >> >> Source)
>> >> >>         at
>> >> >>
>> >>
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>> >> >> Source)
>> >> >>         at
>> >> >>
>> >>
>> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
>> >> >>         at
>> >> >>
>> >>
>> com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
>> >> >>         at
>> >> >>
>> >>
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
>> >> >>         at
>> >> >>
>> >>
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
>> >> >>         at
>> >> >> com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
>> >> >>         at
>> >> >>
>> >>
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:786)
>> >> >>         ... 17 more
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Problem-restarting-webapp-after-change-in-watched-files--in-tutorial-archetype--tf4244319s2369.html#a12077985
>> >> >> 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/Problem-restarting-webapp-after-change-in-watched-files--in-tutorial-archetype--tf4244319s2369.html#a12079459
>> >> 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/Problem-restarting-webapp-after-change-in-watched-files--in-tutorial-archetype--tf4244319s2369.html#a12079697
>> 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/Problem-restarting-webapp-after-change-in-watched-files--in-tutorial-archetype--tf4244319s2369.html#a12079995
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