7 Replies Latest reply on Sep 3, 2010 5:56 AM by luke_m

    How to disable JBoss Web Services

    kashif_jboss

      Hi All,

      i am using Latest Jboss 5.0. when i start it i see that it loads Web Services. i dont wnt Jboss to deploy it. i just want it deploy my own spring based J2EE application.

      can anyone please tell me that how can i disable JBoss Web Services?

      here are logs that shows me that Jboss is loading WebService.

      17:42:51,378 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@199f443{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
      17:43:00,855 INFO [WebService] Using RMI server codebase: http://192.168.0.86:8083/
      17:43:26,110 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
      17:43:26,111 INFO [NativeServerConfig] 3.0.4.SP1
      17:44:05,704 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://192.168.0.86/jndi/rmi://scm-test.pk.vopium.com:1090/jmxconnector
      17:44:06,706 INFO [MailService] Mail Service bound to java:/Mail

      Thanks in advance.

      Regards,

      Kashif

        • 1. Re: How to disable JBoss Web Services
          peterj

          Try removing these directories:

          server/xxx/deployers/jbossws.deployer/
          server/xxx/deploy/jbossws.sar/

          • 2. Re: How to disable JBoss Web Services
            kashif_jboss

            i have tried it but still getting same message in logs regarding JBoss Web Services... any other solution?

            • 3. Re: How to disable JBoss Web Services
              peterj

              Then either you did something wrong or you are misinterpreting the console log output.

              • 4. Re: How to disable JBoss Web Services
                kashif_jboss

                ok Peter I Agree with you that i have done something wrong with it and i am misinterpreting it.

                now let me tell you wht i have done with it.

                i deleted following folders from Jboss 5.0 A/S.

                jboss-5.0.0.GA/server/default/deployers/jbossws.deployer
                jboss-5.0.0.GA/server/default/deploy/jbossws.sar

                Then i restarted Jboss and it stuck with following message on console for a minute.




                19:02:43,520 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@fc9e7e(root=/u/bin/jboss-5.0.0.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
                19:02:43,521 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@199f443{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
                19:02:53,323 INFO [WebService] Using RMI server codebase: http://192.168.0.86:8083/
                19:03:51,035 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://192.168.0.86/jndi/rmi://192.168.0.86:1090/jmxconnector
                19:03:51,977 INFO [MailService] Mail Service bound to java:/Mail
                19:04:00,995 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this...



                OK, NOW lets assume that JBOSS wasn't deploying WebService at that time and i was misinterpreting the console log output. then at same time i checked the Server.log at location:


                jboss-5.0.0.GA/server/default/log/server.log


                and i found it saying that:

                2009-02-11 19:02:53,303 DEBUG [org.jboss.system.ServiceConfigurator] (main) ThreadPool set to MBeanProxyExt[jboss.system:service=ThreadPool] in jboss:service=WebService
                2009-02-11 19:02:53,304 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss:service=WebService
                2009-02-11 19:02:53,305 DEBUG [org.jboss.web.WebService] (main) Creating jboss:service=WebService
                2009-02-11 19:02:53,323 INFO [org.jboss.web.WebService] (main) Using RMI server codebase: http://192.168.0.86:8083/
                2009-02-11 19:02:53,324 DEBUG [org.jboss.web.WebService] (main) Created jboss:service=WebService
                2009-02-11 19:02:53,325 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss:service=WebService
                2009-02-11 19:02:53,325 DEBUG [org.jboss.web.WebService] (main) Starting jboss:service=WebService
                2009-02-11 19:02:53,332 DEBUG [org.jboss.web.WebServer] (main) Started server: ServerSocket[addr=/0.0.0.0,port=0,localport=8083]
                2009-02-11 19:02:53,338 DEBUG [org.jboss.web.WebService] (main) Started WebServer with address: /0.0.0.0:8083
                2009-02-11 19:02:53,338 DEBUG [org.jboss.web.WebService] (main) Started jboss:service=WebService
                2009-02-11 19:02:53,340 DEBUG [org.jboss.system.ServiceCreator] (main) About to create xmbean object: jboss:service=NamingBeanImpl with code: org.jnp.server.NamingBeanImpl with descriptor: resource:xmdesc/NamingBean-xmbean.xml
                2009-02-11 19:02:53,411 DEBUG [org.jboss.system.ServiceCreator] (main) Created mbean: jboss:service=NamingBeanImpl
                2009-02-11 19:02:53,412 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss:service=NamingBeanImpl
                2009-02-11 19:02:53,413 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss:service=NamingBeanImpl
                2009-02-11 19:02:53,484 DEBUG [org.jnp.server.NamingBeanImpl] (main) Using NamingServer: org.jnp.server.NamingServer@1637d45
                2009-02-11 19:02:53,484 DEBUG [org.jnp.server.NamingBeanImpl] (main) Installed global NamingServer: org.jnp.server.NamingServer@1637d45
                2009-02-11 19:02:53,538 DEBUG [org.jnp.server.NamingBeanImpl] (main) InitialContext Environment:
                2009-02-11 19:02:53,539 DEBUG [org.jnp.server.NamingBeanImpl] (main) key=java.naming.factory.initial, value(java.lang.String)=org.jnp.interfaces.NamingContextFactory
                2009-02-11 19:02:53,539 DEBUG [org.jnp.server.NamingBeanImpl] (main) key=java.naming.factory.url.pkgs, value(java.lang.String)=org.jboss.naming:org.jnp.interfaces
                2009-02-11 19:02:53,563 DEBUG [org.jboss.system.ServiceCreator] (main) About to create xmbean object: jboss:service=Naming with code: org.jboss.naming.NamingService with descriptor: resource:xmdesc/NamingService-xmbean.xml
                2009-02-11 19:02:53,642 DEBUG [org.jboss.naming.Naming] (main) isTraceEnabled: false


                if i am misinterpreting the console log output then can you please tell me wt are the server logs saying at same time (Creating jboss:service=WebService and Starting jboss:service=WebService)? i ll be more than thankful to you Peter.

                Best Regards,

                Kashif

                • 5. Re: How to disable JBoss Web Services
                  jaikiran

                   

                  2009-02-11 19:02:53,338 DEBUG [org.jboss.web.WebService] (main) Started jboss:service=WebService


                  Hehe :) The WebService is actually not WebService. It's just a naming confusion. That log corresponds to the JBoss Web server. Just the previous line in that log will show this :

                  2009-02-11 19:02:53,338 DEBUG [org.jboss.web.WebService] (main) Started WebServer with address: /0.0.0.0:8083


                  So it's the service for the JBoss web server (responsible for handling requests to resources like jsp)


                  • 6. Re: How to disable JBoss Web Services
                    peterj

                    Yes, having two completely different services with similar names can lead to confusion. But what you are looking for is the absence of these lines in the log:

                    2009-02-05 10:12:43,808 INFO [org.jboss.wsf.stack.jbws.NativeServerConfig] (main) JBoss Web Services - Stack Native Core
                    2009-02-05 10:12:43,809 INFO [org.jboss.wsf.stack.jbws.NativeServerConfig] (main) 3.0.4.SP1

                    • 7. Re: How to disable JBoss Web Services
                      luke_m

                      As you suggested I've removed folders:

                       

                           server/xxx/deployers/jbossws.deployer/
                           server/xxx/deploy/jbossws.sar/

                       

                      in order to disable Jboss webServices, but at startup container raise a ClassNotFoundException, cause jboss don't find org.jboss.ws.core.soap.SAAJMetaFactoryImpl Class.

                       

                      thanks in advance