Paul Clapham wrote:And, welcome to the Ranch![
Thank You
Paul Clapham wrote:Your WatermarkServlet class should be in a package.
Paul Clapham wrote:What should the package look like?
The compiled class should of course be in a path whose folder names match the package name.
As of about Java 5, I think, Java was changed so that a class in a package can't import a class which isn't in a package. Probably you upgraded Java in your copying process (hopefully you did because old versions have security exposures) and now you have this problem. It shouldn't take you more than 15 minutes to put the class into a package of whatever name you choose and rebuild the WAR.
Paul Clapham wrote:I'm not 100% sure that's the problem. I suggested putting the class into a package because it's the professional thing to do and because it's easy to do, and because there's a good chance that it could fix your problem.
But it seems that it's not an easy thing for you to do after all.
If you were in control of generating the WAR file then all you'd have to do is to put the source code (with one line added) for WatermarkServlet into the right folder, recompile it, modify the web.xml to match, rebuild the WAR, and you're done. However if you don't know how to do that, then this forum isn't the place to teach you how. Perhaps you could consider finding somebody who knows how to do that and help you through the process?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |