You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Salam Y. ELIAS" <sa...@free.fr> on 2010/11/18 15:24:21 UTC

Tomact does not see log4j-6.0.26.jar while it is there

I managed to make Apache Tomcat work and created a dynamic web project.
However, the inside the ide is flagged with a red exclamation mark.
Checked the problems pane, it seems it is related to log4j jar file, I
found
--------------------------
Description	Resource	Path	Location	Type
The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
existing library /usr/share/tomcat6/lib/log4j-6.0.26.jar	TestTomcat
Build path	Build Path Problem
--------------------------

I checked my tomcat directrory, I have "log4j.jar" and a linik file
"log4j-6.0.26.jar".

What I noticed is that this link file is flagged with a lock image on
the file icon  besides it.

All other jars are there well seen in the build bath except this one
flagged with red
What is needed to be done ?

Thanks in advance




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marlon,

On 12/1/2010 7:39 AM, marlon wrote:
> Christopher Schultz <chris <at> christopherschultz.net> writes:
> 
>> 1. Pointing the wrong way
>> 2. Broken (missing ".jar" at the end)
>>
>> -chris
>>
> 
> I had exactly the same problem when I use the command"
> yum install tomcat6* 
> to install tomcat from fedora 13.
> 
> should i simply unlink that link?

I would recommend against running a package-managed version of Tomcat in
nearly all cases: it's just not that hard to install it and keep it
up-to-date.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz2lMwACgkQ9CaO5/Lv0PDXPwCeJX9Kw+2dlOIvezt36MqawRNm
lG4An1psa4+EzD6nZvJcHOcPOpLxHkKE
=wcAr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by marlon <ma...@gmail.com>.
Christopher Schultz <chris <at> christopherschultz.net> writes:


> 1. Pointing the wrong way
> 2. Broken (missing ".jar" at the end)
> 
> -chris
> 

I had exactly the same problem when I use the command"
yum install tomcat6* 
to install tomcat from fedora 13.

should i simply unlink that link?





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Salam,

On 11/18/2010 12:21 PM, Salam Y. ELIAS wrote:
> Chris, here is the output, I highlighted the log4j lines
> Thanks
> 
> -rw-r--r-- 1 root root     15232 Oct 12 22:43 annotations-api-6.0.26.jar
> lrwxrwxrwx 1 root root        26 Nov 16 19:41 annotations-api.jar ->
> annotations-api-6.0.26.jar

Wow, this is likely to cause all sorts of problems because every JAR
file appears (at least to the JVM) to be duplicated. You may get lots of
class loading issues by doing this.

> lrwxrwxrwx 1 root tomcat       5 Nov 16 19:42 log4j-6.0.26.jar -> log4j
> -rw-r--r-- 1 root tomcat  378088 Oct 12 22:43 log4j.jar

Looks like your log4j-6.0.26.jar link is:

1. Pointing the wrong way
2. Broken (missing ".jar" at the end)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzlr8oACgkQ9CaO5/Lv0PAjhQCeIxAaRfh2Sj8BaNRn22/BS2ij
b4gAn2iPz4fSrG1cY3KHyfccluDZ7rxm
=LIaV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by "Salam Y. ELIAS" <sa...@free.fr>.
Chris, here is the output, I highlighted the log4j lines
Thanks

-rw-r--r-- 1 root root     15232 Oct 12 22:43 annotations-api-6.0.26.jar
lrwxrwxrwx 1 root root        26 Nov 16 19:41 annotations-api.jar ->
annotations-api-6.0.26.jar
-rw-r--r-- 1 root root   1182597 Oct 12 22:43 catalina-6.0.26.jar
-rw-r--r-- 1 root root     53695 Oct 12 22:43 catalina-ant-6.0.26.jar
lrwxrwxrwx 1 root root        23 Nov 16 19:41 catalina-ant.jar ->
catalina-ant-6.0.26.jar
-rw-r--r-- 1 root root    128233 Oct 12 22:43 catalina-ha-6.0.26.jar
lrwxrwxrwx 1 root root        22 Nov 16 19:41 catalina-ha.jar ->
catalina-ha-6.0.26.jar
lrwxrwxrwx 1 root root        19 Nov 16 19:41 catalina.jar ->
catalina-6.0.26.jar
-rw-r--r-- 1 root root    234698 Oct 12 22:43 catalina-tribes-6.0.26.jar
lrwxrwxrwx 1 root root        26 Nov 16 19:41 catalina-tribes.jar ->
catalina-tribes-6.0.26.jar
-rw-r--r-- 1 root root    569454 Oct 12 22:43
jakarta-commons-collections.jar
lrwxrwxrwx 1 root root        40 Nov 16 19:41 jakarta-commons-dbcp.jar
-> /usr/share/java/jakarta-commons-dbcp.jar
lrwxrwxrwx 1 root root        40 Nov 16 19:41 jakarta-commons-pool.jar
-> /usr/share/java/jakarta-commons-pool.jar
-rw-r--r-- 1 root root    542469 Oct 12 22:43 jasper-6.0.26.jar
-rw-r--r-- 1 root root    108450 Oct 12 22:43 jasper-el-6.0.26.jar
lrwxrwxrwx 1 root root        20 Nov 16 19:41 jasper-el.jar ->
jasper-el-6.0.26.jar
lrwxrwxrwx 1 root root        17 Nov 16 19:41 jasper.jar ->
jasper-6.0.26.jar
lrwxrwxrwx 1 root root        23 Nov 16 19:41 jasper-jdt.jar
-> /usr/share/java/ecj.jar
lrwxrwxrwx 1 root tomcat       5 Nov 16 19:42 log4j-6.0.26.jar -> log4j
-rw-r--r-- 1 root tomcat  378088 Oct 12 22:43 log4j.jar
lrwxrwxrwx 1 root root        32 Nov 16 19:41
tomcat6-el-2.1-api-6.0.26.jar -> ../tomcat6-el-2.1-api-6.0.26.jar
lrwxrwxrwx 1 root root        33 Nov 16 19:41
tomcat6-jsp-2.1-api-6.0.26.jar -> ../tomcat6-jsp-2.1-api-6.0.26.jar
lrwxrwxrwx 1 root root        37 Nov 16 19:41
tomcat6-servlet-2.5-api-6.0.26.jar
-> ../tomcat6-servlet-2.5-api-6.0.26.jar
-rw-r--r-- 1 root root    757790 Oct 12 22:43 tomcat-coyote-6.0.26.jar
lrwxrwxrwx 1 root root        24 Nov 16 19:41 tomcat-coyote.jar ->
tomcat-coyote-6.0.26.jar
-rw-r--r-- 1 root root     69874 Oct 12 22:43 tomcat-i18n-es-6.0.26.jar
lrwxrwxrwx 1 root root        25 Nov 16 19:41 tomcat-i18n-es.jar ->
tomcat-i18n-es-6.0.26.jar
-rw-r--r-- 1 root root     51809 Oct 12 22:43 tomcat-i18n-fr-6.0.26.jar
lrwxrwxrwx 1 root root        25 Nov 16 19:41 tomcat-i18n-fr.jar ->
tomcat-i18n-fr-6.0.26.jar
-rw-r--r-- 1 root root     54489 Oct 12 22:43 tomcat-i18n-ja-6.0.26.jar
lrwxrwxrwx 1 root root        25 Nov 16 19:41 tomcat-i18n-ja.jar ->
tomcat-i18n-ja-6.0.26.jar
lrwxrwxrwx 1 root root        35 Nov 16 19:41 tomcat-juli*
-> /usr/share/tomcat6

On Thu, 2010-11-18 at 10:19 -0500, Christopher Schultz wrote:

> ls -l /usr/share/tomcat6/lib/

Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Salam,

On 11/18/2010 9:24 AM, Salam Y. ELIAS wrote:
> I checked my tomcat directrory, I have "log4j.jar" and a linik file
> "log4j-6.0.26.jar".

log4j is currently at version 1.2.x. I'm not sure what that 6.0.26 could
possibly be, other than some corrupt library.

