1 2 Previous Next 22 Replies Latest reply on Mar 9, 2012 10:30 AM by thinksteep Go to original post Branched to a new discussion.
      • 15. Re: Jboss4.2.3 to Jboss7.1 migration issue
        thinksteep

        Hi Prasad,

         

        Thanks for pointer,

         

        I was able to succesfully install NameyyyAdmin.EAR with only yyybuiness.jar and yyyservices.jar sucessfully. Now I am trying to install ONLY yyyadmin.war ONLY as part of EAR. I am getting java.lang.ClassNotFoundException which we saw in initial post.

         

        Right now my EAR structure is:

         

        EAR

        -----lib

        -----META-INF

               --application.xml

               --MANIFEST.MF

        -----yyyadmin.war

               ----WEB-INF

                      ---lib

                           ---yyyweb.jar (developed by us)

                           ---someother jars related to fusion chart

         

        yyyweb.jar has the class for which we are getting ClassNotFoundException (attached server.log)

         

        From below link I figured that "Due to modular class loading changes, your application may no longer be able to find classes within the EAR or WAR. In his case, you may need to move JARs to a different location within the application archive or modify class-path information so classes can be found"

        https://docs.jboss.org/author/display/AS71/Developer+Guide#DeveloperGuide-DeploymentModuleNames

         

        I am trying to change MANIFES.MF and add classpath entry. Any pointers on this?

         

        Thank you for your time.

        • 16. Re: Jboss4.2.3 to Jboss7.1 migration issue
          prasad.deshpande

          yyyweb.jar has the class for which we are getting ClassNotFoundException (attached server.log)

          hmm.. if it's a servlet, then having this error is bit odd. I have a feeling that though it's saying "JBAS011093: Could not load component class com.name.yyy.webapp.servlets.DcsFileUploadServlet" (It's not a classnot found exception.. it has found that class but having trouble in loading that class..) , it's not "com.name.yyy.webapp.servlets.DcsFileUploadServlet" that is not found but probably one of the class that is used in imports in DcsFileUploadServlet.class directly or indirectly..

           

          I'd suggest firstly try deploying empty "com.name.yyy.webapp.servlets.DcsFileUploadServlet" in WAR without any other dependent classes.. just empty init/doGet/doPost/destroy methods in servlet.. if that deploys.. if it does.. then gradually try adding more & more piece of code to find actually which class it's really complaining about..

           

          Also, can you please paste your web.xml & output of jar -tf yyyAdmin.war?

          • 17. Re: Jboss4.2.3 to Jboss7.1 migration issue
            thinksteep

            Hi Prasad,

             

            I agree with you and just started working towards it. Will let you know soon.

             

            Thanks for your time.

            • 18. Re: Jboss4.2.3 to Jboss7.1 migration issue
              thinksteep

              Hi Prasad,

               

              I think I nailed down most of the deployment issue, I have a question though, is jboss4.2.3a conf folder and jboss7.1-->Standalone-->configuration folder are same? We have couple of xml files for Datasource, log4j etc in conf folder. I am planning to copy same to configuration folder of Jboss7.1, does that make sense? What is the best way to approach this issue of keeping configuration files related to application in jboss7.1?

               

              Thank you very much for your time and help during last few days.

               

              Thank you,

              • 19. Re: Jboss4.2.3 to Jboss7.1 migration issue
                wdfink

                The conf folder of AS4/5/6 and AS7 will be different.

                 

                i.e. the jboss-log4j.xml is gone and you have to set this properties in the standalone.xml (logging subsystem). Other way to do it is a script for CLI command that you might execute at starttime to set the logging properties.

                • 20. Re: Jboss4.2.3 to Jboss7.1 migration issue
                  prasad.deshpande

                  As Dieter said in earlier post, AS4/5/6 conf folder is not same as AS7 configuration.. so you'll need to find a way that suits your application best.. If you need any help or if you hit a brick-wall, do let us know.. we'll be happy to help..

                  • 21. Re: Jboss4.2.3 to Jboss7.1 migration issue
                    thinksteep

                    Hi Jaikiran,

                     

                    Sorry! I overlooked your response. I was able to resolve ClassNotFoundException issue. Moving on to other configuration issues. Thanks for your time.

                     

                    Right I am working on Datasource configuration for my database connectivity and log4j. I may post for help soon!

                    • 22. Re: Jboss4.2.3 to Jboss7.1 migration issue
                      thinksteep

                      Thanks Dieter/Prasad,

                       

                      Let me do some trail/error on how I can achieve this in JBoss7.1. I may post for help soon!

                       

                      Thanks for your time.

                      1 2 Previous Next