New to building Jars

I am almost embarrased to ask this question of such an august body of experts.

I have created an application containing several (15) jar files. All of the classes I have written (112) use a path. I have created them in Oracle Jdev, and they work just fine. I jar them using the deploy mechanism in Jdev.

Next, I have started to use Ant to build this application, since doing it manually is a pain, and we will start some team development soon, so it seemed like a good thing to do.

I have Ant compiling just fine, and I have it jar'*** the files also. I have a single jar for all of the classes in each path. For instance, all the classes in the path com.xxx.test are jar'ed into a single file. I believe I have the base path set correctly, since I can see the path in the jar file when looking at it with zip.

The only real problem with the whole thing is that the server (Tomcat) dies whenever it tries to access any class in any of the jar files. It is a minor problem, I know, but quite annoying.

I have gone through all of the documentation I can find on jars, and Ant, but have run out of things to try. That is why I made the career limiting decision to ask the question here.

Any clue as to what I am doing wrong? (I know this is like asking someone over the phone why won't my car start, but ...)

The message it get from Tomcat is:

java.lang.NullPointerException

at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:471)

at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)

at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)

at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)

at org.apache.tomcat.core.Handler.service(Handler.java:254)

at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)

at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

at java.lang.Thread.run(Thread.java:484)

[2457 byte] By [jimscott] at [2007-9-26 4:57:05]
# 1
Make sure the jar's are in the lib directory of tomcat.The problem is pure that the jvm can't find the classes, and the lib dir of tomcat is in the claaspath of the jvm.Wouter
wvtbg at 2007-6-29 18:51:40 > top of Java-index,Desktop,Deploying...