[JBoss-user] [EJB/JBoss] - ClassCastException in getLocalHome when upgrading from 3.2.1

2006-02-20 Thread rsagare
We have been using middlegen to generate EJB for last 3 years for JBoss3.2.1 successfully and it has worked very well for us. Now we are trying to upgrade to JBoss4.0.4 and we are getting this error in the middlegen generated file when deployed, java.lang.ClassCastException at com.acs

[JBoss-user] [EJB/JBoss] - ClassCastException on PortableRemoteObject.narrow()

2005-12-01 Thread PitPalme
Hello, I've got a ClassCastException problem when trying to get the correct object instance using InitialContext.lookup() and PortableRemoteObject.narrow(). The situation is me having two applications, one carrying the SessionBean(s), the other one a central MessageDrivenBean. While the busines

[JBoss-user] [EJB/JBoss] - ClassCastException when trying to access something via CMR

2005-11-09 Thread jwu
I'm a bit lost on this problem: There are two entity beans, Filiale (Store) and Verkaeufer (Employee) There is a 1:n relationship between them, unidirectional from the Verkaeufer side. I use these xdoclet tags in the VerkaeuferBean: /** * Getter for CMR Relationship

[JBoss-user] [EJB/JBoss] - ClassCastException for EJB3.0 sessionbean lookup

