• Post Reply Bookmark Topic Watch Topic
  • New Topic

EAR Shared Library Packaging Woes

Jason Vinson
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting to bundle an EAR file for a war & (future) ejb deployment with shared libraries, but I'm having issues. Here's the EAR directory structure:


my war file's MANIFEST.MF is as follows:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.)
Built-By: jason

Class-Path: lib/commons-logging.jar

when i deploy this ear file, i get the following:

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.myapp.ApplicationListener.<clinit>(ApplicationListener.java:21)
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:274)

Anyone know what i am missing?

[ November 04, 2004: Message edited by: Jason Vinson ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!