[jboss-user] [JBoss Seam] - [NamespaceScanner] Cannot load package

martin.krajci do-not-reply at jboss.com
Tue Sep 11 06:31:03 EDT 2007


Hi All,

I'm using Jboss 4.2.1.GA, Seam 1.2.1.GA and sun faces. During the deployment I have the warning in the console:

11:57:57,642 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.core
11:57:57,652 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.drools
11:57:57,662 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.framework
11:57:57,662 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.jms
11:57:57,672 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.mail
11:57:57,682 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.security
11:57:57,682 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.theme
11:57:57,692 WARN  [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.web

My problem is that when I declare something in components.xml it is not read. The only components that are read are core components. But security, framework, spring, mail are alwas missing.

<?xml version="1.0" encoding="UTF-8"?>
  | <components xmlns="http://jboss.com/products/seam/components"
  |             xmlns:core="http://jboss.com/products/seam/core"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:framework="http://jboss.com/products/seam/framework"
  |             xmlns:mail="http://jboss.com/products/seam/mail"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xsi:schemaLocation=
  |                 "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
  |                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
  |                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  |                  http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd
  |                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd">
  | 
  |     <core:init jndi-pattern="@jndiPattern@"/>
  |     <core:ejb installed="@embeddedEjb@"/>
  | 	<core:dispatcher />
  |         
  | 	<component name="org.jboss.seam.core.manager">
  |         <!-- half second wait for conversation lock on concurrent requests -->
  |         <property name="concurrentRequestTimeout">500</property>
  |         <!-- 20 minutes conversation timeout -->
  |         <property name="conversationTimeout">1200000</property>
  |         <property name="conversationIdParameter">cid</property>
  |         <property name="conversationIsLongRunningParameter">clr</property>
  |     </component>
  |      
  | 	<security:identity authenticate-method="#{authenticator.authenticate}"/>
  |                
  |     <event type="org.jboss.seam.notLoggedIn">
  |         <action expression="#{redirect.captureCurrentView}"/>
  |     </event>
  |     
  |     <event type="org.jboss.seam.postAuthenticate">
  |         <action expression="#{redirect.returnToCapturedView}"/>
  |     </event> 
  |                            
  | 	<!--
  |     <mail:mail-session host="mailcz.systinet.com" debug="true"/>		
  |     <mail:mail-session host="localhost" port="2525" username="test" password="test" />		
  | 	<mail:mail-session session-jndi-name="java:/CechieMailService" debug="true"/>
  | 	-->
  | 	  
  | </components>

In case on security the identity is unknown in JSF. 

In case of spring the applicationContext.xml is not loaded.

<spring:context-loader context-locations="/WEB-INF/applicationContext.xml"/>

In case of mail the mail-session is not loaded in any case.

But in case of core components everyting works fine.

My components.xml is located in ear/war/WEB-INF and jboss-seam.jar in ear. 

My application.xml

<?xml version="1.0" encoding="utf-8"?>
  | <application>
  |     <display-name>CechieApplication</display-name>
  |     <module>
  |         <web>
  |             <web-uri>cechie.war</web-uri>
  |             <context-root>/cechie</context-root>
  |         </web>
  |     </module>
  |     <module>
  |         <ejb>cechie.jar</ejb>
  |     </module>
  | 	<module>
  |         <java>jboss-seam.jar</java>
  |     </module>
  | 	<module>
  |         <java>commons-lang-2.1.jar</java>
  |     </module>        
  | </application>

I suspect that warnings have something to do with it, but I have no idea what.

Can you please help me.

Thanx

Martin

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082936#4082936

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082936



More information about the jboss-user mailing list