[JBoss Seam] - Conversations and IFrames
by nakhnoukh
I am using a third party JSF component that doesn't work with Ajax4JSF rerendering. Thus to achieve the user experience I'm looking for - only certain portions of the page updating on certain user actions - I've had to resort to separate JSPs in IFrames. (The third party component doesn't work with Facelets either, thus the need for JSP)
How can I keep all the different frames in the same conversation? I'm setting the contents of the frames via Javascript. Something like: document.getElementById('topframe').src='top.jsp'
Whenever this happens the JSP is in a new conversation. I've tried appending "?conversationId=#{conversation.id}" to the url above, but that had no effect.
All the frames are referencing the same Seam Component, a SFSB. When I navigate around my site, I occasionally get "No active conversation context".
Thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051139#4051139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051139
18Â years, 10Â months
[Beginners Corner] - Re: invoking an EJB over iiop
by HibsMax
I don't know if this helps but when I change my EJB Home name from:
iiop/interop.InteropHome
to
iiop/interop.InteropHome/remote
when the servlet tries to access it I get this error message:
18:05:07,560 ERROR [orb] no adapter activator exists for EJBHome&%interop.InteropHome
| 18:05:07,598 ERROR [STDERR] javax.naming.NotContextException: IOR:0000000000000041524D493A7765626C6F6769632E71612E74657374732E656A6232302E696E7465726F702E496E7465726F70486F6D653A30303030303030303030303030303030000000000000000200000000000000D4000102000000000F3137322E31382E3133362E31323800000DC80000000000284A426F73732F454A42486F6D652625696E7465726F702E496E7465726F70486F6D652FACED000570000000050000000000000008000000004A414300000000010000001C000000000001000100000001050100010001010900000001050100010000001900000034000000000000002C687474703A2F2F7261703A383038332F576562434C5B696E7465726F702E496E7465726F704265616E5D2F000000002000000004000000000000001F0000000400000003000000010000005C00000000000000030000001900000034000000000000002C687474703A2F2F7261703A383038332F576562434C5B696E7465726F702E496E7465726F704265616E5D2F000000002000000004000000000000001F0000000400000003 is not a Context
This makes no sense to me since I am not expecting a Context. I'm expecting a reference to an EJB to be found in the Context. Removing the trailing /remote from the EJB name gets me back to where I was before i.e. a Null being returned when processing the PortableRemoteObject.narrow method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051130#4051130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051130
18Â years, 10Â months
[JBoss Seam] - Re: Trouble Using <s:convertEntity/> on Glassfish
by soluble
My persistence layer uses Hibernate as the provider and is the exact one from the Glassfish example that comes with the jboss-seam-1.2.1.GA download:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="bookingDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>jdbc/__default</jta-data-source>
| <properties>
|
| <property name="hibernate.dialect"
| value="org.hibernate.dialect.DerbyDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.transaction.flush_before_completion" value="true"/>
|
| <property name="hibernate.cache.provider_class"
| value="org.hibernate.cache.HashtableCacheProvider"/>
| </properties>
| </persistence-unit>
| </persistence>
|
In fact the only difference my app has to the glassfish example is that I have added a few more session beans and facelets.
I should also mention that a few more stack traces also come up such as:
Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader@ce16ad
| was requested to find class org.hibernate.event.EventListenersBeanInfo after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:707)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
| ...
|
and
| Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader@ce16ad
| was requested to find class org.hibernate.util.CloneableBeanInfo after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:707)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
| ...
|
and
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not instantiate dialect class
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
| ...
| Caused by: java.lang.ClassCastException: org.hibernate.dialect.DerbyDialect cannot be cast to org.hibernate.dialect.Dialect
| at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:78)
| ...
|
I hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051129#4051129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051129
18Â years, 10Â months