[EJB 3.0] - Classcastexception when accessing EJB3.0 JPA EJB
by forumer
Using JBoss4.0.4
This is the first time I am trying to deploy a bean using EJB3.0/JPA. I get the following error. I'd appreciate any help me in getting me going with using JPA.
java.lang.ClassCastException: $Proxy162
My Bean is annotated as:
@Stateless
| @RemoteBinding(jndiBinding="ABC/FMBean/remote")
| public class FMABean implements FMALocal, FMARemote {
| @PersistenceContext(unitName="FM")
| protected EntityManager em ;
|
In the JSP I am trying to access the bean as:
InitialContext ctx = new InitialContext();
| Object obj = ctx.lookup("ABC/FMAAdminBean/remote");
| System.out.println("obj class ="+obj.getClass());
| fmaAdmin = (FMAAdminBean) obj;
JNDIView in JMX Console look like:
| +- ABC (class: org.jnp.interfaces.NamingContext)
| | +- FMABean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy147 implements No ClassLoaders found for: com.boeing.begss.fm.FMARemote (no security manager: RMI class loader disabled))
| | +- FMAAdminBean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (proxy: $Proxy144 implements No ClassLoaders found for: com.boeing.begss.fm.FMAAdminRemote (no security manager: RMI class loader disabled))
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974699#3974699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974699
19 years, 7 months
[JBoss Portal] - The tree of directories is broken in svn and zip-archive for
by mifa
I try to install a portal from source. I check out the last version from a svn (Revision 5271: /trunk).
I can't generate preconfigured datasources for DB, since there is no one directory in the distribution: thirdparty
In the documentation (http://docs.jboss.com/jbportal/v2.4/reference-guide/en/html/installation....) is shown the tree which should be present at the distribution. But as it has appeared, there is no "thirdparty" directory! Therefore there is an error.
Also I downloaded the last version in ZIP-archive (jboss-portal-2.4.0-src.tar) from a server, but there is the same.
Here is an error:
| C:\Entwicklung\jb2.4trunk\core>build datasource
| Executing C:\Entwicklung\jb2.4trunk\core\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger datasource
| Buildfile: build.xml
| C:\Entwicklung\jb2.4trunk\thirdparty\libraries.ent could not be found
|
| BUILD FAILED
| java.io.FileNotFoundException: C:\Entwicklung\diplom\jb2.4trunk\core\..\thirdparty\libraries.ent
|
| Total time: 0 seconds
| Drucken Sie eine beliebige Taste . . .
|
| C:\Entwicklung\jb2.4trunk\core>cd ..
| C:\Entwicklung\jb2.4trunk>dir
| Datentrager in Laufwerk C: ist DiskC
| Volumeseriennummer: C458-AC9D
|
| Verzeichnis von C:\Entwicklung\jb2.4trunk
|
| 27.09.2006 21:19 <DIR> .
| 27.09.2006 21:19 <DIR> ..
| 27.09.2006 21:18 <DIR> api
| 27.09.2006 21:17 <DIR> bridge
| 27.09.2006 23:41 <DIR> build
| 27.09.2006 21:13 <DIR> cms
| 27.09.2006 21:15 <DIR> common
| 27.09.2006 21:15 <DIR> core
| 27.09.2006 21:12 <DIR> faces
| 27.09.2006 21:12 <DIR> federation
| 27.09.2006 21:13 <DIR> format
| 27.09.2006 21:19 <DIR> forums
| 27.09.2006 21:16 <DIR> identity
| 27.09.2006 21:17 <DIR> jems
| 27.09.2006 21:16 <DIR> migration
| 27.09.2006 21:16 <DIR> portlet
| 27.09.2006 21:18 <DIR> samples
| 27.09.2006 21:18 <DIR> security
| 27.09.2006 21:18 <DIR> server
| 27.09.2006 21:12 <DIR> test
| 27.09.2006 21:16 <DIR> testsuite
| 27.09.2006 21:18 <DIR> theme
| 27.09.2006 21:18 <DIR> tools
| 27.09.2006 21:17 <DIR> wsrp
| 0 Datei(en) 0 Bytes
| 24 Verzeichnis(se), 25 432 559 616 Bytes frei
|
| C:\Entwicklung\jb2.4trunk>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974698#3974698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974698
19 years, 7 months
[Clustering/JBoss] - JMS Queue access lost when JMS fails over
by kvbisme
We have a cluster setup of a two (reduced to better see the issue) JBoss-4.0.4-GA(patch-1) servers. We set these up using the zip file and then applied the EJB3-RC8 to it to get all the clustering pre-configured (mainly HA-JMS and the EJB3 implementation)
Anyway, under ideal conditions everything works perfect. We have a myriad of JMS queues and when the system comes up they deploy on a single box and on the other box we get the messages that they are waiting. We process our transactions and they propagate through the system as expected, MDB?s process the messages and some of these beans spawn new messages onto additional queues. Again, all works as advertised.
Now, the machine in master mode fails. The queues deploy on the waiting machine and everything ?looks? kosher. So we bring the other machine back into the cluster, and it accepts its role as standby, we see the queues attempt to deploy but instead drop into their waiting state.
Our processes start to run again, and again the initial messages are distributed among the machines. Now however those beans that spawn new messages into different queue?s get a JNDI error of queue not bound. It?s like they are looking in the local JNDI for the queue and not the HAJNDI, however I can?t see anywhere this could be set. I checked all the ear,jar and war files for a jndi.properties file and found none. I thought I would find one pointing to localhost:1099, but no dice on the easy answer. And of course before we failed over the queue?s were seen on both boxes.
So we drop the one box that hasn?t failed, so that the queues redeploy on the original master box, and then bring that machine back up so everything is like it was at the start of this, and everything starts to work again! Frustrating to say the least.
Can anyone give me a rough idea as to where even start looking into this one? I have pretty much exhausted my idea pool.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974695#3974695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974695
19 years, 7 months