Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shivaprasad P Kanaganahallimath
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..........................
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Shivaprasad P Kanaganahallimath
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ 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
    Posts: 5852
    7
    Android Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic