RE: ClassCastException in generated code

2002-05-15 Thread Greg Davis
helps. 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 lik

ClassCastException in generated code

2002-05-15 Thread Tim Joyce
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

RE: ClassCastException while doing REMOTE ejb lookup from a web module

2002-04-08 Thread Dillon, Ryan
: 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

Re: ClassCastException while doing REMOTE ejb lookup from a web module

2002-04-08 Thread Scott Farquhar
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

ClassCastException while doing REMOTE ejb lookup from a web module

2002-04-08 Thread kkvarfordt
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

Re: AW: ClassCastException with struts

2002-03-01 Thread Lucas Persona
re is no common config area for struts. Having struts locally on each webapp, struts.jar 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 differen

AW: ClassCastException with struts

2002-03-01 Thread Jan Heise
: 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-

ClassCastException with struts

2002-02-28 Thread Lucas Persona
library directory. 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'

Re: ClassCastException while doing REMOTE ejb lookup

2002-01-07 Thread Ashok Banerjee
mote > and different 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 ClassCas

ClassCastException while doing REMOTE ejb lookup

2002-01-07 Thread Theo van Niekerk
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

RE: Junit issues - ClassCastException

2001-09-30 Thread Reason
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 -

Junit issues - ClassCastException

2001-09-30 Thread Jens Schumann
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 thi

resurrecting the ClassCastException issue

2001-09-29 Thread Reason
1" Object narrow = PortableRemoteObject.narrow(ref, DynamicWorldObjectHome.class); // and in the line above, it throws the ClassCastException System.out.println(narrow.getClass()); DynamicWorldObjectHome home = (DynamicWorldObjectHome)narrow; DynamicWorldObject

RE: ClassCastException

2001-09-05 Thread Scott Hamilton, (m)+61-404-280 238
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 :)

ClassCastException

2001-09-05 Thread Scott Hamilton, (m)+61-404-280 238
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 I

ClassCastException

2001-03-21 Thread Fyffe Carl
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(--> designat

RE: Has anyone ever solved the ClassCastException problem?

2000-12-08 Thread Jeff Schnitzer
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

Has anyone ever solved the ClassCastException problem?

2000-12-08 Thread Dag Rende
Hi! I have got the infamous ClassCastException problem when casting a home interface got from a context lookup. I have seen many mails about this problem on this list, with good advice and hints. But no one saying that it works. My code is the orion-primer example (http://www.jollem.com/orion

R: Has anyone ever solved the ClassCastException problem?

2000-12-08 Thread Montebove Luciano
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

Re: ClassCastException servletproblem

2000-11-15 Thread Erik Sundberg
  - 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 are

RE: ClassCastException servletproblem

2000-11-15 Thread Patrik Andersson
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 this

ClassCastException servletproblem

2000-11-14 Thread Erik Sundberg
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("

ClassCastException confusion

2000-11-08 Thread Michael Maram
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 and

Re: ClassCastException

2000-11-08 Thread Peter Severin
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 = channelManagerHome.c

ClassCastException

2000-11-08 Thread Peter Severin
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 th

RE: EJB ClassCastException doesn't make sense..

2000-10-30 Thread Duffey, Kevin
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 -0

Re: EJB ClassCastException doesn't make sense..

2000-10-27 Thread KirkYarina
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(); K

EJB ClassCastException doesn't make sense..

2000-10-27 Thread Duffey, Kevin
xml)? 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

RE: EJB ClassCastException problem

2000-10-02 Thread Pantelis, Thomas
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.

Re: EJB ClassCastException problem

2000-09-30 Thread Karl Avedal
cast/narrow objects > obtained via JNDI. > I always get 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 objec

EJB ClassCastException problem

2000-09-29 Thread Erin Hill
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 loade

EJB ClassCastException problem

2000-09-25 Thread James Ho
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: StampHome_EntityHomeWrap

ClassCastException.

2000-08-31 Thread Patrik Andersson
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 even th

ClassCastException

2000-07-26 Thread Martin Wells
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 (e.g