Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Threads and entityManager in Jboss Seam

- Threads and entityManager in Jboss Seam

2007-07-18       - By Phantom

 Back
Good day,

Please help me in my situation:

I have a startup servlet, which starts server-socket to listen for incoming row
socket connections. Than that connections interations hadnled by custom code
wich use entityManager registered in  Seam.
When I run that application on my local host all works perfect. But after
deploing this application on production server after connection such exception
occur:


 | 2007-07-18 13:20:13,597 ERROR [STDERR] javax.ejb.EJBException Source code of javax.ejb.EJBException: java.lang
.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException Source code of org.hibernate.hql.ast.QuerySyntaxException: Driver is
not mapped [select object(d) from Driver d where d.username = :username and d
.password = :password]
 | 2007-07-18 13:20:13,597 ERROR [STDERR]  at org.jboss.ejb3.tx.Ejb3TxPolicy
.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
 | 2007-07-18 13:20:13,597 ERROR [STDERR]  at org.jboss.aspects.tx.TxPolicy
.invokeInOurTx(TxPolicy.java:83)
 | 2007-07-18 13:20:13,597 ERROR [STDERR]  at org.jboss.aspects.tx
.TxInterceptor$Required.invoke(TxInterceptor.java:191)
 | 2007-07-18 13:20:13,597 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aspects.tx
.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3.stateless
.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aspects.security
.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3.security
.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3
.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3.asynchronous
.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3.stateless
.StatelessContainer.localInvoke(StatelessContainer.java:211)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at org.jboss.ejb3.stateless
.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at $Proxy156.authentificateDriver
(Unknown Source)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at ru.mobiletaxi.managesite.ejb.io
.handlers.AuthorizeHandler.handle(AuthorizeHandler.java:32)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at ru.mobiletaxi.managesite.ejb.io
.ClientThread.handleMessage(ClientThread.java:107)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at ru.mobiletaxi.managesite.ejb.io
.ClientThread.access$300(ClientThread.java:25)
 | 2007-07-18 13:20:13,598 ERROR [STDERR]  at ru.mobiletaxi.managesite.ejb.io
.ClientThread$1.run(ClientThread.java:67)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at java.lang.Thread Source code of java.lang.Thread(Thread.java
:595)
 | 2007-07-18 13:20:13,599 ERROR [STDERR] Caused by: java.lang
.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException Source code of org.hibernate.hql.ast.QuerySyntaxException: Driver is
not mapped [select object(d) from Driver d where d.username = :username and d
.password = :password]
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at org.hibernate.ejb
.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl
.java:634)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at org.hibernate.ejb
.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at org.jboss.seam.persistence
.EntityManagerProxy.createQuery(EntityManagerProxy.java:72)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at ru.mobiletaxi.managesite.ejb.io
.IOInterfaceBean.authentificateDriver(IOInterfaceBean.java:36)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at sun.reflect
.NativeMethodAccessorImpl.invoke0(Native Method)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at sun.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at sun.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at java.lang.reflect.Method Source code of java.lang.reflect.Method
(Method.java:585)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:112)
 | 2007-07-18 13:20:13,599 ERROR [STDERR]  at org.jboss.ejb3.interceptor
.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.interceptors
.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.interceptors
.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.RootInterceptor.invoke(RootInterceptor.java:113)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.seam.intercept
.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at sun.reflect
.NativeMethodAccessorImpl.invoke0(Native Method)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at sun.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at sun.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at java.lang.reflect.Method Source code of java.lang.reflect.Method
(Method.java:585)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.ejb3.interceptor
.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.ejb3.interceptor
.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.ejb3.entity
.TransactionScopedEntityManagerInterceptor.invoke
(TransactionScopedEntityManagerInterceptor.java:54)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.ejb3
.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
 | 2007-07-18 13:20:13,600 ERROR [STDERR]  at org.jboss.aop.joinpoint
.MethodInvocation.invokeNext(MethodInvocation.java:101)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.jboss.aspects.tx.TxPolicy
.invokeInOurTx(TxPolicy.java:79)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  ... 21 more
 | 2007-07-18 13:20:13,601 ERROR [STDERR] Caused by: org.hibernate.hql.ast
.QuerySyntaxException: Driver is not mapped [select object(d) from Driver d
where d.username = :username and d.password = :password]
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.hibernate.hql.ast.util
.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.hibernate.hql.ast.tree
.FromElementFactory.addFromElement(FromElementFactory.java:87)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.hibernate.hql.ast.tree
.FromClause.addFromElement(FromClause.java:70)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.hibernate.hql.ast
.HqlSqlWalker.createFromElement(HqlSqlWalker.java:265)
 | 2007-07-18 13:20:13,601 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.antlr
.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.ast
.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.ast
.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.hql.ast
.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.engine.query
.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.engine.query
.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.engine.query
.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.impl
.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
 | 2007-07-18 13:20:13,602 ERROR [STDERR]  at org.hibernate.impl
.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
 | 2007-07-18 13:20:13,603 ERROR [STDERR]  at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl
.createQuery(SessionImpl.java:1623)
 | 2007-07-18 13:20:13,603 ERROR [STDERR]  at org.hibernate.ejb
.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)
 | 2007-07-18 13:20:13,603 ERROR [STDERR]  ... 49 more
 |
 |

I think that something wrong with virtualhosts configuration on our production
server. Another environments (JBOSS server version, Seam version etc.) are the
same.

Or may be you con roccomend another way to start services (which can create
threads) within Jboss Seam?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4065308#4065308

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4065308
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.