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

Why WLS8.1 reports "can't read WEB-INF/web-services.xml" ?

0 views
Skip to first unread message

T K

unread,
Apr 17, 2003, 6:08:49 PM4/17/03
to
Hi,

I'm running WLS8.1 on Redhat8. I have a very simple application that
consists of a web module (a web.xml and a jsp page, no web service
whatsoever) and a EJB module (a simple session bean). What I found out
is that I can deploy it as a EAR file but not as exploded directory.
Here are the two scenerios:

1) deploying as EAR (success)
java weblogic.Deployer -adminurl http://localhost:7001 -username super
-deploy -name test1 -source /tmp/test.wl.ear -targets myserver

2) deploying as exploded directory (failture):
(Of course I undeployed the application first)
java weblogic.Deployer -adminurl http://localhost:7001 -username super
-deploy -name test1 -source test.wl -targets myserver

And the error reported in the 2nd scenario is

<Error> <J2EE> <BEA-160069> <Error while looking for web services files:
can't read WEB-INF/web-services.xml
java.io.FileNotFoundException:
/opt/bea/weblogic81/server/bin/myserver/exploded/test.wl/web.war (Is a
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at
weblogic.utils.jars.BaseExplodedJarFile.getInputStream(BaseExplodedJarFile.java:43)
at
weblogic.j2ee.dd.WebModuleDescriptor.isWebService(WebModuleDescriptor.java:149)
at
weblogic.j2ee.dd.WebModuleDescriptor.getAdminMBeanType(WebModuleDescriptor.java:125)
at
weblogic.j2ee.J2EEApplicationContainerFactory.createMBeansForEar(J2EEApplicationContainerFactory.java:581)

....

My question is, why the deployer thinks it needs a web-services.xml
file? My application has nothing to do with web services at all. And of
course I've made my effort to make sure the source directory follows the
requirement of WLS exploded deployment.

Any ideas?

Thanks,
-tk


manoj cheenath

unread,
Apr 17, 2003, 8:24:04 PM4/17/03
to
Server checks for web-services.xml file, but it should
not fail to deploy non-webservice web apps. Can you
please post the war you are trying to deploy? You can
also contact the support to sort this issue out.

-manoj


"T K" <try...@rogers.com> wrote in message
news:3e9f...@newsgroups.bea.com...

0 new messages