Hi,
I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like the MovieDatabase example). My question
is how do i go about debugging this? Is it possible to get access to the
generated .java files?
Thanks in advance for any advice
stack traces
.
Greg
-Original Message-
From: Tim Joyce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 4:16 AM
To: Orion-Interest
Subject: ClassCastException in generated code
Hi,
I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like
Hi,
I am getting a ClassCastException when I try to narrow a lookup on a
remote stateless session bean from a jsp page. My configuration is
orion 1.5.4 with an application for the remote stateless session bean
and an application for the web module. For testing purposes, I am
running under
.
This document may help you understand where to put your classes:
http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp
Cheers,
Scott
[EMAIL PROTECTED] wrote:
Hi,
I am getting a ClassCastException when I try to narrow a lookup on a
remote stateless session bean from a jsp page. My
: ClassCastException while doing REMOTE ejb lookup from a web module
Hi,
I am getting a ClassCastException when I try to narrow a lookup on a
remote stateless session bean from a jsp page. My configuration is
orion 1.5.4 with an application for the remote stateless session bean
and an application
: ClassCastException with struts
Greetings,
I've been trying Orion and I'm having some problems using multiple
applications (or copy's from the same application).
What I have is one application, used (and modified) by some guys.
So, each one has his own web-app and application and a source
area for struts
Having struts locally on each webapp, strutsjar in WEB-INF/lib/
and struts-config in WEB-INF/, allows to run just one application
without errors (ClassCastException)
This happens because all struts-config are the same, just running
under different copies of the application
The problem seems to be with struts, that always throws a
ClassCastException when the second application trys to run
Without using Struts, everything seems to work fine and each
application runs separatly I think that Struts uses some 'common
area configuration' that can only be created and used by one
.
But this object is loaded in the servlet using a ClassLoader that is
different from the default ClassLoader of the servlet.
The result is a ClassCastException when doing a narrow using this object and
the class as loaded by the default ClassLoader. The narrow works fine when
the object's ClassLoader is used
physical machine.
I can establish the correct Initial Context and locate the required object.
But this object is loaded in the servlet using a ClassLoader that is
different from the default ClassLoader of the servlet.
The result is a ClassCastException when doing a narrow using this object
Since I saw a question regarding junit and classcastexceptions on this list
(before I subscribed to it) just one pointer for everyone:
Using stock junit for EJB calls you will run into classcastexceptions
because of the custom class loader junit is using. I already asked the junit
guys to put
Worked like a charm; I am much obliged.
Reason
http://www.exratio.com/
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jens Schumann
Sent: Sunday, September 30, 2001 2:47 AM
To: Orion-Interest
Subject: Junit issues - ClassCastException
Since I
= PortableRemoteObject.narrow(ref,
DynamicWorldObjectHome.class);
// and in the line above, it throws the ClassCastException
System.out.println(narrow.getClass());
DynamicWorldObjectHome home = (DynamicWorldObjectHome)narrow;
DynamicWorldObject dwo = home.create();
it fails
I have a User class that performs a number of Authentication
and user maintenace functions using LDAP to our Corporate Directory,
with the javax.naming.directory package.
This all works fine and is used by folks from their JSP pages etc
under Tomcat V3.2.
I have a Session Bean that
To answer my own question... Since LdapDirContext
doesn't say it's Serializable, and I didn't really
need it as an attribute, I got it moved to just be
a variable when needed! Incase someone asked :)
Here is the error:
java.lang.ClassCastException: javax.naming.NameNotFoundException
at
MyBeanHome_EntityHomeWrapper10.create(MyBeanHome_EntityHomeWrapper10.java:53
7)
at tourney.web.TestServlet.createTourney(TestServlet.java:39)
Here is the code that causes the error(--
Hi Dag,
.
My code is the orion-primer example
(http://www.jollem.com/orion-primer/)
that works inside one machine but fails between two machines.
It works on two different machines. It works also using resin or others
servlet engine for the web side.
The
orion-primer is a ear with a web
I have generally found that a ClassCastException (usually nested
three-layers deep in ominous sounding Orion exceptions) usually
indicates a wrong bean (or class) specified in the deployment
descriptor.
For instance, I was tearing my hair out over a ClassCastException I was
getting every time I
it as.
regards,
Patrik
Andersson
-Original Message-From: Erik Sundberg
[mailto:[EMAIL PROTECTED]]Sent: den 14 november 2000
22:10To: Orion-InterestSubject: ClassCastException
servletproblem
hi,
Just started doing servlet programming and using
Orion.
I made
- Original Message -
From:
Patrik Andersson
To: Orion-Interest
Sent: Wednesday, November 15, 2000 4:54
PM
Subject: RE: ClassCastException
servletproblem
Use
the Java Reflections utilities. Issue myObject.getClass().getName() on the
object that you
hi,
Just started doing servlet programming and using
Orion.
I made this servlet which compiles just fine but at
runtime
the server responde with a ClassCastException and I
just
canĀ“t understand why. Here is where I get the
errors:
cpool =
(ConnectionPool)context.getAttribute("
Hi ppl,
I have a stateless session bean ChannelManager. I wrote a test class
ChannelManagerTest to test the bean.
Line 12: ChannelManager channelManager = (ChannelManager)
JNDIHelper.getHome("akela.pesos.content.news.ChannelManager");
( JNDIHelper is tested and is working just fine )
I get
Sorry ppls,
I've found the problem - stupid me :). I've forgotten the home interface.
The corrected code is :
Line 12: ChannelManagerHome channelManagerHome = (ChannelManagerHome)
JNDIHelper.getHome("akela.pesos.content.news.ChannelManager");
ChannelManager channelManager =
Hi all
I have a class that is connecting to 2 beans. The one bean works while
the other gives me a
java.lang.ClassCastException: __Proxy4 at
com.test.manager.TestManager.main(TestManager.java:45)
exception. I have checked the listings. I could not find a similar case
where one bean worked
Actually..yes..that is what I meant. :)
-Original Message-
From: KirkYarina [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 1:11 PM
To: Orion-Interest
Subject: Re: EJB ClassCastException doesn't make sense..
At 11:27 AM 10/27/00 -0700, you wrote:
Context context
)? If I am
only referencing the Test ejb from the first ejb (Login), do I need to
define the Test ejb in the ejb-jar.xml as well, as I have done?
So my problem is..why am I getting a ClassCastException when trying to
execute the login() method? Oh..I did narrow down the line of code in the
EJB
At 11:27 AM 10/27/00 -0700, you wrote:
Context context = new Context();
By any chance should this be new InitialContext() ?
Object ref = context.lookup("java:comp/env/ejb/Test");
TestHome th = (TestHome) PortableRemoteObject.narrow(ref, TestHome.class);
Test t = th.create();
t.test();
Kirk
Title: RE: EJB ClassCastException problem
Thanks Karl. I missed the parent attribute because I've been looking at older docs in my
1.2.9 install area which don't have it. Maybe it was put in since 1.2.9. The udated docs
on orionserver.com contain the parent attribute.
I probably should've
. Like you, I have been pulling my hair out
trying to figure out
how to access a component in one application from a component in another. I
too stumbled
upon the RMIInitialContextFactory as well but I cannot cast/narrow objects
obtained via JNDI.
I always get a ClassCastException. I have tempo
a ClassCastException. I have temporarily gotten around the
problem by using
reflection to call methods but it's not a solution. I think it's a bug in
Orion. I believe it's a class loader
issue. The object returned from JNDI and the class object you pass to narrow
have different
class loaders - it appears
Hi everyone,
I have this problem when I try to get the home interface of the EJB,
using a servlet to access EJBs from another application on the same
server. When I call the PortableRemoteObject.narrow(..) method, it
throws the exception:
java.lang.ClassCastException:
Title: RE: EJB 2.0 status.
When
we check in servlets from SourceSafe into the "servlet-container" we get
ClassCastException on some other support class. And that happends every time. I
suppose that is because our supporting class gets reloaded by the servlet
classloader e
Hi all,
Another quick question.
I have a globally allocated (application scope) bean that manages my
dbconnection pooling system. I've been seeing a lot of
"java.lang.ClassCastException: DBConnectionPool". When I'm doing development
on various jsp's and beans that utilise this as an include
33 matches
Mail list logo