[jboss-user] [JBoss Web Services] - java.lang.ClassCastException: $Proxy25

Erick Jeronimo Diaz do-not-reply at jboss.com
Mon Apr 26 09:54:31 EDT 2010


Erick Jeronimo Diaz [http://community.jboss.org/people/erickjd] replied to the discussion

"java.lang.ClassCastException: $Proxy25"

To view the discussion, visit: http://community.jboss.org/message/539537#539537

--------------------------------------------------------------
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 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
[http://community.jboss.org/message/539537#539537]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100426/1096c7b0/attachment.html 


More information about the jboss-user mailing list