users@glassfish.java.net

Re: InvocationTargetException on GF V3b35

From: Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 11 Feb 2009 22:21:26 +0530

Antonio,

I don't know how you can go back to previous versions of artifacts in
UC. In the meanwhile, can you just download the full distribution of
v3_b34 from [1] and use it? That will install the ejb container for you
as well. Also file a bug for not able to use admin console in v3_b35.

Thanks,
Sahoo
[1] http://download.java.net/glassfish/v3/promoted/glassfish-v3-ea-b34.zip

Antonio Goncalves wrote:
> Hummm.... the problem I have now is I'm back to GF b34. But when I add
> the EJB container, it installs the b35 and I get the following
> exception. How can I install a b34 EJB container in a b34 Glassfish ?
> I can't choose the version in the update center.
>
> Thanks,
> Antonio
>
>
> [#|2009-02-11T16:47:49.578+0100|SEVERE|glassfish|javax.enterprise.system.tools.admin|_ThreadID=16;_ThreadName=Thread-3;|Exception
> in command execution : com.sun.enterprise.module.ResolveError: Failed
> to start org.glassfish.ejb.gf-ejb-connector(EJB Container connector
> for Glassfish):3.0.0.b35
> com.sun.enterprise.module.ResolveError: Failed to start
> org.glassfish.ejb.gf-ejb-connector(EJB Container connector for
> Glassfish):3.0.0.b35
> at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:143)
> at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1$1.loadClass(OSGiModuleImpl.java:280)
> at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
> at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
> at java.util.AbstractList$Itr.next(AbstractList.java:345)
> at
> com.sun.enterprise.v3.server.SnifferManager.getSniffers(SnifferManager.java:117)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:324)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:198)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:162)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:327)
> at
> com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:297)
> at
> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312)
> at
> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:292)
> at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:182)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
> at
> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:646)
> at
> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
> at
> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:821)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:153)
> at
> com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.osgi.framework.BundleException: Unresolved constraint
> in bundle 115: package;
> (&(package=org.glassfish.internal.deployment)(version>=3.0.0.b35))
> at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)
> at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)
> at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:137)
> ... 33 more
>
>
>
>
> 2009/2/11 Antonio Goncalves <antonio.mailing_at_gmail.com
> <mailto:antonio.mailing_at_gmail.com>>
>
> Hi,
>
> I've downloaded glassfish-v3-web-ea-b35.zip
> and glassfish-v3-ea-b35.zip
> from http://download.java.net/glassfish/v3/promoted/ but when I
> start them and try to display the admin console I have the
> following exception :
>
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> descriptionThe server encountered an internal error () that
> prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException:
> java.lang.reflect.InvocationTargetException while attempting to
> process a 'afterCreate' event for 'headerForm'.
>
> root cause
>
> java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException while attempting to
> process a 'afterCreate' event for 'headerForm'.
>
> root cause
>
> java.lang.reflect.InvocationTargetException
>
> root cause
>
> com.sun.jsftemplating.layout.SyntaxException: Handler 'http:' in
> event 'namespace' is not declared! Ensure the '_at_Handler'
> annotation has been defined on the handler Java method, that it
> has been compiled with the annotation processing tool, and that
> the resulting 'META-INF/jsftemplating/Handler.map' is located in
> your classpath (you may need to do a clean build).
>
> note The full stack traces of the exception and its root causes
> are available in the GlassFish/v3 logs.
>
>
>
> Any idea ?
> Thank you,
>
> Antonio
>
>
>
>
> --
> --
> Antonio Goncalves (antonio.goncalves_at_gmail.com
> <mailto:antonio.goncalves_at_gmail.com>)
> Software architect
>
> Paris JUG leader : www.parisjug.org <http://www.parisjug.org>
> Web site : www.antoniogoncalves.org <http://www.antoniogoncalves.org>
> Blog: jroller.com/agoncal <http://jroller.com/agoncal>
> LinkedIn: www.linkedin.com/in/agoncal <http://www.linkedin.com/in/agoncal>