Amazon AWS in web app, InstantiationError: com.amazonaws.handlers.b?

The fact that it's working in a java se environment should tell us that it's a class path issue. Meaning that the error comes from a class missing on the class path, probably a class named b. How did you deploy your tomcat?

How did you run the version in java se that worked? Through eclipse? Are you running tomcat through eclipse as well?

I'm guessing that you're missing some jar-file on the tomcat class path. Putting the missing jar-file in the folder where tomcat is running the application, under WEB-INF/lib, should fix this. Where this folder is depends a bit on your setup though.

The fact that it's working in a java se environment should tell us that it's a class path issue. Meaning that the error comes from a class missing on the class path, probably a class named b. How did you deploy your tomcat?

How did you run the version in java se that worked? Through eclipse? Are you running tomcat through eclipse as well?

I'm guessing that you're missing some jar-file on the tomcat class path. Putting the missing jar-file in the folder where tomcat is running the application, under WEB-INF/lib, should fix this. Where this folder is depends a bit on your setup though.

If this doesn't help, then please give more information on your setup, both for tomcat execution and java se :).

I turned off "antiLockingJARs" in Context. Xml and the problem went away. If true, the Tomcat classloader will take extra measures to avoid JAR file locking when resources are accessed inside JARs through URLs.

This will impact startup time of applications, but could prove to be useful on platforms or configurations where file locking can occur. If not specified, the default value is false. I can't explain why the AWS jar had problems with this setting.It was set to true by default when I created a new web application project through netbeans (6.9.1).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions