You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by abpb2006 <ab...@yahoo.com> on 2008/01/11 19:50:54 UTC

getting ClassCastException while deploying a simple web application in geronimo 2.0

Hi,

getting ClassCastException - when i try to deploy plain simple web app in
geronimo 2.0.0. in linux enviroment. 

I'm using the supported jre/jdk.

I'm also setting WASCE_JAVA_HOME and GERONIMO_HOME but still getting the
classcastexception.

any pointers? thx.

ABPB
-- 
View this message in context: http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14762834.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by abpb2006 <ab...@yahoo.com>.
I'm using WASCE 2.0.0.1 this is using geromino 2.0.0.1 underneath.


djencks wrote:
> 
> It's only fixed in trunk (2.1-SNAPSHOT).  What geronimo version are  
> you using?
> 
> thanks
> david jencks
> 
> On Jan 14, 2008, at 12:20 PM, Jacek Laskowski wrote:
> 
>> On Jan 14, 2008 5:54 PM, abpb2006 <ab...@yahoo.com> wrote:
>>
>>> I tried setting eveything, tried downloading geronimo again but no  
>>> luck. I'm
>>> sure its unique to me....otherwise many users would have put this  
>>> issue.
>>> Looks like something wrong in my enviroment or settings, plk  
>>> suggest  what
>>> might be possible soultion to this. thanks.
>>
>> I have not reproduced this issue so I can't claim it's fixed or not.
>> According to the issue report in jira it seems it is. Could you send
>> the app you work with that causes the issue to surface?
>>
>> Jacek
>>
>> -- 
>> Jacek Laskowski
>> http://www.JacekLaskowski.pl
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14815684.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by David Jencks <da...@yahoo.com>.
It's only fixed in trunk (2.1-SNAPSHOT).  What geronimo version are  
you using?

thanks
david jencks

On Jan 14, 2008, at 12:20 PM, Jacek Laskowski wrote:

> On Jan 14, 2008 5:54 PM, abpb2006 <ab...@yahoo.com> wrote:
>
>> I tried setting eveything, tried downloading geronimo again but no  
>> luck. I'm
>> sure its unique to me....otherwise many users would have put this  
>> issue.
>> Looks like something wrong in my enviroment or settings, plk  
>> suggest  what
>> might be possible soultion to this. thanks.
>
> I have not reproduced this issue so I can't claim it's fixed or not.
> According to the issue report in jira it seems it is. Could you send
> the app you work with that causes the issue to surface?
>
> Jacek
>
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl


Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Jan 14, 2008 5:54 PM, abpb2006 <ab...@yahoo.com> wrote:

> I tried setting eveything, tried downloading geronimo again but no luck. I'm
> sure its unique to me....otherwise many users would have put this issue.
> Looks like something wrong in my enviroment or settings, plk suggest  what
> might be possible soultion to this. thanks.

I have not reproduced this issue so I can't claim it's fixed or not.
According to the issue report in jira it seems it is. Could you send
the app you work with that causes the issue to surface?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by abpb2006 <ab...@yahoo.com>.
Not sure if i reported this earlier but yes i did get this issue sometimes
back and i put in on this forum. Then i read it was a bug and soreted out.

Now you are mentioning too. Can you pl suggest if it sorted out...thn how
get it working in my case.

I tried setting eveything, tried downloading geronimo again but no luck. I'm
sure its unique to me....otherwise many users would have put this issue.
Looks like something wrong in my enviroment or settings, plk suggest  what
might be possible soultion to this. thanks.






Jacek Laskowski wrote:
> 
> On Jan 14, 2008 9:45 AM, abpb2006 <ab...@yahoo.com> wrote:
> 
>> 998 Error [Deployer] Deployment failed due to
>> java.lang.ClassCastException: java.io.File
>> org.apache.geronimo.common.DeploymentException:
>> java.lang.ClassCastException: java.io.File
>>         at
>> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:385)
>>         at
>> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
> 
> When I first saw it I knew I had seen it before and here it is - Need
> to fully convert to generics to avoid CCE -- a dumb example [1]. It's
> fixed in Geronimo 2.1. Can you confirm it is really the issue you've
> reported?
> 
> Jacek
> 
> [1] http://issues.apache.org/jira/browse/GERONIMO-3710
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 

-- 
View this message in context: http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14805915.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Jan 14, 2008 9:45 AM, abpb2006 <ab...@yahoo.com> wrote:

> 998 Error [Deployer] Deployment failed due to
> java.lang.ClassCastException: java.io.File
> org.apache.geronimo.common.DeploymentException:
> java.lang.ClassCastException: java.io.File
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:385)
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)

When I first saw it I knew I had seen it before and here it is - Need
to fully convert to generics to avoid CCE -- a dumb example [1]. It's
fixed in Geronimo 2.1. Can you confirm it is really the issue you've
reported?

Jacek

[1] http://issues.apache.org/jira/browse/GERONIMO-3710

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by abpb2006 <ab...@yahoo.com>.
thanks Jarek...here is the stack track -

998 Error [Deployer] Deployment failed due to
java.lang.ClassCastException: java.io.File
org.apache.geronimo.common.DeploymentException:
java.lang.ClassCastException: java.io.File
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:385)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
	at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
	at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
	at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: java.io.File
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.cleanupConfigurationDir(EARConfigBuilder.java:694)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.cleanupContext(EARConfigBuilder.java:681)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:640)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at
org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$ff0e7b85.buildConfiguration(<generated>)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
	... 10 more
=============================




Jarek Gawor-2 wrote:
> 
> Please send us the full stack trace of the exception you get.
> 
> Jarek
> 
> On Jan 11, 2008 1:50 PM, abpb2006 <ab...@yahoo.com> wrote:
>>
>> Hi,
>>
>> getting ClassCastException - when i try to deploy plain simple web app in
>> geronimo 2.0.0. in linux enviroment.
>>
>> I'm using the supported jre/jdk.
>>
>> I'm also setting WASCE_JAVA_HOME and GERONIMO_HOME but still getting the
>> classcastexception.
>>
>> any pointers? thx.
>>
>> ABPB
>> --
>> View this message in context:
>> http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14762834.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14797232.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: getting ClassCastException while deploying a simple web application in geronimo 2.0

Posted by Jarek Gawor <jg...@gmail.com>.
Please send us the full stack trace of the exception you get.

Jarek

On Jan 11, 2008 1:50 PM, abpb2006 <ab...@yahoo.com> wrote:
>
> Hi,
>
> getting ClassCastException - when i try to deploy plain simple web app in
> geronimo 2.0.0. in linux enviroment.
>
> I'm using the supported jre/jdk.
>
> I'm also setting WASCE_JAVA_HOME and GERONIMO_HOME but still getting the
> classcastexception.
>
> any pointers? thx.
>
> ABPB
> --
> View this message in context: http://www.nabble.com/getting-ClassCastException-while-deploying-a-simple-web-application-in-geronimo-2.0-tp14762834s134p14762834.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>