[JBoss Portal] - Re: Error handling pattern?
by nollie
Thanks Roy! I had not seen that.
What I was hoping for was an opportunity to use my own error message which would fit within my margins and be a little more friendly. In any case someone had turned all those values off and I appreciate the tip.
I had hoped to use my own messages with some error-page tags in my web.xml.
<error-page>
| <exception-type>java.lang.Exception</exception-type>
| <location>/WEB-INF/jsps/exception.jsp</location>
| </error-page>
| <error-page>
| <exception-type>javax.portlet.PortletException</exception-type>
| <location>/WEB-INF/jsps/portletException.jsp</location>
| </error-page>
but I can't seem to get this mechanism to work. If was using these error pages correctly would they fill the portlet, or replace the entire page? If the former, can you point me to information on the subject? I'm unsure which web.xml file this should be placed in - Do I define this for the entire portal or on a portlet by portlet basis?
Thanks again!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983086#3983086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983086
19Â years, 6Â months
[JBossWS] - Possible JBoss SwA Bug
by malmit
I am trying to build a document literal web service in JBoss 4.0.5 and can't get around this exception:
org.jboss.ws.WSException: Cannot obtain java/xml type mapping for: {http://www.w3.org/2001/XMLSchema}base64Binary
Here's what my wsdl looks like:
<SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http">
<SOAP:operation style="document" soapAction="Ping">
< input>
<mime:multipartRelated>
<mime:part>
<SOAP:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="data" type="gzip"/>
</mime:part>
</mime:multipartRelated>
</ input>
< output>
<SOAP:body use="literal"/>
</ output>
</SOAP:operation>
</SOAP:binding>
In my mapping.xml file that wscompile generated, this mapping was generated for the data mime:content:
<variable-mapping>
<java-variable-name>data</java-variable-name>
<xml-element-name>data</xml-element-name>
</variable-mapping>
My ultimate goal is to allow a web service request containing parameters passed via a normal web service request and allow an attachment of a base64 encoded binary file. Is this a bug in JBoss 4.0.5 or did I do something wrong?
Thanks in advanced,
Tim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983077#3983077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983077
19Â years, 6Â months
[EJB 3.0] - EJB3 with J2EE5 WS
by bmhardy
Hello,
We created some EJB3 Entity beans and have several EJB3 session Facades to promote the system API. We used @WebMethod annotations to make the session facade methods web services.
This seems to work ok, but with EJB3 all our Entity relationships are Sets. Since the Entities have Sets of related Entities, we are not able to return our detached entities from our webservice. I know that a web service could handle a Java Array of Objects.
How can I use Object Arrays for Entity relationships in EJB3 rather than Sets.
Conversely, how can I get the web service to use Sets, or Collections as a legitimate data type that can be passed? If I can get Sets to go through the web service, would a .net client have a problem accessing them?
Thank you very much.
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983070#3983070
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983070
19Â years, 6Â months
[EJB/JBoss] - Class Loader Config for EJB deployed as a webservice
by valentino
Hi all,
I've got a jboss 4.0.2 installation providing a web service based on an EJB & I'd like to run the current version side-by-side with a new version. Both versions use many of the same classes with slight differences so based on the documentation on class loading configuration it looked like I needed to add something along the lines of:
<jboss-app>
<loader-repository>
BeanName:loader=BeanLoader
</loader-repository>
</jboss-app>
to my app's configuration. I was a little unclear about what config file to add it to so I added a jboss-app.xml file to my META-INF directory. Unfortunately this doesn't seem be working. The two deployed jars still appear to be sharing whichever classes load first. Anyone run into something like this before, am I totally off base? Any help would be appreciated.
Thanks -V
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983069#3983069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983069
19Â years, 6Â months