ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject Re: DTDs & wlrun (Weblogic 5.1)
Date Tue, 10 Jul 2001 11:59:11 GMT

Which service pack? Early versions of 5.1 registered the web-app DTD under
the wrong publicId. For example, the web.xml in my 5.1 examples directory
has this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "">

As you can see this has the wrong publicID. You can try changing your
webapp to this DTD and see if it deploys. If it does then you will need to
upgrade to a more recent service pack.

With regard to your first problem, run ant with -debug and see how wlrun is
actually starting weblogic. You should be able to compare that to
startweblogic to see where the differences are.


----- Original Message -----
From: "Kyle Adams" <>
To: <>
Sent: Tuesday, July 10, 2001 3:16 AM
Subject: Re: DTDs & wlrun (Weblogic 5.1)

Weblogic 5.1

The problem is that (currently) wlrun can't deploy my EJB's.  When I simply
use the startweblogic command, the EJBs deploy fine.  wlrun is setup to
load the exact same classes into the java classpath and the weblogic
classpath.  We're puzzled by this, so we were wondering if weblogic was
choking on parsing the deployment descriptor (weblogic-ejb-jar.xml), since
it appears the JNDI doesn't seem to be bound correctly.  I've posted the
error message below.

That's problem #1, before we even get to problem #2 (the web.xml).  Here's
the error message in regards to problem #2:

 [wlrun] [ExternalEntity] : Could not resolve entity '-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN'.  Check your dtd reference.

And from the web.xml file:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "">

A quick check verifies that the DTD does exist at the specified location.

The error message for problem #1, brought to you by cut-'n-paste:

[wlrun] Mon Jul 09 11:23:14 EDT 2001:<E> <EJB> Could not deploy:
[wlrun] Possible reasons include:
[wlrun] 1. The bean or an interface class has been modified but
[wlrun]    the deployment descriptor has not been updated
[wlrun] 2. The database mappings in the deployment descriptor do not
[wlrun]    match the database definition
[wlrun] 3. The jar file is not a valid jar file
[wlrun] 4. The jar file does not contain a valid bean
[wlrun] weblogic.ejb.common.DeploymentException: Could not instantiate
EJBObject.; nested exception is:
[wlrun]     javax.naming.NameNotFoundException:
'comp/env/ejb/com/gfs/corp/common/bm/manager/SiteManager_EO'; remaining
name 'comp/env/ejb/com/gfs/corp/common/bm/manager/SiteManager_EO'
[wlrun] javax.naming.NameNotFoundException:
'comp/env/ejb/com/gfs/corp/common/bm/manager/SiteManager_EO'; remaining
name 'comp/env/ejb/com/gfs/corp/common/bm/manager/SiteManager_EO'
[wlrun]     at
Compiled Code)
[wlrun]     at
, Compiled Code)
[wlrun]     at
weblogic.jndi.toolkit.BasicWLContext.resolveNameToParentStore(BasicWLContex, Compiled Code)
[wlrun]     at
[wlrun]     at
[wlrun]     at
[wlrun]     at
[wlrun]     at
[wlrun]     at
[wlrun]     at
Compiled Code)
[wlrun]     at
[wlrun]     at
[wlrun]     at
weblogic.ejb.internal.EJBManagerImpl.deploy(, Compiled
[wlrun]     at
[wlrun]     at
[wlrun]     at
Compiled Code)
[wlrun]     at
[wlrun]     at weblogic.t3.srvr.T3Srvr.start(, Compiled Code)
[wlrun]     at weblogic.t3.srvr.T3Srvr.main(
[wlrun]     at java.lang.reflect.Method.invoke(Native Method)
[wlrun]     at weblogic.Server.startServerDynamically(
[wlrun]     at weblogic.Server.main(
[wlrun]     at weblogic.Server.main(

>>> 07/09/01 11:07AM >>>

I live behind a firewall during the day and I have never had a problem with
wlrun and DTDs. weblogic has a copy of the DTD itself and knows where to
find them (it has its own resolver). The wlrun task does not deal with
DTDs. It doesn't perform XML processing of any kind. So, before you add DTD
to wlrun, perhaps you can tell me the errors you are getting and give me a
sample of your web.xml file that is causing problems.

Oh, also need the version of Weblogic, etc


----- Original Message -----
From: "Kyle Adams" <>
To: <>
Sent: Tuesday, July 10, 2001 12:42 AM
Subject: DTDs & wlrun

It seems to me that the optional EJB tasks are somewhat schizophrenic.  The
ejbjar task is great - the <dtd> nested element is a wonderful solution for
those of us behind firewalls (or with the need to point to a local DTD).
On the other hand, the wlrun task is DTD-stupid, meaning that I'm running
into the same problems when weblogic tries to parse my web.xml files.

Since I'm behind a firewall, I need someway to point to the local DTDs in
wlrun.  Before I roll up my sleeves and extend wlrun to be DTD-smart, I
just wanted to check if 1) anyone else has had this problem, and if so,
what their workaround was and 2) if anyone's actually implemented a
DTD-smart wlrun task?  Perhaps in the most recent build of ant?


View raw message