2005-08-29 Thread nagaraj_dv
Hi, While accessing the EJB3.0 stateless session bean from my client program, I get the following exception, java.lang.ClassCastException: $Proxy120 at com.ttk.action.administration.UserAction.getUserObject(UserAction.java:357) at com.ttk.action.administration.UserAction.execute(UserAct

[JBoss-user] [EJB/JBoss] - ClassCastException on redeployment of Jar files

2005-07-15 Thread deepakjois
My situation is as follows : I use an MBean service which contains a HashTable (which is bound to a specific JNDI Name) to hold a bunch of Objects inside JBoss , in order for them to be persistent, i.e. to exist inside the JVM as long as JBoss is running. I then manipulate the objects and exec

[JBoss-user] [EJB/JBoss] - ClassCastException on EJB Remote Lookup/Narrow

2005-07-14 Thread khoff999
HI - I'm new to JBoss and just trying a simple servlet to remote session bean lookup. I keep getting a ClasscastExcepion on the narrow(). I have a simple EJB - MyBean.class, the remote is My.class, the home is MyHome.class. Here is the servlet lookup code (I try it with and w/o EJB refern

[JBoss-user] [EJB/JBoss] - ClassCastException during ContextInitialization using Statel

2005-06-03 Thread wcydaip
I recently upgraded to jboss-4.0.2 unsucessfully. The problem appears to be during the context initialization. | =DEBUG [main] (com.systemadmin.util.ContextListener:51) - contextInitialized(ServletContextEvent() called!) | =DEBUG [main] (com.systemadmin.util.ContextListener:58) - enterin

[JBoss-user] [EJB/JBoss] - ClassCastException with LocalHome casting

2005-05-26 Thread movzx
I have a CommandEJB,which local interface and home is CommandLocal and CommandLocalHome.I use this CommandEJB to execute classes that implements the Command interface: interface Command{ void execute() throws CommandExecuteException; } here is the CommandEJB: public class CommandEJB implement

[JBoss-user] [EJB/JBoss] - ClassCastException with EJBs

2005-05-20 Thread spelux
Hi i'm having some problems deplying servlets. This is the error: java.lang.ClassCastException com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) edu.nyu.pdsg.tp

[JBoss-user] [EJB/JBoss] - ClassCastException when obtaining a Remote Interface from th

2005-04-21 Thread jjmargon
Hi. First of all, I'm using JBoss 4.0.1 and Eclipse 3.0.1M6 with MyEclipse. I've deployed a Stateless Session Bean in the server and it's ok. In fact, when I see the jmx-console in the JNDI view I can see the values for the EJB deployed. The issue is that when I try to access the EJB through a cl

[JBoss-user] [EJB/JBoss] - ClassCastException invoking LocalHome finder methods on BMPs

2005-04-15 Thread felandres
Hi all (again...), I'm having problems on invoking BMPs finder-methods (only those that returns various Value Objects within a Collection) through their local home interface. If I call them from the home interface it works pretty fine, but when I call from the local home I get a ClassCastExcep

[JBoss-user] [EJB/JBoss] - ClassCastException on redeployment in JBoss 4.0.1 sp1

2005-03-22 Thread mesemus
Hi folks, I've created an ear containing a jmx bean which gets invoked when the ear is deployed. Now, the bean tries to perform: |InitialContext context = new InitialContext(); |String homeName = "something-in-another-ear"; |ListenerHome listenerHome = (ListenerHome) |

[JBoss-user] [EJB/JBoss] - ClassCastException after redeployment

2005-02-13 Thread dikshit_luthra
I am gettting ClassCastException on javax.rmi.PortableObject.narrow(..) after a component is redeployed. The other component which were using this component (all components are deployed as separate components and not as a .ear file) throw a ClassCastException once the component has been redeploy

[JBoss-user] [EJB/JBoss] - ClassCastException

2004-12-18 Thread naveen
I have written a simple CMP Entity Bean,While Running the Client I am getting the Exception,I have included all jars needed. i am in start err in StudentHomejava.lang.ClassCastException i am in end my client code is import javax.ejb.*; import javax.naming.*; import java.rmi.*; import javax.

[JBoss-user] [EJB/JBoss] - ClassCastException when accessing Remote EJB with JBoss 3.2.

2004-08-28 Thread rcostanzo
I just upgraded from JBoss 3.2.2 with Jetty to JBoss 3.2.5 with Tomcat. One issue I am running into is I access a stateless session EJB of one JBoss server from a servlet in another JBoss server. This works fine in my current JBoss. However, with 3.2.5 I get a ClassCastException when it tries to

[JBoss-user] [EJB/JBoss] - ClassCastException on Session Bean - Classloader issue?

2004-08-27 Thread astehman
jboss/linux versions: Jboss 3.2.1 on Mandrake linux 2.4.21-199-default I'd be grateful if anyone can give me any clues what to check. When a Struts Action class attempts to lookup a Session bean, it gets a ClassCastException. I don't understand how - jboss.jar and ejb-jar.xml look good, and th

[JBoss-user] [EJB/JBoss] - ClassCastException during getCursor with Oracle...

2004-06-21 Thread daorriss
Subject says it all... What am I doing wrong here? Apparently the WrappedCallableStatement implementation that JBoss uses is doing something to prevent the casting, but what do I do to get around that? connection = getConnection("OracleDS"); | | logger.finer("Calling request_l

[JBoss-user] [EJB/JBoss] - ClassCastException After HotDeploy Stateful Session Bean

2004-06-14 Thread gudmundsonsc
Firstly, I am using the all configuration (haven't tried this yet in any other configurations). And I am accessing a Stateful Session Bean from a web app. It works good before hot deploy of the ejb, but throws ClassCastException after hot deploy of the ejb. This code is the code to access the

[JBoss-user] [EJB/JBoss] - ClassCastException at runtime

2004-05-12 Thread fburlet
Hi, I encounter some problems when running my app. I got a ClassCastException at runtime. I made 2 ear: one is the client of the other. I put the interfaces in the both ears. I defined for the both a loader repository (through jboss-app.xml). | | kiala:entities=LoaderRepository

[JBoss-user] [EJB/JBoss] - ClassCastException

2004-02-23 Thread meerkat512
Hi, I realize that the ClassCastException problem has already been much-discussed, but I couldn't find a post that helped me solve my issue or addressed the specific situation that I am experiencing: I am using Jboss 3.2.3. My classes are all deployed in a jar in the Jboss deploy directory. No