Oops.... it doesn't look as if this mailing list likes attachments...
you'll just have to take my word for what is said below.

  Owen.

-----Original Message-----
From: Owen Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 9:57 AM
To: [email protected]
Subject: RE: Maven archetype for jsr181 component.

Hello.

Thanks Guillaume for your reply.

I appologise if this is in fact an "annotation-related error". I've only
been using annotations since I started working with EJB3 and web
services about two months ago. I've been working as more of an architect
over that period, and haven't really had a time to explore these
features just yet.

I did as you said, and now Maven issues the following error:

[INFO]------------------------------------------------------------------
------
[ERROR]BUILD FAILURE
[INFO]------------------------------------------------------------------
------
[INFO]Compilation failure
[INFO]H:\CurrentProjects\LNSWebService\src\main\java\au\net\wcg\webservi
ce\jsr181\lns\ExampleService.java:[25,20] cannot find symbol
[INFO]symbol  : method name()
[INFO]location: @interface javax.jws.WebMethod
[INFO]

I was also working on two separate tasks yesterday. It was about midday
when I came across the problem, and I was about to switch to the second
of the two tasks. If the error in the Maven build I am now getting
relates to a malformed annotation, then your help, if you can offer any,
would certainly be appreciated.

However, the problem that prompted me to continue this thread yesterday
was that NetBeans isn't finding the package javax.jws. I have attached a
screen shot with this message that shows the problem I am trying to
resolve: namely that the editor isn't finding the package javax.jws -
indicated by the red wavy lines under the package imports and the
annotations.

It is interesting to note that the error above appears to indicate that
Maven knows about javax.jws. Might the error in the NetBeans editor then
be a problem with NetBeans or more specifically Mavenide, the Maven
NetBeans plugin?

  Owen.

-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 7:06 PM
To: [email protected]
Subject: Re: Maven archetype for jsr181 component.

What does your bean looks like ?
It sounds like the name found for one of its method is empty, not sure
why.
You should be able to work around the problem by using the
  @WebMethod(name = "myMethodName")
annotation.

On 3/19/07, Owen Thomas <[EMAIL PROTECTED]> wrote:

<cut/>

> ... I received the following error:
>
> *
> ****** Start of output
>
[INFO]------------------------------------------------------------------
> ------
> [ERROR]BUILD ERROR
>
[INFO]------------------------------------------------------------------
> ------
> [INFO]Failed to generate jbi.xml
>
> Embedded error: Unable to generate service unit descriptor!
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>         <component-name>null</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                         <task-id>deploy</task-id>
>                         <task-result>FAILED</task-result>
>                         <message-type>ERROR</message-type>
>
>
<task-status-msg><msg-loc-info><loc-token/><loc-message>java.lang.Illega
> lArgumentException: Invalid name
> []</loc-message></msg-loc-info></task-status-msg>
>                         <exception-info>
>                                 <nesting-level>1</nesting-level>
>                                 <msg-loc-info>
>                                         <loc-token />
>                                         <loc-message>Invalid name
> []</loc-message>
>
> <stack-trace><![CDATA[java.lang.IllegalArgumentException: Invalid name
> []
> [INFO]  at
>
org.codehaus.xfire.service.ServiceInfo.addOperation(ServiceInfo.java:73)


<cut/>

Reply via email to