[JBossWS] - Re: XOP testCase
by Pires da Silva
sorry I answered too quickly; first install the samples and run them and check for jars used. after you may find an answer.without using the samples time is lost with problems difficult to understand.
tu run the samples for Jboss1.2.0.SP1 you have a post "how to run the jbossws samples" mon 2 april 2007.
you also need to work with the generated classes from wsdl with wsconsume.
the class I use is a generated class where i set application/octet-stream:
@javax.xml.bind.annotation.XmlType
public class Message {
private DataHandler dataHandler;
public Message() {
}
public Message(DataHandler dataHandler) {
this.dataHandler = dataHandler;
}
@XmlMimeType("application/octet-stream")
public DataHandler getDataHandler() {
return dataHandler;
}
public void setDataHandler(DataHandler dataHandler) {
this.dataHandler = dataHandler;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046054#4046054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046054
19 years, 1 month
[JBoss Seam] - Re: problem with 1.2.1 / tomcat upgrade
by jcruise
So here's the line that's causing the failure in the ELSupport class:
| if (obj != null && type.isAssignableFrom(obj.getClass())) {
| return obj;
| }
|
My JSF code looks like this:
| <h:selectOneMenu id="zone" value="#{_zone}" converter="Zone">
| <f:selectItems value="#{_zones}" />
| </h:selectOneMenu>
|
where zones is created using:
| @SelectItems(value = "_zones", labelMethod = "getLabel", valueStrategy = Strategy.OBJECT)
| public List<Zone> getZones() {
| return zones;
| }
|
So basically the values are a bunch of Zone POJOs.
And therefore I guess that the problem is that a Zone POJO is not assignable to a Zone seam component. This worked when seam components were using cglib for proxying but I guess Javassist has fixed that mistake ;)
What is the correct strategy here?
Cheers
J
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046051#4046051
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046051
19 years, 1 month
[JBoss Seam] - Re: @Filter example
by anescu
Ok, I have some progress:
1) I defined 2 entity managers in components.xml:
<core:managed-persistence-context name="entityManager"
| auto-create="true"
| persistence-unit-jndi-name="java:/entityManagerFactory"/>
|
| <core:filter name="hubFilteredChannels">
| <core:name>hubFilteredChannels</core:name>
| <core:parameters>
| <key>currentHub</key>
| <value>#{currentHub}</value>
| </core:parameters>
| </core:filter>
|
| <core:managed-persistence-context name="filteredEntityManager"
| auto-create="true"
| entity-manager-factory="#{entityManager}">
| <core:filters><value>#{hubFilteredChannels}</value></core:filters>
| </core:managed-persistence-context>
2) Then I override the getPersistenceContextName in my entity List class:
@Override
| protected String getPersistenceContextName()
| {
| System.out.println( "### debug step" );
| return "filteredEntityManager";
| }
3) Now i can deploy and browse the other parts of the application as before using the filter, but i get an exception when opening the entity list screen, something about a ClassCastException:
Caused by: java.lang.ClassCastException: org.jboss.seam.persistence.EntityManagerProxy
| at org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:169)
| at org.jboss.seam.core.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:77)
| at org.jboss.seam.core.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:105)
| at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046044#4046044
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046044
19 years, 1 month