[EJB 3.0] - Re: EJB 2.1 and 3 coexisting?
by goldrimtang
Hi Wolf,
Thanks for your reply. Yes, the method has a transaction attribute (RequiresNew). If I change the parameter from an array (Object[]) to a type 'Vector', it stops complaining about this during deployment type. I can live with that ... the problem is that then another exception happens, also at deployment time:
| 2007-09-03 14:58:50,737 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:ear=jbilling.ear,jar=jbilling.jar,name=com/xxx/yyy/server/item/ItemSession,service=EJB3
|
| java.lang.ClassCastException: $Proxy76 cannot be cast to javax.naming.Context
|
| at org.jboss.util.naming.Util.createSubcontext(Util.java:69)
|
| at org.jboss.util.naming.Util.rebind(Util.java:125)
|
| at org.jboss.util.naming.Util.rebind(Util.java:113)
|
| at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.start(StatelessRemoteProxyFactory.java:115)
|
Which makes me wonder why all these problems just because a totally unrelated stateless session bean EJB 3 is being deployed.
Thanks again for your time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081054#4081054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081054
18 years, 7 months
[JBossWS] - Re: Error: Could not transmit message
by palin
Hi Paoletto,
"paoletto" wrote :
| | Caused by: java.net.UnknownHostException: fornost
| | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
| | at java.net.Socket.connect(Socket.java:507)
| | at java.net.Socket.connect(Socket.java:457)
| | at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
| | at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
| | at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
| | at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
| | at sun.net.www.http.HttpClient.New(HttpClient.java:287)
| | at sun.net.www.http.HttpClient.New(HttpClient.java:299)
| |
it seems you're trying to access an unknown host "fornost"... I would suggest to check whether you can reach it from the host your jboss is running on. Also consider upgrading from 1.0.3 (if you're using this) to 2.0 and using jaxws, you might have a lot of benefits.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081050#4081050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081050
18 years, 7 months
[JBoss Seam] - exception redirect - missing message
by gstacey
Hi,
This may be an issue of integration with IceFaces rather than a Seam issue, but I'm posting on both forums in the hope that someone can offer some insight.
I'm using exception redirects in my project and while they work fine, after the first time the associated message is not displayed.
e.g.
| <exception class="org.jboss.seam.security.AuthorizationException">
| <end-conversation />
| <redirect view-id="/Error.xhtml">
| <message severity="WARN">
| You do not have the necessary security privileges to
| perform this action.
| </message>
| </redirect>
| </exception>
|
I am using a simple <h:messages/> tag to display the message.
When the message is not displayed I see the following error:
| ERROR [org.jboss.web.tomcat.service.jca.CachedConnectionValve] Application error: Persistent Faces Servlet did not complete its transaction
|
Has anyone seen something like this before? or can offer some ideas on what the problem might be?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081046#4081046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081046
18 years, 7 months
[JBossWS] - How di I get detail in SOAPFault
by oskar.carlstedt
Hello!
I can't get the detail element of the SOAPFault. Is there a magic way to do this. I have a Provider< SOAPMessage > implementation. When I do the following ...
| @Local
| @Stateless
| @WebServiceProvider(
| serviceName = "MyService",
| portName = "MyServiceSoap11Port",
| targetNamespace = "http://my.service.com/something",
| wsdlLocation = "META-INF/wsdl/my-service.wsdl")
| @ServiceMode(value = Service.Mode.MESSAGE)
| public class MyServiceEndpointProvider implements Provider<SOAPMessage> {
|
| public SOAPMessage invoke(SOAPMessage requestSoapMessage) {
| ...
|
| SOAPFault theSOAPFault = SOAPFactory.newInstance().createFault();
| Detail soapFaultDetail = soapFault.addDetail();
| SOAPElement myFaultElement = soapFaultDetail.addChildElement(new QName("http://my.service.com/common-ws/types", "myFault"));
| SOAPElement myCodeElement = myFaultElement.addChildElement(new QName("http://my.service.com/common-ws/types", "code"));
| myCodeElement.setNodeValue("SC_BAD_REQUEST");
| SOAPElement myMessageElement = myFaultElement.addChildElement(new QName("http://my.service.com/common-ws/types", "message"));
| myMessageElement.setNodeValue("This is a faked error");
| throw new SOAPFaultException(theSOAPFault)
|
| ...
| }
| }
|
... the detail part of the fault is missing, i.e. the serialized response does not contain my detail information, just the top fault element. Am I missing something obvious here or is it a bug. I'm using JBoss 4.2.1.GA with JBossWS 2.0.1.GA. And yes, my wsdl points out a fault element specifying the detail above.
Thanks in advance
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081045#4081045
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081045
18 years, 7 months
[JBoss Seam] - dataTable/selectItems woes
by binabik
hi,
i'm in the middle of whacking together a timetable-generating application for the institute i work at. and i'm banging my head against the wall because of some weird stuff that seam is doing.
i have a list of TimetableItems, each of which has a list of 1..n TimetableItemTimes. I have a stateful session bean, TimetableGenerator (@Name("timetable")) which queries the database (over which i have no control), mashes the data from the database into an ArrayList of TimetableItems (#{timetable.bscPracticals}) in the way i need it.
then i have this JSF snippet in my form where the user should be able to select a timeslot for the course he/she wants to take:
| <h:dataTable id="bscPracticalList" var="bscPr"
| value="#{timetable.bscPracticals}"
| rendered="#{not empty timetable.bscPracticals}">
| <h:column>
| <f:facet name="header">Name</f:facet>
| #{bscPr.title} [#{bscPr.times.size} Groups] (#{bscPr.type})
| </h:column>
| <h:column>
| <f:facet name="header">Available Times</f:facet>
| #{bscPr.times}
| </h:column>
| <h:column>
| <f:facet name="header">Time slot selection</f:facet>
| <h:selectOneMenu value="#{bscPr.selected}">
| <s:selectItems value="#{bscPr.times}" var="n"
| label="#{n.group}" />
| </h:selectOneMenu>
| </h:column>
| </h:dataTable>
|
the "Name" column is populated correctly, the "Available Times" column then correctly shows all the timeslots available for each course, BUT the "Time slot selection" selectOneMenus show the available timeslots for the first course in my listing in each row.
now, i'm thinking i'm probably doing something wrong. but i have ABSOLUTELY no clue as to what that might be.
seam version is 1.3.0-ALPHA (according to the readme.txt) checked out from CVS at the end of june. i'm thinking this issue might be fixed in the 2.0-BETA release, but am not too sure how to go about upgrading (is it just a matter of swapping out the jboss-seam*.jar libraries in my project?).
so, can anyone help me on this?
thanks in advance,
sb
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081044#4081044
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081044
18 years, 7 months