You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Spies, Brennan" <Br...@ejgallo.com> on 2009/01/27 22:20:36 UTC
Publish/export dependencies for IvyDE
Hi,
I'm new to Ivy/IvyDE, but I was wondering about the feature functionality of the plug-in, specifically the ability to export the IvyDE classpath container's dependencies (for example) to the WEB-INF/lib in an Eclipse WTP project so that they are on your classpath when you run a server like Tomcat. (I am thinking here of something that m2eclipse does now.)
Brennan Spies
Sr. Programmer Analyst
RE: Publish/export dependencies for IvyDE
Posted by "Spies, Brennan" <Br...@ejgallo.com>.
OK, tried that and I am seeing the Publish/export for WEB-INF/lib under the classpath container (just as I did with m2eclipse). After adding my POM dependencies (including), I can see all of them under the container in the Project Explorer too. But when I run Tomcat, I am seeing the following (the same problem I saw using m2eclipse):
SEVERE: Exception starting filter AuthenticationFilter
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.ejgallo.mwo.web.AuthenticationFilter.<clinit>(AuthenticationFilter.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
If I manually dump the same jars in my WEB-INF/lib, the problem goes away...Any ideas? (If I use a static block around the log4j logger initialization and try-catch the exception, it is a ClassNotFoundException at the root of the problem.)
Brennan Spies
Sr. Programmer Analyst
No, things don't all go the way they should,
But I know the heart of life is good...
-- John Mayer
-----Original Message-----
From: Partridge, Michael [mailto:Michael.Partridge@shps.com]
Sent: Tuesday, January 27, 2009 1:30 PM
To: ivy-user@ant.apache.org
Subject: RE: Publish/export dependencies for IvyDE
See the IvyDE FAQ:
http://ant.apache.org/ivy/ivyde/faq.html#wtp
-----Original Message-----
From: Spies, Brennan [mailto:Brennan.Spies@ejgallo.com]
Sent: Tuesday, January 27, 2009 3:21 PM
To: ivy-user@ant.apache.org
Subject: Publish/export dependencies for IvyDE
Hi,
I'm new to Ivy/IvyDE, but I was wondering about the feature
functionality of the plug-in, specifically the ability to export the
IvyDE classpath container's dependencies (for example) to the
WEB-INF/lib in an Eclipse WTP project so that they are on your classpath
when you run a server like Tomcat. (I am thinking here of something
that m2eclipse does now.)
Brennan Spies
Sr. Programmer Analyst
-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message transmission is
intended only for the person or the entity to which it is addressed
and may contain information that is privileged, confidential or
otherwise protected from disclosure. If you have received this
transmission, but are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution or use of the
contents of this information is strictly prohibited. If you have
received this e-mail in error, please contact the sender of the
e-mail and destroy the original message and all copies.
RE: Publish/export dependencies for IvyDE
Posted by "Partridge, Michael" <Mi...@shps.com>.
See the IvyDE FAQ:
http://ant.apache.org/ivy/ivyde/faq.html#wtp
-----Original Message-----
From: Spies, Brennan [mailto:Brennan.Spies@ejgallo.com]
Sent: Tuesday, January 27, 2009 3:21 PM
To: ivy-user@ant.apache.org
Subject: Publish/export dependencies for IvyDE
Hi,
I'm new to Ivy/IvyDE, but I was wondering about the feature
functionality of the plug-in, specifically the ability to export the
IvyDE classpath container's dependencies (for example) to the
WEB-INF/lib in an Eclipse WTP project so that they are on your classpath
when you run a server like Tomcat. (I am thinking here of something
that m2eclipse does now.)
Brennan Spies
Sr. Programmer Analyst
-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message transmission is
intended only for the person or the entity to which it is addressed
and may contain information that is privileged, confidential or
otherwise protected from disclosure. If you have received this
transmission, but are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution or use of the
contents of this information is strictly prohibited. If you have
received this e-mail in error, please contact the sender of the
e-mail and destroy the original message and all copies.