Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2007, 07:43 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JAR File Obfuscate

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...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading xml file which is in a JAR file pradheepayyanar J2EE 2 December 26th, 2007 05:52 AM
import file from jar geek.shrek XSLT 3 November 9th, 2007 06:19 AM
cant use jar file SweeT EviL Java Basics 1 October 9th, 2007 11:48 AM
JAR file sugarpalm157 Pro Java 1 August 23rd, 2007 08:27 AM
Accessing properties file outside jar file anand_indya J2EE 0 December 8th, 2004 06:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.