You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Erik Allais <er...@altervisions.com> on 2007/07/04 09:43:13 UTC

JSR-181 problem with maven install

i try to make this command on the directory of my jsr-181 archetype but i got
this error

servicemix@altervisions:~/altervisions/modulo_connect_v0.1/mc-jsr181-su$ mvn
install
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Modulo Connect v0.1 Service Unit (JSR181)
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from apache.incubating
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
updates from apache.incubating
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from apache.incubating
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
updates from apache.incubating
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
updates from apache.incubating
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jbi:generate-jbi-service-unit-descriptor]
[INFO] Generating jbi.xml
[INFO] Created Service Unit Analyzer
org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer@19a8416
2007-07-04 08:41:28,195 [main           ] INFO  CollectionFactory             
- JDK 1.4+ collections available
2007-07-04 08:41:28,209 [main           ] INFO  CollectionFactory             
- Commons Collections 3.x available
2007-07-04 08:41:28,272 [main           ] INFO  XBeanXmlBeanDefinitionReader  
- Loading XML bean definitions from URL
[file://home/servicemix/altervisions/modulo_connect_v0.1/mc-jsr181-su/src/main/resources/xbean.xml]
2007-07-04 08:41:28,639 [main           ] INFO 
ileSystemXmlApplicationContext - Bean factory for application context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; root of
BeanFactory hierarchy
2007-07-04 08:41:28,643 [main           ] INFO 
ileSystemXmlApplicationContext - 1 beans defined in application context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]
2007-07-04 08:41:28,649 [main           ] INFO 
ileSystemXmlApplicationContext - Unable to locate MessageSource with name
'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@b48b11]
2007-07-04 08:41:28,655 [main           ] INFO 
ileSystemXmlApplicationContext - Unable to locate
ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default
[org.springframework.context.event.SimpleApplicationEventMulticaster@14b9a74]
2007-07-04 08:41:28,655 [main           ] INFO  DefaultListableBeanFactory    
- Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; parent:
org.apache.servicemix.common.xbean.SimpleBeanFactory@1185844]
[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.IllegalArgumentException:
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 []
        at
org.codehaus.xfire.service.ServiceInfo.addOperation(ServiceInfo.java:73)
        at
org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:801)
        at
org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSServiceFactory.addOperation(ServiceFactoryHelper.java:210)
        at
org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:761)
        at
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:444)
        at
org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:277)
        at
org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoint.java:301)
        at
org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java:216)
        at
org.apache.servicemix.common.DefaultComponent.addEndpoint(DefaultComponent.java:300)
        at
org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:287)
        at
org.apache.servicemix.jsr181.Jsr181Component.doInit(Jsr181Component.java:81)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:142)
        at
org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:57)
        at
org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:96)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:166)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:129)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
]]></stack-trace>
                                </msg-loc-info>
                        </exception-info>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Wed Jul 04 08:41:29 GMT+01:00 2007
[INFO] Final Memory: 15M/30M
[INFO]
------------------------------------------------------------------------

Here the following pom.xml

