[jboss-user] [Datasource Configuration] - Re: Multiple database configuration
Hi, I didn't really solved the problem, I eventually moved to one data base. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245200#4245200 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - conversation management with ajax4jsf
Hello, i have a webbapp with seam,JSF and extensive use in ajax4jsf. i have 2 pages that i want to start conversation when i enter the page and end when i leave the page. naturally i would use the pages.xml BUT... it seam that on every ajax request there is a call to the method annotate with @Begin and this causes problems. is there away to over come this problem ? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065752#4065752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Single EntityManager
thanks, you are right my problem is with the seam conversation management. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065695#4065695 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Single EntityManager
Hello, i have a webapp build with seam,ejb3 and jsf. in the application i have several different action to manipulate the DB. not only from the webclient (browser) but from web services. my broblem is that if a web service changed some thing it doesn't reflect on the web (the DB has chaged). i have printed the id of the entetyManager (hashcode) and i'm getting a different one for each request. my entityManager is injected using seam. this is a big issue for me since i have wrong data in my web. here is my persistence.xml: | | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0" | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";> | | | java:/jdbc/wml | | | | | | | | and here is my components.xml: | | | java:/wmlEntityManagerFactory | | . | and the DAO: | | @Name("genericDao") | public abstract class GenericDaoImpl implements GenericDao { | | @In(value="wmlEntityManager") | EntityManager em; | | public T get(Serializable id) { | return em.find(getPersistentClass(), id); | } | .. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065340#4065340 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065340 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - multiple persistence
Hello, i have a webapp build with seam, ejb3 and JSF on jboss. i deploy it as ear archive that contain a war and some jar files. few jars has persistence entities (all on same DB). what i did is put persistence.xml in all jars that has entities, in all persistence i call the same factory. in the components.xml (seam) that is in the war i have declared an entityManager. the idea is to have one entity manager for all persistence entities. when i deploy to jboss i see that hibernate recognize all my entities and when i debug my DAO object (that the entityManager inject into) the em is NOT null but for some reason iget an exception that one of my entity is Unknown [javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalArgumentException: Unknown entity: com.mobimate.account.domain.Account] here is my persistence.xml: | | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0" | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";> | | | java:/jdbc/wml | | | | | | | | and here is my components.xml: | | | java:/wmlEntityManagerFactory | | . | and the DAO: | | @Name("genericDao") | public abstract class GenericDaoImpl implements GenericDao { | | @In(value="wmlEntityManager") | EntityManager em; | | public T get(Serializable id) { | return em.find(getPersistentClass(), id); | } | .. | i get the exception in the find. what am i doing wrong ? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065287#4065287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Multiple database configuration
Hello, I have developed a webapp with EJB3, JSF and seam. it run on Jboss and i use MYSQL for my database. currently i have 5 different databases with 5 datasources. my question is how can i configure a single datasource for all 5 databases ? is it even possible ? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064945#4064945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Datasource Configuration] - Multiple database configuration
Hello, I have developed a webapp with EJB3, JSF and seam. it run on Jboss and i use MYSQL for my database. currently i have 5 different databases with 5 datasources. my question is how can i configure a single datasource for all 5 databases ? is it even possible ? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064941#4064941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064941 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ajax problem
Hello, i use ajax4jsf in my seam web application and i have a problem that i do not know if it's related to seam or Ajax4jsf (or maybe both) any way... every time i make an ajax request all of the DataModel methods are executed regardless of the ajax4jsf rerender property. this makes preformance very slow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023633#4023633 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023633 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Resourcebundle question
Hello, I try to convert a resource into a selectList and run in few problems. in my components.xml i have: | | | countries | airLines | | | in one of my beans i try to inject the resource like this: | @In(required=false) | Map countries; | | @In(required=false) | Map airLines; | when looking at seam debug i can see the the resourceBundle-->bundleNames has the countries and airLines but in my bean they are null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006435#4006435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - resourceBundle not working...
hello in my components.xml i have: | | | countries | messages | | | when i try to get the countries resource i get null. for some reason this resource is not loaded. is this not the way to define a resource ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004883#4004883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004883 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Test seam
i have an EJB that uses entityManager. the entityManager is injected throw seam. on my application every thing works fine, the persistence.xml define the DS and the entityManager JNDI lookup, the component is created by seam as defined in the components.xml. in my EJB i have this: | @In(create=true) | private EntityManager entityManager; | when i write test for the ejb i get exception, how can I make my test work? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003188#4003188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003188 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: resource bundle problem
but all the idea is to inject countries and not message. with messages every thing works fine. how can i put more resources? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002899#4002899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002899 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - resource bundle problem
I'm trying to add a new resource, I?ve add this code to components.xml | | | resources.countries | | | And created a resource loader class that tries to inject the countries resource | @In(create=true) | private Map countries; | But the resource doe's not exist. If I look at the debug I see only the org.jboss.seam.core.messages.component but no countries. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002797#4002797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error during model data update
figure out the problem, i was trying to update an object that was out of scope. setting up a conversetion solved the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002447#4002447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: resource-bundle question
when i wrote 'bundleLoader' i mean a bean that loads the resource bundle and i use resources throw the bean. that way i can sort and do all kind of mnipulation on the data before i show it. i do not use f:loadBundle . What i want to do is this: | | | | | | | | | | | | | | | | | | | | | | | | | | | | look at the: aTrip.country - the country that the aTrip holds is a key in the country resource, i want to display the value. so i need to do something like this: #{country[ aTrip.country ]} of course this will not work, so wht will ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002335#4002335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conversation problem
How can i force destraction of a bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002336#4002336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002336 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: resource-bundle question
OK that work great, i used a bundleLoader that loads the messages but how can i print out useing a specific country public void foo(String value) { ... String message = (String) messages.get( value ); ... } and for my first question, how can i load more resourses ? is it enough to put the property file in the WEB-INF/classes ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002257#4002257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: resource-bundle question
and another question how can I get a message value dynamically? for instance: String msgValue = 'someValue'; #{messages[ msgValue ] } is possible? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002237#4002237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: resource-bundle question
but i want to go over all countries not only one View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002236#4002236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - resource-bundle question
In Chapter 8 in the Seam - Contextual Components there is a topic about resource bundle in seam. I followed the examples and did not make it to work... I have a country.properties file, I?ve put it in WEB-INF/classes and add the following to the components.xml | | | countries | | | And then I tried to get it like so: | | | | But I got null exception for countries. Where did I go wrong? And how can I change the default location of the properties, I want to put it in WEB-INF/resources (instead of classes) Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002209#4002209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Conversation problem
Hello, I have a seam application, I want to start a conversation when I enter a page and end it when I leave the page. I want the associate EJB to be destroyed when the conversation ends. I used the @Begin and @End but it looks like my EJB does not destroyed immediately. On a second page I want the same behavior BUT I need to send id parameter to one of the backing EJB members, so I used the pages.xml like in the dvdstore example, my problem is that I use ajax4jsf and every time the page (or part of it) is rerendered the function set in the pages.xml is called and start a new conversation. is there a solution for this kind of situation ? thank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002187#4002187 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002187 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error during model data update
but when i look at the page i see values in the input fields, that is my problem. it looks like there are value. can it be related to the object scope ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000569#4000569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error during model data update
I'm struggling this problem for some time now... Here is my code that generates the problem, I must add that NO exception is thrown, the console is silent... | @Stateful | @Name("tripsManager") | @Interceptors(SeamInterceptor.class) | public class TripsManagerBean implements TripsManagerLocal, Serializable { | | | @Logger | private Log logger; | | @EJB | TripServiceLocal tripService; | | @RequestParameter | Long id; | | @DataModel | List tripList; | | @DataModelSelection | @Out(required = false,scope=ScopeType.CONVERSATION) | private Trip selectedTrip; | | | public TripsManagerBean() { | super(); | } | | | @Factory("tripList") | public void findTripsByUser() { | logger.info("Getting trip list..."); | tripList = tripService.findTripsByUser(userName); | } | | public String selectTrip() { | logger.info("Selected trip: " + selectedTrip.getId()); | return "selectTrip"; | } | | public String selectTripForEdit() { | logger.info("Selected trip: " + selectedTrip.getId()); | return null; | } | | public void editTrip() { | | try { | tripService.updateTripDetails(selectedTrip); | | logger.info("edit trip " + selectedTrip.getId() + " successfully"); | } catch (Exception e) { | logger.error("fail to edit trip", e); | | } | } | | public void deleteTrip() { | try { | tripService.deleteTrip(selectedTrip); | tripList.remove(selectedTrip); | logger.info("delete trip " + selectedTrip.getId() + " successfully"); | } catch (Exception e) { | logger.error("fail to delete Trip", e); | } | } | | public void cancel() { | // TODO Auto-generated method stub | | } | | @Remove | @Destroy | public void destroy() { | } | } | | @Stateless | @Name("tripEdit") | @Interceptors(SeamInterceptor.class) | public class TripEditAction implements TripEditLocal,Serializable { | | | public static final int ACTION_SUCCESS = 100; | | public static final int ACTION_FAIL = 101; | | @Logger | private Log logger; | | @EJB | TripServiceLocal tripService; | | @In(create=true, scope=ScopeType.CONVERSATION) | Trip selectedTrip; | | private int responseStatus; | | public TripEditAction() { | super(); | } | | public int getResponseStatus() { | return responseStatus; | } | | public void setResponseStatus(int responseStatus) { | this.responseStatus = responseStatus; | } | | public void editTrip() { | setResponseStatus(ACTION_FAIL); | try { | tripService.updateTripDetails(selectedTrip); | setResponseStatus(ACTION_SUCCESS); | logger.info("edit trip " + selectedTrip.getId() + " successfully"); | } catch (Exception e) { | logger.error("fail to edit trip", e); | setResponseStatus(ACTION_FAIL); | } | } | | public void cancel() { | logger.error("Clear add new trip Form"); | } | | } my web page is this: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[jboss-user] [JBoss Seam] - Re: Improve the message example
I'll be more specific, can i preformadd, update action directly on my @DataModelSelection object ? can I have something like this ? | public void editTrip() | { | try | { | tripService.updateTripDetails(trip); | trip=null; | setResponseStatus(EDIT_TRIP_SUCCESS); | } | catch(Exception e) | { | logger.error("fail to update Trip",e); | setResponseStatus(EDIT_TRIP_FAIL); | } | } | when trip is define as a @DataModelSelection. for some reason i get "Error during model data update." i know that happen when trip is null. any suggestions ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998878#3998878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998878 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Improve the message example
Hello, How can i add add and edit options to the mesages example ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998733#3998733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problem integrating seam
Hello all, I have a JSF Webapp. I use myfaces & tomahawk with ajax4jsf as JSF components and EJB3 as my model tier. My webapp works fine. I?m trying to integrate seam with my webapp and For some reason I cannot make it to work. My webapp is deployed in an ear containing 3 jar (model,logic,seam) and a war (web) When I deploy it on Jboss 4.0.4GA the deploy goes fine, looking at the console all my ejbs are registered, But when I open the webapp in a browser no data is displayed ! It looks like my jsp page does not recognize the seam object; I get no exception or any kind of error. I need urgent help with this one, I spend a full day already to solve my problem and came up with nothing... If any of my code is needed to evaluate please ask for the relevant and I?ll supply Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998642#3998642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Persistence difference between Jboss 4.0.5 and 4.0.4GA
Hello all, I have a WebApp that call an EJB3 that get some data from database. I use the Jboss default database. I used to work on Jboss 4.0.5 and every thing work fine, I?ve changed the server to jboss 4.0.4GA and now I get an exception. Here is the exception I get: | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select << begin [level=1, statement=select] | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.hql.ast.tree.FromElement] FromClause{level=1} : com.mobimate.items.model.Item (no alias) -> item0_ | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select : finishing up [level=1, statement=select] | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] processQuery() : ( SELECT ( FromClause{level=1} item item0_ ) ) | 2006-12-07 18:29:02,599 DEBUG [com.mobimate.items.ejb.ItemManagerBean] EJB:fillTableWithItems() put some items in table... | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 231, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 232, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 233, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 234, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 235, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 236, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 237, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 238, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 239, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 240, using strategy: org.hibernate.id.MultipleHiLoPerTableGenerator | 2006-12-07 18:29:02,599 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] parse() - HQL: from com.mobimate.items.model.Item | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.ast.AST] --- HQL AST --- | \-[QUERY] 'query' | \-[SELECT_FROM] 'SELECT_FROM' |\-[FROM] 'from' | \-[RANGE] 'RANGE' | \-[DOT] '.' | +-[DOT] '.' | | +-[DOT] '.' | | | +-[DOT] '.' | | | | +-[IDENT] 'com' | | | | \-[IDENT] 'mobimate' | | | \-[IDENT] 'items' | | \-[IDENT] 'model' | \-[IDENT] 'Item' | | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select << begin [level=1, statement=select] | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.ast.tree.FromElement] FromClause{level=1} : com.mobimate.items.model.Item (no alias) -> item0_ | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] select : finishing up [level=1, statement=select] | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] processQuery() : ( SELECT ( FromClause{level=1} item item0_ ) ) | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-12-07 18:29:02,615 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ** closing entity managersession ** | 2006-12-07 18:29:02,615 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-12-07 18:29:02,630 DEBUG [com.mobimate.web.items.ItemList] EJB:getItems() javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: JPA-QL compli
[jboss-user] [EJB 3.0] - Re: Deploy ear problem
I figure out the problem, I pack my project with Maven2 and one of the dependencies was the persistence-api jar that jar was packed in my ear and it collide with the one already in Jboss lib so i guess that was my problem... any way i have removed the dependency (made it provided in Maven) and now it is working. Thanks any way cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991879#3991879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Deploy ear problem
Hello all, I have a problem deploying an EJB 3 inside an ear archive. I have a WebApp that is made of 3 components: 2 JARs(EJBs) & 1 WAR One of EJBs is using DB, I have configured persistence.xml file in the META-INF directory. Any way, when I deploy the JARS and the WAR separately every thing works, But when I deploy them inside an ear, for some reason the persistence is ignored. I can perform lookup from the WebApp to the EJB but the relevant tables not created in the data base (I use hsqldb on localDB). I guess one (or more) of my Jboss configuration file is missing some thing. any suggestions ? thanks Yoav View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991627#3991627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user