Share

Java Execution Time Measurement Library

Tracker: Bugs

5 1.2.0 - Spring-2.0 - Namespace failure - ID: 1706118
Last Update: Comment added ( french_c )

Hello,

after following http://jetm.void.fm/howto/spring_2_x_integration.html

pom.xml
<dependency>
<groupId>fm.void.jetm</groupId>
<artifactId>jetm</artifactId>
<version>1.2.0</version>
</dependency>



applicationContext.xml :

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jetm="http://jetm.void.fm/schema/jetm_spring_config_1_2"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

http://jetm.void.fm/schema/jetm_spring_config_1_2
http://jetm.void.fm/schema/jetm_spring_config_1_2.xsd">
<jetm:runtime/>
</beans>

Error :


[INFO] Failure

Embedded error: Configuration problem: Unable to locate NamespaceHandler
for namespace [http://jetm.void.fm/schema/jetm_spring_config_1_2]
Offending resource: ServletContext resource
[/WEB-INF/spring/applicationContext-perf.xml]

FYI the spring 1.X version is working fine.

Thanks for jetm !
Florent


Florent Ramiere ( framiere ) - 2007-04-23 19:41

5

Closed

None

Jens Schumann

Documentation

None

Public


Comments ( 4 )




Date: 2007-04-26 14:17
Sender: french_cProject Admin


I have to admit that I am bit confused now;) The util namespace should
never have been in the five minute tutorial. Thanks for pointing this out -
I just removed it.

I also went ahead and copy/pasted the header found at
http://jetm.void.fm/howto/spring_2_x_integration.html to existing JETM unit
tests. Seems to work fine. Therefore I am closing this one .

Enjoy using JETM - I always welcome feedback.



Date: 2007-04-24 21:58
Sender: framiere


The difference are in the

xml namespace :

xmlns:util="http://www.springframework.org/schema/util


and its counter part in the schema location:

http://www.springframework.org/schema/util

Enjoy your day !
Florent


Date: 2007-04-24 10:30
Sender: french_cProject Admin


Thanks for the report.

Could it be possible the original error was caused by a missing
jetm-optional in your pom.xml? I was unable to locate the wrong namespace
in http://jetm.void.fm/howto/spring_2_x_integration.html. Which doesn't
mean there isn't one.


Date: 2007-04-23 21:26
Sender: framiere


Ok, the documentation and the code sample are not in sync, I found this
correct header in the 5-minute sample...
Thanks :)

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"

xmlns:jetm="http://jetm.void.fm/schema/jetm_spring_config_1_2"

xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd

http://jetm.void.fm/schema/jetm_spring_config_1_2
http://jetm.void.fm/schema/jetm_spring_config_1_2.xsd">


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-04-26 14:17 french_c
close_date - 2007-04-26 14:17 french_c
assigned_to nobody 2007-04-24 10:30 french_c