Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wlappc task errors

84 views
Skip to first unread message

Steven Ostrowski

unread,
Feb 10, 2004, 12:45:43 PM2/10/04
to
Trying to run a simple wlappc:

<taskdef classpathref="weblogic.classpath" name="wlappc"
classname="weblogic.ant.taskdefs.j2ee.Appc"/>

<wlappc
source="${build.dir}"
output="${build.dir}"
forceGeneration="true"
lineNumbers="${debug.option}"/>


However, I get the following error:

/home/ostrowskis/workspace/identDemo/build.xml:175:

java.util.MissingResourceException: Can't find bundle for base name
weblogic.i18n.J2EELogLocalizer, locale en_US

I'm using Ant 1.6 (not the BEA-provided Ant) so I'm not sure if there
are more variables I need to set. I want to have a self-contained Ant
build file for all of this, and not be reliant on the Weblogic install
for builds.

Deepak Vohra

unread,
Mar 6, 2004, 11:22:10 AM3/6/04
to

Add the resource properties file in Classpath.

Steven Ostrowski

unread,
Mar 17, 2004, 4:03:32 PM3/17/04
to
Thansk for the reponse, but I ended up just giving in and using BEA's
provided Ant script. The convenience of not having to set up your
environment in your build file was too large to ignore when you're using
a lot of BEA tasks.

Ronald Trask

unread,
Apr 8, 2004, 11:07:47 AM4/8/04
to

I have been trying to do the same thing, and I have not been able to get around
this problem. Could you provide an example of how to add the resource into the
class path?

I tried just adding the full classpath of the LogLocalizer properties file in,
with no succes.
I tried extracting the file from the jar file and adding the base directory to
the classpath with no success. I have tried using the resource attribute rather
than the file attribut in my class path.

I have not attempted to point my 1.6.1 ant at the weblogic.jar file yet, because
I need to get some devlopment done, but if I have time I later I was thinking
that this might be the a productive approach. Any thoughts?

Here are some relavant snipits from my ant script:


<path id="path.weblogic">
<!--
<fileset dir="C:\xxxx\wlprops\weblogic\i18n">
<include name="J2EELogLocalizer.properties"/>
</fileset>
<pathelement path="C:\xxxx\wlprops"/>
<pathelement path="weblogic/i18n/J2EELogLocalizer.properties"/>
-->
<pathelement path="${weblogicJar}"/>
</path>

<taskdef file="${base.dir}/weblogicTasks.properties" classpathref="path.weblogic"/>
-----------------------------------------------------------------------------
here is the contents of the weblogicTask.properties

# ResourceBundle properties file for Weblogic Tasks
# WLS tasks
wldeploy=weblogic.ant.taskdefs.management.WLDeploy
wlcompile=weblogic.ant.taskdefs.build.WLCompileTask
wlappc=weblogic.ant.taskdefs.j2ee.Appc

Abbas

unread,
Apr 12, 2004, 8:32:59 PM4/12/04
to
Ron,
Bea supports only ant 1.5.3 for weblogic 8.1 sp2. I had the same
issue. I checked with bea support and they told me that they support
only ant 1.5.3 officially. So, just use ant 1.5.3 and you will be
thru. You don't have to have any resource files in classpath.
Abbas

"Ronald Trask" <rtr...@echo-inc.com> wrote in message news:<40756ac3$1...@newsgroups.bea.com>...

0 new messages