Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAR/Class File Obfuscation problem  RSS feed

Anandharaj Selvaraj
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Struts Wiz,

Thankz in Advance. i'm having one problem in Obfuscate. i'm using Struts, Tomcat.

i created an struts application and generate a WAR file. And also i generate a JAR File for all my class files. From the WAR File i removed all the class files from the classes folder. i left all the property files (including ApplicationResources) untouched inside the WAR File. All the property files are in the classes folder.

By Using SandMark tool, i Obfuscate the JAR File and now i include the JAR File into the WAR File in Lib folder. After i deployed the WAR File into the Tomcat Server. When i hit the URL, i'm getting the following error.

javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE

In the Struts Config file i specified the Application resource.

If i didn't obfuscate the JAR File, and add the JAR File into the WAR file and deployed, When i hit the URL, it's working fine.

Please help me guys...
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!