[JBossWS] - Re: MTOM With JBOSSWS and WSCOMPILE
by greenbean
I changed my schema to type="xmlmime:base64Binary" from xmlmime:type="xmlmime:base64Binary" and got alittle farther. The jbossws client now sends the data to the jboss server. However, the server has this problem.
We are using JBoss 4.0.5GA.
Any ideas?
java.rmi.RemoteException: Call invocation failed with code [Client] because of: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Failed to set value 'javax.activation.DataHandler@109b4cb' for property 'xxx' defined in com.xxx.xxx.xxx.xxx@3c938d on instance com.xxx.xxx.xxx.xxx@3c938d; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Failed to set value 'javax.activation.DataHandler@109b4cb' for property 'afrData' defined in com.ngc.ident1.sissiba.SearchData@3c938d on instance com.ngc.ident1.sissiba.SearchData@3c938d
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:713)
at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
at $Proxy2.search(Unknown Source)
at com.ngc.ident1.client.Client.main(Client.java:146)
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:585)
at org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeansLauncher.main(JavaBeansLauncher.java:79)
Caused by: javax.xml.rpc.soap.SOAPFaultException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Failed to set value 'javax.activation.DataHandler@109b4cb' for property 'xxx' defined in com.xxx.xxx.xxx.xxx@3c938d on instance com.xxx.xxx.xxx.xxx@3c938d
at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100)
at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(SOAPBindingProvider.java:486)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:702)
... 9 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981390#3981390
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981390
19 years, 6 months
[Installation, Configuration & Deployment] - Best way to deply an XML file with an ear?
by flarosa
Hi,
I'm looking for some advice as to the best way to deploy XML files with EARs.
In the past, I have deployed XML files in the WEB-INF directory of Web applications. This allows me to read the XML from servlets by using the servletContext.getRealPath() method to determine the path to the document root.
This works OK for servlets but it doesn't work for EJBs, since an EJB has no servletContext. When I need an EJB method to read an XML file I've been resorting to passing it the real path as a parameter, but this is getting tedious.
I've considered using ejb-jar.xml to specify the path of the XML file as a env-entry, but I deploy my application on several different machines with different directory structures, so this would be difficult to manage.
I'm sure there are better ways to solve this problem - any recommendations? Is there a way an EJB can get the path to the root of the EAR deployment?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981388#3981388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981388
19 years, 6 months
[EJB/JBoss] - Problem deployment EJB Local
by arjun2006
Hi,
I am trying to deploy EJB using local interfaces. EJB gets deployed however the local name is not what I have specified in the LocalHome Interface. I want ejb to be deployed with RFPLocal whereas they are getting deployed with the name lo
cal/RFP@26794447
Given below is the code of local home interface
public interface RFPLocalHome
| extends javax.ejb.EJBLocalHome
| {
| public static final String COMP_NAME="java:comp/env/ejb/RFPLocal";
| public static final String JNDI_NAME="RFPLocal";
|
| public com.secureebill.ejb.dao.RFPLocal create()
| throws javax.ejb.CreateException;
|
| }
|
|
JBoss Trace shows following information
anonymous wrote :
| 13:32:33,687 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'RFP' to jndi 'lo
| cal/RFP@26794447'
|
Any help will be appreciated.
Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981380#3981380
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981380
19 years, 6 months