> What I noticed is that this link file is flagged with a lock image on
> the file icon  besides it.
> 
> All other jars are there well seen in the build bath except this one
> flagged with red
> What is needed to be done ?

How about:

$ ls -l /usr/share/tomcat6/lib/

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzlQ/cACgkQ9CaO5/Lv0PB4MgCgkFFjYxhuXN4vzcbOd//A+Zvr
V8wAn36jxwhvL9Hqj3fOJy2/5NyjmWkR
=9Z/E
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomact does not see log4j-6.0.26.jar while it is there

Posted by "Salam Y. ELIAS" <sa...@free.fr>.
OK thanks
On Thu, 2010-11-18 at 11:19 -0600, Caldarale, Charles R wrote:
> > From: Salam Y. ELIAS [mailto:salamlinux@free.fr] 
> > Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there
> 
> > It is the Apache Tomcat shipped with Fedora 13
> 
> To repeat what Mark said:
> 
> > > -contact the maintainers of whatever 3rd party package you used for support
> > > - use an ASF distribution
> 
> I didn't see any Tomcat issues in your original post, just an IDE question - so you might also consider using whatever support mechanism exists for your IDE.
> 
> If you want to try installing a real Tomcat from tomcat.apache.org and run that, we'd be glad to look at any issues you might have.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomact does not see log4j-6.0.26.jar while it is there

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Salam Y. ELIAS [mailto:salamlinux@free.fr] 
> Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there

> It is the Apache Tomcat shipped with Fedora 13

To repeat what Mark said:

> > -contact the maintainers of whatever 3rd party package you used for support
> > - use an ASF distribution

I didn't see any Tomcat issues in your original post, just an IDE question - so you might also consider using whatever support mechanism exists for your IDE.

If you want to try installing a real Tomcat from tomcat.apache.org and run that, we'd be glad to look at any issues you might have.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by "Salam Y. ELIAS" <sa...@free.fr>.
It is the Apache Tomcat shipped with Fedora 13
Salam

On Thu, 2010-11-18 at 15:14 +0000, Mark Thomas wrote:
> On 18/11/2010 14:24, Salam Y. ELIAS wrote:
> > I managed to make Apache Tomcat work and created a dynamic web project.
> > However, the inside the ide is flagged with a red exclamation mark.
> > Checked the problems pane, it seems it is related to log4j jar file, I
> > found
> > --------------------------
> > Description	Resource	Path	Location	Type
> > The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
> > existing library /usr/share/tomcat6/lib/log4j-6.0.26.jar	TestTomcat
> > Build path	Build Path Problem
> > --------------------------
> > 
> > I checked my tomcat directrory, I have "log4j.jar" and a linik file
> > "log4j-6.0.26.jar".
> > 
> > What I noticed is that this link file is flagged with a lock image on
> > the file icon  besides it.
> > 
> > All other jars are there well seen in the build bath except this one
> > flagged with red
> > What is needed to be done ?
> 
> No idea. The default install from the ASF does not use log4j. Your
> options are:
> -contact the maintainers of whatever 3rd party package you used for support
> - use an ASF distribution
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomact does not see log4j-6.0.26.jar while it is there

Posted by Mark Thomas <ma...@apache.org>.
On 18/11/2010 14:24, Salam Y. ELIAS wrote:
> I managed to make Apache Tomcat work and created a dynamic web project.
> However, the inside the ide is flagged with a red exclamation mark.
> Checked the problems pane, it seems it is related to log4j jar file, I
> found
> --------------------------
> Description	Resource	Path	Location	Type
> The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
> existing library /usr/share/tomcat6/lib/log4j-6.0.26.jar	TestTomcat
> Build path	Build Path Problem
> --------------------------
> 
> I checked my tomcat directrory, I have "log4j.jar" and a linik file
> "log4j-6.0.26.jar".
> 
> What I noticed is that this link file is flagged with a lock image on
> the file icon  besides it.
> 
> All other jars are there well seen in the build bath except this one
> flagged with red
> What is needed to be done ?

No idea. The default install from the ASF does not use log4j. Your
options are:
-contact the maintainers of whatever 3rd party package you used for support
- use an ASF distribution

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org