[JBoss Portal] - Re: problem while implementing portal identity API with a jn
by loucs
Ok, so i went forward throught this problem and it's caused by the fact my ear project uses Richfaces (3.2.0.GA) with seam (2.0.0.GA) in portlets. It work perfectlly well but the ear project had to be isolated, with the creation of a loader-repository for my ear. this prevent me to cast the proxy object i get from a jndi lookup outside of my ear in the local or remote interface of my ejb.
i have two solution : i can search for a way to make richfaces work without having to isolate the ear classloading (wich i'm doing looking at the richfaces + portal discussion (with the portletbridge, but i don't think it works differently ), or i can force the EJB to be called by value, but all the docs i find on the subject are about ejb 2.0 and older versions of JBoss (i'm using 4.2.2.GA).
I tested this last one by putting the attribute calledByValue in default/deploy/conf/jboss-service.xml and it worked, but it's not an acceptable solution as it has repercutions on all jndi lookups, and it increase a lot the ressource usage of such operations.
that's why i'd like to know how to force the calledbyvalue on an EJB3 lookup (and only on one EJB), or if possible a solution allowing not to isolate classloading in my ear.
i'm searching a lot by myself, (maybe not the right way :), but any clues or link to a corresponding documentation would really help me.
thanks,
--
Lucas
Montes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148542#4148542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148542
17 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Re: Tomcat to JBoss migration question
by nporwal
I tried that, and it moved further along. I dropped the references from the default/deploy/jboss-web.deployer/server.xml file.
Here is what I put into my WEB-INF/jboss-web.xml file:
| <resource-env-ref>
| <resource-env-ref-name>jms/viewData</resource-env-ref-name>
| <resource-env-ref-type>javax.jms.QueueConnectionFactory</resource-env-ref-type>
| <jndi-name>java:/viewData</jndi-name>
| </resource-env-ref>
|
Now I have to figure out where to put in the context information. Here is I get this in the log files:
Here is the error message:
| 2008-05-03 17:46:36,927 INFO [STDOUT] ERROR: [03-05-2008 17:46:36] [FrameworkServlet.java:243 initServletBean()]
| Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewDataService' defined in ServletContext resource [/WEB-INF/viewData-servlet.xml]: Cannot resolve reference to bean .....
|
Where does the context information go? Where can the spring framework pick up the information from the application server?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148528#4148528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148528
17 years, 11 months
[EJB/JBoss] - Re: error accessing an EJB via JNDI
by loucs
i finally found where this strange acting comes from. it's actually the contrary of your suggestion. defining a loader repository is the cause of the problem, and when i don't define any, the cast of the object accessed by jndi in the local interface of my EJB is going perfectly well.
the unifiedClassLoader originally defined in my ear is for jboss seam. unfortunatelly, the jar of seam is inside my ear. I didn't create the project, i'm just working on it so i don't know the fundamentals of seam usage and how to deploy correctly a project using it, but for now, the elimination of the <loader-repository> definition in jboss-app.xml is causing the malfunction of jboss seam. i will continue to use the reflection API for now while looking in the seam documentation a manner to deploy it with my project without defining a loader repo in my ear (deploying it ini the jboss libdir for exemple.. or in a separate app, maybe....)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148526#4148526
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148526
17 years, 11 months