sharaf navas

Greenhorn
+ Follow
since Aug 01, 2006
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sharaf navas

hi all,

I'm using Apache Geronimo 2.1v as Application Server, Even before deploying my application i bundle the dbpool using dummy values to the dpbool using commandline. Once application(EAR) is deployed i redeploy the dbpool using ant script commandline. but during the this phase geronimo stops the application (EAR) which i use to determine which is the URL, port , username, password for the dbpool values. Even log files does not gives me the reason to stop the application. here is my ant script to redeploy the application.

ANT -code


setup-dbpool-deploy-plan.xml



If any one come across the same problem , sharing your experience will be much helpful
cheers
Sharaf
12 years ago
well MS Access is our client's datasource..and we cannot force them to go for even a lighter version's of DB's like mySQL etc. now we have decided to go with jdbc odbc thruogh websphere but still its a problem in configuring the JNDI for Webspere.. any suggestions for it ?
hi
i need to Connect to Websphere 6.0.X Server to MS access datasource but not using JDBC-ODBC connection .More over i found that most of the drivers are shareware. . i'm looking for any open source drivers/ free drivers to connect. and need to help how to configure the JNDI when it comes to connecting with websphere.
thanks in advance cheers
hi any one have idea how do we define the number of DB connection when test the Struts action using Mock struts test case.where my DB connections are limited.
Thanks in Advance

cheers

Sharaf
16 years ago
hi any one please help me to solve this bcoz this part is very critical for my Application any bartender help me
17 years ago
here is my code




box.setCube(new HashSet());should be a box object wrapped as set instead of new HashSet
17 years ago
i think a made a mistake there it should b a
code:

room.setCube(<must b a Set object >
not a list object
thanks
17 years ago
hi all
i'm having some problem in wrapping to a Set

where Box class has setter n getter methods
now how do i wrapp to a Set!


thanks in advance



17 years ago
hi there
i think on shouldn't come because by inserting on i had this error.
aused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1, column 89 [select distinct g.gpName from com.tt.notification.vo.EmpGroupVO eg inner join GroupVO g on g.gpId = eg.gpId where g.gpId not in (select empg.gpId from com.tt.notification.vo.EmpGroupVO empg where emp_id = 1)]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:244)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:155)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:109)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:75)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:54)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1583)
at com.tt.notification.dao.EmpGroupDAO.LoadGroup(EmpGroupDAO.java:121)
... 7 more
Caused by: line 1:89: unexpected token: on
at org.hibernate.hql.antlr.HqlBaseParser.fromJoin(HqlBaseParser.java:1765)
at org.hibernate.hql.antlr.HqlBaseParser.fromClause(HqlBaseParser.java:1420)
at org.hibernate.hql.antlr.HqlBaseParser.selectFrom(HqlBaseParser.java:1130)
at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:702)
at org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:296)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:159)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:238)
Thats why didn't insert any ON there
thanks
thanks vilpesh
actually my code is
startOperation();
Query qry=session.createQuery("select distinct g.gpName from EmpGroupVO eg inner join GroupVO g g.gpId join eg.gpId where g.gpId not in (select empg.gpId from EmpGroupVO empg where emp_id = 1)");
Obj=qry.list();

and I'm getting error saying

Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: g near line 1, column 90 [select distinct g.gpName from com.tt.notification.vo.EmpGroupVO eg inner join GroupVO g g.gpId join eg.gpId where g.gpId not in (select empg.gpId from com.tt.notification.vo.EmpGroupVO empg where emp_id = 1)]


Caused by: line 1:90: unexpected token: g
at org.hibernate.hql.antlr.HqlBaseParser.fromJoin(HqlBaseParser.java:1765)
at org.hibernate.hql.antlr.HqlBaseParser.fromClause(HqlBaseParser.java:1420)
at org.hibernate.hql.antlr.HqlBaseParser.selectFrom(HqlBaseParser.java:1130)
at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:702)
at org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:296)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:159)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:238)
... 16 more

i appritiate any one kindly help me regarding this.
thanks in advance
thanks
the mySQL whic have given is da correct one. but i need that to translated in to HQL. since the mySQL code gives me the correct result for me so please help me in it.
thanks in advance
thanks scott
but i try to come up with SQL query to this scenario. but still having problem in transfering SQL to HQL any my SQL is here


thanks in advance
Hi all i'm having problem in fetching data. where i've designed 3 tables
1)employee
-----------
empId,empName , empDOB

2)groups
-----------
gpId,gpName,gpDesc

3)emp_group
------------
id,empId,gpId

i'm having many-to-many relation here. n I'm assigning employee to some groups. So how do i write a HQL to get a employee who is not already in a group.

thanks in advance
thanks Bear Bibeault

okay can you list me the steps hown do i configure the IDEA to use JSTL. since i've placed my neccessary JAR's in my lib dirctory under tomcat.
help needed

17 years ago
JSP
hi sanjay
visit
http://www.java2s.com/
i find it very useful it includes for EJB, hibernate , struts, even MySQL codes too

17 years ago
JSP