Community

java.lang.ClassCastException: $Proxy25

reply from Erick Jeronimo Diaz in JBoss Web Services - View the full discussion

Thanks a lot for your rapid answer Opalka. Yes i'm running from the IDE (Eclipse) is where i get this:

java.lang.ClassCastException: $Proxy25
    at org.jboss.test.ws.jaxws.samples.news.SecureAgency.<init>(SecureAgency.java:39)
    at org.jboss.test.ws.jaxws.samples.news.SecureAgency.main(SecureAgency.java:48)

 

but when i run from console with wsrunclient i get this:

 

E:\Windows\workspace\Newspaper\build\classes>wsrunclient org.jboss.test.ws.jaxws

.samples.news.SecureAgency http://localhost:8080/news/pressRelease?wsdl title bo

dy

Exception in thread "main" java.lang.NoClassDefFoundError: javax/annotation/Post

Construct

        at org.jboss.wsf.common.javax.finders.PostConstructMethodFinder.<init>(P

ostConstructMethodFinder.java:55)

        at org.jboss.wsf.common.javax.JavaxAnnotationHelper.<clinit>(JavaxAnnota

tionHelper.java:53)

        at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.addHandler(Handle

rResolverImpl.java:171)

        at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.initHandlerChain(

HandlerResolverImpl.java:149)

        at org.jboss.ws.core.jaxws.client.ClientImpl.initBindingHandlerChain(Cli

entImpl.java:154)

        at org.jboss.ws.core.jaxws.client.ClientImpl.<init>(ClientImpl.java:132)

 

         at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDe

legateImpl.java:394)

        at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(Servi

ceDelegateImpl.java:273)

        at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelega

teImpl.java:200)

        at javax.xml.ws.Service.getPort(Service.java:141)

        at org.jboss.test.ws.jaxws.samples.news.generated.agency.PressReleaseSer

vice.getPressReleaseEndpointPort(PressReleaseService.java:55)

        at org.jboss.test.ws.jaxws.samples.news.Agency.<init>(Agency.java:49)

        at org.jboss.test.ws.jaxws.samples.news.SecureAgency.<init>(SecureAgency

.java:38)

        at org.jboss.test.ws.jaxws.samples.news.SecureAgency.main(SecureAgency.j

ava:48)

E:\Windows\workspace\Newspaper\build\classes>

 

what could it be? I hope this help you to help me. :-)  . i appreciate your help, i'm new with this stuff, thanks

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community