RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
that the ObjectOutputStream can be used to create binary representation of Serializable objects. --Seva From: Surya Mishra [mailto:[EMAIL PROTECTED] Sent: Mon 10/3/2005 4:12 PM To: Tomcat Users List Subject: ClassCastException while sharing objects accross applications Hi, I am

Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Andrés Glez .
-resource globally, i.e., in conf/server.xml - Original Message - From: Seva Popov [EMAIL PROTECTED] To: Tomcat Users List Surya Mishra [EMAIL PROTECTED]@gmail.com; Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, October 04, 2005 8:41 AM Subject: RE: ClassCastException

RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Caldarale, Charles R
From: Andrés Glez. [mailto:[EMAIL PROTECTED] Subject: Re: ClassCastException while sharing objects accross applications What about using JNDI to share objects between webapps? Won't change anything, due to the previously noted classloader-specific casting issue. What should work

Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Jon Wingfield
only the interface (and any referenced types) need go in common. Refactoring here we go :) HTH, Jon Caldarale, Charles R wrote: From: Andrés Glez. [mailto:[EMAIL PROTECTED] Subject: Re: ClassCastException while sharing objects accross applications What about using JNDI to share objects

RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
possible way is to utilize the system MBeanServer. --Seva -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 9:47 AM To: Tomcat Users List Subject: Re: ClassCastException while sharing objects accross applications What Chuck says is right

ClassCastException while sharing objects accross applications

2005-10-03 Thread Surya Mishra
it to the actual Object Type. I get a ClassCastException. I tried printing the name of the class. That also came fine (same class name). Thanks in advance. -Surya

RE: Tomcat 5.5.9 with Struts 1.2.7 - ClassCastException - looks like a Tomcat bug

2005-08-18 Thread stewart.cambridge
redundant and it can safely be removed. By removing it, it resolves the ClassCastException with org.apache.struts.taglib.html.MessagesTei But why should this double presence of jsp-api.jar be a problem for Tomcat 5.5.9 but not for 5.0.28? Thank you, Stewart -Original Message- From

ClassCastException When Compiling JSP

2005-07-30 Thread Nick Heudecker
Hi, Tomcat is unable to compile any of the JSPs in my application (Struts 1.2.7, JDK 5, Tomcat 5.5.9) because of a ClassCastException when loading up of the Struts TLDs. I'm posting the problem here because the application works fine using Resin. There are two stack traces. The one

Re: session replication problem: ClassCastException

2005-07-14 Thread Christian Schuhegger
Hi Peter, thank you very much for your quick response! I have more information on this topic now. Peter Rossbach wrote: First your are sure that your wars inside the installation art identical? Yes I am. Our automated install procedure ensures that. You stacktraces are strange. The

session replication problem: ClassCastException

2005-07-10 Thread Christian Schuhegger
end -- the one thing which is VERY strange to me is that normally with a ClassCastException you get the type info of which class it tries to cast, but here we only get java.lang.ClassCastException? we tried to search google for people having similar problems, but we were not able to find any

Re: session replication problem: ClassCastException

2005-07-10 Thread Peter Rossbach
:64) -- snip end -- the one thing which is VERY strange to me is that normally with a ClassCastException you get the type info of which class it tries to cast, but here we only get java.lang.ClassCastException? we tried to search google for people having similar problems, but we were

Re: Mail Session ClassCastException

2005-06-29 Thread Carlos Bracho
: Mail Session ClassCastException Datum: Tue, 28 Jun 2005 10:08:28 -0400 Hello everybody. I am trying to get a mail session using the context's lookup method and I get a ClassCastException. this is the resource declaration in my context.xml: Resource name=mail/sessionMail auth

Mail Session ClassCastException

2005-06-28 Thread Carlos Bracho
Hello everybody. I am trying to get a mail session using the context's lookup method and I get a ClassCastException. this is the resource declaration in my context.xml: Resource name=mail/sessionMail auth=Container type=javax.mail.Session mail.smtp.host=localhost/ the code I am using

Re: DBCP ClassCastException

2005-05-11 Thread Nikola Milutinovic
Dhiren Bhatia wrote: I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name, url, username/pwd etc. My app needs to support different databases and the driver is loaded based on which database is installed. You've got it backwards. It is the

Re: DBCP ClassCastException

2005-05-09 Thread Lutz Zetzsche
Hi Dhiren, Am Montag, 9. Mai 2005 07:36 schrieb Dhiren Bhatia: Hi all, I'm getting a the following ClassCastException running Tomcat 5.5.9 with MySQL java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource Here's the relevant code: *Java code

Re: DBCP ClassCastException

2005-05-09 Thread Dhiren Bhatia
ClassCastException. Is Tomcat instantiating the correct DataSourceFactory? I have the commons-dbcp-1.2.1.jar in my ${TOMCAT_HOME}/common/lib Thanks, Dhiren On 5/8/05, Lutz Zetzsche [EMAIL PROTECTED] wrote: Hi Dhiren, Am Montag, 9. Mai 2005 07:36 schrieb Dhiren Bhatia: Hi all, I'm getting

AW: DBCP ClassCastException

2005-05-09 Thread Pfingstl Gernot
javax.sql.DataSource? Gernot -Ursprüngliche Nachricht- Von: Dhiren Bhatia [mailto:[EMAIL PROTECTED] Gesendet: Montag, 09. Mai 2005 17:19 An: Tomcat Users List Betreff: Re: DBCP ClassCastException Hi Lutz, I changed the Resource tag definition to: Resource name=jdbc/myserver auth=Container

Re: DBCP ClassCastException

2005-05-09 Thread Dhiren Bhatia
Bhatia [mailto:[EMAIL PROTECTED] Gesendet: Montag, 09. Mai 2005 17:19 An: Tomcat Users List Betreff: Re: DBCP ClassCastException Hi Lutz, I changed the Resource tag definition to: Resource name=jdbc/myserver auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1

AW: DBCP ClassCastException

2005-05-09 Thread Pfingstl Gernot
ClassCastException I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name, url, username/pwd etc. My app needs to support different databases and the driver is loaded based on which database is installed. If I use

Re: DBCP ClassCastException

2005-05-09 Thread Dhiren Bhatia
. Gernot -Ursprüngliche Nachricht- Von: Dhiren Bhatia [mailto:[EMAIL PROTECTED] Gesendet: Montag, 09. Mai 2005 18:47 An: Tomcat Users List Betreff: Re: DBCP ClassCastException I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name

AW: DBCP ClassCastException

2005-05-09 Thread Pfingstl Gernot
(or web.xml) Gernot -Ursprüngliche Nachricht- Von: Dhiren Bhatia [mailto:[EMAIL PROTECTED] Gesendet: Montag, 09. Mai 2005 19:27 An: Tomcat Users List Betreff: Re: DBCP ClassCastException It works if I use org.apache.tomcat.dbcp.dbcp.BasicDataSource. I've tried adding all the commons jars

DBCP ClassCastException

2005-05-08 Thread Dhiren Bhatia
Hi all, I'm getting a the following ClassCastException running Tomcat 5.5.9 with MySQL java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource Here's the relevant code: *Java code:* org.apache.commons.dbcp.BasicDataSource datasource; datasource = (BasicDataSource)ctx.lookup

Session replication : classcastexception on principal

2005-04-01 Thread Sébastien Letélié
Hi, I use a JAASRealm in my context with mys own LoginModule to authenticate in mys webapp. When I use the cluster for session replication, I have a ClassCastExecption when the cluster try to serialize the Principal object. When I look in the source code

ClassCastException

2005-02-23 Thread Jagadeesha T
Hi, There is a ClassCastException when we run the JspC class with the proper arguments. I have given the detailed exception at the end of this mail, // In org.apache.jasper.JspC class code private void initServletContext() { try { context = new JspCServletContext

ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5)

2004-11-28 Thread Kevin A. Burton
Whats up with this? java.lang.ClassCastException org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5)

2004-11-28 Thread Kevin A. Burton
Kevin A. Burton wrote: Whats up with this? java.lang.ClassCastException org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) If I reduce my webapp down to just this: %@

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5)

2004-11-28 Thread Tim Funk
Are you running with the security manager turned on? If so - do you get the same error with it turned off? (BTW 5.5 has not been voted stable yet) -Tim Kevin A. Burton wrote: Kevin A. Burton wrote: Whats up with this? java.lang.ClassCastException

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5) (oops)

