<div dir="ltr"><div><div>Hi<br><br></div>We append two lines in pom.xml file.<br></div>Now, we are able to generate cas.war.<br><div><br><plugin><br> <b><groupId>org.apache.maven.plugins</groupId></b><br>
<artifactId>maven-war-plugin</artifactId><br> <b> <version>2.1.1</version></b><br> <configuration><br> <warName>cas</warName><br>
</configuration><br></plugin><br><br></div><div>BR<br></div><div>Paulo<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-08 16:53 GMT-03:00 Paulo André <span dir="ltr"><<a href="mailto:pfilipak@gmail.com" target="_blank">pfilipak@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi<br><br></div>We've run mvn package for ala-cas (svn version 4248) and we've caught this issue: "Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor".<br>
<br></div><div>Have you ever had this issue?</div><div><div><div><br></div><div>BR<br></div><div>Paulo<br></div><div><br>[ERROR] FATAL ERROR<br>[INFO] ------------------------------------------------------------------------<br>
[INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>---- Debugging information ----<br>message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException<br>cause-message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>
class : org.apache.maven.plugin.war.util.WebappStructure<br>required-type : org.apache.maven.plugin.war.util.WebappStructure<br>path : /webapp-structure<br>line number : 1<br>-------------------------------<br>
[INFO] ------------------------------------------------------------------------<br>[INFO] Trace<br>com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>
---- Debugging information ----<br>message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException<br>
cause-message : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>class : org.apache.maven.plugin.war.util.WebappStructure<br>required-type : org.apache.maven.plugin.war.util.WebappStructure<br>
path : /webapp-structure<br>line number : 1<br>-------------------------------<br> at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)<br> at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)<br>
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)<br> at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)<br> at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)<br>
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)<br> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)<br> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)<br> at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:73)<br>
at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:404)<br> at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:375)<br> at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:181)<br>
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143)<br> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)<br>
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)<br>
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)<br>
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)<br> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)<br> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)<br>
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)<br> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:606)<br> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br>
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br>Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor<br>
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59)<br> at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257)<br>
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124)<br> at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)<br>
... 31 more<br>[INFO] ------------------------------------------------------------------------<br>[INFO] Total time: 23 seconds<br>[INFO] Finished at: Thu May 08 16:24:37 BRT 2014<br>[INFO] Final Memory: 20M/89M<br>[INFO] ------------------------------------------------------------------------<br>
<br></div></div></div></div>
</blockquote></div><br></div>