Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Where is the catalina (Tomcat) bundle? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Where is the catalina (Tomcat) bundle?

    In the bundle repository I can only find 6.0 version of catalina, where can I find a 5.5 version that registers the catalina start service?

    I have a version of the bundle in this jar, catalina.osgi-5.5.23-SNAPSHOT.jar, but it does not appear to register the required service, so I get the service matching filter=[(objectClass=org.apache.catalina.Service)] unavailable error.

    Thanks,

    John

  • #2
    I don't see it in BRITS either.
    However, it is available in Spring DM distribution's lib directory

    You can also download both of them from Maven repo(see below)
    Code:
    <dependency>
    	  <groupId>org.springframework.osgi</groupId>
    	  <artifactId>catalina.start.osgi</artifactId>
    	  <version>1.0-SNAPSHOT</version>
    	  <scope>test</scope>
    </dependency>
    <dependency>
              <groupId>org.springframework.osgi</groupId>
    	  <artifactId>catalina.osgi</artifactId>
    	  <version>5.5.23-SNAPSHOT</version>		     
    </dependency>
    . . . . .
    <repository>
          <id>i21-s3-osgi-repo</id>
          <name>i21 osgi artifacts repo</name>
          <snapshots>
             <enabled>true</enabled>
          </snapshots>
          <url>http://maven.springframework.org/osgi</url>
    </repository>
    Once downloaded, copy it from your local Maven repo (MAVEN_HOME/.m2/repository/org/springframework/osgi) to your Target platform (basically deploy it)
    Last edited by oleg.zhurakousky; May 14th, 2008, 10:04 PM.

    Comment


    • #3
      Thanks Oleg,

      I have the one from the distribution lib folder, but it does not appear to register the org.apache.catalina.Service service that the web extender bundle is looking for. Shouldn't this register the catalina service? I have it deployed and successfully started.

      Comment


      • #4
        No, you have to have a startup bundle fragment as well (defines all your Tomcat configuration), which is the other bundle I pointed out in Maven configuration.
        Code:
        <dependency>
        	  <groupId>org.springframework.osgi</groupId>
        	  <artifactId>catalina.start.osgi</artifactId>
        	  <version>1.0-SNAPSHOT</version>
        	  <scope>test</scope>
        </dependency>
        More info on this in chapter 8.6.1.1. Here is a small quote.
        In addition to the Catalina artifacts, the repository contains also a Tomcat activator (that works with both 5.5.x and 6.0.x versions) named catalina.osgi.start. The activator understands Tomcat XML configuration and contains a default, minimal setup that starts the server on localhost, port 8080. This behaviour can be customized by placing the desired configuration (which will override the default one) under conf/server.xml location (following the Tomcat folder layout) in a fragment attached to the Tomcat activator.
        Once you deploy it you should be up and running

        Comment


        • #5
          I was able to download the binary files using the maven configuration above. Now I need to see the source of the tomcat activator bundle. I know it should be easy to do using maven, but I don't know how. For some reason the catalina.start.osgi bundle is not in the EBR (https://issuetracker.springsource.com/browse/EBR-253). Thanks!

          Comment


          • #6
            Both artifacts are available in the Spring DM repository as explained here:
            http://static.springsource.org/osgi/...osgi-repo.html
            The web section also contains details on how to configure various web containers into OSGi: http://static.springsource.org/osgi/...cts:containers

            Comment


            • #7
              Note: the link in the doc using s3browse.com to view s3 no longer seems to work. But other s3 browsers do.

              The problem is at s3browse.com, the site seems to be down. The web site responds with 503 Service Temporarily Unavailable. But the whose site has been responding that way for at least a few days.

              Comment


              • #8
                Looks like S3 Browse has been discontinued (http://blog.s3browse.com/). Are there any instructions on how to browse an s3 repository with another client? I downloaded a stand alone client and one for firefox and they both are asking me to enter in account information. Googling hasn't provided great results yet. If I figure it out, I'll post here.
                Last edited by kneumei; Dec 9th, 2009, 10:15 AM.

                Comment


                • #9
                  I use Cyberduck on my Mac, for a client.

                  With it I am able to define a connection to https://s2/amazonaws.com with a username of anonymous. The path from there is maven.springframework.org/osgi/org/springframework/osgi

                  Therefore the full URL is: https://s3.amazonaws.com/maven.sprin...framework/osgi

                  Comment


                  • #10
                    Gosh I feel like I'm doing something very stupid. On all the s3 clients I've downloaded (the one for firefox, cloudberry, etc), They all want me to enter an "access key" and a "secret key". I guess that is for management of buckets. I haven't found anything yet that just simply lets me browse a url like the one you've provided. I am expecting to enter in a url, a path, and a username/pass sort of like an ftp client. I haven't found that yet.

                    Comment


                    • #11
                      I don't use windows much, but maybe this will help?

                      http://s3browser.com/external-bucket...red-bucket.php

                      I have not tried it, but that page looks promising.

                      You do not really need to browse that repository. It is just a maven repository and the maven coordinates for the bundles are shown in the pom near the top of this thread.

                      I also have another pom example that copies the sources for a bundle if that is what you need. It is a comment on a blog post.
                      Last edited by dlaidlaw; Dec 10th, 2009, 01:26 PM.

                      Comment


                      • #12
                        I was also able to browse it with the s3fox firefox plugin.

                        See the attachment.

                        Comment


                        • #13
                          CloudBerry Explorer - freeware client for Amazon S3

                          Hey guys,

                          I am one of the developers of CloudBerry Explorer freeware. you can't login to Amazon S3 with username and password. The only way is to use your Amazon S3 access and security keys. Think of them as of your user name and password. This is how it works. Check out our blog post for more info

                          http://blog.cloudberrylab.com/2009/0...3-service.html

                          Thanks
                          Andy

                          Comment


                          • #14
                            Costin, what is the benefit of TomcatWarDeployer in Spring DM Server?. can we install wars automatically as we do using tomcat:deploy into Spring DM? How can I register the same catalina service in multiple war files?

                            Comment


                            • #15
                              The WarDeployer is meant for vanilla OSGi environments that do not have any web awareness - dmServer already understands WARs (far beyond Spring DM) thus it's better to use its capabilities over those in Spring DM.

                              Comment

                              Working...
                              X