This error occurs when the Action servlet has failed to initialize properly. The message telling you why it hasn't initialized will be in your SystemOut log when the application first starts up.
I notice you define a datasource in your struts-config.xml file. I suspect that the reason it works in one environment and not another is that you may not have included your MYSQL driver in your linux environment's class path. Also, make sure you have all the jar files necessary for Struts, in cluding, commons-dbcp which does not come with the Struts download. If you need this jar file, you can get it from:
HI... I already having all jars with me.. also...my MYSQL driver in my linux environment's class path. only it gives me err
in catalina.bat file it shows me that servlet.jar & j2ee.jar not loaded...
& already i have both the files in that application on linux.. also in WEB-INF/classes folder .class files of servlets get created easily. then what's wrong with this...
Joined: Feb 15, 2005
Do other applications run OK on this installation of Tomcat?
It could be that the Tomcat instance itself is corrupt. If this is the case, try uninstalling and reinstalling it.
The only other thing I can tell you is something you probably don't want to hear:
In my experience, using the Struts DataSource is nothing but trouble. The best practice is to define your DataSource in Tomcat (or whatever application server you're using) and then access it through a JNDI lookup. See the Tomcat documentation for further instructions on how to do this.
Joined: Jan 01, 2006
Hello, first of all thanx for all can u give me any guideline or sample code for that... becoz i tottaly strange for this concept.... & it's urgent for me in my company project
Joined: Feb 15, 2005
The first thing I'd do is test whether or not it's the datasource that's causing the problem.
Try removing the DataSource definition from your struts-config.xml file and see if you're able to start up the application. If you are, then you know it's the datasource that's causing the problem. If it still doesn't start up, then you know something else is the problem.
If you decide to take my suggesting about not using the Struts DataSource, this link explains how to set up and use a DataSource in Tomcat version 5. See the section entitled "Test Code" for an example of how to retrieve the DataSource in your application.
If you're using version 4, use this link. [ July 28, 2006: Message edited by: Merrill Higginson ]