Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss/WildFly and the fly likes Deploy failed-LifecycleException:  Error initializaing :  javax.management.ReflectionExc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploy failed-LifecycleException:  Error initializaing :  javax.management.ReflectionExc" Watch "Deploy failed-LifecycleException:  Error initializaing :  javax.management.ReflectionExc" New topic
Author

Deploy failed-LifecycleException: Error initializaing : javax.management.ReflectionExc

Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
Hi friends,

I am trying to deploy a working application war(exploded) into jboss 5.0.1, but it is getting failed and I think there is some problem with setting classpath for org/apache/catalina/logger/Filelogger.class.


the stack trace of the server looks like below...



javax.management.ReflectionException: Cannot find method addChild with this signature
could any one throw some light on this?

thanks in advance....


............................JBoss Rules..........................


Shiva Prasad P.K.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

See if any of these help:

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=146916

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149625

Based on those discussions, what JAR files do you have in WEB-INF/lib?


JBoss In Action
Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
@ peter

Hi,

thanks for replying.....

I have removed a org package which, I placed to solve this problem. Now there is no problem for loading the context(Life cycle Exception is gone), but when I try to login it throws an error like



coz Maincontroller servlet uses



So when FileLogger FileLog ; comes it says NoClassDefFound error......

And in lib folder of the application I have no jar files.
javahome..../default/lib/ folder contains
  • jboss-j2se.jar
  • classes12.jar


  • Peter Johnson
    author
    Bartender

    Joined: May 14, 2008
    Posts: 5779
        
        7

    That class is not provided by JBoss AS. You have two options. One is to replace the use of the Catalina logger with commons logging (that is what I would do). The other is to repackage the Catalina logger into a JAR file and provide it with your app. This might take some doing to get the right set of classes. Also, I looked in Tomcat 6.0.18 and could not find this class.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Deploy failed-LifecycleException: Error initializaing : javax.management.ReflectionExc
     
    Similar Threads
    Getting Error while deploying drools-jbrms.war file in JBoss AS
    Jboss not deploying my projects
    JBoss 5.0.1 + Spring 2.5.6 + JSF 1.2
    TypeMismatchNamingException On JBoss.
    Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found