hi there,

i have problem with deploying my session bean.
i get following repport form jboss:

---------------------------------------------------------

[ERROR,XmlFileLoader] failed to load jboss.xml.  There could be a syntax error.
[ERROR,ContainerFactory] DeploymentError
org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean Scheduler:
 found in jboss.xml but not in ejb-jar.xml
        at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMeta
Data.java:387)
        at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:186)
        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:436)
        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
        at java.lang.reflect.Method.invoke(Native Method)

---------------------------------------------------------

my ejb-jar.xml has something like that:

<session>
   <ejb-name>SchedulerEJB</ejb-name>
      <home>com.videlity.session.SchedulerHome</home>
      <remote>com.videlity.session.Scheduler</remote>
      <ejb-class>
        com.videlity.session.SchedulerBean
      </ejb-class>      

      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-ref>
         <ejb-ref-name>ejb/Event</ejb-ref-name>
         <ejb-ref-type>Entity</ejb-ref-type>              
            <home>
               com.videlity.entity.event.EventHome
            </home>                  
            <remote>
               com.videlity.entity.event.Event
            </remote>
            <ejb-link>Event</ejb-link>
       </ejb-ref>
       <ejb-ref>
            <ejb-ref-name>ejb/EventInstance</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <home>
               entity.event_instance.EventInstanceHome
            </home>
            <remote>
              event_instance.EventInstance
            </remote>
            <ejb-link>EventInstance</ejb-link>
       </ejb-ref>
</session>


and my jboss.xml has something like that:

<?xml version="1.0" encoding="Cp1252"?>
<jboss>
  <enterprise-beans>
     <session>
        <ejb-name>SchedulerEJB</ejb-name>
        <jndi-name>ejb/Scheduler</jndi-name>            
     </session>
  </enterprise-beans>
</jboss>

--------------------------------------------------------

what is wrong ?

regards, piotr

_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=8441

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to