tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Unknown error in Assembler: AppListener could not be found
Date Fri, 25 Jan 2013 15:12:43 GMT
you declared it in tomee.xml right?

move it over resources.xml

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/1/25 wamrep99 <wamrep99@googlemail.com>

> Hi,
>
> I have an error which makes me crazy. Can't find the reason. Everything
> looks OK. Some advice would be appreciated.
> Thanks in advance.
>
>
> Jan 25, 2013 3:42:13 PM org.apache.openejb.assembler.**classic.Assembler
> createRecipe
> Information: Creating Service(id=myapplistener)
> Jan 25, 2013 3:42:13 PM org.apache.openejb.util.**OpenEJBErrorHandler
> handleUnknownError
> Schwerwiegend: FATAL ERROR: *Unknown error in Assembler*. *Please send the
> following stack trace and this message to users@openejb.apache.org :*
>  org.apache.xbean.recipe.**ConstructionException: Type class could not be
> found: com.jbosol.pj.whv.jms.**MyAppListener
>     at org.apache.xbean.recipe.**ObjectRecipe.getType(**
> ObjectRecipe.java:355)
>     at org.apache.xbean.recipe.**ObjectRecipe.internalCreate(**
> ObjectRecipe.java:266)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:96)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:61)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:49)
>     at org.apache.openejb.assembler.**classic.Assembler.**
> createService(Assembler.java:**1635)
>     at org.apache.openejb.assembler.**classic.Assembler.**
> buildContainerSystem(**Assembler.java:407)
>     at org.apache.openejb.assembler.**classic.Assembler.build(**
> Assembler.java:344)
>     at org.apache.openejb.OpenEJB$**Instance.<init>(OpenEJB.java:**144)
>     at org.apache.openejb.OpenEJB.**init(OpenEJB.java:290)
>     at org.apache.tomee.catalina.**TomcatLoader.initialize(**
> TomcatLoader.java:233)
>     at org.apache.tomee.catalina.**TomcatLoader.init(**
> TomcatLoader.java:130)
>     at org.apache.tomee.catalina.**ServerListener.lifecycleEvent(**
> ServerListener.java:121)
>     at org.apache.catalina.util.**LifecycleSupport.**fireLifecycleEvent(**
> LifecycleSupport.java:119)
>     at org.apache.catalina.util.**LifecycleBase.**fireLifecycleEvent(**
> LifecycleBase.java:90)
>     at org.apache.catalina.util.**LifecycleBase.**setStateInternal(**
> LifecycleBase.java:402)
>     at org.apache.catalina.util.**LifecycleBase.init(**
> LifecycleBase.java:110)
>     at org.apache.catalina.startup.**Catalina.load(Catalina.java:**633)
>     at org.apache.catalina.startup.**Catalina.load(Catalina.java:**658)
>     at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>     at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
> NativeMethodAccessorImpl.java:**57)
>     at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
> DelegatingMethodAccessorImpl.**java:43)
>     at java.lang.reflect.Method.**invoke(Method.java:601)
>     at org.apache.catalina.startup.**Bootstrap.load(Bootstrap.java:**281)
>     at org.apache.catalina.startup.**Bootstrap.main(Bootstrap.java:**450)
>
> Jan 25, 2013 3:42:13 PM org.apache.openejb.OpenEJB$**Instance <init>
> Schwerwiegend: OpenEJB has encountered a fatal error and cannot be
> started: Assembler failed to build the container system.
> org.apache.openejb.**OpenEJBException: org.apache.xbean.recipe.**ConstructionException:
> Type class could not be found: com.jbosol.pj.whv.jms.**MyAppListener:
> Type class could not be found: com.jbosol.pj.whv.jms.**MyAppListener
>     at org.apache.openejb.assembler.**classic.Assembler.build(**
> Assembler.java:357)
>     at org.apache.openejb.OpenEJB$**Instance.<init>(OpenEJB.java:**144)
>     at org.apache.openejb.OpenEJB.**init(OpenEJB.java:290)
>     at org.apache.tomee.catalina.**TomcatLoader.initialize(**
> TomcatLoader.java:233)
>     at org.apache.tomee.catalina.**TomcatLoader.init(**
> TomcatLoader.java:130)
>     at org.apache.tomee.catalina.**ServerListener.lifecycleEvent(**
> ServerListener.java:121)
>     at org.apache.catalina.util.**LifecycleSupport.**fireLifecycleEvent(**
> LifecycleSupport.java:119)
>     at org.apache.catalina.util.**LifecycleBase.**fireLifecycleEvent(**
> LifecycleBase.java:90)
>     at org.apache.catalina.util.**LifecycleBase.**setStateInternal(**
> LifecycleBase.java:402)
>     at org.apache.catalina.util.**LifecycleBase.init(**
> LifecycleBase.java:110)
>     at org.apache.catalina.startup.**Catalina.load(Catalina.java:**633)
>     at org.apache.catalina.startup.**Catalina.load(Catalina.java:**658)
>     at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>     at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
> NativeMethodAccessorImpl.java:**57)
>     at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
> DelegatingMethodAccessorImpl.**java:43)
>     at java.lang.reflect.Method.**invoke(Method.java:601)
>     at org.apache.catalina.startup.**Bootstrap.load(Bootstrap.java:**281)
>     at org.apache.catalina.startup.**Bootstrap.main(Bootstrap.java:**450)
> Caused by: org.apache.xbean.recipe.**ConstructionException: Type class
> could not be found: com.jbosol.pj.whv.jms.**MyAppListener
>     at org.apache.xbean.recipe.**ObjectRecipe.getType(**
> ObjectRecipe.java:355)
>     at org.apache.xbean.recipe.**ObjectRecipe.internalCreate(**
> ObjectRecipe.java:266)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:96)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:61)
>     at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:49)
>     at org.apache.openejb.assembler.**classic.Assembler.**
> createService(Assembler.java:**1635)
>     at org.apache.openejb.assembler.**classic.Assembler.**
> buildContainerSystem(**Assembler.java:407)
>     at org.apache.openejb.assembler.**classic.Assembler.build(**
> Assembler.java:344)
>     ... 17 more
> ------------------------------**------------------------------**
> ------------------------------**------------------------------**
> --------------
> Here follows the listener
>
> package com.jbosol.pj.whv.jms;
>
> import org.apache.openejb.assembler.**classic.event.**
> AssemblerAfterApplicationCreat**ed;
> import org.apache.openejb.observer.**Observes;
> import org.slf4j.Logger;
> import org.slf4j.LoggerFactory;
>
> public class MyAppListener {
>    Logger logger = LoggerFactory.getLogger(**MyAppListener.class);
>
>
>     private static String appName;
>
>     public void appCreated(@Observes final AssemblerAfterApplicationCreat*
> *ed appCreatedEvent) {
>         logger.debug("Application created: {}", appName);
>         appName = appCreatedEvent.getApp().**appId;
>     }
>
>
>     public static String getAppName() {
>         return appName;
>     }
> }
> ------------------------------**------------------------------**
> ------------------------------**------------------------------**-------
> Here follows the interesting part of the configuration in tomee.xml
>
> <Service id="myapplistener" class-name="com.jbosol.pj.whv.**jms.MyAppListener"
> />
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message