in the $JBOSS_INSTALLATION_DIRECTORY/server/[server_conf]/conf
directory find log4j.xml file and add the following appender
and category:
<appender name="DEBUG"
class="org.jboss.logging.appender.DailyRollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/debug.log"/>
<param name="Append" value="false"/>
<param name="Threshold" value="DEBUG"/>
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<category name="org.jboss.ejb.plugins.cmp">
<priority value="DEBUG" />
<appender-ref ref="DEBUG"/>
</category>
This will create debug.log file in
$JBOSS_INSTALLATION_DIRECTORY/server/[server_conf]/log
directory and will have all the SQL that is generated
by CMP module of JBoss
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Cleber
> Miranda Barboza
> Sent: Tuesday, March 11, 2003 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] Error while creating table
>
>
>
> How I enable debug ?
>
> []'s
>
> Aleksandr Shneyderman writes:
> > It is all useless still :-)
> >
> > You provided the part that, would not affect
> > the fields declaration. Those are the tags above
> > your methods.
> >
> > Your log is not debug enabled, so you can't
> > really see what is the create SQL that is
> > being generated. As I suggested before switch
> > the log to the DEBUG level. This will show
> > you your SQL that creates the table. It will
> > not solve your problem but will give you
> > some hint(s) at where exactly the problem might
> > be.
> >
> > My guess is that there is probably something
> > messed in the Xdoclet tag around one of the
> > fields. Send the java file and I will take a
> > look at it
> >
> > > /**
> > > * Entity bean que representa Item
> > > *
> > > * @author Cleber Miranda Barboza
> > > * @version $Revision: 1.0 $
> > > *
> > > * @ejb.bean
> > > * name="ItemTransfer"
> > > * display-name="Item Relacionado aos Contratos"
> > > * type="CMP"
> > > * local-jndi-name="ItemTransferLocalHome"
> > > * view-type="local"
> > > * primkey-field="id"
> > > *
> > > * @ejb.pk class="java.lang.String"
> > > *
> > > * @ejb.transaction type="Required"
> > > *
> > > * @ejb.finder
> > > * signature="java.util.Collection findAll()"
> > > *
> > > * @ejb.finder
> > > * signature="tci.interfaces.ItemTransferLocal
> > > * findByItem(java.lang.String codEmpresa, java.lang.String
> codItem)"
> > > * unchecked="true"
> > > * query="SELECT OBJECT(p) FROM ItemTransfer AS p WHERE
> > > p.codEmpresa=?1 AND p.codItem=?2"
> > > * view-type="local"
> > > *
> > > * @jboss.persistence
> > > * datasource="MySqlDS"
> > > * datasource-mapping="mySQL"
> > > * create-table="true"
> > > *
> > > * @jboss:table-name
> >
> > ^^^^^^^^^^ This probably does not get picked up becaues of the :
> > you need a .
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:Crypto Challenge is now open!
> > Get cracking and register here for some mind boggling fun and
> > the chance of winning an Apple iPod:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
> --
> Cleber Miranda Barboza.
> I'm a Computer Science student at University of S�o Paulo (USP).
>
> email: [EMAIL PROTECTED]
> home page: http://www.linux.ime.usp.br/~cleberc
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user