2004-11-28 Thread Tim Funk
(I was wrong) It was voted stable ... http://marc.theaimsgroup.com/?l=tomcat-devm=110011482407630w=2 -Tim Tim Funk wrote: Are you running with the security manager turned on? If so - do you get the same error with it turned off? (BTW 5.5 has not been voted stable yet)

JAASRealm / ClassCastException

2004-09-20 Thread Rene Paulokat
hello, since a couple days i try to increase my understanding of JAASRealm. but this ongoing classcastexceptions do give me a hard time... tomcat 5.0.28 my goal is to authenticate users via servlet (FORM). so i tried this; [LoginServlet]: MyCallbackHandler handler = new

Re: ClassCastException with own Principal interface and implementation

2004-04-22 Thread Jon Wingfield
This is probably a classloader issue. The Realm will load classes from the server classloader. Your webapp will also load the same classes in its own classloader. The two types of CrmPrincipal are not assignable so a ClassCastException results. Try placing the CrmPrincipal class in common/lib

ClassCastException with own Principal interface and implementation

2004-04-21 Thread ralf lorenz
by the server via the 'GenericPrincipal'. when i try the following i get an ClassCastException CrmPrincipal principal = (CrmPrincipal) request.getUserPrincipal(); printing out the name of the class the request gives the 'CrmPrincipalImpl' will be stated. so the realm works fine but the cast

