[
http://jira.codehaus.org/browse/MWEBLOGIC-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201229#action_201229
]
Jon Osborn commented on MWEBLOGIC-3:
------------------------------------
Since it is unlikely that someone would build code to support both weblogic
instances in the same build, I would propose just creating a new mojo version
with the bugfix. Since WL 10 and 11 are out, does this seem reasonable to folks?
> In the weblogic-maven-plugin, the clientgen and clientgen9 goals do not work
> on Weblogic 10.3
> ---------------------------------------------------------------------------------------------
>
> Key: MWEBLOGIC-3
> URL: http://jira.codehaus.org/browse/MWEBLOGIC-3
> Project: Mojo WebLogic Plugin
> Issue Type: Bug
> Environment: Windows, x86, Weblogic 10.3, weblogic-maven-plugin
> 2.9.2-SNAPSHOT
> Reporter: Tim Myer
> Assignee: Jon Osborn
> Priority: Minor
> Attachments: patch.txt
>
>
> If I try to run the weblogic:clientgen9 goal with a Weblogic 10.3
> installation, I get the following error:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.codehaus.mojo:weblogic-maven-plugin:2.9.2-SNAPSHOT:clientgen9': Unable
> to find the mojo 'clientgen9' (or one of its required components) in the
> plugin 'org.codehaus.mojo:weblogic-maven-plugin'
> (class: org/codehaus/mojo/weblogic/ClientGen9Mojo, method: execute signature:
> ()V) Incompatible object argument for function call
> [INFO]
> ------------------------------------------------------------------------
> It appears that the weblogic API has changed very slightly so there are
> compilation errors in the ClientGen9 java file when using Weblogic 10.3
> dependencies.
> Delete "clientGen.setOverwrite( true );"
> Change "clientGen.setDestdir( new File( this.outputDir ) );" to
> clientGen.setDestDir( new File( this.outputDir ) );"
> There is also a NullPointerException that occurs when clearing a system
> property in WeblogicMojoUtilities.java.
> The attached patch (which can be run from the root of the
> weblogic-maven-plugin project) sets up a new goal (clientgen10), provides a
> test case, corrects the NullPointerException, and updates the plug-in's
> version number.
> I hope this helps. Thanks for the great plug-in!
> ---Tim---
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email