File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Startup Issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Startup Issues" Watch "Tomcat Startup Issues" New topic
Author

Tomcat Startup Issues

Josh Anderson
Greenhorn

Joined: Nov 24, 2003
Posts: 3
I am having problems getting Tomcat 4.1 to start. I had been using Struts 1.1 and have successfully configured the Tomcat server to handle the DataSource connection pooling in the server.xml file. Unfortunately one of my coworkers has a strong desire to use the validwhen function of the more recent struts package. I installed the nightly build of Struts and I keep getting this message.
Nov 24, 2003 7:14:23 PM org.apache.struts.action.ActionServlet initModuleDataSources
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE
java.lang.NullPointerException
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1356)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:163)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:187)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:813)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:403)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
I am running Tomcat 4.1. Struts nightly build and am using Oracle's Database drivers. All of this works fine in 1.1. I guess I have two questions then, one does anyone know how to fix this error and if not can I load the validator-rules from new struts package so it can be used.
Thanks in advance


Nothing is obvious to the uninformed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Startup Issues
 
Similar Threads
Even though i have the servlet jar in my tomcat home common lib it is not work
Tomcat startup problem after adding struts
Tomcat fail when a war file is extracted to web apps
Problem with Tomcat 4.1.27 jars and classes
Make CLASSPATH work in Tomcat 4.1.12