I wanted to install tomcat via YAST on a suse 10.2 system but the message says:

Package dependencies. Tomcat5-5.0.30-60.noarch[20071213-135049] cannot be installed due to missing dependencies. There are no installable providers of javamail >=1.3 for tomcat 5-5.0.30-60.noarch[20071213-135049]

What package(s) is needed first? Does anybody know? Thanks a lot.

Dani AI

Generated

Short summary and fastest fixes: the Tomcat RPM you picked declares a JavaMail provider that your system’s default repos don’t supply. correctly spotted the missing JavaMail dependency; the practical choices are (A) install the distribution package that provides JavaMail from the SUSE/SLES SDK repositories, or (B) as a temporary workaround drop the JavaMail/JAF jars into Tomcat’s shared lib so the dependency is satisfied at runtime. Mentioning ’s source-build route: compiling Tomcat avoids packaging issues but still requires JavaMail on the classpath, so it doesn’t remove the need for the mail/activation libraries.

If you want the distro-managed solution (recommended), enable the SLE/openSUSE SDK or the repository that contains the javamail RPM, refresh repositories and install the javamail package using YaST or zypper. Example (replace <sdk-repo-url> with the SDK repo you add):

zypper ar <sdk-repo-url> sdk
zypper refresh
zypper install javamail

After that re-run the Tomcat install in YaST (or zypper install tomcat5). The SUSE SDK contains the JavaMail package for SLE10-era systems. (novell.com)

If you cannot add the repo or need a fast workaround, download the JavaMail and JAF jars and copy them into Tomcat 5’s shared library directory (Tomcat 5 uses the common/shared loader). Example:

cp mail.jar activation.jar $CATALINA_HOME/common/lib/
service tomcat5 restart

This satisfies Tomcat’s runtime requirement without changing package metadata, but it is a manual fix and not ideal long-term. (docs.oracle.com)

Troubleshooting notes: search for providers with zypper se -s javamail or check what RPM provides the capability if using rpm; ensure the javamail RPM you pick matches the distro/arch and that you refresh repos before retrying the Tomcat install. Prefer the packaged javamail so updates and dependency tracking work correctly; use the manual jar copy only as a stopgap. (manpages.debian.org)

Recommended Answers

All 5 Replies

You need javamail, version 1.3 or higher.

Search google.

Is it possible for you to try installing it from source? I did it on Centos 5.0.

I installed tomcat 6 from source. I first installed the JAVA environment. Then, tomcat.
If you are going to use apache with it with apache as a front end server, then you need to install the appropriate module so that apache connects with tomcat.

Thanks.
--Willie

Installing what from source? javamail or Tomcat 6? Because I've had Tomcat 6 installed on my other machine for a little bit now, and I didn't have any compile errors.

I meant tomcat 6. However, before you install tomcat 6, you need to install the java environment, namely from the sun.com website.

Yeah, I have Tomcat 6 and the Java environment installed. Can't you install Java 6 from a package manager on your system?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.