1 2 Previous Next 18 Replies Latest reply on Oct 2, 2006 5:07 PM by rocken7

    Problems in web-console

    linuso

      I have the problem that the java applet to the left in the webconsole is not loading..

      In the lower left corner of Internetexplorer :
      "java.lang.NoClassDefFoundError:org/jboss/util/stram/IMarshalledValue."

      Anyone know what could be wrong?

        • 1. Re: Problems in web-console

          i hava meet the problem with jboss4.0.4 recentlly.
          the reason i found is : IMarshalledValue interface does not exist in the applet.jar which include the classes for webconsole.
          i hava find a solution for this:

          1) creat a interface named IMarshalledValue.java then compile it, src like:
          public interface IMarshalledValue extends Serializable {}
          2) unzip the applet.jar file as a folder tree, add a sub folder named "stram" under org/jboss/util/

          3) rebuild the applet.jar file;
          jar cvf applet.jar *.*

          4) put the applet.jar file into "${server-root}\server\default\deploy\management\console-mgr.sar\web-console.war"
          and cover the old one.

          5) restart jboss server. then you will see the applet console in the left of broswer.

          good luck.!

          ineverstop@126.com

          • 2. Re: Problems in web-console

             

            2) unzip the applet.jar file as a folder tree, add a sub folder named "stram" under org/jboss/util/

            and then copy IMarshalledValue.class to it.

            • 3. Re: Problems in web-console
              linuso

               

              "ineverstop" wrote:

              1) creat a interface named IMarshalledValue.java then compile it, src like:
              public interface IMarshalledValue extends Serializable {}


              I'm pretty new to this, just testing around.. but..
              I created a file named IMarshalledValue.java containing:
              public interface IMarshalledValue extends Serializable {}

              When I tryed to compile it whit javac It says:
              symbol: class Serializable
              public interface IMarshalledValue extends Serializable {}
              ^
              1 error

              What am I doing wrong?

              • 4. Re: Problems in web-console

                try it again:

                package org.jboss.util.stram;
                
                import java.io.Serializable;
                
                public interface IMarshalledValue extends Serializable {}




                it's really a hard job for a new one to do it; if you can't finish it by you self, give me your email address, i could mail the applet.jar file to you.
                by the way, my english is pool, don't laugth at me ! :)

                • 5. Re: Problems in web-console
                  linuso

                   

                  "ineverstop" wrote:
                  try it again:

                  package org.jboss.util.stram;
                  
                  import java.io.Serializable;
                  
                  public interface IMarshalledValue extends Serializable {}




                  it's really a hard job for a new one to do it; if you can't finish it by you self, give me your email address, i could mail the applet.jar file to you.
                  by the way, my english is pool, don't laugth at me ! :)


                  Thanks! now it worked better.. and I added the folder and put the classfile in it.. When I running the web-console now I got another fault messeage and it want work anyway :(

                  now it says: "java.lang.NullPointerException."



                  • 6. Re: Problems in web-console
                    linuso

                    I dont know if it mathers.. but I'm running on
                    fedora core 4
                    jdk 1.5.0_06
                    jboss-4.0.4

                    also try jboss-4.0.3 sp1 whit same problem.

                    • 7. Re: Problems in web-console

                      i confirm my new applet.jar package file again, in the end, i found my new folder i added is "stream" instead of "stram" in my folder tree;

                      my folder looks like:

                      org/jboss/util/stream/IMarshalledValue.class

                      if it is the reason of the problem, you nedd to modify IMarshalledValue.java file like:

                      package org.jboss.util.stream;
                      
                      import java.io.Serializable;
                      
                      public interface IMarshalledValue extends Serializable {}
                      


                      • 8. Re: Problems in web-console
                        linuso

                         

                        "ineverstop" wrote:
                        i confirm my new applet.jar package file again, in the end, i found my new folder i added is "stream" instead of "stram" in my folder tree;

                        my folder looks like:

                        org/jboss/util/stream/IMarshalledValue.class

                        if it is the reason of the problem, you nedd to modify IMarshalledValue.java file like:
                        package org.jboss.util.stream;
                        
                        import java.io.Serializable;
                        
                        public interface IMarshalledValue extends Serializable {}
                        


                        I saw I missed a letter earlier :)

                        But I understand and named the directory to stream and had stream in the file, but the problem is there anyway..

                        Can you mail me your .jar file so can I try whit thatone but I dont think it would make any differnce :( my mail is: linus@firefly.ibk.se

                        • 9. Re: Problems in web-console

                          i've send the applet.jar package file to your mail box.pls check it.



                          ineverstop@126.com

                          • 10. Re: Problems in web-console
                            linuso

                             

                            "ineverstop" wrote:
                            i've send the applet.jar package file to your mail box.pls check it.

                            ineverstop@126.com


                            BIG THANKS!! :-)

                            It works fine now whit your applet.jar.. So strange.. I did exaktly like you told..

                            • 11. Re: Problems in web-console

                              Your welcome, Linuso. Glad to be of help.



                              ineverstop@126.com

                              • 12. Re: Problems in web-console
                                brogers

                                I also want to thank you for your instructions.
                                I was able to rebuild my jar file and now I can see the tree. However I did notice a few things in your instructions:
                                1. The folder should be stream not stram.
                                However this is possilby a typo based on the
                                original post.
                                2. My "jar -cvf..." command did not want to walk
                                my directory tree. Instead i used "jar -uvf ..."
                                to add the IMarshalledValue.class to the
                                applet.jar file.

                                • 13. Re: Problems in web-console

                                   

                                  "brogers@cips.ca" wrote:
                                  I also want to thank you for your instructions.
                                  I was able to rebuild my jar file and now I can see the tree. However I did notice a few things in your instructions:
                                  1. The folder should be stream not stram.
                                  However this is possilby a typo based on the
                                  original post.
                                  2. My "jar -cvf..." command did not want to walk
                                  my directory tree. Instead i used "jar -uvf ..."
                                  to add the IMarshalledValue.class to the
                                  applet.jar file.


                                  thank you for your advice;
                                  (1)the folder name is stream indeed. i lost a letter earlier. :)
                                  (2)in my case, "jar -cvf..." command did work fine.
                                  the difference between "cvf" and "uvf" is:
                                  cvf : create a new jar file
                                  uvf : update to a existed jar file
                                  so, if you want to use "jar -cvf" command, you should make sure that the applet.jar file does not exist in your current working folder.

                                  ineverstop@126.com

                                  • 14. Re: Problems in web-console
                                    qwfycj

                                    I met the same problem , Should you can send the applet.jar package file to me ?
                                    my mail box : qwfycj@126.com
                                    thanks very much.

                                    1 2 Previous Next