Okay, now I'm desperate, and you know I wouldn't come bother you if I had any other choice. ;)
But I have a webapp that works perfectly well on Windows where I develop, and then when I make a .war file and deploy it to HP-UX, it will not start. This began with Struts 1.2.4 and continues to happen with 1.2.5. (It worked on HP-UX with Struts 1.2.0 but dropping back will cause some pain at this point.)
The (Tomcat) localhost log file says: 2004-11-01 12:31:53 StandardContext[/benauth-dev]: Servlet /benauth-dev threw load() exception javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'
And in the log for the application, I see: 12:31:53,712 - INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml' 12:31:53,713 - INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml' 12:31:53,833 - ERROR org.apache.struts.validator.ValidatorPlugIn - JAR entry org/apache/commons/validator/resources/validator_1_1_3.dtd not found in /opt/hpws/tomcat/webapps/benauth-dev/WEB-INF/lib/commons-validator.jar java.io.FileNotFoundException: JAR entry org/apache/commons/validator/resources/validator_1_1_3.dtd not found in /opt/hpws/tomcat/webapps/benauth-dev/WEB-INF/lib/commons-validator.jar
Does anyone have any idea why this is happening? The dtd is present in the .jar file, so the "real" problem must be something else, I just have no idea what.
Have you tried putting a copy of the DTD in WEB-INF/classes? Might be a workaround. It seems peculiar that it is telling you exactly where in the classpath it isn't finding something -- so it's not (as you noted) that it isn't there. Maybe if you made a fresh commons-validator.jar? Maybe there's something quirky about the JAR you have that your app server doesn't like.
Is it trying to read the DTD from a WAR? Or an "exploded" directory? I had some problems once trying to deploy a simple webapp as a WAR to Weblogic 6 under Solaris where it couldn't read resources with the ClassPath loader even though it could read them just fine when I instaleed the same app in "exploded" form.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]