<?xml version="1.0" encoding="UTF-8"?><project>
  <parent>
    <artifactId>modulo_connect</artifactId>
    <groupId>com.altervisions.moduloconnect.sample</groupId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.altervisions.moduloconnect.sample</groupId>
  <artifactId>mc-jsr181-su</artifactId>
  <packaging>jbi-service-unit</packaging>
  <name>Modulo Connect v0.1 Service Unit (JSR181)</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://www.altervisions.com</url>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>
        <extensions>true</extensions>
        <configuration>
          <type>service-unit</type>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>apache.incubating</id>
      <name>Apache Incubating Repository</name>
      <url>http://people.apache.org/repo/m2-incubating-repository</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>apache.incubating</id>
      <name>Apache Incubating Repository</name>
      <url>http://people.apache.org/repo/m2-incubating-repository</url>
    </pluginRepository>
  </pluginRepositories>
  <dependencies>
    <dependency>
      <groupId>org.codehaus.xfire</groupId>
      <artifactId>xfire-jaxws</artifactId>
      <version>${xfire-version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-jsr181</artifactId>
      <version>${servicemix-version}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <servicemix-version>3.1-incubating</servicemix-version>
    <xfire-version>1.2.6</xfire-version>
  </properties>
</project>

Regards,

Erik
-- 
View this message in context: http://www.nabble.com/JSR-181-problem-with-maven-install-tf4022882s12049.html#a11426237
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: JSR-181 problem with maven install

Posted by Erik Allais <er...@altervisions.com>.
hehe, its works now
Thanks


Gert Vanthienen wrote:
> 
> Erik,
> 
> Try adding an operationName to the WebMethod annotation:
> e.g. @WebMethod(operationName="myOpsName")
> 
> 
> Gert
> 
> Erik Allais wrote:
>> i try to make this command on the directory of my jsr-181 archetype but i
>> got
>> this error
>>
>> servicemix@altervisions:~/altervisions/modulo_connect_v0.1/mc-jsr181-su$
>> mvn
>> install
>> [INFO] Scanning for projects...
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Building Modulo Connect v0.1 Service Unit (JSR181)
>> [INFO]    task-segment: [install]
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
>> for updates from apache.incubating
>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
>> for
>> updates from apache.incubating
>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
>> for
>> updates from apache.incubating
>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
>> updates from apache.incubating
>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking
>> for
>> updates from apache.incubating
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
>> Downloading:
>> http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
>> Downloading:
>> http://repo1.maven.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
>> Downloading:
>> http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [jbi:generate-jbi-service-unit-descriptor]
>> [INFO] Generating jbi.xml
>> [INFO] Created Service Unit Analyzer
>> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer@19a8416
>> 2007-07-04 08:41:28,195 [main           ] INFO  CollectionFactory             
>> - JDK 1.4+ collections available
>> 2007-07-04 08:41:28,209 [main           ] INFO  CollectionFactory             
>> - Commons Collections 3.x available
>> 2007-07-04 08:41:28,272 [main           ] INFO 
>> XBeanXmlBeanDefinitionReader  
>> - Loading XML bean definitions from URL
>> [file://home/servicemix/altervisions/modulo_connect_v0.1/mc-jsr181-su/src/main/resources/xbean.xml]
>> 2007-07-04 08:41:28,639 [main           ] INFO 
>> ileSystemXmlApplicationContext - Bean factory for application context
>> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]:
>> org.springframework.beans.factory.support.DefaultListableBeanFactory
>> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; root of
>> BeanFactory hierarchy
>> 2007-07-04 08:41:28,643 [main           ] INFO 
>> ileSystemXmlApplicationContext - 1 beans defined in application context
>> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]
>> 2007-07-04 08:41:28,649 [main           ] INFO 
>> ileSystemXmlApplicationContext - Unable to locate MessageSource with name
>> 'messageSource': using default
>> [org.springframework.context.support.DelegatingMessageSource@b48b11]
>> 2007-07-04 08:41:28,655 [main           ] INFO 
>> ileSystemXmlApplicationContext - Unable to locate
>> ApplicationEventMulticaster with name 'applicationEventMulticaster':
>> using
>> default
>> [org.springframework.context.event.SimpleApplicationEventMulticaster@14b9a74]
>> 2007-07-04 08:41:28,655 [main           ] INFO 
>> DefaultListableBeanFactory    
>> - Pre-instantiating singletons in factory
>> [org.springframework.beans.factory.support.DefaultListableBeanFactory
>> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; parent:
>> org.apache.servicemix.common.xbean.SimpleBeanFactory@1185844]
>> [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.IllegalArgumentException:
>> 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 []
>>         at
>> org.codehaus.xfire.service.ServiceInfo.addOperation(ServiceInfo.java:73)
>>         at
>> org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:801)
>>         at
>> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSServiceFactory.addOperation(ServiceFactoryHelper.java:210)
>>         at
>> org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:761)
>>         at
>> org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:444)
>>         at
>> org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:277)
>>         at
>> org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoint.java:301)
>>         at
>> org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java:216)
>>         at
>> org.apache.servicemix.common.DefaultComponent.addEndpoint(DefaultComponent.java:300)
>>         at
>> org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:287)
>>         at
>> org.apache.servicemix.jsr181.Jsr181Component.doInit(Jsr181Component.java:81)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:142)
>>         at
>> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:57)
>>         at
>> org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:96)
>>         at
>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:166)
>>         at
>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:129)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> ]]></stack-trace>
>>                                 </msg-loc-info>
>>                         </exception-info>
>>                 </task-result-details>
>>         </component-task-result-details>
>> </component-task-result>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 18 seconds
>> [INFO] Finished at: Wed Jul 04 08:41:29 GMT+01:00 2007
>> [INFO] Final Memory: 15M/30M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> Here the following pom.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?><project>
>>   <parent>
>>     <artifactId>modulo_connect</artifactId>
>>     <groupId>com.altervisions.moduloconnect.sample</groupId>
>>     <version>1.0-SNAPSHOT</version>
>>   </parent>
>>   <modelVersion>4.0.0</modelVersion>
>>   <groupId>com.altervisions.moduloconnect.sample</groupId>
>>   <artifactId>mc-jsr181-su</artifactId>
>>   <packaging>jbi-service-unit</packaging>
>>   <name>Modulo Connect v0.1 Service Unit (JSR181)</name>
>>   <version>1.0-SNAPSHOT</version>
>>   <url>http://www.altervisions.com</url>
>>   <build>
>>     <resources>
>>       <resource>
>>         <directory>src/main/resources</directory>
>>         <includes>
>>           <include>**/*</include>
>>         </includes>
>>       </resource>
>>     </resources>
>>     <plugins>
>>       <plugin>
>>         <artifactId>maven-compiler-plugin</artifactId>
>>         <configuration>
>>           <source>1.5</source>
>>           <target>1.5</target>
>>         </configuration>
>>       </plugin>
>>       <plugin>
>>         <groupId>org.apache.servicemix.tooling</groupId>
>>         <artifactId>jbi-maven-plugin</artifactId>
>>         <version>${servicemix-version}</version>
>>         <extensions>true</extensions>
>>         <configuration>
>>           <type>service-unit</type>
>>         </configuration>
>>       </plugin>
>>     </plugins>
>>   </build>
>>   <repositories>
>>     <repository>
>>       <id>apache.incubating</id>
>>       <name>Apache Incubating Repository</name>
>>       <url>http://people.apache.org/repo/m2-incubating-repository</url>
>>     </repository>
>>   </repositories>
>>   <pluginRepositories>
>>     <pluginRepository>
>>       <id>apache.incubating</id>
>>       <name>Apache Incubating Repository</name>
>>       <url>http://people.apache.org/repo/m2-incubating-repository</url>
>>     </pluginRepository>
>>   </pluginRepositories>
>>   <dependencies>
>>     <dependency>
>>       <groupId>org.codehaus.xfire</groupId>
>>       <artifactId>xfire-jaxws</artifactId>
>>       <version>${xfire-version}</version>
>>     </dependency>
>>     <dependency>
>>       <groupId>org.apache.servicemix</groupId>
>>       <artifactId>servicemix-jsr181</artifactId>
>>       <version>${servicemix-version}</version>
>>     </dependency>
>>     <dependency>
>>       <groupId>junit</groupId>
>>       <artifactId>junit</artifactId>
>>       <version>3.8.1</version>
>>       <scope>test</scope>
>>     </dependency>
>>   </dependencies>
>>   <properties>
>>     <servicemix-version>3.1-incubating</servicemix-version>
>>     <xfire-version>1.2.6</xfire-version>
>>   </properties>
>> </project>
>>
>> Regards,
>>
>> Erik
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/JSR-181-problem-with-maven-install-tf4022882s12049.html#a11426916
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: JSR-181 problem with maven install

Posted by Gert Vanthienen <ge...@skynet.be>.
Erik,

Try adding an operationName to the WebMethod annotation:
e.g. @WebMethod(operationName="myOpsName")


Gert

Erik Allais wrote:
> i try to make this command on the directory of my jsr-181 archetype but i got
> this error
>
> servicemix@altervisions:~/altervisions/modulo_connect_v0.1/mc-jsr181-su$ mvn
> install
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Modulo Connect v0.1 Service Unit (JSR181)
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from apache.incubating
> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
> updates from apache.incubating
> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
> updates from apache.incubating
> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
> updates from apache.incubating
> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
> updates from apache.incubating
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
> Downloading:
> http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
> Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
> Downloading:
> http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [jbi:generate-jbi-service-unit-descriptor]
> [INFO] Generating jbi.xml
> [INFO] Created Service Unit Analyzer
> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer@19a8416
> 2007-07-04 08:41:28,195 [main           ] INFO  CollectionFactory             
> - JDK 1.4+ collections available
> 2007-07-04 08:41:28,209 [main           ] INFO  CollectionFactory             
> - Commons Collections 3.x available
> 2007-07-04 08:41:28,272 [main           ] INFO  XBeanXmlBeanDefinitionReader  
> - Loading XML bean definitions from URL
> [file://home/servicemix/altervisions/modulo_connect_v0.1/mc-jsr181-su/src/main/resources/xbean.xml]
> 2007-07-04 08:41:28,639 [main           ] INFO 
> ileSystemXmlApplicationContext - Bean factory for application context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; root of
> BeanFactory hierarchy
> 2007-07-04 08:41:28,643 [main           ] INFO 
> ileSystemXmlApplicationContext - 1 beans defined in application context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext;hashCode=10202458]
> 2007-07-04 08:41:28,649 [main           ] INFO 
> ileSystemXmlApplicationContext - Unable to locate MessageSource with name
> 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@b48b11]
> 2007-07-04 08:41:28,655 [main           ] INFO 
> ileSystemXmlApplicationContext - Unable to locate
> ApplicationEventMulticaster with name 'applicationEventMulticaster': using
> default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@14b9a74]
> 2007-07-04 08:41:28,655 [main           ] INFO  DefaultListableBeanFactory    
> - Pre-instantiating singletons in factory
> [org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [org.apache.servicemix.jsr181.Jsr181Endpoint]; parent:
> org.apache.servicemix.common.xbean.SimpleBeanFactory@1185844]
> [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.IllegalArgumentException:
> 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 []
>         at
> org.codehaus.xfire.service.ServiceInfo.addOperation(ServiceInfo.java:73)
>         at
> org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:801)
>         at
> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSServiceFactory.addOperation(ServiceFactoryHelper.java:210)
>         at
> org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:761)
>         at
> org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:444)
>         at
> org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:277)
>         at
> org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoint.java:301)
>         at
> org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java:216)
>         at
> org.apache.servicemix.common.DefaultComponent.addEndpoint(DefaultComponent.java:300)
>         at
> org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:287)
>         at
> org.apache.servicemix.jsr181.Jsr181Component.doInit(Jsr181Component.java:81)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:142)
>         at
> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:57)
>         at
> org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:96)
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:166)
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:129)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> ]]></stack-trace>
>                                 </msg-loc-info>
>                         </exception-info>
>                 </task-result-details>
>         </component-task-result-details>
> </component-task-result>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 18 seconds
> [INFO] Finished at: Wed Jul 04 08:41:29 GMT+01:00 2007
> [INFO] Final Memory: 15M/30M
> [INFO]
> ------------------------------------------------------------------------
>
> Here the following pom.xml
>
> <?xml version="1.0" encoding="UTF-8"?><project>
>   <parent>
>     <artifactId>modulo_connect</artifactId>
>     <groupId>com.altervisions.moduloconnect.sample</groupId>
>     <version>1.0-SNAPSHOT</version>
>   </parent>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.altervisions.moduloconnect.sample</groupId>
>   <artifactId>mc-jsr181-su</artifactId>
>   <packaging>jbi-service-unit</packaging>
>   <name>Modulo Connect v0.1 Service Unit (JSR181)</name>
>   <version>1.0-SNAPSHOT</version>
>   <url>http://www.altervisions.com</url>
>   <build>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>         <includes>
>           <include>**/*</include>
>         </includes>
>       </resource>
>     </resources>
>     <plugins>
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.servicemix.tooling</groupId>
>         <artifactId>jbi-maven-plugin</artifactId>
>         <version>${servicemix-version}</version>
>         <extensions>true</extensions>
>         <configuration>
>           <type>service-unit</type>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
>   <repositories>
>     <repository>
>       <id>apache.incubating</id>
>       <name>Apache Incubating Repository</name>
>       <url>http://people.apache.org/repo/m2-incubating-repository</url>
>     </repository>
>   </repositories>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>apache.incubating</id>
>       <name>Apache Incubating Repository</name>
>       <url>http://people.apache.org/repo/m2-incubating-repository</url>
>     </pluginRepository>
>   </pluginRepositories>
>   <dependencies>
>     <dependency>
>       <groupId>org.codehaus.xfire</groupId>
>       <artifactId>xfire-jaxws</artifactId>
>       <version>${xfire-version}</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.servicemix</groupId>
>       <artifactId>servicemix-jsr181</artifactId>
>       <version>${servicemix-version}</version>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <properties>
>     <servicemix-version>3.1-incubating</servicemix-version>
>     <xfire-version>1.2.6</xfire-version>
>   </properties>
> </project>
>
> Regards,
>
> Erik
>