no DataSourceFactory configured for the connection

2009-08-24 Thread Shaista Shekh
I have migrated turbine 2.3.3 with ant.
While I start the webserver/applicationserver everything works fine
 i am trying to logged in it is showing below given error in log file.

"There was no DataSourceFactory configured for the connection
DATABASE"
Please guide me in this regard
Thanking you


Re: no DataSourceFactory configured for the connection

2009-08-25 Thread Shaista Shekh
Sir
Very very thanks Greg Monroe to reply
I did all changes according to the given doc on below link:
http://db.apache.org/torque/releases/torque-3.3/runtime/reference/initialisation-configuration.html
Still i am facing that torque is not initialized.

torque.properties are as below

torque.database.default=brihaspati
torque.database.brihaspati.adapter=mysql

torque.dsfactory.brihaspati.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.brihaspati.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.brihaspati.connection.url =
jdbc:mysql://localhost:3306/brihaspati
torque.dsfactory.brihaspati.connection.user = etrg
torque.dsfactory.brihaspati.connection.password = brihaspatigroup
torque.dsfactory.brihaspati.pool.maxActive=10
torque.dsfactory.brihaspati.pool.testOnBorrow=true
torque.dsfactory.brihaspati.pool.validationQuery=SELECT 1


On 8/25/09, Greg Monroe  wrote:
>
> By migrated I assume you mean from an older version of Torque.
> Most likely it was a version prior to the properties file revamp
> that took place in Version 3.1 (I think).
>
> If this is true, you will need to modify your Torque runtime
> configuration properties file to the new format. See:
>
>
> http://db.apache.org/torque/releases/torque-3.3/runtime/reference/initialisation-configuration.html
>
> If this isn't the case, please supply more details.
>
>
> > -Original Message-
> > From: Shaista Shekh [mailto:shaista.sh...@gmail.com]
> > Sent: Tuesday, August 25, 2009 1:25 AM
> > To: torque-user@db.apache.org
> > Subject: no DataSourceFactory configured for the connection
> >
> > I have migrated turbine 2.3.3 with ant.
> > While I start the webserver/applicationserver everything works fine
> >  i am trying to logged in it is showing below given error in log file.
> >
> > "There was no DataSourceFactory configured for the connection
> > DATABASE"
> > Please guide me in this regard
> > Thanking you
>
> DukeCE Privacy Statement:
> Please be advised that this e-mail and any files transmitted with
> it are confidential communication or may otherwise be privileged or
> confidential and are intended solely for the individual or entity
> to whom they are addressed. If you are not the intended recipient
> you may not rely on the contents of this email or any attachments,
> and we ask that you please not read, copy or retransmit this
> communication, but reply to the sender and destroy the email, its
> contents, and all copies thereof immediately. Any unauthorized
> dissemination, distribution or copying of this communication is
> strictly prohibited.
>
> -
> To unsubscribe, e-mail: torque-user-unsubscr...@db.apache.org
> For additional commands, e-mail: torque-user-h...@db.apache.org
>
>


Fwd: no DataSourceFactory configured for the connection

2009-08-25 Thread Shaista Shekh
Sir
Very very thanks Greg Monroe to reply
I did all changes according to the given doc on below link:
http://db.apache.org/torque/releases/torque-3.3/runtime/reference/initialisation-configuration.html
Still i am facing that torque is not initialized.

torque.properties are as below

torque.database.default=brihaspati
torque.database.brihaspati.adapter=mysql

torque.dsfactory.brihaspati.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.brihaspati.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.brihaspati.connection.url =
jdbc:mysql://localhost:3306/brihaspati
torque.dsfactory.brihaspati.connection.user = etrg
torque.dsfactory.brihaspati.connection.password = brihaspatigroup
torque.dsfactory.brihaspati.pool.maxActive=10
torque.dsfactory.brihaspati.pool.testOnBorrow=true
torque.dsfactory.brihaspati.pool.validationQuery=SELECT 1
Second thing is that while i am using and trying to write
org.apache.torque.util.Criteria  obj to debug like below,
Criteria crit = new Criteria();
It is showing :
crit.=Criteria::
Current Query SQL (may not be complete or applicable):


