[jboss-user] [JBoss Seam] - Re: [SEAM 2.0 BETA 1] Embedded ejb container fails at test s

2007-08-07 Thread littlewing1112
I also tried with the integration tests from the booking example. 
I have the same error.

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

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


[jboss-user] [JBoss Seam] - [SEAM 2.0 BETA 1] Embedded ejb container fails at test start

2007-08-06 Thread littlewing1112
Hello,

Foremost, my environment :
J2SE 1.5.0_11
  | JBOSS 4.2.0.GA
  | SEAM 2.0.BETA1
  | 
  | I created with the typical configuration of seam gen an ear project. After 
created an action , I tried to create a unit test and run it in the embedded 
container.
  | Unfortunately I always have this error :
  | 
  | [Parser] Running:
  |   |   D:\java\src\testseam2\temp-testng-customsuite.xml
  |   | 
  |   | WARN  06-08 17:11:49,951 
[org.jboss.mx.loading.UnifiedLoaderRepository3.addClassLoader():675] Tried to 
add non-URLClassLoader.  Ignored
  |   | INFO  06-08 17:11:52,925 
[com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():126] 
JBossTS Transaction Service (JTA version) - JBoss Inc.
  |   | INFO  06-08 17:11:52,935 
[com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():128] 
Setting up property manager MBean and JMX layer
  |   | WARN  06-08 17:11:53,076 
[com.arjuna.ats.arjuna.coordinator.TxControl.():266] 
[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. 
Using -3f5785b8:f4a:46b73a38:0
  |   | INFO  06-08 17:11:53,226 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager.addService():110] 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service 
com.arjuna.ats.arjuna.recovery.ActionStatusService on port 3914
  |   | INFO  06-08 17:11:53,436 [?.?():?] TransactionStatusManagerItem - host: 
192.168.122.72 port: 3914
  |   | INFO  06-08 17:11:53,506 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager.start():161] 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - 
TransactionStatusManager started on port 3914 with service 
com.arjuna.ats.arjuna.recovery.ActionStatusService
  |   | INFO  06-08 17:11:53,526 [?.?():?] Registering mbean for module 'arjuna'
  |   | INFO  06-08 17:11:53,576 [?.?():?] Initialising JMX agent 
com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
  |   | INFO  06-08 17:11:53,636 
[com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():163] 
Starting recovery manager
  |   | INFO  06-08 17:11:53,666 [?.?():?] 
  |   |   --- Start RecoveryActivators 
  |   | INFO  06-08 17:11:53,727 
[com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.():142] 
[com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready 
on port 3 915
  |   | INFO  06-08 17:11:53,727 
[com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():168] 
Recovery manager started
  |   | INFO  06-08 17:11:53,727 
[com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():191] 
Binding TransactionManager JNDI Reference
  |   | INFO  06-08 17:11:58,504 [org.jboss.jms.server.ServerPeer.():187] 
ServerPeer[0] creating server peer with ID 0
  |   | FAILED CONFIGURATION: @BeforeClass init
  |   | org.jboss.deployers.spi.IncompleteDeploymentException: Summary of 
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  |   | 
  |   | *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required 
State:Actual State}
  |   | 
  |   | jboss.jca:name=DefaultDS,service=DataSourceBinding
  |   |  -> jboss.jca:name=DefaultDS,service=LocalTxCM{Start:Configured}
  |   |  -> jboss.jca:name=DefaultDS,service=LocalTxCM{Create:Configured}
  |   | 
  |   | jboss.jca:name=DefaultDS,service=LocalTxCM
  |   |  -> 
jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Start:Configured}
  |   |  -> 
jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Create:Configured}
  |   | 
  |   | jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
  |   |  -> 
jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:** NOT FOUND 
**}
  |   |  -> 
jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Start:** NOT FOUND 
**}
  |   | 
  |   | jboss.jca:name=DefaultDS,service=ManagedConnectionPool
  |   |  -> 
jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Start:Configured}
  |   |  -> 
jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured}
  |   | 
  |   | jboss.jca:name=JmsXA,service=DataSourceBinding
  |   |  -> jboss.jca:name=JmsXA,service=TxCM{Create:Configured}
  |   |  -> jboss.jca:name=JmsXA,service=TxCM{Start:Configured}
  |   | 
  |   | jboss.jca:name=JmsXA,service=ManagedConnectionFactory
  |   |  -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Create:** NOT 
FOUND **}
  |   |  -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Start:** NOT 
FOUND **}
  |   |  -> jboss.messaging:service=ServerPeer{Create:Configured}
  |   |  -> jboss.messaging:service=ServerPeer{Start:Configured}
  |   | 
  |   | jboss.jca:name=JmsXA,service=ManagedConnectionPool
  |   |  -> 
jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Start:Configured}
  |   |  -> 
jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured}
  |   | 
  |   | jboss.jca:name=JmsXA,service=TxCM
  |   |  -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Start:Configured}
  |   |  -> 
jboss.jca:name=JmsXA,service=ManagedConnectionPool{Cre

[jboss-user] [JBoss Seam] - EJB Stateful and workflow of pages

2007-03-22 Thread littlewing1112
Hello,
I would like to ask you about a conception problem. I m coding a application 
with seam and I d like to write a workflow of 7 pages (facelets) which contain 
some arguments such as table, list, calendar.This workflow 's behaviour seems 
to be like a "basket" of a web business store.

Should I write only one ejb session stateful for this workflow or use one ejb 
by page?

I m afraid to have one big class with all the arguments but I should have the 
default behaviour of a store basket.

Thanks in advance for your help and your advice

Regards,
Alexandre


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

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


[jboss-user] [JBoss Seam] - Re: In attribute requires value for component: index.facesMe

2007-02-28 Thread littlewing1112
It seems working!!
thank you


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

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


[jboss-user] [JBoss Seam] - Re: In attribute requires value for component: index.facesMe

2007-02-28 Thread littlewing1112
no 
I m going to test this now

Thanks!!

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

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


[jboss-user] [JBoss Seam] - In attribute requires value for component: index.facesMessag

2007-02-28 Thread littlewing1112
Hello,
i m trying to integrate the booking sample of SEAM 1.1.6GA with tomahawk.
I followed this topic on the myfaces wiki in order to integrate tomahawk with 
facelets.
I changed the JSF dataTables to the tomahawk datatables.
Unfortunately, I always have the following error when the interceptor is called 

Exception during request processing: In attribute requires value for component: 
hotelSearch.facesMessages
  | 
  | org.jboss.seam.Component.getInstanceToInject(Component.java:1920)
  | org.jboss.seam.Component.injectFields(Component.java:1386)
  | org.jboss.seam.Component.inject(Component.java:1156)
  | 
org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:76)
  | 
org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
  | sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:585)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
  | sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:585)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
  | sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

My code 

@In
  | private FacesMessages facesMessages ;

I also tried to inject mannualy  the facesMessages instance by the following 
code:
private FacesMessages facesMessages = FacesMessages.instance();
 and it works fine.

Then I tried to call this component in other EJBS and I still have the same 
errors.

How can I solve this problem ?

Thanks for your help

Alexandre

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

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


[jboss-user] [JBoss Seam] - Re: The persistence manager doesnt find EJB3 entities when t

2007-01-18 Thread littlewing1112
I dont know how to specify the right entitymanager ?

The only workaround I have found is to put all .class file in the same 
directory and not in target/test-classes and target/classes

Should I put the ejb-container confi files in both ?

Thanks in advance


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

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


[jboss-user] [JBoss Seam] - The persistence manager doesnt find EJB3 entities when testc

2007-01-17 Thread littlewing1112
Hello,
I http://jira.jboss.org/jira/browse/JBSEAM-570 but gavin said this is not a bug 
so, that s my problem:

The samples bundled (expecially BookingUnitTest) with the distribution work but 
not in my environment:
1- I splitted the sample in order to "be mavenized" (I added the dependencies 
bundled in the release of seam in my repository (eg. jboss-third-party)
2- I changed the database to postgreSQL
3- add one more table
4- move queries to namedqueries

Maven separates classes build directory and test build directory.
I have this directory layout:

target/classes --> EJB builds
target/test-classes
  /ejb-container
  testcases classes built
 /micro-container
 /resources files

When I start a test which seems like BookingTest (in sample booking) everything 
works fine, but when I start BookingUnitTest, the persistencemanager doesnt 
find the entity

I have this error:

  | javax.persistence.PersistenceException: 
org.hibernate.hql.ast.QuerySyntaxException: Hotel is not map
  | ped [from Hotel]
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.
  | java:567)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
  | at 
org.jboss.seam.example.booking.test.BookingUnitTest.testHotelBooking(BookingUnitTest.java:61)
  | Caused by: org.hibernate.hql.ast.QuerySyntaxException: Hotel is not mapped 
[from Hotel]
  | at 
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:
  | 158)
  | at 
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
  | at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
  | at 
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:267)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3049)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2938)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
  | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
  | 


You http://jira.jboss.org/jira/secure/attachment/12313130/booking.tgz

Thanks for your help!!

Regards,
Alexandre Touret



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

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


[jboss-user] [JBoss Seam] - Re: [booking]: Why the changePasswordAction is statefull and

2007-01-16 Thread littlewing1112
I forgot...

