[JBossWS] - Applet invoking a web service
by earniedyke
Greetings all!!
I have a problem I am hoping someone can help me solve. I have the following code in an APPLET
URL url = new URL(webRoot + "/" + JBPM_WEBSERVICE + "?WSDL");
| QName qname = new QName("http://webservice.jbpm.abc.org","JbpmBeanService");
| ServiceFactory factory = ServiceFactory.newInstance();
| Service remote = factory.createService(url,qname);
| Jbpm proxy = (Jbpm)remote.getPort(Jbpm.class);
| String[] xml = proxy.getWorkFlow(name);
|
When it is executed, I receive the following error in the Java Console:
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.rpc.ServiceFactory read)
| at java.security.AccessControlContext.checkPermission(Unknown Source)
| at java.security.AccessController.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
| at java.lang.System.getProperty(Unknown Source)
| at javax.xml.rpc.ServiceFactory$PropertyAccessAction.run(ServiceFactory.java:189)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:77)
| at org.ebsinc.jbpm.applet.Diagrammer$DrawingCanvas.actionPerformed(Diagrammer.java:727)
| at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
| at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
| at javax.swing.AbstractButton.doClick(Unknown Source)
| at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
| at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
| at java.awt.Component.processMouseEvent(Unknown Source)
| at javax.swing.JComponent.processMouseEvent(Unknown Source)
| at java.awt.Component.processEvent(Unknown Source)
| at java.awt.Container.processEvent(Unknown Source)
| at java.awt.Component.dispatchEventImpl(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
| at java.awt.Container.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)
|
My research leads me to believe the ServiceFactory in jboss-jaxrpc.jar is attempting to read a system property and this is causing the error. Anyone think of a way around this?
Thanks in advance for any and all assistance!!!
Earnie!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076819#4076819
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076819
17 years, 4 months
[JBossWS] - Re: trying to access a webservice - not working from either
by rodgerca
Well I have now managed to get my webservice running from within SOAPUI - I did this by changing my return arraylist to a simple array of objects. Don't think arrayLists are supported but frankly the documentation on the JBoss sites is pretty bad so I had to work that out for myself.
I am still getting the error below when I run my webservice from a java client, but I'm not going to investigate further because the webservice is working and that's what matters. Unless anyone can tell me if there is anything obvious I am doing wrong....
Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java/xml type mapping for: {http://com.cmmgroup/address}addressRequestArray
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processOutputDocElement(JAXRPCMetaDataBuilder.java:778)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:897)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:216)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85)
| at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
| at com.cmmgroup.address.client.runAddressAsWebService.main(runAddressAsWebService.java:27)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076699#4076699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076699
17 years, 4 months
[JBossWS] - 2 ejb3s exposed as web services. Can't have same methods wit
by sursha
Hello,
I've 2 ejb3s exposed as 2 separate web services. They are packaged in the same ear file.
I use the WebContext annotation to keep the context root same for 2 services.
I've a method, authenticate(String userName) in one ejb and
authenticate(String userName, String password) in the other ejb.
When I deploy the ear file, I get the error as follows:
Looks like there is a name collision. It is complaining about the first ejb not having
password as a parameter. Any one seen this issue?
by: org.jboss.ws.WSException: password is not a valid property on class com.xxx.services.MyService1.v2.jaxws.Authenticate
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:816)
at org.jboss.ws.metadata.acessor.JAXBAccessor$1$1.create(JAXBAccessor.java:84)
at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(ParameterMetaData.java:472)
at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:466)
at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516)
at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502)
at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490)
at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429)
at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192)
at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112)
at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646)
at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076450#4076450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076450
17 years, 4 months
[JBossWS] - Jboww WS problem - plz help
by jboss2007
I have the following configuration:
- JDK 1.5.0_12
- jboss-4.2.1.GA
- jbossws-native-2.0.1.GA
I followed the user guide: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Tools
I've successfully deployed the Echo web service. Howserver, when I run the ws client (consumer) I got this exception:
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Prov
| ider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.Prov
| iderImpl
| at javax.xml.ws.spi.Provider.provider(Provider.java:98)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at com.company.package.EchoService.<init>(EchoService.java:40)
| at EchoClient.main(EchoClient.java:10)
| Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Prov
| ider: org.jboss.ws.core.jaxws.spi.ProviderImpl
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)
| at javax.xml.ws.spi.Provider.provider(Provider.java:90)
| ... 3 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedExceptio
| n
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.newInstance0(Class.java:321)
| at java.lang.Class.newInstance(Class.java:303)
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
| ... 4 more
Any idea about this problem?
any help will be much appreciated
thanks in advance,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076355#4076355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076355
17 years, 4 months