On 8/25/09, Greg Monroe  wrote:
>
> By migrated I assume you mean from an older version of Torque.
> Most likely it was a version prior to the properties file revamp
> that took place in Version 3.1 (I think).
>
> If this is true, you will need to modify your Torque runtime
> configuration properties file to the new format. See:
>
>
> http://db.apache.org/torque/releases/torque-3.3/runtime/reference/initialisation-configuration.html
>
> If this isn't the case, please supply more details.
>
>
> > -Original Message-
> > From: Shaista Shekh [mailto:shaista.sh...@gmail.com]
> > Sent: Tuesday, August 25, 2009 1:25 AM
> > To: torque-user@db.apache.org
> > Subject: no DataSourceFactory configured for the connection
> >
> > I have migrated turbine 2.3.3 with ant.
> > While I start the webserver/applicationserver everything works fine
> >  i am trying to logged in it is showing below given error in log file.
> >
> > "There was no DataSourceFactory configured for the connection
> > DATABASE"
> > Please guide me in this regard
> > Thanking you
>
> DukeCE Privacy Statement:
> Please be advised that this e-mail and any files transmitted with
> it are confidential communication or may otherwise be privileged or
> confidential and are intended solely for the individual or entity
> to whom they are addressed. If you are not the intended recipient
> you may not rely on the contents of this email or any attachments,
> and we ask that you please not read, copy or retransmit this
> communication, but reply to the sender and destroy the email, its
> contents, and all copies thereof immediately. Any unauthorized
> dissemination, distribution or copying of this communication is
> strictly prohibited.
>
> -
> To unsubscribe, e-mail: torque-user-unsubscr...@db.apache.org
> For additional commands, e-mail: torque-user-h...@db.apache.org
>
>


Re: Error Installing Maven 1

2009-11-05 Thread Shaista Shekh
you wrote -DartifactId=mavin-torque-plugin i think it should be
DartifactId=maven-torque-plugin
C:\DOCUME~1\aday>maven plugin:download -DartifactId=mavin-torque-plugin
-DgroupI
d=torque -Dversion=3.3

On 11/5/09, Angela Day  wrote:
>
> I am getting this error message when trying to install.  Can you help me
> out?
> Thanks,
> Angela
>
> C:\DOCUME~1\aday>maven plugin:download -DartifactId=mavin-torque-plugin
> -DgroupI
> d=torque -Dversion=3.3
>   __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1
>
> WARNING: No pom file was found, assuming default settings!
>
> build:start:
>
> plugin:download-artifact:
> [echo] repo is 'http://repo1.maven.org/maven'
> [echo] trying to download
> http://repo1.maven.org/maven/torque/plugins/mavin-
> torque-plugin-3.3.jar
>
> ---
> >> Unable to obtain goal [plugin:download-artifact]
> >> Unable to find plug-in
>
> ---
> BUILD FAILED
>
> ---
> Total time   : 3 seconds
> Finished at  : Wednesday, November 4, 2009 4:22:17 PM CST
> Final Memory : 2M/4M
>
> ---
>
>
>
>
> Angela Day
> National Autism Association of Central Texas
>
> http://www.naacentraltexas.org
> formally FEAT Austin


Re: How to strip off selected columns from a criteria object

2010-05-06 Thread Shaista Shekh
U can use following command..
Whatever column's value  u want to get u have to mention that's column name
.

crit.addGroupByColumn(TurbineUserPeer.USER_LANG);

2010/5/6 wzhao6...@gmail.com 

> Hi there,
>
> I need to strip off all the selected columns (getSelectedColumns(), and
> getAsColumns()) from a criteria object, is there a way for me to do that?
> For examples:
> Criteria criteria = new Criteria();
>
> criteria.addJoin(PermissionPeer.PERMISSION_ID,RolePermissionPeer.PERMISSION_ID);
> criteria.addJoin(RolePermissionPeer.ROLE_ID, RolePeer.ROLE_ID);
> criteria.add(PermissionPeer.PERMISSION_ID, 1, Criteria.EQUAL)
> criteria.addSelectColumn(PermissionPeer.PERMISSION_ID);
> criteria.addAsColumn("permission", PermissionPeer.PERMISSION_ID);
> criteria.setDistinct();
>
> where, I'd like to remove the selected columns:
> PermissionPeer.PERMISSION_ID,, but
> criteria.remove(PermissionPeer.PERMISSION_ID);
> doesn't do it for me.
>
> I understand that criteria is essentially a HashTable, but only WHERE
> clause
> (through criteria.add(...) ) has a key in criteria, I can't find join and
> column
> key information from the criteria.keySet()?
>
> BTW, how do I re-construct a criteria by putting all the pieces in criteria
> together? I don't want to use criteria.clone() in this case.
> Thanks in advance!
>
> David
>