I have the following plugin:

           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>axistools-maven-plugin</artifactId>
               <configuration>

<sourceDirectory>${basedir}/src/main/webapp/WEB-INF/wsdl</sourceDirectory>
                   <typeMappingVersion>1.2</typeMappingVersion>
                   <packageSpace>org.delta.esp.logging</packageSpace>
                   <testCases>true</testCases>
                   <serverSide>true</serverSide>
                   <subPackageByFileName>true</subPackageByFileName>
               </configuration>
               <executions>
                   <execution>
                       <goals>
                           <goal>wsdl2java</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>



And this is the header of my wsdl file I am running wsdl2java on:

<definitions
    name="LogMessageService"
    targetNamespace="http://logging.esp.delta.org/";
    xmlns="http://schemas.xmlsoap.org/wsdl/";
    xmlns:tns="http://logging.esp.delta.org/";
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
    xmlns:tns0="http://logging.esp.delta.org/types/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   >
   <types>
       <schema xmlns="http://www.w3.org/2001/XMLSchema"; targetNamespace="
http://logging.esp.delta.org/types/";


When I deploy to JBoss, I get this error:

14:15:01,233 DEBUG [AbstractMetaDataBuilder] Replace service endpoint
address '
http://192.168.9.242:8888/DAP_POC-LogMessageService-context-root/LogMessageS
erviceSoapHttpPort' with '
http://ddc108418:8080/logging-1.0.0.0/LogMessageServiceSoapHttpPort'
14:15:01,249 ERROR [MainDeployer] Could not create deployment:
file:/C:/jboss-4.0.4.GA/server/default/deploy/logging-1.0.0.0.war
org.jboss.ws.WSException: Cannot obtain java type mapping for: {
http://logging.esp.delta.org/types/}>sendLogMessageElement


Now all the generated classes are in:
package org.delta.esp.logging.LogMessageService;

not
package org.delta.esp.logging.types;


So I assume that I need my packages that are generated to be *.types.* not
*.LogMessageService.* as it is now.


So how do I set this in the plugin?



--

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Reply via email to