Topic
  • 2 replies
  • Latest Post - ‏2013-11-29T18:22:16Z by JamesGaythwaite
JamesGaythwaite
JamesGaythwaite
2 Posts

Pinned topic Maven Overlay Publishing Errors

‏2013-11-29T15:56:50Z |

I had posted this error to the m2e group and they pointed me over here.  We recently started using Maven war overlays in my project and are having a lot of difficulty within the workspace.  If I do a maven update, project clean, and start from scratch, the app will start up fine.  After that, if I try to publish any changes (doesn't need to be related to the overlay projects), I get the following error related to the overlay projects.  The only way I have gotten rid of it is by going back through the update+clean rain dance and then doing a server clean.

Any clue as to what is going wrong?  

The response I got from the m2e group is below:

"This looks like an incompatibility between m2e-wtp's war overlays implementation and the Websphere server adapter.

From my limited understanding of the error, there's a chance m2e-wtp 's overlay component doesn't behave as expected, being used in a different way it has been tested so far (with JBoss / Tomcat / Glassfish). So if anyone (hello IBM!)  could help me figure out what's expected from https://github.com/eclipse/m2e.wtp/blob/master/org.eclipse.m2e.wtp.overlay/src/org/eclipse/m2e/wtp/overlay/internal/modulecore/OverlayVirtualArchiveComponent.java please chime in!"

 

Here are the IDE and server details:

Eclipse Juno Version: Juno Service Release 2 Build id: 20130225-0426

Websphere 7.0.0.27

  Web Development Tools 8.5.500.v20130528_1930 com.ibm.wdt.webtools.top.feature.feature.group IBM

  WebSphere® Application Server V7.0 Tools 8.5.5000.v20130528_1930 com.ibm.websphere.wdt.st.v7.feature.group IBM

  OSGi Application Development Tools 8.5.5011.v20131031_0202 com.ibm.osgi.wdt.feature.feature.group IBM

  m2e-wtp - Maven Integration for WTP 1.0.1.20130911-1545 org.eclipse.m2e.wtp.feature.feature.group Eclipse.org - m2e-wtp

  m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 org.eclipse.m2e.feature.feature.group Eclipse.org - m2e

 

Here is the error log:


The publish encountered some problems and the application may not have been installed or it may have been successfully installed but was unable to start. View the Details to display the exceptions and server logs that occurred during the publish.


========web-ear ========


The application did not update:

The application did not update:

For details about the failure, refer to the Console view to see the log output of the server. .

[11/26/13 16:14:23:633 EST] 0000021f annotations   I AroundInvokeMergeAction mergeMethodTarget Could not locate an EJB reference for Interceptor  [ com.adp.wfn.system.service.impl.WFNInterceptor ]

[11/26/13 16:14:26:750 EST] 00000223 annotations   I AroundInvokeMergeAction mergeMethodTarget Could not locate an EJB reference for Interceptor  [ com.adp.wfn.system.service.impl.WFNInterceptor ]

[11/26/13 16:14:30:112 EST] 00000223 annotations   I AroundInvokeMergeAction mergeMethodTarget Could not locate an EJB reference for Interceptor  [ com.adp.wfn.system.service.impl.WFNInterceptor ]

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: m2e-wtp/overlays/web-resources-6.0.0.5-SNAPSHOT.war

Stack trace of nested exception:

java.io.FileNotFoundException: File [ m2e-wtp/overlays/web-resources-6.0.0.5-SNAPSHOT.war ] not found in archive [web-process-6.0.0.5-SNAPSHOT.war ] at [ /home/dev/WAS7.0.0.27/WebSphere70b32/AppServer/profiles/TEST/wstemp/wstemp/app_14296435c35/mrg/web-process-6.0.0.5-SNAPSHOT.war]

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryLoadStrategyImpl.basicGetInputStream(DirectoryLoadStrategyImpl.java:1009)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryLoadStrategyImpl.getInputStream(DirectoryLoadStrategyImpl.java:923)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:599)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.primGetInputStream(ArchiveImpl.java:2022)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.FileImpl.getInputStream(FileImpl.java:179)

at org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIteratorImpl.getInputStream(FileIteratorImpl.java:77)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:540)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:505)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:235)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.save(ArchiveImpl.java:2696)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.save(ModuleFileImpl.java:507)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:603)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:231)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:525)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:505)

at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:235)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.save(ArchiveImpl.java:2696)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.save(ModuleFileImpl.java:507)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:2916)

at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAs(ArchiveImpl.java:2736)

at com.ibm.ws.management.application.task.FileMergeTask.update(FileMergeTask.java:343)

at com.ibm.ws.management.application.task.FileMergeTask.performTask(FileMergeTask.java:148)

at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:294)

at java.lang.Thread.run(Thread.java:738)


[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R Stack trace of nested exception:

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R java.io.FileNotFoundException: File [ m2e-wtp/overlays/web-resources-6.0.0.5-SNAPSHOT.war ] not found in archive [web-process-6.0.0.5-SNAPSHOT.war ] at [ /home/dev/WAS7.0.0.27/WebSphere70b32/AppServer/profiles/TEST/wstemp/wstemp/app_14296435c35/mrg/web-process-6.0.0.5-SNAPSHOT.war]

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryLoadStrategyImpl.basicGetInputStream(DirectoryLoadStrategyImpl.java:1009)

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.DirectoryLoadStrategyImpl.getInputStream(DirectoryLoadStrategyImpl.java:923)

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:599)

[11/26/13 16:14:32:376 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.primGetInputStream(ArchiveImpl.java:2022)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.FileImpl.getInputStream(FileImpl.java:179)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.FileIteratorImpl.getInputStream(FileIteratorImpl.java:77)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:540)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:505)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:235)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.save(ArchiveImpl.java:2696)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.save(ModuleFileImpl.java:507)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:603)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:231)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:525)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:505)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:235)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.save(ArchiveImpl.java:2696)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.save(ModuleFileImpl.java:507)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:2916)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.saveAs(ArchiveImpl.java:2736)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at com.ibm.ws.management.application.task.FileMergeTask.update(FileMergeTask.java:343)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at com.ibm.ws.management.application.task.FileMergeTask.performTask(FileMergeTask.java:148)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:294)

[11/26/13 16:14:32:377 EST] 00000223 SystemErr     R at java.lang.Thread.run(Thread.java:738)

  • e_yuen
    e_yuen
    27 Posts

    Re: Maven Overlay Publishing Errors

    ‏2013-11-29T16:58:49Z  

    Can you try changing the publishing settings on the server editor to "Run server with resources on Server" under the "Publishing settings for WebSphere Application Server" section to see if you still see the same problem?

    Elson

  • JamesGaythwaite
    JamesGaythwaite
    2 Posts

    Re: Maven Overlay Publishing Errors

    ‏2013-11-29T18:22:16Z  
    • e_yuen
    • ‏2013-11-29T16:58:49Z

    Can you try changing the publishing settings on the server editor to "Run server with resources on Server" under the "Publishing settings for WebSphere Application Server" section to see if you still see the same problem?

    Elson

    I am already using server resources.