You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ashish <as...@tpgsi.com> on 2006/02/02 10:23:07 UTC
Getting problem in running weblogic generated ant script
Hi
I am using an ant build script generated by weblogic workshop 8.1.3. I am
using ant packaged with the weblogic installation(Apache Ant version
1.5.3).We are using java version 1.4.2_04.The ant script is copied below.
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Builds a web application project.
To run this script outside Workshop or wlwBuild, set the ant environment
variable CLASSPATH
to the value of the 'task.classpath' path reference.
-->
<project name="Web Application project build" default="build">
<property environment="env" />
<!-- These properties are auto-set to match local values when executed
within the IDE. -->
<property name="debug.info" value="true" />
<property name="beahome.local.directory" value="D:/bea" />
<property name="platformhome.local.directory" value="D:/bea/weblogic81" />
<property name="app.local.directory"
value="C:/builds/vice/BaseLine1.0/source/vice" />
<property name="project.local.directory"
value="C:/builds/vice/BaseLine1.0/source/vice/viceWeb" />
<!--end auto properties -->
<property name="appname" value="vice" /> <!-- the WLS name of the
application -->
<property name="webappname" value="viceWeb" />
<property name="webappcontextroot" value="/viceWeb" />
<property name="webappuri" value="viceWeb" />
<property name="servername" value="cgServer" />
<property name="domainroot"
value="${beahome.local.directory}/user_projects/domains/vice" />
<path id="task.classpath">
<fileset dir="${platformhome.local.directory}">
<include name="javelin/lib/javelin.jar"/>
<include name="common/lib/log4j.jar" />
<include name="server/lib/knex.jar" />
<include name="server/lib/xbean.jar" />
<include name="server/lib/wlxbean.jar" />
<include name="server/lib/xqrl.jar" />
<include name="server/lib/weblogic.jar"/>
<include name="server/lib/wli.jar"/>
</fileset>
</path>
<taskdef name="webappbuild"
classname="com.bea.wlw.runtime.core.ear.WebAppBuildTask"
classpathref="task.classpath"/>
<taskdef name="webappclean"
classname="com.bea.wlw.runtime.core.ear.WebAppCleanTask"
classpathref="task.classpath"/>
<target name="build" description="Build this Web project">
<!-- if ide.class.path is set, then class.path is set to it. -->
<condition property="class.path" value="${ide.class.path}">
<isset property="ide.class.path"/>
</condition>
<!-- this property call is ignored if the condition above is met -->
<property name="class.path"
value="${beahome.local.directory}/jdk142_04/jre/lib/rt.jar;${beahome.local.d
irectory}/jdk142_04/jre/lib/jsse.jar;${beahome.local.directory}/jdk142_04/jr
e/lib/jce.jar;${beahome.local.directory}/jdk142_04/lib/tools.jar;${platformh
ome.local.directory}/server/lib/knex.jar;${platformhome.local.directory}/com
mon/lib/log4j.jar;${platformhome.local.directory}/server/lib/debugging.jar;$
{platformhome.local.directory}/javelin/lib/javelin.jar;${platformhome.local.
directory}/server/lib/wlw-lang.jar;${platformhome.local.directory}/server/li
b/weblogic.jar;${platformhome.local.directory}/common/eval/pointbase/lib/pbs
erver44.jar;${platformhome.local.directory}/common/eval/pointbase/lib/pbclie
nt44.jar;${platformhome.local.directory}/server/lib/webservices.jar;${platfo
rmhome.local.directory}/server/lib/webserviceclient.jar;${platformhome.local
.directory}/server/lib/webserviceclient+ssl.jar;${platformhome.local.directo
ry}/server/lib/wli.jar;${platformhome.local.directory}/server/lib/xbean.jar;
${platformhome.local.directory}/server/lib/wlxbean.jar;${platformhome.local.
directory}/server/lib/xqrl.jar;${platformhome.local.directory}/server/lib/ne
tui/netui-compiler.jar;${app.local.directory}/APP-INF/lib/itext-1.3.jar;${ap
p.local.directory}/APP-INF/lib/jcommon-0.9.6.jar;${app.local.directory}/APP-
INF/lib/jfreechart-0.9.21.jar;${app.local.directory}/APP-INF/lib/log4j-1.2.8
.jar;${app.local.directory}/APP-INF/lib/log4j.jar;${app.local.directory}/APP
-INF/lib/vicejava.jar;${app.local.directory}/APP-INF/lib/mail.jar;${app.loca
l.directory}/APP-INF/lib/Schemas.jar;${project.local.directory}/WEB-INF/lib/
commons-beanutils.jar;${project.local.directory}/WEB-INF/lib/commons-collect
ions.jar;${project.local.directory}/WEB-INF/lib/commons-digester.jar;${proje
ct.local.directory}/WEB-INF/lib/commons-fileupload.jar;${project.local.direc
tory}/WEB-INF/lib/commons-logging.jar;${project.local.directory}/WEB-INF/lib
/commons-validator.jar;${project.local.directory}/WEB-INF/lib/netui-pageflow
.jar;${project.local.directory}/WEB-INF/lib/netui-scoping.jar;${project.loca
l.directory}/WEB-INF/lib/netui-tags-databinding.jar;${project.local.director
y}/WEB-INF/lib/netui-tags-html.jar;${project.local.directory}/WEB-INF/lib/ne
tui-tags-template.jar;${project.local.directory}/WEB-INF/lib/netui-util.jar;
${project.local.directory}/WEB-INF/lib/netui-wl.jar;${project.local.director
y}/WEB-INF/lib/struts.jar;${project.local.directory}/WEB-INF/classes"/>
<echo> task.classpath= ${class.path} </echo>
<antcall target="clean" />
<webappbuild appdir="${app.local.directory}"
appname="${appname}"
servername="${servername}"
domainroot="${domainroot}"
verbose="false"
nowarn="false"
noerr="false"
debug="${debug.info}"
serverbuild="true"
precompilejsp="true">
<Webapp name="${webappname}" contextroot="${webappcontextroot}"
uri="${webappuri}"
classpath="${class.path}"/>
</webappbuild>
</target>
<target name="clean" description="Clean this Web project">
<webappclean appdir="${app.local.directory}"
appname="${appname}"
servername="${servername}"
domainroot="${domainroot}"
webappname="${webappname}"
webappcontextroot="${webappcontextroot}"
webappuri="${webappuri}" />
</target>
</project>
The classpaths are proper.When I run the script i see following output(The
output is partial).
[webappbuild] usermgmt\mainPage.jsp
[webappbuild] usermgmt\upperMenu.jsp
[webappbuild] usermgmt\DisplayUserInformation.jsp
[webappbuild] usermgmt\applicationPermission.jsp
[webappbuild] usermgmt\createRole.jsp
[webappbuild] usermgmt\createUser.jsp
[webappbuild] Creating beans for linked controls...
[webappbuild] com\bea\wlw\runtime\core\control\EventControl.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An I/O Exception occurred while attempting to
write t
he deployment descriptors for Enterprise Java Beans. Error: Production rule
file
'/com/bea/wlw/runtime/core/bean/codegen/ejb-jar.template' not found.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
generate the Enterprise Java Beans or JMS Message Queues required for this
Web S
ervice. Error:
com.bea.wlw.runtime.core.dispatcher.DispCache$CacheException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
locate the run-time information for this Web Service. Error:
java.lang.NullPoint
erException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] com\bea\wlw\runtime\core\control\jmscontrol\MDBListener.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An I/O Exception occurred while attempting to
write t
he deployment descriptors for Enterprise Java Beans. Error: Production rule
file
'/com/bea/wlw/runtime/core/bean/codegen/ejb-jar.template' not found.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
generate the Enterprise Java Beans or JMS Message Queues required for this
Web S
ervice. Error:
com.bea.wlw.runtime.core.dispatcher.DispCache$CacheException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] com\bea\control\TimerControl.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: Can't find implementation class for
com.bea.control.T
imerControl
[webappbuild] SUGGESTION: You may be missing a web logic component such as
WLI
.
knex.jar is in classpath and it contains ejb-jar.template.
regards
Ashish
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Getting problem in running weblogic generated ant script
Posted by Sujeet Banerjee <su...@persistent.co.in>.
Again, it seems that some WLI or WLW jars are not in your system CLASSPATH. Update your system
CASSPATH.
The IO exception is generated because you can not write into a JAR directly. It has to be first
unzipped and stored temporarily.
-Sujeet
----- Original Message -----
From: ashish
To: user@ant.apache.org
Sent: Thursday, February 02, 2006 2:53 PM
Subject: Getting problem in running weblogic generated ant script
Hi
I am using an ant build script generated by weblogic workshop 8.1.3. I am
using ant packaged with the weblogic installation(Apache Ant version
1.5.3).We are using java version 1.4.2_04.The ant script is copied below.
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Builds a web application project.
To run this script outside Workshop or wlwBuild, set the ant environment
variable CLASSPATH
to the value of the 'task.classpath' path reference.
-->
<project name="Web Application project build" default="build">
<property environment="env" />
<!-- These properties are auto-set to match local values when executed
within the IDE. -->
<property name="debug.info" value="true" />
<property name="beahome.local.directory" value="D:/bea" />
<property name="platformhome.local.directory" value="D:/bea/weblogic81" />
<property name="app.local.directory"
value="C:/builds/vice/BaseLine1.0/source/vice" />
<property name="project.local.directory"
value="C:/builds/vice/BaseLine1.0/source/vice/viceWeb" />
<!--end auto properties -->
<property name="appname" value="vice" /> <!-- the WLS name of the
application -->
<property name="webappname" value="viceWeb" />
<property name="webappcontextroot" value="/viceWeb" />
<property name="webappuri" value="viceWeb" />
<property name="servername" value="cgServer" />
<property name="domainroot"
value="${beahome.local.directory}/user_projects/domains/vice" />
<path id="task.classpath">
<fileset dir="${platformhome.local.directory}">
<include name="javelin/lib/javelin.jar"/>
<include name="common/lib/log4j.jar" />
<include name="server/lib/knex.jar" />
<include name="server/lib/xbean.jar" />
<include name="server/lib/wlxbean.jar" />
<include name="server/lib/xqrl.jar" />
<include name="server/lib/weblogic.jar"/>
<include name="server/lib/wli.jar"/>
</fileset>
</path>
<taskdef name="webappbuild"
classname="com.bea.wlw.runtime.core.ear.WebAppBuildTask"
classpathref="task.classpath"/>
<taskdef name="webappclean"
classname="com.bea.wlw.runtime.core.ear.WebAppCleanTask"
classpathref="task.classpath"/>
<target name="build" description="Build this Web project">
<!-- if ide.class.path is set, then class.path is set to it. -->
<condition property="class.path" value="${ide.class.path}">
<isset property="ide.class.path"/>
</condition>
<!-- this property call is ignored if the condition above is met -->
<property name="class.path"
value="${beahome.local.directory}/jdk142_04/jre/lib/rt.jar;${beahome.local.d
irectory}/jdk142_04/jre/lib/jsse.jar;${beahome.local.directory}/jdk142_04/jr
e/lib/jce.jar;${beahome.local.directory}/jdk142_04/lib/tools.jar;${platformh
ome.local.directory}/server/lib/knex.jar;${platformhome.local.directory}/com
mon/lib/log4j.jar;${platformhome.local.directory}/server/lib/debugging.jar;$
{platformhome.local.directory}/javelin/lib/javelin.jar;${platformhome.local.
directory}/server/lib/wlw-lang.jar;${platformhome.local.directory}/server/li
b/weblogic.jar;${platformhome.local.directory}/common/eval/pointbase/lib/pbs
erver44.jar;${platformhome.local.directory}/common/eval/pointbase/lib/pbclie
nt44.jar;${platformhome.local.directory}/server/lib/webservices.jar;${platfo
rmhome.local.directory}/server/lib/webserviceclient.jar;${platformhome.local
.directory}/server/lib/webserviceclient+ssl.jar;${platformhome.local.directo
ry}/server/lib/wli.jar;${platformhome.local.directory}/server/lib/xbean.jar;
${platformhome.local.directory}/server/lib/wlxbean.jar;${platformhome.local.
directory}/server/lib/xqrl.jar;${platformhome.local.directory}/server/lib/ne
tui/netui-compiler.jar;${app.local.directory}/APP-INF/lib/itext-1.3.jar;${ap
p.local.directory}/APP-INF/lib/jcommon-0.9.6.jar;${app.local.directory}/APP-
INF/lib/jfreechart-0.9.21.jar;${app.local.directory}/APP-INF/lib/log4j-1.2.8
.jar;${app.local.directory}/APP-INF/lib/log4j.jar;${app.local.directory}/APP
-INF/lib/vicejava.jar;${app.local.directory}/APP-INF/lib/mail.jar;${app.loca
l.directory}/APP-INF/lib/Schemas.jar;${project.local.directory}/WEB-INF/lib/
commons-beanutils.jar;${project.local.directory}/WEB-INF/lib/commons-collect
ions.jar;${project.local.directory}/WEB-INF/lib/commons-digester.jar;${proje
ct.local.directory}/WEB-INF/lib/commons-fileupload.jar;${project.local.direc
tory}/WEB-INF/lib/commons-logging.jar;${project.local.directory}/WEB-INF/lib
/commons-validator.jar;${project.local.directory}/WEB-INF/lib/netui-pageflow
.jar;${project.local.directory}/WEB-INF/lib/netui-scoping.jar;${project.loca
l.directory}/WEB-INF/lib/netui-tags-databinding.jar;${project.local.director
y}/WEB-INF/lib/netui-tags-html.jar;${project.local.directory}/WEB-INF/lib/ne
tui-tags-template.jar;${project.local.directory}/WEB-INF/lib/netui-util.jar;
${project.local.directory}/WEB-INF/lib/netui-wl.jar;${project.local.director
y}/WEB-INF/lib/struts.jar;${project.local.directory}/WEB-INF/classes"/>
<echo> task.classpath= ${class.path} </echo>
<antcall target="clean" />
<webappbuild appdir="${app.local.directory}"
appname="${appname}"
servername="${servername}"
domainroot="${domainroot}"
verbose="false"
nowarn="false"
noerr="false"
debug="${debug.info}"
serverbuild="true"
precompilejsp="true">
<Webapp name="${webappname}" contextroot="${webappcontextroot}"
uri="${webappuri}"
classpath="${class.path}"/>
</webappbuild>
</target>
<target name="clean" description="Clean this Web project">
<webappclean appdir="${app.local.directory}"
appname="${appname}"
servername="${servername}"
domainroot="${domainroot}"
webappname="${webappname}"
webappcontextroot="${webappcontextroot}"
webappuri="${webappuri}" />
</target>
</project>
The classpaths are proper.When I run the script i see following output(The
output is partial).
[webappbuild] usermgmt\mainPage.jsp
[webappbuild] usermgmt\upperMenu.jsp
[webappbuild] usermgmt\DisplayUserInformation.jsp
[webappbuild] usermgmt\applicationPermission.jsp
[webappbuild] usermgmt\createRole.jsp
[webappbuild] usermgmt\createUser.jsp
[webappbuild] Creating beans for linked controls...
[webappbuild] com\bea\wlw\runtime\core\control\EventControl.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An I/O Exception occurred while attempting to
write t
he deployment descriptors for Enterprise Java Beans. Error: Production rule
file
'/com/bea/wlw/runtime/core/bean/codegen/ejb-jar.template' not found.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
generate the Enterprise Java Beans or JMS Message Queues required for this
Web S
ervice. Error:
com.bea.wlw.runtime.core.dispatcher.DispCache$CacheException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
locate the run-time information for this Web Service. Error:
java.lang.NullPoint
erException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] com\bea\wlw\runtime\core\control\jmscontrol\MDBListener.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An I/O Exception occurred while attempting to
write t
he deployment descriptors for Enterprise Java Beans. Error: Production rule
file
'/com/bea/wlw/runtime/core/bean/codegen/ejb-jar.template' not found.
[webappbuild] ERROR
[webappbuild] DESCRIPTION: An unexpected exception occurred while attempting
to
generate the Enterprise Java Beans or JMS Message Queues required for this
Web S
ervice. Error:
com.bea.wlw.runtime.core.dispatcher.DispCache$CacheException:null
[webappbuild] SUGGESTION: An unexpected error occurred. Please contact
support
@bea.com for further assistance.
[webappbuild] com\bea\control\TimerControl.jcx
[webappbuild] ERROR
[webappbuild] DESCRIPTION: Can't find implementation class for
com.bea.control.T
imerControl
[webappbuild] SUGGESTION: You may be missing a web logic component such as
WLI
.
knex.jar is in classpath and it contains ejb-jar.template.
regards
Ashish
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org