Thansk in advance for your help

Alexandre

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

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


[jboss-user] [JBoss Seam] - [booking]: Why the changePasswordAction is statefull and on

2007-01-16 Thread littlewing1112
Hello,
im a newbie on jboss seam.
I saw in the ChangePasswordAction declaration that this EJB is statefull and 
initialized on EVENT scope as folllowing:
@Stateful
  | @Scope(EVENT)
  | @Name("changePassword")
  | @LoggedIn
  | public class ChangePasswordAction implements ChangePassword
  | 

Firstly, why this action is statefull? In my opinion, this should be stateless. 
Furthermore, she s defined under the event scope, I dont understand why a 
statefull bean should be in event scope. 
Could someone give me an explanation of this? It would be nice ...



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

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


[jboss-user] [JBoss Seam] - Re: Seam & Maven2

2007-01-15 Thread littlewing1112
Hello,
just for information in this thread. I tried some weeks ago to integrate maven2 
and seam. I have also created 3 artifacts (ear,ejb,war). The only problem I 
have seen is running the testcases.
I described in http://jira.jboss.org/jira/browse/JBSEAM-570 the bug.


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

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


[jboss-user] [Installation, Configuration & Deployment] - JBOSS Vs JAVA 6.0

2006-12-20 Thread littlewing1112
Hello,
is JBOSS fully compatible ( or better, certified against J2SE 6 Mustang ?

Thanks 
Regards,
Alexandre

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

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


[jboss-user] [JBoss Seam] - Re: Seam+Icefaces: debug.seam throws an exception

2006-12-07 Thread littlewing1112
Did the icesoft guys provided any response ?

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

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


[jboss-user] [JBoss Seam] - Seam+Icefaces: debug.seam throws an exception

2006-12-07 Thread littlewing1112
Hello,
I juste have deployed the sample seam-icefaces and I have the following error 
when I d like to go to /debug.seam

pe Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException

org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:61)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

javax.servlet.ServletException

com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:437)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.NullPointerException

com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument(DOMResponseWriter.java:394)

com.icesoft.faces.context.DOMResponseWriter.writeDOM(DOMResponseWriter.java:312)

com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)

com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:394)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.20 logs.

I tested this feature against icefaces 1.5. Does it work on 1.5.1 ?
Thanks in advance

Regards,
Alexandre

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

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


[jboss-user] [JBoss Seam] - Re: [Booking Demo - Unit Test] The persistence manager doesn

2006-12-06 Thread littlewing1112
Well

the only workaround I have founded is to put all the build files in ONE 
director (eg. target/classes) and not target/classes for EJB and 
target/test-classes for test configurations (embedded-ejb,.class, 
configurations)

finally I have 2 questions:
Why BookingTest works and notBookingUnitTest ?
Is there a way to say to the PersistenceManager to look at in another directory 
(eg. target/classes)?

Thanks in advance

Regards,
Alexandre

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

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


[jboss-user] [JBoss Seam] - Re: [Booking Demo - Unit Test] The persistence manager doesn

2006-12-06 Thread littlewing1112
I believe find the problem.
I have splitted both the EJB and the testcases in the directories src/main/java 
and src/test/java.

When I put all the files in the same root directory(eg. src/test/java) 
everything works fine

How may I workaround ?

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

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


[jboss-user] [JBoss Seam] - [Booking Demo - Unit Test] The persistence manager doesnt fi

2006-12-06 Thread littlewing1112
Hello,
I m currently testing Seam. The samples bundled (expecially BookingUnitTest) 
with the distribution work but notin my environment:
1- I splitted the sample in order to "be mavenized"
2- I changed the database to postgreSQL
3- add one more table
4- move queries to namedqueries

All the testcases work fine except the BookingUnitTest . This is really strange 
because, BookingTest runs fine.

It seems the entitymanager doesnt find entities. I always have this kind of 
error:

javax.persistence.PersistenceException: 
org.hibernate.hql.ast.QuerySyntaxException: Hotel is not mapped [from Hotel]
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:567)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
  | at 
org.jboss.seam.example.booking.test.BookingUnitTest.testHotelBooking(BookingUnitTest.java:61)
  | Caused by: org.hibernate.hql.ast.QuerySyntaxException: Hotel is not mapped 
[from Hotel]
  | at 
org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:158)
  | at 
org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:87)
  | at 
org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
  | at 
org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:267)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3049)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2938)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544)
  | at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)

But a couple of lines ahead I have this line :

INFO] AnnotationBinder - Binding entity from annotated class: 
org.jboss.seam.example.booking.Hotel

Does boookingUnitTest call an another mechanism than BookinTest ??

Thanks in advance for your help!

Regards,
Alexandre


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

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