1 2 3 4 Previous Next 47 Replies Latest reply: Jun 12, 2003 7:00 PM by kierone RSS

    Here's a tutorial I wrote for Jboss-IDE

    Chris Newbie

       

      "upstreamnet" wrote:
      "upstreamnet" wrote:
      "upstreamnet" wrote:
      "upstreamnet" wrote:
      Hey, Hans...
      thanks for this helpful tool. I had some trouble getting it up and running with Eclipse, so after banging my head against the wall for a bit, I figured I'd write up a recipe that should make it easier for others. The tool works very well and I look forward to upcoming releases.

      URL for tutorial:
      http://www.perigon.com/jboss/EclipseTutorial.htm

      Feel free to incorporate this into your documentation if you think it would be helpful. / Chris


        • 1. Re: mailboxes and authentication
          leaf Newbie

          I think authentication and authorization should work with the existing security realms JBOSS already has.

          The really exciting thing about a mailserver in JBOSS would be that you can add an other/mail based intarface to your applications. Think about the possiblity of writing hooks to handle custom work flows, invoke services based on the arrival of some messages.

          The problem with having a separate security model for the mailserver and the rest of the services in the container is that now you have to integrate twice to like a corporate LDAP server(ActiveDiretory?).

          I suggest separating user repository for custom(M1) attributes. Provision the M1 attributes to the M1 storage after succesfully authenticated via the realms. Provide a hook for the provisioning.

          For example:
          - new user to M1 logs in.
          - user known the the JAAS realm authentication succeed.
          - load user profile to M1. Find none.
          - Invoke provisioning hook, provide userID.
          - provisioning hook implementation does magic to retrive infomation from somewhere. Return M1 user profile.
          - save profile.

          • 2. Re: Here's a tutorial I wrote for Jboss-IDE
            Bill Smith Newbie

             

            "Div_" wrote:
            "Div_" wrote:
            "Div_" wrote:
            Good Job! I installed/deployed the Interest project and it actually works! Outstanding! I love it when things come together and you get to spend your time solving business problems rather than technical ones. Anyrate, good job here, this helps all of the newbies get sorted.


            • 3. Re: Here's a tutorial I wrote for Jboss-IDE
              Chris Newbie

               

              "upstreamnet" wrote:
              "upstreamnet" wrote:
              Thanks, Div_ glad u liked it.


              • 4. Re: Here's a tutorial I wrote for Jboss-IDE
                J. Woch Newbie

                 

                "Hafer" wrote:
                "Hafer" wrote:
                Thanks for detailed description of the very first steps.
                However, i failed nevertheless :)

                Using jboss 3.0.6, eclipse 2.1 M5, I failed to perform configuration of the server. If i do as described (pointing jre to the top-dir of my jdk installation and pointing jboss to the top-dir of my jboss installation), then a "run server" results in a "could not connect VM" message, and console displays
                "Exception in thread "main" java.lang.NoClassDefFoundError:"
                both for server "3.0.x" and ">=3.2"

                What went wrong?


                • 5. Re: Here's a tutorial I wrote for Jboss-IDE
                  Bernd Koecke Novice

                   

                  "bernd.koecke" wrote:
                  "bernd.koecke" wrote:
                  Hi,

                  I have the same problem, too. It works with remote debugging, but when I want to start JBoss in Eclipse (2.x, M5), I get the same two errormessages. The 'NoClassDefFound' in the console window and 'could not connect' in a popup.

                  I tried to add a custom classpath, but it didn't worked.

                  Bernd


                  • 6. Re: Here's a tutorial I wrote for Jboss-IDE
                    Hans Dockter Newbie

                     

                    "hans d" wrote:
                    "hans d" wrote:
                    JBoss-IDE 1.0.1 is out. Only that works with M5. Have a look at the releasenotes how to install. It has changed.


                    • 7. Re: Here's a tutorial I wrote for Jboss-IDE
                      Bernd Koecke Novice

                       

                      "bernd.koecke" wrote:
                      "bernd.koecke" wrote:
                      "bernd.koecke" wrote:
                      Sorry, I forgot to say, I'm using JBoss-IDE 1.0.1 on M5. But after creating a run configuration for a JBoss 3.x server, the described messages appeared, when I try to start it.

                      Bernd


                      • 8. Re: Here's a tutorial I wrote for Jboss-IDE
                        Hans Dockter Newbie

                         

                        "hans d" wrote:
                        "hans d" wrote:
                        It works fine with JB 3.0.6, Win2K SP3, M5, and JDK 1.3.1 as well as 1.4.1 on my computer and there are no other bug reports concerning your problem.

                        Could you tell me your exact configuration ?


                        • 9. Re: Here's a tutorial I wrote for Jboss-IDE
                          Bernd Koecke Novice

                           

                          "bernd.koecke" wrote:
                          "bernd.koecke" wrote:
                          "bernd.koecke" wrote:
                          ok, here it is:

                          JBoss 3.2 from cvs
                          Eclipse 2.1 M5
                          Both on Sun JDK 1.4.1_01
                          SuSE Linux 8.0

                          I have one JBoss outside the workspace, which I build by hand with build.sh and I use tomcat41 (tomcat 4.1.18 LE jdk1.4). Another JBoss 3.2 is checked out in eclipse for debugging.

                          When I start JBoss by run.sh with a run.conf for remote debugging, e.g. on port 8000 and configure "JBoss remote" it works. But when I want to start it with a "JBoss 3.x" configuration I get the following message in a popup:

                          "org.eclipse.core.runtime.CoreException Could not connect to VM"

                          and in the console window:

                          "Exception in thread "main" java.lang.NoClassDefFoundError:"

                          In my JBoss 3.x configuration I selected only the "JBoss 3.x Home Directory", no special classpath or commandline. The "-S" was added automatically for JBoss 3.2.

                          The same config workes in Eclipse 2.1 M4. M5 was a clean install, I recycled only the workspace directory.

                          I tested JBoss-IDE 1.0.1 on M5 with the external JBoss 3.2 from cvs with tomcat41, with "default" and jetty and with a special config, generated from the "all" config. And I tried to edit the classpath in the run config. But I got always the same error message.

                          Thanks for your help!

                          Bernd


                          • 10. Re: Here's a tutorial I wrote for Jboss-IDE
                            Hans Dockter Newbie

                             

                            "hans d" wrote:
                            "hans d" wrote:
                            "hans d" wrote:
                            I looks like a linux specific problem. Are you using the Motif or GTK build ?

                            I have no linux available at the moment.

                            With JBoss 3.2RC1 it works fine with me. They might have changed something in cvs. As soon as the new RC is ready I will try and give notice in this thread.


                            • 11. Re: Here's a tutorial I wrote for Jboss-IDE
                              Hans Dockter Newbie

                              Sorry, I posted without preview. I correct myself.

                              It might be a linux specific problem or it might be a problem with the newest Version of 3.0.2.

                              • 12. Re: Here's a tutorial I wrote for Jboss-IDE
                                Bernd Koecke Novice

                                > Sorry, I posted without preview. I correct myself.
                                >
                                > It might be a linux specific problem or it might be a

                                thats possible, I'll try to change the classpath entries etc.

                                > problem with the newest Version of 3.0.2.

                                My snapshot from this morning is module jboss-3.2 Branch_3.2 from cvs. There is one error, but the startup is ok.

                                I'll play around with my local config/environment.

                                Thanks

                                Bernd

                                • 13. Re: Here's a tutorial I wrote for Jboss-IDE
                                  Bernd Koecke Novice

                                  I guess its a problem in the way you try to start a local VM. When I configure some other launch configurations all works fine. I added some breakpoints in org.jboss.Main and in org.jboss.system.server.ServerLoader, but this code is never reached. The details of the "could not connect to VM" message in the plugin error log says that at the startup of the VM a socket connection is tried to established and this fails. Here is the stacktrace:

                                  java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method)
                                  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
                                  at java.net.ServerSocket.implAccept(ServerSocket.java:439)
                                  at java.net.ServerSocket.accept(ServerSocket.java:410)
                                  at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:78)
                                  at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:117)
                                  at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:71)
                                  at java.lang.Thread.run(Thread.java:536)

                                  I hope this helps to find the problem. By the way I'm using motif with kde 3, but this shouldn't make a difference.

                                  Thanks again!

                                  Bernd

                                  • 14. Re: Here's a tutorial I wrote for Jboss-IDE
                                    Xavier Poinsard Newbie

                                    same error on debian with M5-motif version under gnome2.
                                    Of course jboss start nicely using the eclipse run facility.

                                    1 2 3 4 Previous Next