Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 7th, 2007, 04:42 PM
Registered User
Join Date: Nov 2007
Location: Fremont, CA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default java.lang.SecurityException: when calling a jsp

I am deployiong a web application on Apache Geronimo (Tomcat) and when I try to access the application I get the following exception:

java.lang.SecurityException: Package was already been loaded and not sealed: package=website.forms, url=file:/C:/geronimo5_2_0_1/repository/default/formBuilderApp.war/1194039233212/formBuilderApp.war-1194039233212.war/WEB-INF/lib/dataMgr.jar

I am using the same dataMgr.jar in other applications and they work perfectly. Any input on resolving this will be much appreciated.


Reply With Quote
  #2 (permalink)  
Old November 8th, 2007, 01:29 AM
Friend of Wrox
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post


I tried to find little information regarding this exception and found that if two classes belonging to two separate jar files are available and they are in the class path you'll get this exception. Which means that all classes from the same package must come from the same jar file.
Look for this kind of situation in the website.forms package classes.

- Rakesh
Reply With Quote
  #3 (permalink)  
Old November 9th, 2007, 08:28 PM
Registered User
Join Date: Nov 2007
Location: Fremont, CA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks that worked. 2 jar had the same package and that was a problem when deploying on tomcat.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
java.lang.IllegalStateException: priyatowin J2EE 0 September 13th, 2006 10:57 PM
java.lang.StackOverFlowError mrafeeq Pro Java 0 August 10th, 2006 12:51 PM
Calling Java Interface in JSP Befekadu JSP Basics 0 March 12th, 2005 03:18 PM

All times are GMT -4. The time now is 10:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.