Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5990485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:15:02+00:00 2026-05-22T23:15:02+00:00

I am implementing spring security framework in my web app. I have all the

  • 0

I am implementing spring security framework in my web app.
I have all the required spring security jar files in my ear.This ear also contains my web app war file.I have created another jar file which resides in ear itself and has all the code related with security (like custom providers etc) so that i can use it in another web app in furture.This security jar file is also having the spring security bean coniguration file which i m importing to my web app but it gives me exceptions while deploying ear in jboss.Follwoing are the exception & my code details…

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [META-INF/authbeans.xml]; nested
exception is java.io.FileNotFoundException: class path resource [META-
INF/authbeans.xml] cannot be opened because it does not exist at   

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions  
(XmlBeanDefinitionReader.java:341)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:302)
at   
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.
loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.
loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.
importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:186)
... 154 more 

Below is my web app’s web.xml entry

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
   /WEB-INF/applicationContext.xml          
</param-value>
</context-param>

applicationContext.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
   xmlns:sec="http://www.springframework.org/schema/security" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xsi:schemaLocation="http://www.springframework.org/schema/beans     
   http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
   http://www.springframework.org/schema/security   
   http://www.springframework.org/schema/security/spring-security-3.0.xsd">  

   <import resource="classpath:META-INF/authbeans.xml" />
</beans>

This authbeans.xml resides in security.jar which is included in ear and also mentioned in my web app’s MANIFEST.MF.

Please suggest me what to do I am using Spring 3.0.5 release.
Following is my ear file structure:

    MyEar
    |-- lib\ (contains all spring security jar files)
    |    
    |-- mySecurity.jar (contains all security related custom code also authbeans.xml)
    |
    |-- myWar
           |-- META-INF/MANIFEST.MF (entries for spring security jars & mySecurity.jar)
           |
           |-- WEB-INF
                   |-- applicationContext.xml (authbeans.xml included)
                   |-- lib\ (local jar files)

I tried this with JBOSS 5.0.1 and now app is able to locate authbeans.xml but still its not able to locate the spring security jars in ear’s lib directory.
When I copied all spring security jars in same level as mySecurity.jar (means directly in ear not in lib folder) then it recognizes and works fine.

But I want to keep all my third party jars in ear’s lib directory.Is this is a jboss specific issue ???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:15:04+00:00Added an answer on May 22, 2026 at 11:15 pm

    Upgraded to JBOSS-5,Jboss 4.2 seems have problem in recognizing jars placed in ear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using hibernate validator framework with Spring. A class implementing the Spring Validator validates
When implementing Quicksort, one of the things you have to do is to choose
I'm a reasonably new user of Spring Security. I previously configured Spring Security to
Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing a 'sandbox' environment in Python used to be done with the rexec module
When implementing a needle search of a haystack in an object-oriented way, you essentially
I implementing a EventQueue and get notified when AWTEvents are send. I wait till
When implementing a singleton in C++, is it better for GetInstance() to return a
I'm implementing a tagging system for a website. There are multiple tags per object
I'm implementing a document server. Currently, if two users open the same document, then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.