The two threads about "Unable to locate Spring NamespaceHandler" on this fourm have had over 5000 views so this obviously quite a common problem. Is there an issue open for it in JIRA?
Cheers, Rich.
The two threads about "Unable to locate Spring NamespaceHandler" on this fourm have had over 5000 views so this obviously quite a common problem. Is there an issue open for it in JIRA?
Cheers, Rich.
Hey,
I just tested 2.1 installed into a plain Eclipse 3.4 JEE package and can't reproduce this problem.
Are you guys installing Spring IDE's OSGi extension? Please also check if you have more than one spring security bundle in your plugins directory. Please note that the bundle has been renamed from org.springframework.bundle.security.core to org.springframework.security.core. Eventually delete those old bundles.
Furthermore it would be very interesting to get the OSGi bundle status. Please start your Eclipse with "eclipse -console" and post the output of "ss org.springframework" into this thread.
Lets try to solve this problem.
Christian
Last edited by Christian Dupuis; Aug 2nd, 2008 at 10:55 AM.
Christian Dupuis
SpringSource, a division of VMware
Lead, SpringSource Tools Team
http://www.springsource.com
http://twitter.com/cdupuis
Hi Christian,
Thanks for the reply! I've got a bit closer to solving my problem. Now with a clean Eclipse 3.4 JEE and the new released Spring IDE 2.1 (Core, Security Extension and OSGi Extension) I no longer get the warnings.
(By the way is the OSGi extension required in order for the Security one to work?)
I then tried to get the working with my main Eclipse 3.3 installation. I removed all Spring featuers and plugins and re-installed Spring IDE 2.1 but I am still getting the warnings.
Here is my console output:
With these features installed:Code:osgi> ss org.springframework Framework is launched. id State Bundle 625 RESOLVED org.springframework.bundle.osgi.core_1.1.0.v200807062000 626 RESOLVED org.springframework.bundle.osgi.doc_1.0.0.v200801251000 627 ACTIVE org.springframework.bundle.osgi.extender_1.1.0.v200807062000 628 RESOLVED org.springframework.bundle.osgi.io_1.1.0.v200807602000 629 RESOLVED org.springframework.bundle.spring.doc_2.5.6.v200807062000 630 RESOLVED org.springframework.bundle.spring_2.5.6.v200807062000 631 ACTIVE org.springframework.ide.eclipse.beans.core_2.1.0.v200808011800 632 ACTIVE org.springframework.ide.eclipse.beans.osgibridge_2.1.0.v200808011800 633 ACTIVE org.springframework.ide.eclipse.beans.ui.editor_2.1.0.v200808011800 634 <<LAZY>> org.springframework.ide.eclipse.beans.ui.graph_2.1.0.v200808011800 635 <<LAZY>> org.springframework.ide.eclipse.beans.ui.refactoring_2.1.0.v200808011800 636 <<LAZY>> org.springframework.ide.eclipse.beans.ui.search_2.1.0.v200808011800 637 ACTIVE org.springframework.ide.eclipse.beans.ui_2.1.0.v200808011800 638 ACTIVE org.springframework.ide.eclipse.core_2.1.0.v200808011800 639 <<LAZY>> org.springframework.ide.eclipse.doc_2.1.0.v200808011800 640 <<LAZY>> org.springframework.ide.eclipse.osgi.targetdefinition_2.1.0.v200808011800 641 <<LAZY>> org.springframework.ide.eclipse.osgi_2.1.0.v200808011800 642 INSTALLED org.springframework.ide.eclipse.security_2.1.0.v200808011800 643 ACTIVE org.springframework.ide.eclipse.ui_2.1.0.v200808011800 644 RESOLVED org.springframework.ide.eclipse_2.1.0.v200808011800 645 RESOLVED org.springframework.osgi.backport.util.concurrent_3.0.0 646 INSTALLED org.springframework.security.annotation_2.0.4.v200807280800 647 INSTALLED org.springframework.security.core_2.0.4.v200807280800 osgi>
And these plugins:Code:iMac:features rich$ ls -al | grep spring drwxr-xr-x 6 rich admin 204 4 Aug 09:33 org.springframework.ide.eclipse.feature_2.1.0.v200808011800 drwxr-xr-x 6 rich admin 204 4 Aug 09:33 org.springframework.ide.eclipse.osgi.feature_2.1.0.v200808011800 drwxr-xr-x 6 rich admin 204 4 Aug 09:33 org.springframework.ide.eclipse.security.feature_2.1.0.v200808011800 iMac:features rich$
As you can see org.springframework.security.core is in there but seems not to be working. Any ideas?Code:iMac:plugins rich$ ls -al | grep spring -rw-r--r-- 1 rich admin 297543 4 Aug 09:33 org.springframework.bundle.osgi.core_1.1.0.v200807062000.jar -rw-r--r-- 1 rich admin 1062664 4 Aug 09:33 org.springframework.bundle.osgi.doc_1.0.0.v200801251000.jar -rw-r--r-- 1 rich admin 91232 4 Aug 09:33 org.springframework.bundle.osgi.extender_1.1.0.v200807062000.jar -rw-r--r-- 1 rich admin 29412 4 Aug 09:33 org.springframework.bundle.osgi.io_1.1.0.v200807602000.jar -rw-r--r-- 1 rich admin 2444385 4 Aug 09:33 org.springframework.bundle.spring.doc_2.5.6.v200807062000.jar -rw-r--r-- 1 rich admin 2911119 4 Aug 09:33 org.springframework.bundle.spring_2.5.6.v200807062000.jar -rw-r--r-- 1 rich admin 289376 4 Aug 09:33 org.springframework.ide.eclipse.beans.core_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 12723 4 Aug 09:33 org.springframework.ide.eclipse.beans.osgibridge_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 226813 4 Aug 09:33 org.springframework.ide.eclipse.beans.ui.editor_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 75759 4 Aug 09:33 org.springframework.ide.eclipse.beans.ui.graph_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 52880 4 Aug 09:33 org.springframework.ide.eclipse.beans.ui.refactoring_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 48669 4 Aug 09:33 org.springframework.ide.eclipse.beans.ui.search_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 313464 4 Aug 09:33 org.springframework.ide.eclipse.beans.ui_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 182787 4 Aug 09:33 org.springframework.ide.eclipse.core_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 1436 4 Aug 09:33 org.springframework.ide.eclipse.doc_2.1.0.v200808011800.jar drwxr-xr-x 9 rich admin 306 4 Aug 09:33 org.springframework.ide.eclipse.osgi.targetdefinition_2.1.0.v200808011800 -rw-r--r-- 1 rich admin 17452 4 Aug 09:33 org.springframework.ide.eclipse.osgi_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 18746 4 Aug 09:33 org.springframework.ide.eclipse.security_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 151155 4 Aug 09:33 org.springframework.ide.eclipse.ui_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 16430 4 Aug 09:33 org.springframework.ide.eclipse_2.1.0.v200808011800.jar -rw-r--r-- 1 rich admin 331716 4 Aug 09:33 org.springframework.osgi.backport.util.concurrent_3.0.0.jar -rw-r--r-- 1 rich admin 8435 4 Aug 09:33 org.springframework.security.annotation_2.0.4.v200807280800.jar -rw-r--r-- 1 rich admin 753147 4 Aug 09:33 org.springframework.security.core_2.0.4.v200807280800.jar iMac:plugins rich$
Cheers, Rich.
Hi Christian,
Still getting those warnings with new Spring 2.1 IDE installed (no OSGi) on Eclipse 3.4.0:
Also I've added these lines to my config file:Code:Unable to locate Spring NamespaceHandler for element 'authentication-manager' of schema namespace 'http://www.springframework.org/schema/security' Unable to locate Spring NamespaceHandler for element 'authentication-provider' of schema namespace 'http://www.springframework.org/schema/security' Unable to locate Spring NamespaceHandler for element 'http' of schema namespace 'http://www.springframework.org/schema/security'
and I'm getting this warning:Code:<authentication-manager alias="authenticationManager" /> <beans:bean class="org.springframework.security.ui.preauth.j2ee.J2eePreAuthenticatedProcessingFilter"> <custom-filter position="PRE_AUTH_FILTER" /> <beans:property name="authenticationManager" ref="authenticationManager" /> ...
This is the list of Spring IDE files in my plugin directory:Code:Referenced bean 'authenticationManager' not found
org.springframework.ide.eclipse.security.source_2. 1.0.v200808011800
org.springframework.ide.eclipse.security_2.1.0.v20 0808011800.jar
org.springframework.security.annotation_2.0.4.v200 807280800.jar
org.springframework.security.core_2.0.4.v200807280 800.jar
and features:
org.springframework.ide.eclipse.security.feature.s ource_2.1.0.v200808011800
org.springframework.ide.eclipse.security.feature_2 .1.0.v200808011800
Although Spring IDE reports all these warning my application works correctly.
Thank you,
Vasily
Rich, Vasily,
thanks for the very detailed feedback.
Yes, the OSGi extension is required but that is not indicated during install or in documentation. Furthermore there is no hard technical reason for this dependency. I created a bug to fix this:(By the way is the OSGi extension required in order for the Security one to work?)
IDE-914: Security plugin should not rely on existence of the OSGi plugin to install NamespaceHandler
http://jira.springframework.org/browse/IDE-914
Can you guys please test the upcoming nightly build. There are no other changes in that build besides this fix for the fore-mentioned bug. So it should be safe to install.
@Rich: I don't have any clue why your Eclipse 3.3 is showing the problems as the bundle status looks just fine. Can you try the upcoming nightly as well please.
Let me know if that helps.
Christian
Christian Dupuis
SpringSource, a division of VMware
Lead, SpringSource Tools Team
http://www.springsource.com
http://twitter.com/cdupuis
Hi Christian, Rich, Vasily,
I tried 2.1.1.v200808042008 nightly build and it works fine without namespace warnigs.
BTW, I found no bean in Spring Elements tree in Project Exploler that is declared as security namespace such as <security:http/>. How about yours?
Regards,
Matsuzaka
I have a rather hackish workaround for my special problem with maven-assembly-plugin not concatenating spring.handlers and spring.schemas in the generated jar-with-dependencies.
I created those two files manually and put
in my assembly descriptor to put them into META-INF of the final jar. Not a very clean solution, but it works for now.Code:<fileSet> <directory>target/classes</directory> <outputDirectory>META-INF</outputDirectory> <includes> <include>spring.handlers</include> <include>spring.schemas</include> </includes> </fileSet>
i have this trouble and still dont know how to solve..Code:Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
im using spring 2.5.6.
what i have to do to fix that?? plz help me..![]()
--
Thiago Andrade
MSc Candidate in Computer Science, Federal University of Pernambuco (UFPE) – Brazil
BSc in Computer Engineering, University of Pernambuco (UPE) – Brazil
Software Architect
below its my configuration xml
Code:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <context:load-time-weaver/>
help!
--
Thiago Andrade
MSc Candidate in Computer Science, Federal University of Pernambuco (UFPE) – Brazil
BSc in Computer Engineering, University of Pernambuco (UPE) – Brazil
Software Architect
I'm still getting these warnings in Eclipse!
Code:Unable to locate Spring NamespaceHandler for element 'http' of schema namespace 'http://www.springframework.org/schema/security' securityContext.xml
Eclipse Galileo, SpringIDE 2.2.6Code:<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> <http auto-config="true"> ... </http>