Do you have a parent project in CurrentProjects ? Is the problem reproducible ? If yes, please raise a JIRA.
On 3/21/07, Owen Thomas <[EMAIL PROTECTED]> wrote:
Hmmm... I've removed the @WebMethod annotation, and get the following result: * ******** Start of output [ERROR]BUILD ERROR [INFO]------------------------------------------------------------------ ------ [INFO]Error executing ant tasks Embedded error: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [H:/CurrentProjects/src/main/resources/services.xml]; nested exception is java.io.FileNotFoundException: class path resource [H:/CurrentProjects/src/main/resources/services.xml] cannot be opened because it does not exist ******** End of output * This is interesting in that it almost certainly points to a bug in either Maven or (more probably perhaps) in the servicemix-jsr181 archetype. I believe the file H:/CurrentProjects/src/main/resources/services.xml should actually be H:/CurrentProjects/LNSWebService/src/main/resources/services.xml As this file exists, and LNSWebService is the directory name of the project I created using the servicemix-jsr181 archetype. This is probably a problem with the archetype. 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/>
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
