In the weblogic-maven-plugin, the clientgen and clientgen9 goals do not work on 
Weblogic 10.3
---------------------------------------------------------------------------------------------

                 Key: MOJO-1396
                 URL: http://jira.codehaus.org/browse/MOJO-1396
             Project: Mojo
          Issue Type: Bug
          Components: weblogic
         Environment: Windows, x86, Weblogic 10.3, weblogic-maven-plugin 
2.9.2-SNAPSHOT
            Reporter: Tim Myer
            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


Reply via email to