Re: TC5 Nightly : ClassCastException using Cluster manager

2004-03-24 Thread Remy Maucherat
Aadi Deshpande wrote: As an additional side effect, since this is happening on session expiry the session count keeps getting higher and higher... right now I have 8942 sessions on a single instance! :-) This problem occurs with which Tomcat releases ? -- x Rémy

TC5 Nightly : ClassCastException using Cluster manager

2004-03-23 Thread Aadi Deshpande
( let me know if comments regarding nightly builds should be in the tomcat-dev mailing list instead ). Hi, I have a nightly build of Tomcat 5 ( mainly because i need some fixes in HEAD to resolve cross context issues ) , and I've set up the Cluster Manager ( in the updated format ) as

Re: TC5 Nightly : ClassCastException using Cluster manager

2004-03-23 Thread Aadi Deshpande
As an additional side effect, since this is happening on session expiry the session count keeps getting higher and higher... right now I have 8942 sessions on a single instance! :-) -a Aadi Deshpande wrote: ( let me know if comments regarding nightly builds should be in the tomcat-dev

ClassCastException

2004-01-26 Thread Pinguti Sridevi
Dear Java Friends, The following snippet code is for storing the ArrayList values into Object array and it has to display using another loop. My requirement is I want to store only in Object[] array but not in any other data type. Its compiling but giving run time error in the following line.

RE: ClassCastException

2004-01-26 Thread Shapira, Yoav
Howdy, lo_oName = (Object[ ]) lo_arrListName.get(i); //giving error here in runtime. That's because each element of your array list is a String (or an Integer, but that part is commented out), not an array. You can use Object (plain, not array), or cast to the actual type. Try adding a

Re: ClassCastException

2004-01-26 Thread Stephen Roach
Pinguti Sridevi wrote: Dear Java Friends, The following snippet code is for storing the ArrayList values into Object array and it has to display using another loop. My requirement is I want to store only in Object[] array but not in any other data type. Its compiling but giving run time error in

Re: JNDI, DataSource, and ClassCastException

2003-12-11 Thread Jon Wingfield
It looks like a ClassLoader issue. Casting the same class loaded by two different CLs causes a ClassCastException. Have you got the jar containing org.enhydra.jdbc.pool.StandardXAPoolDataSource in more than one place? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html HTH

ClassCastException

2003-12-04 Thread Drinkwater, GJ (Glen)
Hi I am using axis web services with the java cog kit, each web service is a application under tomcat. But when two applications wish to use the cog kit, ie the web service is invoked, the first web service works fine and the the second throws this stackTrace: java.lang.ClassCastException

JNDI, DataSource, and ClassCastException

2003-12-04 Thread Marc Dugger
I have a situation where I am attempting to downcast a DataSource resource into the exact class that getClass().getName() reports the object is, but it's causing a ClassCastException. -- server.xml: GlobalNamingResources Resource name=LoanAuditorDB auth=Container type

RE: ClassCastException trying to access UserDatabase from example s web app

2003-11-27 Thread Danielle Mortimer
I got around my problem using reflection: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); java.lang.Object object = envCtx.lookup(userDatabase); // This throws ClassCastException System.out.println(Database id

