[JBossWS] - Error while generating annotated Java classes using wsconsum
by sheshi
Hi All,
I am trying to generate annotated Java classes/sources using wsconsume tool (top down approach) for WS-Trust WSDL. Everytime I run the tool, I get the following exception.
E:\java\jboss-4.2.2.GA\bin>wsconsume -v -k http://docs.oasis-open.org/ws-sx/ws-t
rust/200512/ws-trust-1.3.wsdl
JBossWS-Native stack deployed
parsing WSDL...
[ERROR] Failed to read the WSDL document: http://docs.oasis-open.org/ws-sx/ws-tr
ust/200512/ws-trust-1.3.wsdl, because 1) could not find the document; /2) the do
cument could not be read; 3) the root element of the document is not <wsdl:defin
itions>.
unknown location
Failed to parse the WSDL.
Failed to invoke WsImport
java.lang.IllegalStateException: WsImport invocation failed. Try the verbose swi
tch for more information
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumer
Impl.java:220)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:2
23)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
I tried accessing the WSDL locally and it failed with an same kinda exception for a XSD file the WSDL refers to.
E:\java\jboss-4.2.2.GA\bin>wsconsume -v -k ws-trust-1.3.wsdl
JBossWS-Native stack deployed
parsing WSDL...
[ERROR] Failed to read the WSDL document: http://docs.oasis-open.org/ws-sx/ws-tr
ust/200512/ws-trust-1.3.xsd, because 1) could not find the document; /2) the doc
ument could not be read; 3) the root element of the document is not <wsdl:defini
tions>.
unknown location
Failed to parse the WSDL.
Failed to invoke WsImport
java.lang.IllegalStateException: WsImport invocation failed. Try the verbose swi
tch for more information
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumer
Impl.java:220)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:2
23)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
E:\java\jboss-4.2.2.GA\bin>
I would appreciate if someone help me with this issue.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155158#4155158
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155158
16 years
[Installation, Configuration & DEPLOYMENT] - Upgrading 4.0.4 to 4.2.2; problems accessing EJBs
by rdoust
Hi. I've not been following the upgrades to JBoss or other supporting technology for some time, even though I own an application that's deployed on JBoss, currently, 4.0.4. I am being forced (on a strict timeline) to upgrade to 4.2.2. In doing so, I'm running into a problem that I don't know how to figure out. I was hoping someone who has been through this might be able to give me a hint.
I'm deploying an ear that contains 2 wars and several ejb-jars. All of my EJBs are 2.1. When attempting to get access from the code in one of the two wars to some of the EJBs, I'm getting class cast exceptions, whether I attempt to gain access to remote interfaces (using PortableRemoteObject.narrow()), or local. The code works perfectly when deployed to 4.0.4. I can see nothing in the jmx-console to make me think that the beans I'm trying to gain access to are not there, on the contrary, they seem to have deployed just fine. The proxy that I get back from the lookup is causing the exception when I attempt to cast it (in the case of the local interface) and the narrow() call also results in a class cast exception in the case of the remote interface.
I would be happy to provide more information, I just thought that the fact that it works on 4.0.4 and not on 4.2.2 might make someone go, "Oh, that problem again."
Thanks in advance for any insight.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155157#4155157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155157
16 years
[JBoss Portal] - Re: Deployment of JBoss Portal from sources
by tulip
Thanks for the response. Sorry, I missed the deploy-all part.
I did it. Worked fine except for the following exception :
10:43:47,125 ERROR [Scheduler$Listener] Invoke of the Schedulable MBean failed
javax.management.MBeanException
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.varia.scheduler.Scheduler$MBeanListener.handleNotification(Scheduler.java:1346)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
at $Proxy11.handleNotification(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
at javax.management.timer.Timer.sendNotification(Timer.java:1234)
at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1203)
at javax.management.timer.TimerAlarmClock.run(Timer.java:1286)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.jboss.portal.portlet.InvokerUnavailableException: Problem getting service description for producer self,
please see the logs for more information.
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:156)
at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.getPortlets(FederatedPortletInvokerSe
rvice.java:90)
at org.jboss.portal.core.management.PortletDiscoveryService.processPortletDiscovery(PortletDiscoveryService.java
:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
... 22 more
Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:156)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:289)
at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151)
at $Proxy373.getServiceDescription(Unknown Source)
at org.jboss.portal.wsrp.consumer.ProducerInfo.getUnmanagedServiceDescription(ProducerInfo.java:660)
at org.jboss.portal.wsrp.consumer.ProducerInfo.internalRefresh(ProducerInfo.java:322)
at org.jboss.portal.wsrp.consumer.ProducerInfo.detailedRefresh(ProducerInfo.java:273)
at org.jboss.portal.wsrp.consumer.ProducerInfo.refresh(ProducerInfo.java:268)
at org.jboss.portal.wsrp.consumer.ProducerInfo.getPortletMap(ProducerInfo.java:608)
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:151)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155136#4155136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155136
16 years