Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Class Cast Exception and Java classes deployment

2 posts in Java J2EE specific Last posting was on 2008-12-24 02:45:29.0Z
Venkat Sadasivam Posted on 2008-12-24 01:56:11.0Z
Sender: 7449.495195a7.1804289383@sybase.com
From: Venkat Sadasivam
Newsgroups: sybase.public.easerver.j2ee
Subject: Class Cast Exception and Java classes deployment
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <495196bb.7459.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 23 Dec 2008 17:56:11 -0800
X-Trace: forums-1-dub 1230083771 10.22.241.41 (23 Dec 2008 17:56:11 -0800)
X-Original-Trace: 23 Dec 2008 17:56:11 -0800, 10.22.241.41
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7899
Article PK: 208325

Hi,

I copied my project .class files into web application's
WEB-INF/classes folder as well as in $EAServer/html/classes
folder.

During my EJB invocation, I am getting Class Cast Exception.
It is obvious that it is because of keeping .class files
into two places.

I want to keep my all .class into a single place and refer
them in all web applications (I have two web application).

Any suggestion?

Regards,
Venkat


Evan Ireland [Sybase] Posted on 2008-12-24 02:45:29.0Z
From: "Evan Ireland [Sybase]" <eireland@sybase.com>
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: Class Cast Exception and Java classes deployment
References: <495196bb.7459.1681692777@sybase.com>
In-Reply-To: <495196bb.7459.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4951a249$1@forums-1-dub>
Date: 23 Dec 2008 18:45:29 -0800
X-Trace: forums-1-dub 1230086729 10.22.241.152 (23 Dec 2008 18:45:29 -0800)
X-Original-Trace: 23 Dec 2008 18:45:29 -0800, vip152.sybase.com
Lines: 24
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7900
Article PK: 208324

Take them out of WEB-INF/classes.

Put them in java/classes/... rather than html/classes/...

That should help.

Venkat Sadasivam wrote:
> Hi,
>
> I copied my project .class files into web application's
> WEB-INF/classes folder as well as in $EAServer/html/classes
> folder.
>
> During my EJB invocation, I am getting Class Cast Exception.
> It is obvious that it is because of keeping .class files
> into two places.
>
> I want to keep my all .class into a single place and refer
> them in all web applications (I have two web application).
>
> Any suggestion?
>
> Regards,
> Venkat