PDA

View Full Version : Where is the catalina (Tomcat) bundle?


jmcginn
May 14th, 2008, 09:15 AM
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

oleg.zhurakousky
May 14th, 2008, 10:56 PM
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)

<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)

jmcginn
May 15th, 2008, 09:24 AM
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.

oleg.zhurakousky
May 15th, 2008, 09:44 AM
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.

<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