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
-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
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
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
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
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
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
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
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
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
: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
: 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
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
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
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
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
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
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
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
.
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
(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
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
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
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
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)
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:
%@
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
(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)
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
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
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
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
( 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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
){
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
]
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
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
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
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
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
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
. 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
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
= 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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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);}
, 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
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 =--
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
-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
, 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
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
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
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
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
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
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
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
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 =
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)
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
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
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
, 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
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
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
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 - 100 of 165 matches
Mail list logo