7 Replies Latest reply on Aug 24, 2012 5:48 AM by Ales Justin

    AluniteClassLoader - where is the class?

    pugsherpa Newbie

      I can't find the AluniteClassLoader.  It apparently hasn't made it to jarfinder yet.  Where can I find this class?  Which jar file?

        • 1. Re: AluniteClassLoader - where is the class?
          Carlo de Wolf Master

          The only place I have it published is at https://github.com/wolfc/jboss-alunite. AFAIK it doesn't come with an AS 7 installation.

          • 2. Re: AluniteClassLoader - where is the class?
            Justin Bertram Master

            org.jboss.alunite.classloading.AluniteClassLoader is not shipped in AS 7.1.1.Final.  Grab it from https://github.com/wolfc/jboss-alunite and build it.

            • 3. Re: AluniteClassLoader - where is the class?
              pugsherpa Newbie

              We're done.  Going back to Jboss 6.  Something that should seemingly be so simple - just looking up a JNDI entry from a class inside a war within an ear - this should be simple.  If it's not simple in AS7 - then it should be explained clearly.  I can't find anyone answering the questions regarding this error that people are having.  (JBAS011843)

               

              We'll wait to upgrade to Jboss 7 until more of these questions are answered and more examples are provided.  It seems Jboss 7 isn't quite ready for prime time yet.  We're not ready to be early-adopters.

               

              Here are several posts all asking for help with this error: JBAS011843:

              https://community.jboss.org/thread/202268

              https://community.jboss.org/thread/201691

              https://community.jboss.org/message/736806

              http://comments.gmane.org/gmane.comp.java.jboss.user/319524

              http://stackoverflow.com/questions/10673172/error-when-trying-to-access-my-application-in-jboss-as-7-1

               

              Seemingly a very common error with no solution that I can find.  The AluniteClassLoader can't be a solution for us if it's not shipped with Jboss AS7.  The entire solution seems hackish: http://wolf-71.blogspot.com/2010/02/et-phone-home.html  (If the "solution" even works at all. its not quite the exact use case we're trying to implement. We're just trying to lookup a datasource from JNDI - seems like it should be simple).  I understand what Jboss AS7 is trying to do with the isolation of modules and classloaders, but you have to give people viable work-arounds and example code if you expect them to use it for their old deployments. 

              • 4. Re: AluniteClassLoader - where is the class?
                Tomaz Cerar Master

                Hi,

                 

                solution mentioned in Carlo's blog has nothing to do with jboss 7, so i do not see any reason why are you are talking about it.

                 

                talking about JBAS011843 and linking to bunch of unrelated threads in which error also occurs is not really a productive way to go.

                 

                Given that you have not provided what exacly are you trying to do and what your application looks like (more than it is just ear->war) it is hard to guess what is wrong in your specific case.

                 

                but I think the problems you have are related to the unnecessary jars you have in your application, probably some jboss < 7 jars that should not be there.

                 

                as looking up datasource in JNDI is really simple thing to do and can also be done with @Resource injection.

                 

                can you please open new thread with description of your real problem and provide structure of your application (output of jar tf <name-of-archive> )

                this way we can better help you.

                 

                --

                tomaz

                • 5. Re: AluniteClassLoader - where is the class?
                  jaikiran pai Master

                  pugsherpa wrote:

                   

                  We're done.  Going back to Jboss 6.

                  Good luck!

                   

                   

                  pugsherpa wrote:

                   

                  Something that should seemingly be so simple - just looking up a JNDI entry from a class inside a war within an ear - this should be simple.

                  It is simple and there are numerous application out there looking up JNDI entries from classes within a web application. I'm sure you are going to say, it doesn't work for you. But just creating a thread with a title which is in no way related to the use case you are talking about, isn't going to help get answers. If you are really looking to solve the problem you are running into, then please create a thread with the relevant details with the issue *you* are running into and not just copy/pasting links to various unrelated threads.

                   

                  We're just trying to lookup a datasource from JNDI - seems like it should be simple).

                  And how exactly is that related to AluniteClassLoader again? It will be much more useful if you just post your relevant code and the exception stacktrace that you are seeing along with other related details.

                   

                  I understand what Jboss AS7 is trying to do with the isolation of modules and classloaders, but you have to give people viable work-arounds and example code if you expect them to use it for their old deployments.

                  So far we haven't seen anything in this thread which hints at this being a module classloading issue or anything along those lines.

                   

                  To summarize, if you are going to "wait" for questions like these being answered then my guess is they will never be unless you really put in some efforts trying to explain the issue.

                  • 6. Re: AluniteClassLoader - where is the class?
                    pugsherpa Newbie

                    Oh, jaikiran.  If only you put as much time and effort into answering the questions I've posted.  There are many. 

                    • 7. Re: AluniteClassLoader - where is the class?
                      Ales Justin Master

                      Oh, jaikiran.  If only you put as much time and effort into answering the questions I've posted.

                      I highly doubt Jaikiran is the problem here. ;-)

                       

                      This kind of posts help no one. Specially with such following as this one.

                      It seems you forgot that this is a *free* forum, and one can only appreciate the huge amounts of time Jaikiran puts into helping others.

                       

                      Instead of pointing fingers, do your homework first; How-to-post-questions-on-FREE-forums, How-to-behave-on-FREE-forums, etc ;-)

                       

                      There are many. 

                       

                      Why don't you then nicely summarize them?