ClassCastException trying to access UserDatabase from examples we b app

2003-11-25 Thread Danielle Mortimer
I am getting a ClassCastException when I try to access the global UserDatabase from a web app. I believe it is something to do with different class loaders but I'm not sure how to solve it. I noticed an old post on this same topic http://www.mail-archive.com/[EMAIL PROTECTED]/msg88967.html

ClassCastException whilst extending Log4J Logger

2003-11-20 Thread Scerri, Antony (ELSLON)
this to my ThreadLogger, it gives me a ClassCastException. I believe this is due to the fact that when a web app is restarted a new WebAppClassLoader (of what ever type dependant upon the app server) is created. So the Logger object returned after my webapp is restart was created by the first instance

Tomcat appears to cause erroneous ClassCastException (see message for circumstances)

2003-09-23 Thread Christopher Williams
I am using Tomcat 5 (I think) as a servlet and web service container via JWSDP 1.2. My OS is Windows XP Professional SP 2. I have written a centralized authentication service which uses a pluggable authentication module architecture. Each authentication module derives from an abstract base

RE: Tomcat appears to cause erroneous ClassCastException (see message for circumstances)

2003-09-23 Thread Shapira, Yoav
ClassCastException (see message for circumstances) I am using Tomcat 5 (I think) as a servlet and web service container via JWSDP 1.2. My OS is Windows XP Professional SP 2. I have written a centralized authentication service which uses a pluggable authentication module architecture. Each

Follow on from ClassCastException question

2003-09-23 Thread Christopher Williams
I've implemented the logon architecture using an interface which all authenticator modules implement, so that the attempted cast now reads: m_authenticator = (ILogon) o; That still causes a ClassCastException. Bummer! Chris Williams

Re: Tomcat appears to cause erroneous ClassCastException (see message for circumstances)

2003-09-23 Thread Mike Johnson
You're partially correct thinking this is Tomcat, I believe. The cast exception can be caused when a class created by a different classloader is cast in the current one. In short, try specifying the webapp's classloader when you call Class.forName(). I believe the forName function defaults to the

Using ParameterMap throws ClassCastException

2003-09-16 Thread Morten Andersen
){ e.printStackTrace(); } This gives the following output: ParameterMap is a org.apache.catalina.util.ParameterMap And a ClassCastException in this line: ParameterMap map = (ParameterMap)request.getParameterMap(); So it seems that they reference to two different

RE: Using ParameterMap throws ClassCastException

2003-09-16 Thread Shapira, Yoav
] Sent: Tuesday, September 16, 2003 10:14 AM To: [EMAIL PROTECTED] Subject: Using ParameterMap throws ClassCastException I am using the ParameterMap in request in an authentication mechanism. Therefore I need to do the following: add a mapping of parameters to the request.getParameter(). I do

RE: Using jndi to get a DBCP BasicDataSource give ClassCastException

2003-09-05 Thread Angus Mezick
I did an I got BasicDataSource. --Angus -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 4:19 AM To: Tomcat Users List Subject: Re: Using jndi to get a DBCP BasicDataSource give ClassCastException Hi Angus, looked at your first

