Hi Shannon,

It sounds like you have XFire on your classpath and JAX-WS is finding XFire
instead of CXF as it's JAX-WS implementation. Try removing XFire (or at
least the xfire-jaxws module).

I'm just guessing here, but I think specifying the command line property -
Djavax.xml.ws.spi.Provider=org.apache.cxf.jaxws.spi.ProviderImpl could also
work.

Cheers,
- Dan

On 8/10/07, shannon carey <[EMAIL PROTECTED]> wrote:
>
> I generated a client (MetadataService) from WSDL and was able to run
> MetadataServicePortTypeClient.main() just fine within its own project, but
> when I put the source code into another java program and try to use it, I
> get the following error.  Any guesses what the problem might be?  I cannot
> find any references to this problem on the internet.
>
> -Shannon
>
> SEVERE: An unexpected Java exception occurred.
> java.lang.IllegalStateException: Could not initialize Service.
>     at org.codehaus.xfire.jaxws.ServiceDelegate.<init>(
> ServiceDelegate.java
> :77)
>     at org.codehaus.xfire.jaxws.Provider.createServiceDelegate(
> Provider.java
> :32)
>     at javax.xml.ws.Service.<init>(Service.java:57)
>     at com.z.ns.dur.ws.internal.MetadataService.<init>(
> MetadataService.java
> :41)
>     at com.z.atlas.DURModel.load(DURModel.java:343)
>     at com.z.atlas.TopViewController.loadMetaData(TopViewController.java
> :7496)
>     at com.z.atlas.TopViewController.chooseDatabase(TopViewController.java
> :6729)
>     at com.z.atlas.TopViewController.startup(TopViewController.java:8971)
>     at com.z.atlas.TopView.startup(TopView.java:3526)
>     at com.z.atlas.Atlas$1.windowOpened(Atlas.java:356)
>     at java.awt.AWTEventMulticaster.windowOpened(Unknown Source)
>     at java.awt.Window.processWindowEvent(Unknown Source)
>     at javax.swing.JFrame.processWindowEvent(Unknown Source)
>     at java.awt.Window.processEvent(Unknown Source)
>     at java.awt.Component.dispatchEventImpl(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Window.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.EventQueue.dispatchEvent(Unknown Source)
>     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
> Caused by: java.lang.NoSuchMethodException:
> com.z.ns.dur.ws.internal.MetadataService.getPortClassMap()
>     at java.lang.Class.getMethod(Unknown Source)
>     at org.codehaus.xfire.jaxws.ServiceDelegate.<init>(
> ServiceDelegate.java
> :60)
>     ... 23 more
>



-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to