maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo (JIRA)" <j...@codehaus.org>
Subject [jira] Issue Comment Edited: (MWAR-187) regression running war packaging with maven 2.1
Date Thu, 04 Jun 2009 08:00:42 GMT

    [ http://jira.codehaus.org/browse/MWAR-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179180#action_179180
] 

Pablo edited comment on MWAR-187 at 6/4/09 2:59 AM:
----------------------------------------------------

-I tried to downgrade to 2.0.2 but I encountered this issue: MWAR-134-
-Downgrading to 2.0 fixed my problem.-
-(I can provide an example project if needed.)-

      was (Author: pablo):
    I tried to downgrade to 2.0.2 but I encountered this issue: MWAR-134
Downgrading to 2.0 fixed my problem.
(I can provide an example project if needed.)
  
> regression running war packaging with maven 2.1
> -----------------------------------------------
>
>                 Key: MWAR-187
>                 URL: http://jira.codehaus.org/browse/MWAR-187
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-beta-1
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_11
> Java home: D:\platina\java\jdk6\jre
> Default locale: fr_FR, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: nicolas de loof
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: MWAR-187-bad_webapp_cache.zip
>
>
> Using plugin version 2.1-beta-1, my webapp can't get packaged.
> It can be fixed by downgrading the plugin to 2.0.2
> {code} 
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:w
> ar' -->
> [DEBUG]   (s) archiveClasses = false
> [DEBUG]   (s) attachClasses = false
> [DEBUG]   (s) cacheFile = D:\...\target\war\work\webapp-cache.xml
> [DEBUG]   (s) classesClassifier = classes
> [DEBUG]   (s) classesDirectory = D:\...\target\classes
> [DEBUG]   (f) escapedBackslashesInFilePath = false
> [DEBUG]   (s) failOnMissingWebXml = true
> [DEBUG]   (f) filteringDeploymentDescriptors = false
> [DEBUG]   (s) outputDirectory = D:\...\target
> [DEBUG]   (s) primaryArtifact = true
> [DEBUG]   (s) project = MavenProject: com.sfr.bios.pdc:bios-pdc-webservices:1.0.
> 0-SNAPSHOT @ D:\...\pom.xml
> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@10f0a0
> [DEBUG]   (s) useCache = true
> [DEBUG]   (s) warName = bios-pdc
> [DEBUG]   (s) warSourceDirectory = D:\...\src\main\webapp
> [DEBUG]   (s) webappDirectory = D:\...\target\bios-pdc-webservices-1.0.0-SNAPSHOT
> [DEBUG]   (s) workDirectory = D:\...\target\war\work
> [DEBUG] -- end configuration --
> [INFO] [war:war]
> [INFO] Packaging webapp
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] modelEncoding : modelEncoding : modelEncoding : modelEncoding
> ---- Debugging information ----
> message             : modelEncoding : modelEncoding
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
> n
> cause-message       : modelEncoding : modelEncoding
> class               : org.apache.maven.plugin.war.util.WebappStructure
> required-type       : org.apache.maven.model.Dependency
> path                : /webapp-structure/dependenciesInfo/org.apache.maven.plugin
> .war.util.DependencyInfo/dependency/modelEncoding
> line number         : 156
> -------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> com.thoughtworks.xstream.converters.ConversionException: modelEncoding : modelEn
> coding : modelEncoding : modelEncoding
> ---- Debugging information ----
> message             : modelEncoding : modelEncoding
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
> n
> cause-message       : modelEncoding : modelEncoding
> class               : org.apache.maven.plugin.war.util.WebappStructure
> required-type       : org.apache.maven.model.Dependency
> path                : /webapp-structure/dependenciesInfo/org.apache.maven.plugin
> .war.util.DependencyInfo/dependency/modelEncoding
> line number         : 156
> -------------------------------
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
> er.java:89)
>         at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
> bstractReferenceUnmarshaller.java:63)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:76)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.unmarshallField(AbstractReflectionConverter.java:246)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.doUnmarshal(AbstractReflectionConverter.java:218)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.unmarshal(AbstractReflectionConverter.java:162)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
> er.java:82)
>         at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
> bstractReferenceUnmarshaller.java:63)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:76)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:60)
>         at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon
> verter.readItem(AbstractCollectionConverter.java:71)
>         at com.thoughtworks.xstream.converters.collections.CollectionConverter.p
> opulateCollection(CollectionConverter.java:68)
>         at com.thoughtworks.xstream.converters.collections.CollectionConverter.u
> nmarshal(CollectionConverter.java:61)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
> er.java:82)
>         at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
> bstractReferenceUnmarshaller.java:63)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:76)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.unmarshallField(AbstractReflectionConverter.java:246)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.doUnmarshal(AbstractReflectionConverter.java:218)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.unmarshal(AbstractReflectionConverter.java:162)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
> er.java:82)
>         at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
> bstractReferenceUnmarshaller.java:63)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:76)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
> arshaller.java:60)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
> .java:137)
>         at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
> al(AbstractTreeMarshallingStrategy.java:33)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
>         at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
>         at org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(We
> bappStructureSerializer.java:73)
>         at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMo
> jo.java:423)
>         at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstr
> actWarMojo.java:394)
>         at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195
> )
>         at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:678)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:540)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:371)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:332)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: modelEnc
> oding : modelEncoding
>         at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper
> .java:68)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicP
> roxyMapper.java:71)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(Packa
> geAliasingMapper.java:88)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAl
> iasingMapper.java:86)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.jav
> a:96)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
> .java:38)
>         at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper
> .java:52)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.determineType(AbstractReflectionConverter.java:347)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.doUnmarshal(AbstractReflectionConverter.java:208)
>         at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
> erter.unmarshal(AbstractReflectionConverter.java:162)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
> er.java:82)
>         ... 50 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 24 seconds
> [INFO] Finished at: Wed Mar 25 08:33:07 CET 2009
> [INFO] Final Memory: 30M/71M
> [INFO] ----------------------
> {code} 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message