You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Shon Schetnan <sh...@scansource.com> on 2004/06/23 23:50:46 UTC

Using weblogic 8.1 Ant deploy task within Maven

Hello,
 
I am trying to use the Weblogic deploy ant task within maven.  When I
run it I get the following exception.
 
My project.xml dependency is the following.
 
   <dependency>
     <groupId>weblogic</groupId>
     <artifactId>weblogic</artifactId>
     <properties>
        <classloader>root</classloader>
     </properties>
   </dependency>
 
project.properties jar override:
 
maven.jar.weblogic = c:/bea/weblogic81/server/lib/weblogic.jar
 (I know hard coded, but I'm just trying to get this working.  :) )
 
The maven.xml goal is:
 
    <taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
 
    <goal name="deployWL">
        <wldeploy action="deploy"
            source="${maven.build.dir}/sso.war" user="administrator"
password="administrator" verbose="true" adminurl="t3://${wlhost}:7001"
            debug="true" targets="SSOServer"/>
    </goal>
 
 
I'm stumped.  Any help would be greatly appreciated.
 
--Shon
 
 
weblogic.Deployer -debug -verbose -noexit -source
C:\projects\SSO\HTTPIntegratio
n\target\sso.war -targets SSOServer -adminurl t3://localhost:7001 -user
administ
rator -password administrator -deploy
java.lang.reflect.InvocationTargetException
        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:324)
        at
weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:20
9)
        at
weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:170)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa
g.java:79)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
610)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
        at org.apache.maven.cli.App.doMain(App.java:485)
        at org.apache.maven.cli.App.main(App.java:1214)
        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:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NullPointerException
        at weblogic.Deployer.main(Deployer.java:411)
        ... 25 more
 
BUILD FAILED
File...... C:\projects\SSO\HTTPIntegration\maven.xml
Element... wldeploy
Line...... 86
Column.... 47
java.lang.reflect.InvocationTargetException
Total time: 6 seconds
Finished at: Wed Jun 23 16:17:34 CDT 2004