dev@glassfish.java.net

Re: [v3] runtime errors during deployment - Class cast exception

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Tue, 19 Feb 2008 18:05:25 -0800

I've updated the workspace and mvn clean install gives me the following
error when I try to deploy.

FAILURE : Deployer com.sun.enterprise.security.SecurityDeployer_at_13e15f7
requires
 class com.sun.enterprise.deployment.Application but no other deployer
provides it

Thanks,
Amy

Tim Quinn wrote:
> When I run with mvn gf:run I get the error shown below when I try to
> deploy a simple web app. But when I expand the full glassfish
> distribution and run the server from there it works fine.
>
> I tried deleting the entire target subdirectory and rebuilding but I
> got the same results.
>
> Hong and I were talking and she is seeing the same error either way.
>
> - Tim
>
> Feb 19, 2008 1:29:05 PM com.sun.enterprise.v3.deployment.DeployCommand
> execute
> SEVERE: Error during deployment :
> java.lang.ClassCastException
> at java.lang.Class.cast(Class.java:2990)
> at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:278)
> at
> com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:86)
>
> at
> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:64)
> at
> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:64)
> at
> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:50)
> at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:39)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:22)
>
> at
> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:71)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:19)
>
> at
> com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:129)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.startContainer(ApplicationLifecycle.java:455)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:259)
>
> at
> com.sun.enterprise.v3.deployment.DeployCommand$1.run(DeployCommand.java:293)
>
> at
> com.sun.enterprise.v3.deployment.DeployCommand$1.run(DeployCommand.java:269)
>
> at org.jvnet.hk2.config.ConfigSupport$1.run(ConfigSupport.java:99)
> at
> org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:163)
> at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:96)
> at
> com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:268)
>
> at
> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:171)
>
> at
> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:79)
>
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:161)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:108)
> at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:599)
>
> at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:530)
>
> at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:774)
>
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
>
> at
> com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:106)
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:102)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:78)
>
> at
> com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:639)
> at
> com.sun.grizzly.ProtocolChainContextTask.call(ProtocolChainContextTask.java:61)
>
> at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>