Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
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 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 November 7th, 2007, 04:42 PM
Registered User
 
Join Date: Nov 2007
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.

Thanks,
Manisha

 
Old November 8th, 2007, 01:29 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

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
 
Old November 9th, 2007, 08:28 PM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






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





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