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
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
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
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
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
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
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
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
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
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
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
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)
|
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
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.
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/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
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
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
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
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
20 matches
Mail list logo