Re: [JBoss-user] problem with ejb-ql
http://java.sun.com/dtd/ejb-jar_2_0.dtd http://java.sun.com/products/ejb/docs.html netanel weinberg wrote: is there any spec. of something like that of ejb-jar.xml for cmp 2.0 so i can look on 'cause i've tried once and JBOSS gave alot of erros about the JDBC factory and something... --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with ejb-ql
is there any spec. of something like that of ejb-jar.xml for cmp 2.0 so i can look on 'cause i've tried once and JBOSS gave alot of erros about the JDBC factory and something... - Original Message - From: "Alexey Loubyansky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 5:03 PM Subject: Re: [JBoss-user] problem with ejb-ql > Yes, since you're going to use CMP2.0 > > netanel weinberg wrote: > > > should i transfer all my classes and set/get methods to be abstract? > > - Original Message - > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, December 15, 2003 4:38 PM > > Subject: Re: [JBoss-user] problem with ejb-ql > > > > > > > >>Why don't you try with > >> > >>>>"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" > >>"http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > >> > >>? > >> > >>netanel weinberg wrote: > >> > >> > >>>I don't know what do about my problem with my ejb-ql finder method! > >>>it giving me back a collection according to only one parameter and not > >>>according to both of them. > >>>plz look at the attached file and tell if if u can find a problem with > > > > the > > > >>>ejb-ql finder method with the two parameters. > >>>10x ahead, > >>> netanel > >> > >> > >> > >>--- > >>This SF.net email is sponsored by: IBM Linux Tutorials. > >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > >>Free Linux Tutorials. Learn everything from the bash shell to sys admin. > >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > >>___ > >>JBoss-user mailing list > >>[EMAIL PROTECTED] > >>https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > --- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > --- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with ejb-ql
Yes, since you're going to use CMP2.0 netanel weinberg wrote: should i transfer all my classes and set/get methods to be abstract? - Original Message - From: "Alexey Loubyansky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 4:38 PM Subject: Re: [JBoss-user] problem with ejb-ql Why don't you try with http://java.sun.com/dtd/ejb-jar_2_0.dtd";> ? netanel weinberg wrote: I don't know what do about my problem with my ejb-ql finder method! it giving me back a collection according to only one parameter and not according to both of them. plz look at the attached file and tell if if u can find a problem with the ejb-ql finder method with the two parameters. 10x ahead, netanel --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with ejb-ql
should i transfer all my classes and set/get methods to be abstract? - Original Message - From: "Alexey Loubyansky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 4:38 PM Subject: Re: [JBoss-user] problem with ejb-ql > Why don't you try with > > "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" > "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > ? > > netanel weinberg wrote: > > > I don't know what do about my problem with my ejb-ql finder method! > > it giving me back a collection according to only one parameter and not > > according to both of them. > > plz look at the attached file and tell if if u can find a problem with the > > ejb-ql finder method with the two parameters. > > 10x ahead, > > netanel > > > > --- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with ejb-ql
Why don't you try with http://java.sun.com/dtd/ejb-jar_2_0.dtd";> ? netanel weinberg wrote: I don't know what do about my problem with my ejb-ql finder method! it giving me back a collection according to only one parameter and not according to both of them. plz look at the attached file and tell if if u can find a problem with the ejb-ql finder method with the two parameters. 10x ahead, netanel --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem with ejb-ql
I don't know what do about my problem with my ejb-ql finder method! it giving me back a collection according to only one parameter and not according to both of them. plz look at the attached file and tell if if u can find a problem with the ejb-ql finder method with the two parameters. 10x ahead, netanel http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> CustomersBean Companies.Customers.CustomersHome Companies.Customers.Customers Companies.Customers.CustomersBean Container java.lang.String False 2.x Customers code namecompany ws status address bldg location city country pobox operationfrom operationto floor rm name state zip pozip idnumber ouraccountno vatnumber securityno exportercode chargefrequency dollarexchangetype internalpo termofpayments deliverylimit dutieslimit code findAll jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container DepartmentBean Companies.Department.DepartmentHome Companies.Department.Department Companies.Department.DepartmentBean Container Companies.Department.DepartmentPK False 2.x Department companycode departmentname chargefrequency webpassword findByCompanycode java.lang.String jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container SupplierBean Companies.Supplier.SupplierHome Companies.Supplier.Supplier Companies.Supplier.SupplierBean Container Companies.Supplier.SupplierPK False 2.x Supplier companycode suppliertype supplier ws isdef findByCompanycode java.lang.String java.lang.String SELECT OBJECT(a) FROM Supplier a WHERE a.companycode = ?1 AND a.suppliertype = ?2 jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container PartBean Companies.Part.PartHome Companies.Part.Part Companies.Part.PartBean Container Companies.Part.PartPK False 2.x Part companycode partnumber partdescription isdef findByCompanycode java.lang.String jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container RelationswholesaleBean Companies.Relationswholesale.RelationswholesaleHome Companies.Relationswholesale.Relationswholesale Companies.Relationswholesale.RelationswholesaleBean Container Companies.Relationswholesale.RelationswholesalePK False 2.x Relationswholesale companycode wholesalename isdef findByCompanycode java.lang.String jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container RelationsnameBean Companies.Relationsname.RelationsnameHome Companies.Relationsname.Relationsname Companies.Relationsname.RelationsnameBean Container Companies.Relationsname.RelationsnamePK False 2.x Relationsname companycode name isdef findByCompanycode java.lang.String jdbc/mySQL java:/MySqlDS javax.sql.DataSource Container RelationsthirdpartyBean Companies.Rel
Re: [JBoss-user] problem with EJB-QL
EJBQL is introduced in CMP2.0. It means it won't work with 1.1. jboss.xml and jbosscmp-jdbc.xml are optional. The number of parameters are not limited. netanel weinberg wrote: Hi! my application is deployed w/o any errors. my dtd is : http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> i don't know what is wrong! can it be that JBOSS doesn't support that kind of EJB-QL methods? 10x ahead. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with EJB-QL
When im creating a CMP EJB with ejb-ql, should i define the ejb and/or the ejb-ql methods in the JBOSS's xml files too except for the ejb-jar.xml file? --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with EJB-QL
i don't get any errors, the find method from some reason returns the finder method query like it was according to only one parameter - Original Message - From: "Rupp, Heiko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 15, 2003 2:34 PM Subject: RE: [JBoss-user] problem with EJB-QL Hi, what errors do you get? We use lots of finders with more than one parameter and didn't have problems with them so far. Heiko > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > netanel weinberg > Sent: Monday, December 15, 2003 12:17 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] problem with EJB-QL > > > does anybody knows if it can be that JBOSS 3.2.2 doesn't > support finder > method with two parameters in EJB-QL? like that: > > >findByCompanycode > > java.lang.String > java.lang.String > > > > > > > > 10x ahead, > netanel > > - Original Message - > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, December 14, 2003 6:58 PM > Subject: Re: [JBoss-user] problem with EJB-QL > > > > I think the //log/server.log file should > default to > > DEBUG log level and should have the SQL queries in it. If > not, you can > > edit the //conf/log4j.xml file and set either the > > CONSOLE or FILE appenders to DEBUG mode. I think you have > to restart > > JBoss to see the effect. > > > > > > On Sun, 2003-12-14 at 10:33, netanel weinberg wrote: > > > How can i see the sql jboss is using to see what is generated? > > > > > > - Original Message - > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, December 14, 2003 4:35 PM > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > I misread your first message and thought you had > switched to CMP2. > > > > Sorry about that. > > > > > > > > Have you looked at the SQL JBoss is using to see what > is generated? > Is > > > > it correct? > > > > > > > > > > > > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > > > > > but i'm using cmp 1.1 > > > > > 'cause when i tried to move to cmp 2.0 > > > > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > > > > > can it be that JBOSS 3.2.2 doesn't support finder > method in CMP with > two > > > > > parameters?? > > > > > > > > > > - Original Message - > > > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Sunday, December 14, 2003 3:39 PM > > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > > > > Looks like you are using ejb1.1 dtd. If you are > using CMP2, try: > > > > > > Enterprise > > > > > > JavaBeans 2.0//EN" > "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > > > > > > > > > Hope that helps, > > > > > > Gary. > > > > > > > > > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > > > > > Hi! > > > > > > > my application is deployed w/o any errors. > > > > > > >my dtd is : > > > > > > > > > > > > > > Inc.//DTD > > > Enterprise > > > > > > > JavaBeans 1.1//EN" > > > > > > > > > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > > > > > i don't know what is wrong! can it be that JBOSS doesn't > support > > > that > > > > > kind > > > > > > > of EJB-QL methods? > > > > > > > > > > > > > > 10x ahead. > > > > > > > > > > > > > > - Original Message - > > > > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Friday, December 12, 2003 12:13 PM > > > > > &
RE: [JBoss-user] problem with EJB-QL
Hi, what errors do you get? We use lots of finders with more than one parameter and didn't have problems with them so far. Heiko > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > netanel weinberg > Sent: Monday, December 15, 2003 12:17 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] problem with EJB-QL > > > does anybody knows if it can be that JBOSS 3.2.2 doesn't > support finder > method with two parameters in EJB-QL? like that: > > >findByCompanycode > > java.lang.String > java.lang.String > > > > > > > > 10x ahead, > netanel > > - Original Message - > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, December 14, 2003 6:58 PM > Subject: Re: [JBoss-user] problem with EJB-QL > > > > I think the //log/server.log file should > default to > > DEBUG log level and should have the SQL queries in it. If > not, you can > > edit the //conf/log4j.xml file and set either the > > CONSOLE or FILE appenders to DEBUG mode. I think you have > to restart > > JBoss to see the effect. > > > > > > On Sun, 2003-12-14 at 10:33, netanel weinberg wrote: > > > How can i see the sql jboss is using to see what is generated? > > > > > > - Original Message - > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, December 14, 2003 4:35 PM > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > I misread your first message and thought you had > switched to CMP2. > > > > Sorry about that. > > > > > > > > Have you looked at the SQL JBoss is using to see what > is generated? > Is > > > > it correct? > > > > > > > > > > > > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > > > > > but i'm using cmp 1.1 > > > > > 'cause when i tried to move to cmp 2.0 > > > > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > > > > > can it be that JBOSS 3.2.2 doesn't support finder > method in CMP with > two > > > > > parameters?? > > > > > > > > > > - Original Message - > > > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Sunday, December 14, 2003 3:39 PM > > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > > > > Looks like you are using ejb1.1 dtd. If you are > using CMP2, try: > > > > > > Enterprise > > > > > > JavaBeans 2.0//EN" > "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > > > > > > > > > Hope that helps, > > > > > > Gary. > > > > > > > > > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > > > > > Hi! > > > > > > > my application is deployed w/o any errors. > > > > > > >my dtd is : > > > > > > > > > > > > > > Inc.//DTD > > > Enterprise > > > > > > > JavaBeans 1.1//EN" > > > > > > > > > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > > > > > i don't know what is wrong! can it be that JBOSS doesn't > support > > > that > > > > > kind > > > > > > > of EJB-QL methods? > > > > > > > > > > > > > > 10x ahead. > > > > > > > > > > > > > > - Original Message - > > > > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > > > > > To: <[EMAIL PROTECTED]> > > > > > > > Sent: Friday, December 12, 2003 12:13 PM > > > > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > > > > > > > > > > First of all, get your application deployed w/o errors. > Perhaps, > > > the > > > > > DDs > > > > > > > > do not ma
Re: [JBoss-user] problem with EJB-QL
does anybody knows if it can be that JBOSS 3.2.2 doesn't support finder method with two parameters in EJB-QL? like that: findByCompanycode java.lang.String java.lang.String 10x ahead, netanel - Original Message - From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 6:58 PM Subject: Re: [JBoss-user] problem with EJB-QL > I think the //log/server.log file should default to > DEBUG log level and should have the SQL queries in it. If not, you can > edit the //conf/log4j.xml file and set either the > CONSOLE or FILE appenders to DEBUG mode. I think you have to restart > JBoss to see the effect. > > > On Sun, 2003-12-14 at 10:33, netanel weinberg wrote: > > How can i see the sql jboss is using to see what is generated? > > > > - Original Message - > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, December 14, 2003 4:35 PM > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > I misread your first message and thought you had switched to CMP2. > > > Sorry about that. > > > > > > Have you looked at the SQL JBoss is using to see what is generated? Is > > > it correct? > > > > > > > > > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > > > > but i'm using cmp 1.1 > > > > 'cause when i tried to move to cmp 2.0 > > > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > > > > can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two > > > > parameters?? > > > > > > > > - Original Message - > > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Sunday, December 14, 2003 3:39 PM > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > Looks like you are using ejb1.1 dtd. If you are using CMP2, try: > > > > > > > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > > > > > > > Hope that helps, > > > > > Gary. > > > > > > > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > > > > Hi! > > > > > > my application is deployed w/o any errors. > > > > > > my dtd is : > > > > > > > > > > > > > Enterprise > > > > > > JavaBeans 1.1//EN" > > > > > > > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > > > > i don't know what is wrong! can it be that JBOSS doesn't support > > that > > > > kind > > > > > > of EJB-QL methods? > > > > > > > > > > > > 10x ahead. > > > > > > > > > > > > - Original Message - > > > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > > > > To: <[EMAIL PROTECTED]> > > > > > > Sent: Friday, December 12, 2003 12:13 PM > > > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > > > > > > > First of all, get your application deployed w/o errors. Perhaps, > > the > > > > DDs > > > > > > > do not match their DTDs. What are the stacktraces? > > > > > > > > > > > > > > netanel weinberg wrote: > > > > > > > > > > > > > > > Hello! > > > > > > > > > > > > > > > > i have a web application i built using EJB and i'm trying to > > make > > > > an > > > > > > ejb-ql > > > > > > > > according to two parameters: > > > > > > > > > > > > > > > > > > > > > > > > findByCompanycode > > > > > > > > > > > > > > > > java.lang.String > > > > > > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > >
Re: [JBoss-user] problem with EJB-QL
I think the //log/server.log file should default to DEBUG log level and should have the SQL queries in it. If not, you can edit the //conf/log4j.xml file and set either the CONSOLE or FILE appenders to DEBUG mode. I think you have to restart JBoss to see the effect. On Sun, 2003-12-14 at 10:33, netanel weinberg wrote: > How can i see the sql jboss is using to see what is generated? > > - Original Message - > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, December 14, 2003 4:35 PM > Subject: Re: [JBoss-user] problem with EJB-QL > > > > I misread your first message and thought you had switched to CMP2. > > Sorry about that. > > > > Have you looked at the SQL JBoss is using to see what is generated? Is > > it correct? > > > > > > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > > > but i'm using cmp 1.1 > > > 'cause when i tried to move to cmp 2.0 > > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > > > can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two > > > parameters?? > > > > > > - Original Message ----- > > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, December 14, 2003 3:39 PM > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > Looks like you are using ejb1.1 dtd. If you are using CMP2, try: > > > > > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > > > > > Hope that helps, > > > > Gary. > > > > > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > > > Hi! > > > > > my application is deployed w/o any errors. > > > > >my dtd is : > > > > > > > > > > Enterprise > > > > > JavaBeans 1.1//EN" > > > > > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > > > i don't know what is wrong! can it be that JBOSS doesn't support > that > > > kind > > > > > of EJB-QL methods? > > > > > > > > > > 10x ahead. > > > > > > > > > > - Original Message - > > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, December 12, 2003 12:13 PM > > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > > > > First of all, get your application deployed w/o errors. Perhaps, > the > > > DDs > > > > > > do not match their DTDs. What are the stacktraces? > > > > > > > > > > > > netanel weinberg wrote: > > > > > > > > > > > > > Hello! > > > > > > > > > > > > > > i have a web application i built using EJB and i'm trying to > make > > > an > > > > > ejb-ql > > > > > > > according to two parameters: > > > > > > > > > > > > > > > > > > > > > findByCompanycode > > > > > > > > > > > > > > java.lang.String > > > > > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the > > > > > collection > > > > > > > accoding to the first parameter only! > > > > > > > what is wrong? is it a problem with the implemention in JBOSS? > > > > > > > > > > > > > > And Something else i'm been trying to move to CMP 2.0 and > changed > > > all my > > > > > > > classes that been needed to abstract and changed my ejb-jar.xml > to > > > use > > > > > the > > > > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on > deploy > > >
Re: [JBoss-user] problem with EJB-QL
How can i see the sql jboss is using to see what is generated? - Original Message - From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 4:35 PM Subject: Re: [JBoss-user] problem with EJB-QL > I misread your first message and thought you had switched to CMP2. > Sorry about that. > > Have you looked at the SQL JBoss is using to see what is generated? Is > it correct? > > > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > > but i'm using cmp 1.1 > > 'cause when i tried to move to cmp 2.0 > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > > can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two > > parameters?? > > > > - Original Message - > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, December 14, 2003 3:39 PM > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > Looks like you are using ejb1.1 dtd. If you are using CMP2, try: > > > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > > > Hope that helps, > > > Gary. > > > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > > Hi! > > > > my application is deployed w/o any errors. > > > >my dtd is : > > > > > > > > > > > JavaBeans 1.1//EN" > > > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > > i don't know what is wrong! can it be that JBOSS doesn't support that > > kind > > > > of EJB-QL methods? > > > > > > > > 10x ahead. > > > > > > > > - Original Message - > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Friday, December 12, 2003 12:13 PM > > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > > > > First of all, get your application deployed w/o errors. Perhaps, the > > DDs > > > > > do not match their DTDs. What are the stacktraces? > > > > > > > > > > netanel weinberg wrote: > > > > > > > > > > > Hello! > > > > > > > > > > > > i have a web application i built using EJB and i'm trying to make > > an > > > > ejb-ql > > > > > > according to two parameters: > > > > > > > > > > > > > > > > > > findByCompanycode > > > > > > > > > > > > java.lang.String > > > > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the > > > > collection > > > > > > accoding to the first parameter only! > > > > > > what is wrong? is it a problem with the implemention in JBOSS? > > > > > > > > > > > > And Something else i'm been trying to move to CMP 2.0 and changed > > all my > > > > > > classes that been needed to abstract and changed my ejb-jar.xml to > > use > > > > the > > > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy > > > > > > something about the JDBC factory and i don't know what is it > > problem! > > > > it's > > > > > > the same problem i got when i tried to use lomboz to generate an ejb > > > > for > > > > > > testing. > > > > > > > > > > > > 10x ahead, > > > > > > netanel. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- > > > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > > > IBM's > > > > > > Free Linux Tutorials. Learn everythi
Re: [JBoss-user] problem with EJB-QL
I misread your first message and thought you had switched to CMP2. Sorry about that. Have you looked at the SQL JBoss is using to see what is generated? Is it correct? On Sun, 2003-12-14 at 09:14, netanel weinberg wrote: > but i'm using cmp 1.1 > 'cause when i tried to move to cmp 2.0 > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... > can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two > parameters?? > > - Original Message - > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, December 14, 2003 3:39 PM > Subject: Re: [JBoss-user] problem with EJB-QL > > > > Looks like you are using ejb1.1 dtd. If you are using CMP2, try: > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > > > Hope that helps, > > Gary. > > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > > Hi! > > > my application is deployed w/o any errors. > > >my dtd is : > > > > > > > > JavaBeans 1.1//EN" > > > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > > i don't know what is wrong! can it be that JBOSS doesn't support that > kind > > > of EJB-QL methods? > > > > > > 10x ahead. > > > > > > - Original Message - > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, December 12, 2003 12:13 PM > > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > > > > First of all, get your application deployed w/o errors. Perhaps, the > DDs > > > > do not match their DTDs. What are the stacktraces? > > > > > > > > netanel weinberg wrote: > > > > > > > > > Hello! > > > > > > > > > > i have a web application i built using EJB and i'm trying to make > an > > > ejb-ql > > > > > according to two parameters: > > > > > > > > > > > > > > > findByCompanycode > > > > > > > > > > java.lang.String > > > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the > > > collection > > > > > accoding to the first parameter only! > > > > > what is wrong? is it a problem with the implemention in JBOSS? > > > > > > > > > > And Something else i'm been trying to move to CMP 2.0 and changed > all my > > > > > classes that been needed to abstract and changed my ejb-jar.xml to > use > > > the > > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy > > > > > something about the JDBC factory and i don't know what is it > problem! > > > it's > > > > > the same problem i got when i tried to use lomboz to generate an ejb > > > for > > > > > testing. > > > > > > > > > > 10x ahead, > > > > > netanel. > > > > > > > > > > > > > > > > > > > > > > > > > --- > > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > > IBM's > > > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > > admin. > > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > > > ___ > > > > > JBoss-user mailing list > > > > > [EMAIL PROTECTED] > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > > > > > > > > > > > > --- > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > > > &g
Re: [JBoss-user] problem with EJB-QL
but i'm using cmp 1.1 'cause when i tried to move to cmp 2.0 JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc... can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two parameters?? - Original Message - From: "Gary S. Cuozzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 3:39 PM Subject: Re: [JBoss-user] problem with EJB-QL > Looks like you are using ejb1.1 dtd. If you are using CMP2, try: > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";> > > Hope that helps, > Gary. > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > > Hi! > > my application is deployed w/o any errors. > >my dtd is : > > > > > JavaBeans 1.1//EN" > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > > i don't know what is wrong! can it be that JBOSS doesn't support that kind > > of EJB-QL methods? > > > > 10x ahead. > > > > ----- Original Message - > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, December 12, 2003 12:13 PM > > Subject: Re: [JBoss-user] problem with EJB-QL > > > > > > > First of all, get your application deployed w/o errors. Perhaps, the DDs > > > do not match their DTDs. What are the stacktraces? > > > > > > netanel weinberg wrote: > > > > > > > Hello! > > > > > > > > i have a web application i built using EJB and i'm trying to make an > > ejb-ql > > > > according to two parameters: > > > > > > > > > > > > findByCompanycode > > > > > > > > java.lang.String > > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the > > collection > > > > accoding to the first parameter only! > > > > what is wrong? is it a problem with the implemention in JBOSS? > > > > > > > > And Something else i'm been trying to move to CMP 2.0 and changed all my > > > > classes that been needed to abstract and changed my ejb-jar.xml to use > > the > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy > > > > something about the JDBC factory and i don't know what is it problem! > > it's > > > > the same problem i got when i tried to use lomboz to generate an ejb > > for > > > > testing. > > > > > > > > 10x ahead, > > > > netanel. > > > > > > > > > > > > > > > > > > > > --- > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > IBM's > > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > admin. > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > > ___ > > > > JBoss-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > > > > > > --- > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > --- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc
Re: [JBoss-user] problem with EJB-QL
Looks like you are using ejb1.1 dtd. If you are using CMP2, try: http://java.sun.com/dtd/ejb-jar_2_0.dtd";> Hope that helps, Gary. On Sun, 2003-12-14 at 03:24, netanel weinberg wrote: > Hi! > my application is deployed w/o any errors. >my dtd is : > > JavaBeans 1.1//EN" > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> > i don't know what is wrong! can it be that JBOSS doesn't support that kind > of EJB-QL methods? > > 10x ahead. > > - Original Message - > From: "Alexey Loubyansky" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, December 12, 2003 12:13 PM > Subject: Re: [JBoss-user] problem with EJB-QL > > > > First of all, get your application deployed w/o errors. Perhaps, the DDs > > do not match their DTDs. What are the stacktraces? > > > > netanel weinberg wrote: > > > > > Hello! > > > > > > i have a web application i built using EJB and i'm trying to make an > ejb-ql > > > according to two parameters: > > > > > > > > > findByCompanycode > > > > > > java.lang.String > > > java.lang.String > > > > > > > > > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the > collection > > > accoding to the first parameter only! > > > what is wrong? is it a problem with the implemention in JBOSS? > > > > > > And Something else i'm been trying to move to CMP 2.0 and changed all my > > > classes that been needed to abstract and changed my ejb-jar.xml to use > the > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy > > > something about the JDBC factory and i don't know what is it problem! > it's > > > the same problem i got when i tried to use lomboz to generate an ejb > for > > > testing. > > > > > > 10x ahead, > > > netanel. > > > > > > > > > > > > > > > --- > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > > > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > --- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > --- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Gary S. Cuozzo <[EMAIL PROTECTED]> Innovation Software Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with EJB-QL
Hi! my application is deployed w/o any errors. my dtd is : http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";> i don't know what is wrong! can it be that JBOSS doesn't support that kind of EJB-QL methods? 10x ahead. - Original Message - From: "Alexey Loubyansky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 12, 2003 12:13 PM Subject: Re: [JBoss-user] problem with EJB-QL > First of all, get your application deployed w/o errors. Perhaps, the DDs > do not match their DTDs. What are the stacktraces? > > netanel weinberg wrote: > > > Hello! > > > > i have a web application i built using EJB and i'm trying to make an ejb-ql > > according to two parameters: > > > > > > findByCompanycode > > > > java.lang.String > > java.lang.String > > > > > > > > > > > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the collection > > accoding to the first parameter only! > > what is wrong? is it a problem with the implemention in JBOSS? > > > > And Something else i'm been trying to move to CMP 2.0 and changed all my > > classes that been needed to abstract and changed my ejb-jar.xml to use the > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy > > something about the JDBC factory and i don't know what is it problem! it's > > the same problem i got when i tried to use lomboz to generate an ejb for > > testing. > > > > 10x ahead, > > netanel. > > > > > > > > > > --- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > --- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with EJB-QL
First of all, get your application deployed w/o errors. Perhaps, the DDs do not match their DTDs. What are the stacktraces? netanel weinberg wrote: Hello! i have a web application i built using EJB and i'm trying to make an ejb-ql according to two parameters: findByCompanycode java.lang.String java.lang.String but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the collection accoding to the first parameter only! what is wrong? is it a problem with the implemention in JBOSS? And Something else i'm been trying to move to CMP 2.0 and changed all my classes that been needed to abstract and changed my ejb-jar.xml to use the dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy something about the JDBC factory and i don't know what is it problem! it's the same problem i got when i tried to use lomboz to generate an ejb for testing. 10x ahead, netanel. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem with EJB-QL
Hello! i have a web application i built using EJB and i'm trying to make an ejb-ql according to two parameters: findByCompanycode java.lang.String java.lang.String but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the collection accoding to the first parameter only! what is wrong? is it a problem with the implemention in JBOSS? And Something else i'm been trying to move to CMP 2.0 and changed all my classes that been needed to abstract and changed my ejb-jar.xml to use the dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy something about the JDBC factory and i don't know what is it problem! it's the same problem i got when i tried to use lomboz to generate an ejb for testing. 10x ahead, netanel. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with ejb-ql
On Monday, November 25, 2002, at 07:57 PM, Tania G. Ramos wrote: 2002-11-25 22:45:13,612 ERROR [org.jboss.ejb.EjbModule] Starting failed org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "obj.docTip" at line 3, column 49. Was expecting one of: "NOT" ... "(" ... ... ... "CONCAT" ... "SUBSTRING" ... ... ... ... ... ... "LENGTH" ... "LOCATE" ... "ABS" ... "SQRT" ... "+" ... "-" ... ... ... ... ) I can't understand why it happens. What I really wanted is something more robust than this (I wanted that one of these parameters were a Class (using dependent-value-class) But with This simple example, it didin't work, imagine with a more difficult one. Does anyone know how to solve this?I'm using jboss3.0.0 Is docTip a String? My guess is it is not and EJB-QL only allows the comparison of like types. To fix it make docTip a string or change the parameter to be the same type. Of course if you want to use EJB-QL instead of JBoss-QL you have to use an EJB-QL supported type (String, date, arithmetic, ejb). -dain --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem with ejb-ql
Hi, I'm having a problem using EJB-QL. I have the following simple sentence in my ejb-jar.xml, but it doesn't deploy. findByDocB java.lang.String java.lang.String I'm having the following error: 2002-11-25 22:45:13,456 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.EjbDocBean.findByDocB] EJB-QL: SELECT OBJECT(obj) FROM EjbDocBean AS obj WHERE obj.docTip = ?1 AND obj.docNum = ?2 2002-11-25 22:45:13,596 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true 2002-11-25 22:45:13,596 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false 2002-11-25 22:45:13,596 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true 2002-11-25 22:45:13,612 ERROR [org.jboss.ejb.EjbModule] Starting failed org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "obj.docTip" at line 3, column 49. Was expecting one of: "NOT" ... "(" ... ... ... "CONCAT" ... "SUBSTRING" ... ... ... ... ... ... "LENGTH" ... "LOCATE" ... "ABS" ... "SQRT" ... "+" ... "-" ... ... ... ... ) I can't understand why it happens. What I really wanted is something more robust than this (I wanted that one of these parameters were a Class (using dependent-value-class) But with This simple example, it didin't work, imagine with a more difficult one. Does anyone know how to solve this?I'm using jboss3.0.0 Thanks, Tania --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user