Hi,

It certainly is possible to use XDOclet for MDB with JBoss 2.4.  My advice
would be to have a look at the ejb-jar.xml that it being generated.  It
looks as though there is either an empty element, or a missing element that
is required.  Have a look (or post) the relevant part of the ejb-jar.xml
file and see if you (/we) can see anything obvious thats missing - and then
look for thte corresponding xdoclet cause.

cheers
dim


----- Original Message -----
From: "Michal Kochanowicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 9:10 PM
Subject: [Xdoclet-user] Message Driven Bean: no descriptor generated


> Hi
>
> I need a MDB which will be deployed to JBoss-2.4.6. I've put following
> comment before class:
>  * @ejb:bean                    destination-type="javax.jms.Topic"
>  *                              acknowledge-mode="Auto-acknowledge"
>  * subscription-druability="NonDurable"
>  * transaction-type="Container"
>  * @ejb:ejb-ref ejb-name="monsun/Source"
>  * @ejb:ejb-ref ejb-name="monsun/Sensor"
>  * @ejb:ejb-ref ejb-name="monsun/SourceManager"
>  * @jboss:destination-jndi-name name="topic/monsun"
>
> In the build.xml I've delcared ejbspec="1.x". In this situation no
> information is created in descriptors. If I change to ejbspec="2.x"
> information about MDB is present in descriptor, but I can't deploy it
> to the JBoss:
> [INFO,AutoDeployer] Auto deploy of
file:/usr/local/java/JBoss-2.4.6_Tomcat-4.0.3/jboss/deploy/monsun.ear
> [INFO,J2eeDeployer] Deploy J2EE application:
file:/usr/local/java/JBoss-2.4.6_Tomcat-4.0.3/jboss/deploy/monsun.ear
> [INFO,J2eeDeployer] Create application monsun.ear
> [INFO,J2eeDeployer] install EJB module monsun.jar
> [INFO,J2eeDeployer] inflate and install WEB module monsun.war
> [INFO,J2eeDeployer] add all ejb jar files to the common classpath
> [INFO,ContainerFactory]
Deploying:file:/usr/local/java/JBoss-2.4.6_Tomcat-4.0.3/jboss/tmp/deploy/Def
ault/monsun.ear
> [ERROR,ContainerFactory] InternalError
> java.lang.NullPointerException
>         at
org.jboss.metadata.MessageDrivenMetaData.importEjbJarXml(MessageDrivenMetaDa
ta.java:222)
>         at
org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.j
ava:173)
>         at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:152)
>         at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:423)
> [cut]
>
> Is it possible to create MDB for JBoss-2.4.6 with xdoclet? TIA for any
> help.
> --
> --= Michal [EMAIL PROTECTED] =--
> --= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
> --==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
> A chodzenie po górach SSIE!!!
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to