facebook

[Closed] Moving from WSAD 5.1.1 to MyEclipse5.1

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #262002 Reply

    Russ
    Member

    I am moving several projects to MyEclipse. What I did was to strip out all the ibm specific mapping files (as recommended by this forum) and created new projects within MyEclipse. I ported over only the source code into the new projects and re-created all the settings for the specific projects. I was able to get the projects to compile properly with the exception of the Web Services project, but we know why that won’t work with MyEclipse (X-Fire vs AXIS issue). Next we installed the latest production ready version of JBOSS (4.0.5) and ran its windows installer. I was able to get the server to come up with the basic installation with no errors. From here, I started tweaking the server to add JMS functionality, then I deployed the J2EE project to JBOSS with no problems. The last step was to bring up JBOSS with the new settings and project. What happen next I can not fully explain. When I started the server, an error displayed involving the JBOSS log4j component. I have not changed the log4j.xml settings, so I am confused why this error would even happen:

     
    20:05:44,757 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
    20:05:44,757 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by 
    20:05:44,757 ERROR [STDERR] log4j:ERROR [WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    java.net.FactoryURLClassLoader@31c43f
    ] whereas object of type 
    20:05:44,757 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@ab95e6].
    20:05:44,820 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
    20:05:44,820 ERROR [STDERR] 
    java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
    

    I checked to ensure I had the log4j-boot.jar within the server area. I found log4j-boot.jar found in <JBOSS_DIR>/lib. Also the log4j.xml file is the only place where the class OnlyOnceErrorHandler is specifically mentioned. I am at a lost to explain why there is an issue.

    Can someone shed some light on this for me? Is this a version issue with log4j?

    Thanks for reading my post.

    Russ

    #262044

    Riyad Kalla
    Member

    Russ,
    Does the app server start correctly from the command line, is this issue only when starting from MyEclipse? You might try adding any additional JARs to the app server’s classpath under it’s connector’s setting even if they are still in the /lib dir.

    #262076

    Russ
    Member

    okay, we have gotten pass this isse by adding the jar files to the JBoss classpath. You can close this issue

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] Moving from WSAD 5.1.1 to MyEclipse5.1

You must be logged in to post in the forum log in