users@glassfish.java.net

Re: exception on deployment with --verify option

From: <thomas_at_randspringer.de>
Date: Thu, 17 Feb 2011 08:32:45 +0100 (CET)

Hi,


thank you for your response and your idea to check a regular web application.
 
I tried to deploy the solr.war (http://lucene.apache.org/solr/ ) with the verify option and it failed too.
(It works without the verify-option)
 
I looked in the file "...logs/verifier-results/solr-cobra-we.txt"
 
and I found:
 
>snip
 Error Name : Problem in running tests for :solr-cobra-we
        Error Description : java.io.FileNotFoundException: file:/opt/cobra-system/glassfish/glassfish-3.0.1/glassfishv3/glassfish/domains/domain1/applications/solr-cobra-we/WEB-INF/web.xml (Datei oder Verzeichnis nicht gefunden)
>snip
 
The strange thing is, that the war contains a web.xml and I found it exactly in the complained directory:
 
>snip
ls -l /opt/cobra-system/glassfish/glassfish-3.0.1/glassfishv3/glassfish/domains/domain1/applications/solr-cobra-we/WEB-INF/web.xml
-rw-r--r-- 1 cobra cobra 5405 17. Feb 08:22 /opt/cobra-system/glassfish/glassfish-3.0.1/glassfishv3/glassfish/domains/domain1/applications/solr-cobra-we/WEB-INF/web.xml
>snip
 
The error message is obviously misleading. Any idea?
 
Thomas
 
 
 
 

Hong Zhang <hong.hz.zhang_at_oracle.com> hat am 16. Februar 2011 um 18:07 geschrieben:

> I am not sure if --verify option is supported for Rails application
> (Sahoo should know the answer).  If  you use --verify for a regular web
> application, do you see similar issues?
>
> thomas_at_randspringer.de wrote:
> >
> > Hi,
> >
> > 
> >
> > we deploy a Rails application as WAR in GF 3.0.1.
> >
> > 
> >
> > The application works fine but when I add the --verify option to the
> > deploy command I get:
> >
> > 
> >
> > [#|2011-02-15T10:42:53.920+0100|SEVERE|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.web.server|_ThreadID=41;_ThreadName=Thread-1;|WEB5000:
> > Exception during invocation of InjectionManager.destroyManagedObject
> > on org.jruby.rack.rails.RailsServletContextListener_at_42882b9d of web
> > module
> > StandardEngine[com.sun.appserv].StandardHost[cobra-we].StandardContext[/dev]
> > com.sun.enterprise.container.common.spi.util.InjectionException: No
> > descriptor registered for  current invocation :
> > com.sun.enterprise.web.WebComponentInvocation_at_46ffc795
> >         at
> > com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeInstancePreDestroy(InjectionManagerImpl.java:239)
> >         at
> > com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:354)
> >         at
> > com.sun.web.server.WebContainerListener.preDestroy(WebContainerListener.java:175)
> >         at
> > com.sun.web.server.WebContainerListener.containerEvent(WebContainerListener.java:139)
> >         at
> > org.apache.catalina.core.ContainerBase.fireContainerEvent(ContainerBase.java:1509)
> >         at
> > org.apache.catalina.core.StandardContext.contextListenerStop(StandardContext.java:4754)
> >         at
> > org.apache.catalina.core.StandardContext.stop(StandardContext.java:5469)
> >         at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
> >         at
> > org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1057)
> >         at
> > com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2158)
> >         at
> > com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2106)
> >         at
> > com.sun.enterprise.web.WebApplication.stop(WebApplication.java:133)
> >         at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:165)
> >         at
> > org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:268)
> >         at
> > org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:251)
> >         at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:759)
> >         at
> > com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:790)
> >         at
> > org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:184)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1121)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
> >         at
> > org.glassfish.deployment.admin.DeployCommand.handleRedeploy(DeployCommand.java:414)
> >         at
> > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:210)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
> >         at
> > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
> >         at
> > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
> >         at
> > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
> >         at
> > com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
> >         at
> > com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
> >         at
> > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
> >         at
> > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
> >         at
> > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
> >         at
> > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
> >         at
> > com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
> >         at
> > com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> >         at
> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> >         at
> > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> >         at
> > com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> >         at
> > com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> >         at
> > com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> >         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> >         at
> > com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
> >         at
> > com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
> >         at java.lang.Thread.run(Thread.java:619)
> >
> > and the WAR is not deployed.
> >
> > What is going wrong here?
> >
> > 
> >
> > Thomas
> >
>