1 2 Previous Next 15 Replies Latest reply on Sep 22, 2002 7:43 AM by Asher Nave

    Axis in Jboss 3.0/Catalina

    Jessica Farnham Newbie

      There may an obvious answer here that I'm overlooking, but I've been searching these forums and haven't found an answer. I'm trying to deploy an Axis service using Jboss 3.0/Catalina. I know that Catalina is running on port 8080 because I get the "no context" error message at http://localhost:8080 and I can successfully deploy servlets and get to them thru a browser at this address. I changed jboss-service.xml in jboss-net.sar to get Axis to start up in Catalina rather than Jetty, and from the startup messages, this appears to be working:

      10:30:28,234 INFO [EmbeddedCatalinaServiceSX] Creating
      10:30:28,237 INFO [EmbeddedCatalinaServiceSX] Created
      10:30:28,239 INFO [AxisService] Creating
      10:30:28,242 INFO [AxisService] Created
      10:30:28,244 INFO [Adaptor] Creating
      10:30:28,247 INFO [Adaptor] Created
      10:30:28,249 INFO [EmbeddedCatalinaServiceSX] Starting
      10:30:28,253 INFO [MainDeployer] Adding deployer: org.jboss.web.catalina.EmbeddedCatalinaServiceSX@b32627
      10:30:31,399 INFO [STDOUT] Apache Tomcat/4.0.3
      10:30:31,426 INFO [Engine] HttpConnector Opening server socket on all host IP addresses
      10:30:31,429 INFO [Engine] HttpConnector[8080] Starting background thread
      10:30:32,186 INFO [Engine] HttpProcessor[8080][0] Starting background thread
      10:30:32,190 INFO [Engine] HttpProcessor[8080][1] Starting background thread
      10:30:32,195 INFO [Engine] HttpProcessor[8080][2] Starting background thread
      10:30:32,198 INFO [EmbeddedCatalinaServiceSX] OK
      10:30:32,201 INFO [EmbeddedCatalinaServiceSX] Started
      10:30:32,203 INFO [AxisService] Starting
      10:30:33,911 INFO [AxisService] About to deploy axis web application from org.jboss.deployment.DeploymentInfo@292deb12{ url=http://net.jboss.org/fake.war } under context /axis/*.
      10:30:34,060 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/axis/*, warUrl=file:/var/appserver/jboss/server/all/tmp/deploy/_axis_/axis/
      10:30:36,279 INFO [Engine] WebappLoader[/axis/*]: Deploying class repositories to work directory /var/appserver/jboss/catalina/work/localhost/axis_*
      10:30:36,685 INFO [Engine] StandardManager[/axis/*]: Seeding random number generator class java.security.SecureRandom
      10:30:37,089 INFO [Engine] StandardManager[/axis/*]: Seeding of random number generator has been completed
      10:30:38,260 INFO [Engine] ContextConfig[/axis/*]: Added certificates -> request attribute Valve
      10:30:39,587 INFO [Engine] ContextConfig[/axis/*]: Configured an authenticator for method BASIC
      10:30:39,758 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
      10:30:39,813 INFO [Engine] StandardWrapper[/axis/*:default]: Loading container servlet default
      10:30:40,647 INFO [Engine] default: init
      10:30:40,697 INFO [Engine] StandardWrapper[/axis/*:invoker]: Loading container servlet invoker
      10:30:40,710 INFO [Engine] invoker: init
      10:30:40,865 INFO [Engine] jsp: init
      10:30:42,103 INFO [MainDeployer] Adding deployer: org.jboss.net.axis.server.AxisService@6b9e62
      10:30:42,105 INFO [AxisService] Started
      10:30:42,107 INFO [Adaptor] Starting

      I also tried to deploy the sample addr.wsr service from the test suite, and the deployment seems to be successful based on the console messages. However, despite all of this, nothing happens when I try to go to http://localhost:8080/axis/ or http://localhost:8080/axis/services/AdminService, which are the URLs suggested by the Axis documentation--I still get the "no context configured" message and a mapping error on the console. Am I missing a step somewhere? Do these URLs not work with jboss-net? Any thoughts?

      Thanks!

        • 1. Re: Axis in Jboss 3.0/Catalina
          Jessica Farnham Newbie

          Thanks for the links--that helped a lot in getting things going with Catalina. I'm feeling very obtuse, but I still can't get to the http://localhost:8080/axis/servlet/AxisServlet or http://localhost:8080/axis/services/AdminServices pages, or at least the ones that come in the regular Axis distribution (which I have successfully installed and tested using non-jboss catalina). They're mentioned in the jboss-net readme, and so I had assumed that the "default 'hello' response page" mentioned there meant the same one as in the non-jboss framework--is this not correct? Instead, I constantly get the "Hi there, this is an Axis service" message at these URLs (and any random URL beginning with axis/services/..), and get a "no target service" message referring to the AdminService when I run tests from the axis test suite. I've built the jboss-net test suite and tried putting .wsr files in deploy, and it seems to be successful based on console output, but I'm not at all clear on the best way to confirm this because I haven't found instructions for accessing these services. Can someone give me a push in the right direction here? Thanks--

          • 2. Re: Axis in Jboss 3.0/Catalina
            Jessica Farnham Newbie

            OK, it was at least somewhat obvious.... I just found the readme file in the source documentation, which was quite helpful. As suggested there, I tried accessing the Axis default page at http://localhost:8080/axis/servlet/AxisServlet, which I think should have worked since other servlets are accessed on port 8080 and I didn't change the Axis root context from /axis/. Unfortunately, this still didn't work. For comparison purposes, I tried installing the non-Catalina version of Jboss 3.0, and was able to get to the AxisServlet through Jetty immediately. Since we don't have a strong preference either way, I'll take this as a sign and go with Jetty....

            • 3. Re: Axis in Jboss 3.0/Catalina
              Christoph Grimm Newbie

              i have the sames problems with the jboss3.0.0-catalina distribution.

              i have debugged the deployment of jboss-net.sar
              and it seem's to me that the problem is the version of
              class org.jboss.net.axis.server.AxisService

              As i saw in the cvs repository, cjung has changed this class in Revision 1.22 with the following comment:

              "21.05.02: star-annotation for web-context is illegal with tomcat."

              this star-annotation for web-contects ( /axis/* ) seems to be the cause that jboss-net has not working with catalina.

              i suppose that the 3.00 distro contains an elder version of the org.jboss.net.axis.server.AxisService class ( Revision 1.21 or less ).

              if i am right, could cjung pls. confirm this in a reply

              additionally it would be helpfull to have an new build of
              jboss-net.sar available on sourceforge, so we can replace the current one

              • 4. Re: Axis in Jboss 3.0/Catalina
                Christoph Grimm Newbie

                I will answer myself:

                the jboss 3.0.0 distro of jboss-net is based on revision 1.17 which doesn't have the fix, that i have mentioned.
                I confirmed this also by disassembling the class file itself with the jode tool.

                that means as far as i can see, jboss-net / jboss v3.00-catalina definitely doesn't work.

                • 5. Re: Axis in Jboss 3.0/Catalina
                  Christoph Grimm Newbie

                  i created a hack for the org.jboss.net.axis.server.AxisService class, that causes the error.
                  i took revision 1.17.2.1, which is tagged for JBoss-3.0.0
                  and changed line 313 in the same way as cjung has done in revision 1.22

                  old: String rootContext = "/" + getRootContext() + "/*";
                  new: String rootContext = getRootContext();


                  attached you will find a jar-file "jboss-net-hack.jar" that contains both the source as well as the compiled class.

                  to patch jboss-net.sar, unpack jboss-net-hack.jar and then update jboss-net.sar via the jar-archiver

                  • 6. Re: Axis in Jboss 3.0/Catalina
                    Bruce Scharlau Newbie

                    Axis does work with JBoss-Catalina, but you have to build it from the cvs. See my note in the 'Axis and Catalina as Web-Application' thread.

                    I've also put up a page with installation instructions at http://www.csd.abdn.ac.uk/~bscharla/soap.html

                    Sorry I didn't post these notes here sooner.

                    Cheers

                    Bruce

                    • 7. Re: Axis in Jboss 3.0/Catalina
                      Christoph Grimm Newbie

                      attachments did not work, so i'll give some links for the hack instead:

                      you will find jboss-net-hack.jar at
                      http://www.x-services.org/downloads/jboss-net-hack.jar
                      (see my previous post for instructions)

                      the hacked jboss-net.sar with the AxisServie class already replaced is at
                      http://www.x-services.org/downloads/jboss-net.sar

                      • 8. Re: Axis in Jboss 3.0/Catalina
                        Jessica Farnham Newbie

                        Thanks for the links--that helped a lot in getting things going with Catalina. I'm feeling very obtuse, but I still can't get to the http://localhost:8080/axis/servlet/AxisServlet or http://localhost:8080/axis/services/AdminServices pages, or at least the ones that come in the regular Axis distribution (which I have successfully installed and tested using non-jboss catalina). They're mentioned in the jboss-net readme, and so I had assumed that the "default 'hello' response page" mentioned there meant the same one as in the non-jboss framework--is this not correct? Instead, I constantly get the "Hi there, this is an Axis service" message at these URLs (and any random URL beginning with axis/services/..), and get a "no target service" message referring to the AdminService when I run tests from the axis test suite. I've built the jboss-net test suite and tried putting .wsr files in deploy, and it seems to be successful based on console output, but I'm not at all clear on the best way to confirm this because I haven't found instructions for accessing these services. Can someone give me a push in the right direction here? Thanks--

                        • 9. Re: Axis in Jboss 3.0/Catalina
                          Bruce Scharlau Newbie

                          It sounds like you have jboss.net working if you can deploy a wsr file and make a call against the service and receive a reply from the console.

                          Also, however, jboss.net and axis are the same product. jboss.net is built on axis, and works much the same, but is also somewhat different, so you do need to expect some of the things to work differently. For example, the jws files mentioned in the axis docs, don't work in jboss, but you get wsr files, which do. For the record, I've also not got http://localhost:8080/axis/services/AdminService working eiher.

                          Anyways, one thing which you might also try is to switch the axis.jar that is in the jboss-net.sar with the newer axis-beta2 jar that you got with your axis download.

                          I did this and it meant that the http://localhost:8080/axis/servlet/AxisServlet url shows you a list of deployed services, and (some, not all) http://localhost:8080/...?wsdl urls also give you the wsdl file on the fly.

                          I've put up a few notes about this at http://www.csd.abdn.ac.uk/~bscharla/soap.html along with details of integrating jboss.net with jboss-tomcat.

                          cheers,

                          Bruce

                          • 10. Re: Axis in Jboss 3.0/Catalina
                            Raúl Mateos Newbie

                            Hello!

                            I tried to download the file, but a password is required. I´ve jboss 3.0.2 with tomcat 4.0.4 and the Star Appears..

                            But, if you go to http://10.129.5.202:8080/axis/*/ there´s a page, but I have nothing... on it.

                            Any idea?

                            Thanks.

                            • 11. Re: Axis in Jboss 3.0/Catalina
                              Raúl Mateos Newbie

                              Sorry.. my Ip address=localhost :-D

                              Hello!

                              I tried to download the file, but a password is required. I´ve jboss 3.0.2 with tomcat 4.0.4 and the Star Appears..

                              But, if you go to http://localhost:8080/axis/*/ there´s a page, but I have nothing... on it.

                              Any idea?

                              Thanks.

                              • 12. Re: Axis in Jboss 3.0/Catalina
                                Asher Nave Newbie


                                I have same problem as the first post.
                                I also downloaded version jboss-3.0.2_tomcat-4.0.4.zip and updated the jboss-service.xml file in jboss-net.sar to jboss.web:service=EmbeddedCatalinaSX

                                But still, navigation to :
                                http://localhost:8080/axis
                                or
                                http://localhost:8080/axis/servlet/AxisServlet

                                return the same message:
                                "Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process this request"

                                Here is a sample of my log file:
                                2002-09-19 13:09:14,539 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Started
                                2002-09-19 13:09:14,539 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.net:service=Axis
                                state: CREATED
                                I Depend On: jboss.web:service=EmbeddedCatalinaSX

                                Depends On Me: jboss.net:service=Adaptor
                                ]
                                2002-09-19 13:09:14,539 INFO [org.jboss.net.axis.server.AxisService] Starting
                                2002-09-19 13:09:14,914 DEBUG [org.apache.axis.AxisEngine] Enter: AxisEngine::init
                                2002-09-19 13:09:15,320 DEBUG [org.apache.axis.AxisEngine] Exit: AxisEngine::init
                                2002-09-19 13:09:17,601 INFO [org.jboss.net.axis.server.AxisService] About to deploy axis web application from org.jboss.deployment.DeploymentInfo@292deb12 { url=http://net.jboss.org/fake.war }
                                deployer: org.jboss.web.catalina.EmbeddedCatalinaServiceSX@7f4fbb
                                status: null
                                state: CONSTRUCTED
                                watch: file:/D:/java/jboss-3.0.0/server/all/tmp/deploy/_axis_/axis/
                                lastDeployed: 0
                                lastModified: 0
                                mbeans:
                                under context /axis/*.
                                2002-09-19 13:09:17,617 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] webContext: /axis/*
                                2002-09-19 13:09:17,617 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] warURL: file:/D:/java/jboss-3.0.0/server/all/tmp/deploy/_axis_/axis/
                                2002-09-19 13:09:17,617 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] webAppParser: org.jboss.web.AbstractWebContainer$DescriptorParser@135133
                                2002-09-19 13:09:17,695 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] deploy, ctxPath=/axis/*, warUrl=file:/D:/java/jboss-3.0.0/server/all/tmp/deploy/_axis_/axis/
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] AbstractWebContainer.parseWebAppDescriptors, Begin
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@381d92
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ..org.jboss.mx.loading.UnifiedClassLoader@676437{ url=file:/D:/java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/47.jboss-net.sar }
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ..java.net.URLClassLoader@4a5ab2
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ..sun.misc.Launcher$AppClassLoader@2f6684
                                2002-09-19 13:09:17,695 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ..sun.misc.Launcher$ExtClassLoader@f38798
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linked java:comp/UserTransaction to JNDI name: UserTransaction
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] addEnvEntries
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkResourceEnvRefs
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkResourceRefs
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkEjbRefs
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkEjbLocalRefs
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkSecurityDomain
                                2002-09-19 13:09:17,711 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking security/securityMgr to JNDI name: java:/jaas/other
                                2002-09-19 13:09:17,726 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] AbstractWebContainer.parseWebAppDescriptors, End
                                2002-09-19 13:09:17,742 INFO [org.jboss.web.localhost.Engine] WebappLoader[/axis/*]: Deploying class repositories to work directory D:\java\jboss-3.0.0\catalina\work\MainEngine\localhost\axis_*
                                2002-09-19 13:09:17,742 INFO [org.jboss.web.localhost.Engine] StandardManager[/axis/*]: Seeding random number generator class java.security.SecureRandom
                                2002-09-19 13:09:17,742 INFO [org.jboss.web.localhost.Engine] StandardManager[/axis/*]: Seeding of random number generator has been completed
                                2002-09-19 13:09:17,898 INFO [org.jboss.web.localhost.Engine] ContextConfig[/axis/*]: Added certificates -> request attribute Valve
                                2002-09-19 13:09:17,960 INFO [org.jboss.web.localhost.Engine] ContextConfig[/axis/*]: Configured an authenticator for method BASIC
                                2002-09-19 13:09:17,960 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Context.lifecycleEvent, event=org.apache.catalina.LifecycleEvent[source=StandardEngine[MainEngine].StandardHost[localhost].StandardContext[/axis/*]]
                                2002-09-19 13:09:18,039 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
                                2002-09-19 13:09:18,039 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/axis/*:default]: Loading container servlet default
                                2002-09-19 13:09:18,039 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/axis/*:invoker]: Loading container servlet invoker
                                2002-09-19 13:09:18,054 INFO [org.jboss.web.localhost.Engine] The scratchDir you specified: D:\java\jboss-3.0.0\catalina\work\MainEngine\localhost\axis_* is unusable.
                                2002-09-19 13:09:18,085 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Initialized: {WebApplication: /D:/java/jboss-3.0.0/server/all/tmp/deploy/_axis_/axis/, URL: file:/D:/java/jboss-3.0.0/server/all/tmp/deploy/_axis_/axis/, classLoader: java.net.FactoryURLClassLoader@381d92:3677586}
                                2002-09-19 13:09:18,085 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.net.axis.server.AxisService@3acc67
                                2002-09-19 13:09:18,085 INFO [org.jboss.net.axis.server.AxisService] Started
                                2002-09-19 13:09:18,085 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.net:service=Adaptor
                                state: CREATED
                                I Depend On: jboss.net:service=Axis

                                Depends On Me: ]
                                2002-09-19 13:09:18,085 INFO [org.jboss.net.jmx.adaptor.server.Adaptor] Starting
                                2002-09-19 13:09:18,101 INFO [org.jboss.net.axis.server.AxisService] About to deploy axis descriptor org.jboss.deployment.DeploymentInfo@caf52958 { url=jar:file:/D:/./java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/47.jboss-net.sar!/META-INF/install-jmx.xml }
                                deployer: null
                                status: null
                                state: CONSTRUCTED
                                watch: jar:file:/D:/./java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/47.jboss-net.sar!/META-INF/install-jmx.xml
                                lastDeployed: 0
                                lastModified: 0
                                mbeans:
                                , create step.
                                2002-09-19 13:09:18,132 INFO [org.jboss.net.axis.server.AxisService] About to deploy axis descriptor org.jboss.deployment.DeploymentInfo@caf52958 { url=jar:file:/D:/./java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/47.jboss-net.sar!/META-INF/install-jmx.xml }
                                deployer: null
                                status: null
                                state: CONSTRUCTED
                                watch: jar:file:/D:/./java/jboss-3.0.0/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/47.jboss-net.sar!/META-INF/install-jmx.xml
                                lastDeployed: 0
                                lastModified: 0
                                mbeans:
                                , start step.
                                2002-09-19 13:09:18,195 INFO [org.jboss.net.jmx.adaptor.server.Adaptor] Started
                                2002-09-19 13:09:18,210 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: tomcat4-service.xml
                                2002-09-19 13:09:18,210 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/java/jboss-3.0.0/server/all/deploy/tomcat4-service.xml





                                Here

                                • 13. Re: Axis in Jboss 3.0/Catalina
                                  gernot Newbie

                                  just try http://localhost:8080/axis/*/services

                                  i'm not sure but their is a patch in the cvs so that you can use: http://localhost:8080/axis/services

                                  c.u.
                                  gernot

                                  • 14. Re: Axis in Jboss 3.0/Catalina
                                    Asher Nave Newbie


                                    Thanks, it did helped me.
                                    Now how do I get rid of the * ? Where in the CVS it says something about it ?

                                    1 2 Previous Next