[JBossWS] - MTOM With JBOSSWS and WSCOMPILE
by greenbean
I am attempting to use MTOM with JBossWS. We currently use WSCompile to generate the java objects from the wsdl/xsd. It generates a Base64Binary object to hold the binary attachment data. However, when I run a JBossWS client, I get the following exception. How do I fix this?
java.rmi.RemoteException: Call invocation failed: Could not transmit message; nested exception is:
javax.xml.soap.SOAPException: Could not transmit message
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
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:144)
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.soap.SOAPException: Could not transmit message
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
... 9 more
Caused by: javax.xml.rpc.JAXRPCException: java.lang.ClassCastException: com.test.Base64Binary
at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:986)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:171)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.java:163)
at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
at org.jboss.ws.soap.SAAJElementWriter.printSOAPElement(SAAJElementWriter.java:91)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:177)
... 10 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981374#3981374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981374
19 years, 6 months
[JBoss Portal] - Re: Problem with IFramePortlet and Stock News Portlet.
by portalgeek
Hi,
I have the same problem with IFrame Portlet.
| org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.jboss.portal.portlet.taglib.DefineObjectsTagTEI
|
|
I saw your reply, but did not understand completely. Can you be more explicit regarding what changes have to be made in portlet.tld and portal.xml
My portlet.tld looks as follows:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
| <taglib>
|
| <tlib-version>1.0</tlib-version>
| <jsp-version>1.2</jsp-version>
| <short-name>portlet</short-name>
|
| <uri>http://java.sun.com/portlet</uri>
|
| <tag>
|
| <name>param</name>
| <tag-class>org.jboss.portal.portlet.taglib.URLParameterTag</tag-class>
| <body-content>empty</body-content>
|
| <attribute>
| <name>name</name>
| <required>true</required>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>value</name>
| <required>true</required>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
|
| </tag>
| <tag>
|
| <name>defineObjects</name>
| <tag-class>org.jboss.portal.portlet.taglib.DefineObjectsTag</tag-class>
| <tei-class>org.jboss.portal.portlet.taglib.DefineObjectsTagTEI</tei-class>
| <body-content>empty</body-content>
|
| </tag>
| <tag>
|
| <name>namespace</name>
| <tag-class>org.jboss.portal.portlet.taglib.NamespaceTag</tag-class>
| <body-content>empty</body-content>
|
| </tag>
| <tag>
|
| <name>renderURL</name>
| <tag-class>org.jboss.portal.portlet.taglib.RenderURLTag</tag-class>
| <tei-class>org.jboss.portal.portlet.taglib.GenerateURLTagTEI</tei-class>
| <body-content>JSP</body-content>
|
| <attribute>
| <name>portletMode</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>secure</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>var</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>windowState</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
|
| </tag>
| <tag>
|
| <name>actionURL</name>
| <tag-class>org.jboss.portal.portlet.taglib.ActionURLTag</tag-class>
| <tei-class>org.jboss.portal.portlet.taglib.GenerateURLTagTEI</tei-class>
| <body-content>JSP</body-content>
|
| <attribute>
| <name>portletMode</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>secure</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>var</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
| <attribute>
| <name>windowState</name>
| <rtexprvalue>true</rtexprvalue>
|
| </attribute>
|
| </tag>
|
| </taglib>
|
|
My Portlet.xml looks ad follows
| <?xml version="1.0" encoding="UTF-8"?>
| <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
| version="1.0">
| <portlet>
| <portlet-name>IFramePortlet</portlet-name>
| <portlet-class>org.jboss.portlet.iframe.IFramePortlet</portlet-class>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| <portlet-mode>EDIT</portlet-mode>
| </supports>
| <portlet-info>
| <title>IFrame</title>
| </portlet-info>
| </portlet>
| </portlet-app>
|
I am using JbossPortal 2.4
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981373#3981373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981373
19 years, 6 months