users@glassfish.java.net

Re: WSDL file not found error

From: Kenneth Clark <kenneth_at_rabiddog.co.za>
Date: Thu, 08 Mar 2007 17:03:55 +0200

@WebService has been specified and the wsgen tool runs successfully
against the endpoints generating the WSDLs.

The WSDL is packaged in the EJB-JAR. The objects it requires are
packaged in a POJO jar stored under the domain1/lib/applibs. Now I am
getting the error:

Deploying application in domain failed; Error loading deployment
descriptors for module [utilsService]
-- Invalid ejb jar
[D:\path\domains\domain1\applications\j2ee-modules\utilsService]: it
contains zero ejb. Note:
  1. A valid ejb jar requires at least one session, entity (1.x/2.x
style), or message driven bean.
  2. EJB3+ entity beans (@Entity) are POJOs and please package them as
library jar. Error loading deployment descriptors for module [utilsService]

On further investigation I came across:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6477068
So I am under the impression that it can't find the objects packaged in
the POJO jar file. That being said on deployment (via the web interface)
I do give the path to the directory containing the objects. I do not add
the .jar file to the path though.

Is there a way to debug where this is failing. Like I said, if I package
the libraries with the EJB-JAR it works, when I separate them it fails.
The instructions I followed come from
https://glassfish.dev.java.net/nonav/javaee5/docs/DG/beade.html#gatej

Thanks for the response and I really hope you can help me

Kenneth Clark
Developer / Analyst

Rabid Dog Laboratories ^(TM)
Putting the art back into development

*tel:* +27 11 475 7409
*mobile:* +27 82 500 5090
*e-mail:* kenneth_at_rabiddog.co.za
*website:* http://www.rabiddog.co.za/


Vijay Ramachandran wrote:
> How have you specified @WebService annotation in the EJB-JAR that has
> the service ? Is the WSDL packaged in the EJB-JAR or the POJO jar ?
>
> Vijay
>
> Kenneth Clark wrote:
>> OKay well now it is fine but what I changed is this
>>
>> Initially I was trying to package the POJO @Entity objects as a jar
>> library residing in the domain1 lib directory and deploying the
>> services that relied on the library as an EJB-JAR.
>>
>> if I include the libraries in the EJB-JAR it deploys. This works but
>> will not meet the requirements of the application I am required to
>> build. Should I be deploying another way? Is there something I need
>> to set somewhere in order for this to be resolved?
>>
>> Any help would be greatly appreciated, thanks
>>
>> Kenneth Clark
>> Developer / Analyst
>>
>> Rabid Dog Laboratories ^(TM)
>> Putting the art back into development
>>
>> *tel:* +27 11 475 7409
>> *mobile:* +27 82 500 5090
>> *e-mail:* kenneth_at_rabiddog.co.za
>> *website:* http://www.rabiddog.co.za/
>>
>>
>> Kenneth Clark wrote:
>>> Hi all. I am fighting with this error right now
>>>
>>> Deploying application in domain failed; Error while running ejbc --
>>> Fatal Error from EJB Compiler --
>>> D:\path\utilsService\META-INF\wsdl\Service.wsdl (The system cannot
>>> find the file specified) Error while running ejbc
>>>
>>> But when I check inside the .jar file the Service.wsdl file is right
>>> there. Any ideas as to what is going on?
>>>
>>>
>>> --
>>> Kenneth Clark
>>> Developer / Analyst
>>>
>>> Rabid Dog Laboratories ^(TM)
>>> Putting the art back into development
>>>
>>> *tel:* +27 11 475 7409
>>> *mobile:* +27 82 500 5090
>>> *e-mail:* kenneth_at_rabiddog.co.za
>>> *website:* http://www.rabiddog.co.za/
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.446 / Virus Database: 268.18.7/713 - Release Date:
>>> 07/03/2007 09:24
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>