Ok. Thank you. Sorry for the disturbance. Best regards, -- Léa
On 22/01/2020 2:08 PM, Luis Rodríguez Fernández wrote:
Hello Léa, mmm, this does not look like a tomcat issue. Perhaps you can find more help to your issue in the eclipse mailing lists: https://accounts.eclipse.org/mailing-list Hope it helps, Luis El mié., 22 ene. 2020 a las 13:10, Lmhelp1 (<[email protected]>) escribió:Hello, I am using Tomcat v9.0 anddeploying war files to it. I use Eclipse to develop the Webapps. So, in Eclipse, I have two "Dynamic Web Projects" "dwp1" and "dwp2". I have another Java project "jp". Both classes of projects "dwp1" and "dwp2" need and use classes of project "jp". For both projects "dwp1" and "dwp2", in Eclipse "Java Build Path -> Projects", I added the project "jp" under the "Classpath" section (there is also a "Modulepath" section which is empty) to declare that both projects depend on the "jp" project. When I build "dwp1.war" and "dwp2.war", I can see, once deployed on Tomcat, under "WEB-INF/lib/" the jar file "jp.jar". ("jp.jar" once unjared, doesn't contain a "lib" directory with the jar file it depends on. Maybe it's normal, I don't know.) Now, in Eclipse, I have two types of warnings: WARNING_1 - Classpath entry /jp will not be exported or published. Runtime ClassNotFoundExceptions may result. WARNING_2 - Classpath entry /jp/lib/xxx.jar will not be exported or published. Runtime ClassNotFoundExceptions may result. where "xxx.jar" is a jar file in "jp/lib/". WARNING_1 I saw, in Eclipse, that I could apply quick fixes, I selected this is one: "Mark the associated raw classpath entry as a publish/export dependency" It transforms "dwp1\.classpath"like this: Before: <classpathentry combineaccessrules="false" kind="src" path="/jp"/> After: <classpathentry combineaccessrules="false" kind="src" path="/jp"> <attributes> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes> </classpathentry> WARNING_2 I saw, in Eclipse, that I could apply quick fixes, I selected this is one: "Exclude the associated raw classpath entry from the set of potential publish/export dependencies" It transforms "jp\.classpath" like this: Before: <classpathentry kind="lib" path="lib/xxx.jar"/> After: <classpathentry kind="lib" path="lib/xxx.jar"> <attributes> <attribute name="org.eclipse.jst.component.nondependency" value=""/> </attributes> </classpathentry> The quick fixes make the warnings disappear but I don't understand what they do. Shall I ignore these warnings, shall I apply the quick fixes or shall I do something else? (I don't know for how long these warnings have been here but I used to ignore them and the Webapps worked correctly, they still do). Thank you. Best regards. -- Léa --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
