Sorry for the continual emails, but want to keep the list up-to-date in case
somebody is looking at this :)
The missing class error was because the
PayloadRootAnnotationMethodEndpointMapping class exists in a different
artifact than the module lists in its dependencies. I put this in my
pluginManagement and got past it.
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>springws-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<dependencies>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core-tiger</artifactId>
<version>1.5.7</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
But now I still see errors for beans which are classes in this projects src
(in com.hyper9.*). Am I missing something here? Should I not be running
this plugin from the same project which houses my context XML?
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping#0'
defined in URL
[file:/Users/ryankruse/dev/hyper9/trunk/data-access/data-access-ws/src/main/webapp/WEB-INF/hyper9-servlet.xml]:
Cannot create inner bean 'com.hyper9.ws.core.SecurityInterceptor#4f088579'
of type [com.hyper9.ws.core.SecurityInterceptor] while setting bean property
'interceptors' with key [0]; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [com.hyper9.ws.core.SecurityInterceptor] for bean with name
'com.hyper9.ws.core.SecurityInterceptor#4f088579' defined in URL
[file:/Users/ryankruse/dev/hyper9/trunk/data-access/data-access-ws/src/main/webapp/WEB-INF/hyper9-servlet.xml];
nested exception is java.lang.ClassNotFoundException:
com.hyper9.ws.core.SecurityInterceptor
On Mon, Jul 27, 2009 at 6:03 PM, Ryan Kruse <[email protected]> wrote:
> So I got past the initial error by declaring a "file:" like this...
>
> <contextLocations>
>
> <contextLocation>file:${basedir}/src/main/webapp/WEB-INF/hyper9-servlet.xml</contextLocation>
> </contextLocations>
>
> Now I get this error instead. Note, my web service was working just fine
> with my PayloadRootAnnotationMethodEndpointMapping class before I introduced
> this plugin.....
> Caused by: java.lang.ClassNotFoundException:
> org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping
>
>
> On Mon, Jul 27, 2009 at 4:49 PM, Ryan Kruse <[email protected]> wrote:
>
>> I am trying to use the springws-maven-plugin to generate my WSDLs at build
>> time and I'm getting errors.
>>
>> My pom.xml includes this plugin config....
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>springws-maven-plugin</artifactId>
>> <version>1.0-alpha-1</version>
>> <executions>
>> <execution>
>> <goals>
>> <goal>springws</goal>
>> </goals>
>> </execution>
>> </executions>
>> <configuration>
>> <contextLocations>
>>
>> <contextLocation>WEB-INF/hyper9-servlet.xml</contextLocation>
>> </contextLocations>
>> </configuration>
>> </plugin>
>>
>> But no matter what I put for contextLocation I get the following error....
>> Caused by: java.io.FileNotFoundException: class path resource
>> [WEB-INF/hyper9-servlet.xml] cannot be opened because it does not exist
>>
>> I've tried prepending with "classpath:", putting in the full path, etc.
>> Any help would be greatly appreciated.
>>
>> Thanks!
>> Ryan
>>
>>
>>
>>
>