You need to include the "policy" attribute that will tell weblogic where
your policy file is located.
vikramjit singh wrote:
>Hi,
>
>I am trying to start WLS 7.0 from my build script.
>My build.xml is in D:\genius\Swing\CustomerProfile and WLS is in D:\BEA
>
>But i am getting the following error:
>
> BUILD FAILED
> file:D:/genius/Swing/CustomerProfile/build.xml:39: Security policy
>lib/weblogic.policy was not found.
> at
>org.apache.tools.ant.taskdefs.optional.ejb.WLRun.findSecurityPolicyFile(WLRu
>n.java:207)
> at
>org.apache.tools.ant.taskdefs.optional.ejb.WLRun.executeWLS6(WLRun.java:214)
> at
>org.apache.tools.ant.taskdefs.optional.ejb.WLRun.execute(WLRun.java:188)
> at org.apache.tools.ant.Task.perform(Task.java:319)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> at org.apache.tools.ant.Main.runBuild(Main.java:610)
> at org.apache.tools.ant.Main.start(Main.java:196)
> at org.apache.tools.ant.Main.main(Main.java:235)
>
>This is what i have..
><property name="JAVA_HOME" value="D:/JBuilder8/jdk1.4" />
><property name="BEA_HOME" value="D:/BEA/weblogic700/server/bin" />
><property name="WL_HOME" value="D:/BEA/weblogic700" />
>
> <target name="run_weblogic" >
> <wlrun taskname="myserver"
> classpath="${WL_HOME}/lib/weblogic.jar"
> name="myserver"
> domain="mydomain"
> home="${WL_HOME}"
> beahome="${BEA_HOME}"/>
> </target>
>
>vikram.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|