[JBoss Eclipse IDE (users)] - Re: JBossWS Eclipse Plugin and WSDL Polymorphism
by kalvin
Hi Ole,
Sorry for the confusion, but I didn't mean to expose overloaded Java methods in the service endpoint interface. In my case, I want to publish POJO webservice, which has a single Java method that takes abstract parameter and returns abstract return value as follow:
public WSAbstractReturnValue getValueBy(WSAbstractParameter paramter);
And, I have two subclasses for each of the abstract types:
public class WSReturnImplOne extends WSAbstractReturnValue {}
public class WSReturnImplTwo extends WSAbstractReturnValue {}
public class WSParameterImplOne extends WSAbstractParameter {}
public class WSParameterImplTwo extends WSAbstractParameter {}
I want that the client may call the service method with a parameter of arbitrary subtype, and the service method may also return arbitrary subtype.
By simply using steps from the bottom-up example (http://www.soapui.org/jbossws/bottomup.html) for my POJO, first, I didn't find expected elements for the derived types in the generated WSDL file. Hence, I didn't get the corresponding client artifacts when following the next walkthrough example (http://www.soapui.org/jbossws/consume.html).
If I use the wstools directly, running the wstools command against a config file, is there a way to specify the subclasses in the configuration file? On top of that, is there a way to specify the subclasses through the plugin dialogs?
Thanks,
Kalvin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981538#3981538
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981538
19 years, 6 months
[JBoss jBPM] - Hibernate Connection Lost
by luowp
I have a strange problem. I developed some web-services (AXIS-based). DB using mysql 5.0.26.
In jbpm start kit, it works stable. The service works for more than 1 month never down.
Then I deployed to Geronimo 1.1, after several hours (more than 8). The connection seems lost. The error message as below:
soapenv:Server.userException] org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session}
I use below code to initailize jbpm for each servive:
JbpmConfiguration jconf = JbpmConfiguration.getInstance();
JbpmContext jContext = jconf.createContext();
Could somebody give me some suggestions? Thanks...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981535#3981535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981535
19 years, 6 months
[EJB 3.0] - EJB3.0 annotation security and webservices.
by webmarck
I have a session bean where all methods look like this
| @RolesAllowed("customer")
| public void setName(String name);
|
Now I want to expose that method as a webservice but I have no idea on how to tell my client the username and password
| URL url = new URL("http://localhost:8080/test/MyBean?wsdl");
| QName qname = new QName("http://test.niro.dk/jaws",
| "MyService");
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(url, qname);
| My myTest = (My)service.getPort(My.class);
| myTest.setName("test");
|
So I of course get this exception
| Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.resetDatabase(Unknown Source)
| at dk.test.MyClient.main(MyClient.java:21)
| Caused by: java.rmi.RemoteException: Call invocation failed with code [Client] because of: Authentication failure; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: Authentication failure
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:715)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:398)
| at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:164)
| ... 2 more
| Caused by: javax.xml.rpc.soap.SOAPFaultException: Authentication failure
| at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100)
| at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(SOAPBindingProvider.java:505)
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| ... 4 more
|
And the server throws a
17:39:26,140 ERROR [SOAPFaultExceptionHelper] SOAP request exception
| javax.ejb.EJBAccessException: Authentication failure
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:99)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:70)
Plzzzzz help!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981533#3981533
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981533
19 years, 6 months
[Persistence, JBoss/CMP, Hibernate, Database] - Jboss CMP and Blob fields
by 3l30n0r
Hi everyone,
i have a problem with mapping on a jboss-4.0.3. I have a simple CMP bean with attribute of type byte[]. I wan't to map that property to database blob field (database is Informix). This is the field description in jbosscmp-jdbc.xml
| <entity>
| <ejb-name>ExciseDeclarationHistory</ejb-name>
| <cmp-field>
| <field-name>id</field-name>
| <column-name>id</column-name>
| </cmp-field>
| <cmp-field>
| <field-name>editPerson</field-name>
| <column-name>editperson</column-name>
| </cmp-field>
| <cmp-field>
| <field-name>editPersonOffice</field-name>
| <column-name>editpersonoffice</column-name>
| </cmp-field>
| <cmp-field>
| <field-name>historyBean</field-name>
| <column-name>historybean</column-name>
| </cmp-field>
| </entity>
|
And this is the throwed exception when i try to create entity
| 5:30:01,765 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
| 15:30:01,765 INFO [STDOUT] Caused by: javax.ejb.EJBException: Store failed; CausedByException is:
| Smart-large-object error.
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:144)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStoreManager.java:651)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:413)
| 15:30:01,765 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEntity(CachedConnectionInterceptor.java:279)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:743)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.GlobalTxEntityMap$2.synchronize(GlobalTxEntityMap.java:134)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.synchronize(GlobalTxEntityMap.java:253)
| 15:30:01,765 INFO [STDOUT] at org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.beforeCompletion(GlobalTxEntityMap.java:302)
| 15:30:01,765 INFO [STDOUT] at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
| 15:30:01,765 INFO [STDOUT] at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
| 15:30:01,765 INFO [STDOUT] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
| 15:30:01,765 INFO [STDOUT] ... 43 more
|
Any ideas ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981530#3981530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981530
19 years, 6 months