RE:CLASSLOADER(?) Using jndi to get a DBCP BasicDataSource give ClassCastException

2003-09-05 Thread Angus Mezick
BasicDataSource give ClassCastException I did an I got BasicDataSource. --Angus -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 4:19 AM To: Tomcat Users List Subject: Re: Using jndi to get a DBCP BasicDataSource give

Re: Using jndi to get a DBCP BasicDataSource give ClassCastException

2003-09-05 Thread Adam Hardy
And that was with the GlobalResourceLinK That doesn't make sense! If you get BasicDataSource as the class's name, then you won't get a ClassCastException if you try to cast it to that, but you did, so er. wow, you've got me stumped. On 09/05/2003 02:31 PM Angus Mezick wrote: I did

RE: Using jndi to get a DBCP BasicDataSource give ClassCastException

2003-09-04 Thread Angus Mezick
Anyone have a clue as to whether or not this is a Real bug, or am I just screwing something up? -Original Message- From: Angus Mezick Sent: Wednesday, September 03, 2003 4:32 PM To: [EMAIL PROTECTED] Subject: Using jndi to get a DBCP BasicDataSource give ClassCastException I

Using jndi to get a DBCP BasicDataSource give ClassCastException

2003-09-03 Thread Angus Mezick
I am having problems with the GlobalNamingResources. If I put my two DB resource entries into the GlobalNamingResources section and just use Resource-Links to access them I cannot cast from DataSource to BasicDataSource.. I need to do this to use this line in my monitoring app: (I can still use

JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Joe Krause
. When I do this in a test class using standard JDBC, it works perfectly. But when I try to do this from a connection object that is retrived from tomcat's connection pool, I get a ClassCastException. Does the datasource mechanism alter the connection somehow so that it would no longer give me

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
Krause [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 2:49 PM To: '[EMAIL PROTECTED]' Subject: JDBC + MySQL Datasource + Tomcat = ClassCastException Hi Folks, I am trying to recast the JDBC Statement object that is given to me from a Connection object that I get out of Tomcat's

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Joe Krause
= ClassCastException I'd drop the non-compliant way of getting this value, and use what's provided by JDBC 3.0 (available with JDK 1.4.x and ConnectorJ 3.x) statement.getGeneratedKeys() No casting required. http://www.mysql.com/articles/autoincrement-with-connectorj.html -Original Message

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
PROTECTED] Sent: Tuesday, July 22, 2003 4:10 PM To: 'Tomcat Users List' Subject: RE: JDBC + MySQL Datasource + Tomcat = ClassCastException Ok - implemented the getGeneratedKeys() method and everything works great. Thank you very much Mike! On another topic, is there any quick way

ClassCastException

2003-06-16 Thread Anna
i solved problem with NoClassDefFoundError but i have other problem This program will use SimpleClassLoader. Load class : TestClass Not a system class. Load class : test.LocalModule Not a system class. Load class : java.lang.Object returning

RE: ClassCastException

2003-06-16 Thread Cox, Charlie
To: Tomcat Users List Subject: ClassCastException i solved problem with NoClassDefFoundError but i have other problem This program will use SimpleClassLoader. Load class : TestClass Not a system class. Load class : test.LocalModule Not a system

RE: ClassCastException

2003-06-16 Thread Anna
i need to do some kind of dynamic plugin managment ... i retrieve files from directory .. and extract names ... after that i use these names to load classes dynamicaly ... i catched article what did you post ... but i have some problems with this ... could you plz explain me how i can set my

Re: ClassCastException

2003-06-16 Thread Tim Shaw
I've done a lot of dynamic class loading ... and have never needed to use a custom class loader ('cept one time when I stored them in a DB ... don't go there!). I would re-evaluate why you need a class loader rather than Class.forName( someClassName ).newInstance(). My gut feeling is, if you

RE: ClassCastException

2003-06-16 Thread Cox, Charlie
-Original Message- From: Anna [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 11:25 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: ClassCastException i need to do some kind of dynamic plugin managment ... i retrieve files from directory .. and extract names ... after

Re: ClassCastException

2003-06-16 Thread Anna
thx for your answer ... i want to load classes from directory which isn't in classpath of tomcat I've done a lot of dynamic class loading ... and have never needed to use a custom class loader ('cept one time when I stored them in a DB ... don't go there!). I would re-evaluate why you need

Re: ClassCastException

2003-06-16 Thread Jason Bainbridge
On Tue, 17 Jun 2003 01:08, Anna wrote: thx for your answer ... i want to load classes from directory which isn't in classpath of tomcat Is there any particular reason why you can't put your classes in WEB-INF/classes? As I understand it all you are doing is a portal style app with RSS feeds

Re: ClassCastException

2003-06-16 Thread Anna
No ... the project from sourceforge i used only as sample ... i'm working on more complicated project Some kind of application framework which will use plugin managment to access some services i receive by tcp connector source (can by UNC path or url or Database) from which need to load

Re: ClassCastException

2003-06-16 Thread Tim Shaw
From memory, Your ClassLoader has a constructor MyClassLoader() : 'inside' the constructor you call 'super( this.getClass().getClassLoader() )' - NB you can't actually do this as it involves doing stuff before the call to the super constructor, but the semantics are the same. Now you override

classcastexception in bootstrap.jar though the jars are loaded

2003-04-01 Thread David Wahlund
Hi, I'm unable to start Tomcat due to ClassNotFoundException. The classpath to bootstrap.jar and tools.jar is correct and defined. And the home directory too. All the jars are loaded, but still I get a classcastexception. Under what cirumstances could this occur? It there anything[system variables

ClassCastException

2003-03-27 Thread Yakov Belov
Dear All, I had an application, it was running fine. I decided to put it on a different computer. Both computers run Tomcat 4.0.1Now I recieve the following error message: root cause java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at

Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Prasad Parigi
Hi, I am new to this mailing list and I get the following error while using Tomcat. I tried out all options to resolve this. Any help is appreciated. If this is not a proper way of communication, please let me know. I get an error ClassCastException when I try to use this line of code

RE: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Shapira, Yoav
PM To: 'Tomcat Users List' Subject: Tomcat4.1.18 and ClassCastException. Hi, I am new to this mailing list and I get the following error while using Tomcat. I tried out all options to resolve this. Any help is appreciated. If this is not a proper way of communication, please let me know

RE: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Andy Eastham
Parigi [mailto:[EMAIL PROTECTED]] Sent: 11 February 2003 17:10 To: 'Tomcat Users List' Subject: Tomcat4.1.18 and ClassCastException. Hi, I am new to this mailing list and I get the following error while using Tomcat. I tried out all options to resolve this. Any help is appreciated

RE: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Prasad Parigi
Eastham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:39 PM To: Tomcat Users List Subject: RE: Tomcat4.1.18 and ClassCastException. Prasad, Is there more information under the exception information you have supplied labelled Root Cause: ? If so, this is the information we need

RE: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Shapira, Yoav
Howdy, What's in the tomcat logs? Yoav Shapira Millennium ChemInformatics -Original Message- From: Prasad Parigi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:43 PM To: 'Tomcat Users List' Subject: RE: Tomcat4.1.18 and ClassCastException. This is the information under

RE: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Prasad Parigi
Same as the one below. Thanks, Prasad. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:45 PM To: Tomcat Users List Subject: RE: Tomcat4.1.18 and ClassCastException. Howdy, What's in the tomcat logs? Yoav Shapira Millennium

ClassCastException when pulling an object from ServletContext.

2003-01-06 Thread Nathan Smith
and another server running the same both with tomcat 3.3.1. A ClassCastException occurs when trying to get any object from the ServerContext and cast it to it's actual type. One of the objects is a Connection Pool instance that allows us to get a connection object from the pool that it maintains

OK Re: ClassCastException Conn=dataSource.getConnection();

2002-12-23 Thread shawn
I see now. Thanks. My confusion was this in server.xml !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- so I had Context path= docBase=root debug=5 reloadable=true crossContext=true... instead of Context path=/root docBase=root

Re: ClassCastException Conn=dataSource.getConnection();

2002-12-23 Thread Andy Meadows
/myConnection ); This of course is a guess. Without your config file, it's hard to tell. Andy - Original Message - From: shawn [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 22, 2002 9:04 PM Subject: ClassCastException Conn=dataSource.getConnection

ClassCastException Conn=dataSource.getConnection();

2002-12-22 Thread shawn
I am getting a java.lang.ClassCastException from Connection conn = datasource.getConnection(); in the folowing: try { Context ctx = new InitialContext(); if(ctx == null ) {throw new Exception(Boom - No Context);}

Re: ClassCastException Conn=dataSource.getConnection();

2002-12-22 Thread Andy Meadows
, December 22, 2002 9:04 PM Subject: ClassCastException Conn=dataSource.getConnection(); I am getting a java.lang.ClassCastException from Connection conn = datasource.getConnection(); in the folowing: try { Context ctx = new InitialContext(); if(ctx == null

Re: ClassCastException when using BasicDataSource

2002-12-20 Thread Veniamin Fichin
Tuncay Baskan wrote: I'm trying to use a JNDI name for a JDBC resource. Configuration is as follows: Tomcat 4.0.3 DBCP 1.0 In the server.xml, I have the following DefaultContext entry. (It must be DefaultContext because there are 3 other webapps that use the same database) --= cut =--

ClassCastException when using BasicDataSource

2002-12-15 Thread Tuncay Baskan (nternet Grubu)
that implements javax.sql.DataSource). I re-evaluated the code, so jndi.lookup() returns an object that has the name org.apache.commons.dbcp.BasicDataSource which implements the javax.sql.DataSource interface. But... I don't know how, I'm getting a ClassCastException when I cast it to DataSource

RE: ClassCastException when using BasicDataSource

2002-12-15 Thread Tuncay Baskan (nternet Grubu)
-Original Message- From: Tuncay Baskan (nternet Grubu) [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 2:18 PM To: Tomcat Users List (E-mail) Subject: ClassCastException when using BasicDataSource I'm trying to use a JNDI name for a JDBC resource. Configuration

Re: ClassCastException when using BasicDataSource

2002-12-15 Thread Jacob Kjome
, I'm getting a ClassCastException when I cast it to DataSource to get a connection! (btw, returned object is not an instanceof javax.sql.DataSource, but getClass().getInterfaces() has javax.sql.DataSource) initContext = new InitialContext(); envContext = (Context)initContext.lookup(java

ClassCastException when using BasicDataSource

2002-12-14 Thread Tuncay Baskan (nternet Grubu)
that implements javax.sql.DataSource). I re-evaluated the code, so jndi.lookup() returns an object that has the name org.apache.commons.dbcp.BasicDataSource which implements the javax.sql.DataSource interface. But... I don't know how, I'm getting a ClassCastException when I cast it to DataSource

ClassCastException loading DataSource

2002-12-06 Thread Thomas Achleitner
Hi! I'm running into a ClassCastException loading jndi DataSources. I configured the resource in tomcats server.xml using the following entry (i do not mention web.xml because its working with oracle application server): Resource name=jdbc/OracleDS auth=Container type=javax.sql.DataSource

ClassCastException when using Tomcat as RMI client

2002-11-22 Thread Vishal Zinjuvadia
Hi, I am trying to use a Tomcat webapp as a RMI client. For the test purposes, my RMI server resides on the same machine. When I use a Tomcat webapp as a client, I consistently get a ClassCastException, while if I use a plain java class for the client, it works flawlessly. Following is my client

ClassCastException after reloading Context

2002-09-09 Thread Laurent Féral-Pierssens
Hi, We are experiencing a problem with Tomcat 4.0.4. We have a series of webapp that are working perfectely but this particular one will produce a ClassCastException after reloading its context with the Manager. Actually the Context is reloaded correctely but when we try to access a jsp page

Tomcat Manager App with Struts 1.1b2 - ClassCastException?

2002-08-20 Thread @Basebeans.com
Subject: Tomcat Manager App with Struts 1.1b2 - ClassCastException? From: Andrej Sobkowski [EMAIL PROTECTED] === All, I'm using Struts 1.1b1 with Tomcat 4.0.4, using the manager app to dynamically stop/start my webapp. Everything works very well but I now need a few fixes from Struts 1.1b2

ClassCastException Error

2002-08-16 Thread Vishal Mukherjee
Hi all, Having deployed Tomcat 4.0.4 in IIS 4.0 When I try to run a java bean program I get following error. * testbean.jsp ** html %@ page language=Java import=java.sql.* session=true % %@ page import=java.util.* % jsp:useBean id=pool scope=application

ClassCastException Error

2002-08-16 Thread Vishal Mukherjee
Hi all, Having deployed Tomcat 4.0.4 in IIS 4.0 When I try to run a java bean program I get following error. * testbean.jsp ** html %@ page language=Java import=java.sql.* session=true % %@ page import=java.util.* % jsp:useBean id=pool scope=application

ClassCastException when retrieving PostGres JDBC Connection from Tomcat 4.0.4 pool

2002-07-12 Thread Phil Steitz
I am running Tomcat 4.0.4 using the JNDI DataSource support to access a PostGres database. The following throws java.lang.ClassCastException: tyrex.jdbc.xa.EnabledDataSource Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds =

Cant launch Tomcat4.1 : ClassCastException: sun.net.www.protocol.http.HttpURLConnection

2002-06-05 Thread Mike Niemaz
Hi all, I'm trying to upgrade from Tomcat3.3 to Tomcat 4.1. When launching catalina, I get the following error: java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection at com.ibm.webdav.protocol.http.ResourceHTTPStub.setupRequest(ResourceHTTPStub.java:833)

ClassCastException OraclePreparedStatement

2002-06-05 Thread António Casqueiro
Connection Pool configuration Context path=/NASApp docBase=NASApp reloadable=true Resource name=jdbc/pool auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pool parameter nameuser/name valueDES/value /parameter

RE: ClassCastException after ant build in getting object from ServletContext

2002-04-08 Thread Chirossel, Oliver
PROTECTED] Objet:ClassCastException after ant build in getting object from ServletContext Been working on a connection pool to make is to we do not need to bounce tomcat all the time. Initially we had it setup so tomcat would start and stop the connection pool when the server started. I

ClassCastException after ant build in getting object from ServletContext

2002-04-02 Thread braswell
Been working on a connection pool to make is to we do not need to bounce tomcat all the time. Initially we had it setup so tomcat would start and stop the connection pool when the server started. I have created an admin servlet that starts and stops the connection pool the same way starting and

ClassCastException for JNI class loaded from common/lib

2002-03-26 Thread James Sheridan
, so I put it in common/lib. When the first webapp attempts to instantiate the class, the native library is loaded apparently successfully, but the following code throws a ClassCastException myImpl = (myClass)Class.forName(name of class with JNI).newInstance(); However the confusing thing

ClassCastException on javax.crypto.Cipher and Tomcat4.0.3

2002-03-20 Thread Ver Allan Sumabat
Hi, I have coded my security module using bouncycastle provider and clean-room jce implementation (jce-jdk13-111.jar). On standalone, the decrypt module seems to be working. When the code is integrated in the servlet and deployed on Tomcat-4.0.3, a ClassCastException is thrown

EJB Realm - ClassCastException getting the EJBHome ref

2002-01-30 Thread Nicolas PERIDONT
Hi, I write my own Realm that connect to an EJB session bean to get the Principal. I have a probleme in my Realm class when i try to get a reference to the EJBHome class of my sessionBean class. I get a ClassCastException on the following line : LoginManagerHome homeLoginManager

ClassCastException in tomcat4

2002-01-24 Thread Rene Dietze
Hello.. I have a problem with tomcat 4. My servlet application run's fine under jserv and tomcat 3.3 under tomcat4 receive a java.lang.ClassCastException deep in my startup process.. load classes with the classLoader.. try { System.out.println(loadClass:+clazz); Object o =

  1   2   >