[opencms-dev] Antwort: Re: Problems finding the lib-directory

Olli Aro olli_aro at yahoo.co.uk
Tue Jul 14 14:35:36 CEST 2009


This is more question about Tomcat class loading. Worth reading about the
order of class loading from Tomcat documentation, but the general rule is
that:

 

Commons/lib and shared/lib are shared between the webapps. Then if you put
something in webapp lib directory, this should overwrite the stuff in
commons and shared and further if you put classes in the webapp classes
directory this will overwrite all jars. 

 

However, sometimes you end up with conflicts between commons, shared and
webapp libs if you have different version of the same jar lying around.

 

Maybe check commons/lib, shared/lib and opencms/WEB-INF/lib for conflicts?

 

Regards,

 

Olli

 

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frank Pertack
Sent: 14 July 2009 13:24
To: The OpenCms mailing list
Subject: [Bulk] [opencms-dev] Antwort: Re: Problems finding the
lib-directory

 

Hello Jonathan,

thank you for your answer. I think since the directorys owner is "tomcat"
with rwx-access, this shouldn't be the problem.
More interesting ist your second question: Where can I determine, which
directory OpenCms has to look up for the libraries?

Thanks in advance

Best regards

Frank

Frank Pertack


Vater Solution GmbH
Liebigstraße 26
24145 Kiel

Telefon: +49 431 20084-210
Telefax: +49 431 20084-222
Mobil: +49 151 16353519
mailto: fpertack at vater-gruppe.de
http://www.vater-gruppe.de

Amtsgericht Kiel, HRB 6403 
Geschäftsführer:
Klaus-Hinrich Vater
Michael Wiese
-----
Diese Email enthält ggfs. vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Email sind nicht gestattet.


Inactive hide details for "Jonathan Woods" ---14.07.2009 11:23:53---Strange.
Does the user running Tomcat have access to the ."Jonathan Woods"
---14.07.2009 11:23:53---Strange. Does the user running Tomcat have access
to the .jar files in /src/tomcat6/webapps/opencms



Von:


"Jonathan Woods" <jonathan.woods at scintillance.com>



An:


"'The OpenCms mailing list'" <opencms-dev at opencms.org>



Datum:


14.07.2009 11:23



Betreff:


Re: [opencms-dev] Problems finding the lib-directory



Gesendet von:


opencms-dev-bounces at opencms.org

  _____  




Strange. Does the user running Tomcat have access to the .jar files in
/src/tomcat6/webapps/opencms/WEB-INF/lib? Are you sure that's the lib folder
your OpenCms instance is looking at?

Jon

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frank Pertack
Sent: 14 July 2009 08:49
To: opencms-dev at opencms.org
Subject: [opencms-dev] Problems finding the lib-directory

Hello mailing-list,

I have a strange problem with OpenCms finding the jars in the lib-directory.
First of all, I have a windows-based development-server on which everything
runs fine: If I put a new jar-file into the directory
"C:\Program Files\Apache Software
Foundation\Tomcat-eclipse\webapps\opencms\WEB-INF\lib"
everything works fine (which means the classes in the imports of the jsp's
work).

On the openSuse Linux 11.1 production-server on the other hand OpenCms
doesn't seem to find the added jars in that directory
"/srv/tomcat6/webapps/opencms/WEB-INF/lib"
I get arrors like "Only a type can be imported. x.y.MyClass resolves to a
package ". These java-errors vanish when I manually copy the respective
class-files into the class directory of the module.
But I prefer to have the jars centrally in the opencms-lib directory, since
several modules use these libraries.

Does anybody have an idea, in which config-file I have to change something
to make this work?

Thank you in advance

Frank


Frank Pertack


Vater Solution GmbH
Liebigstraße 26
24145 Kiel

Telefon: +49 431 20084-210
Telefax: +49 431 20084-222
Mobil: +49 151 16353519
mailto: fpertack at vater-gruppe.de
 <http://www.vater-gruppe.de/> http://www.vater-gruppe.de

Amtsgericht Kiel, HRB 6403 
Geschäftsführer:
Klaus-Hinrich Vater
Michael Wiese
-----
Diese Email enthält ggfs. vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Email sind nicht gestattet.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090714/ead3261f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090714/ead3261f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 168 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090714/ead3261f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 166 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090714/ead3261f/attachment-0001.png>


More information about the opencms-dev mailing list