[jboss-user] [EJB 3.0] - Re: Problem starting web service

2010-10-18 Thread do-not-reply
andreas_back [http://community.jboss.org/people/andreas_back] created the discussion "Re: Problem starting web service" To view the discussion, visit: http://community.jboss.org/message/566991#566991 -- Hello Jaikiran, yes, of course,

[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-22 Thread sarabjit
btw i already tried changing manifest to Class-Path: myjar.jar WEB-INF/lib/mywarlib.war View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250991#4250991 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250991

[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-22 Thread sarabjit
Hey Jaikiran, Thanks for your reply. I tried using the same annotation in JBoss 5.1 but it gives the same error. I've now used pitchfork to support annotations in my servlets and web modules. One more quick question about shared libraries here. I've put my shared libs directly under ear. And t

[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-13 Thread jaikiran
If you are starting with EJB3 then i would recommend you to use the latest AS5 version (i.e. 5.1.0) because it has better spec compliant support for EJB3. Injection of EJB3 in servlets isn't supported in 4.2.x for reasons mentioned in our Sticky here http://www.jboss.org/index.html?module=bb&op=

[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-13 Thread sarabjit
My ear structure is EAR |->Meta-inf |---|->application.xml-(defines-the-two-ejb-and-war-modules) |---|->jboss-app.xml-(empty) |->my-war.war |---|->WEB-INF |--|->web.xml-(no-declaration-of-ejb-here) |->myejb.jar |---|->META-INF |--|->jboss.xml-(which-is-basic

[jboss-user] [EJB 3.0] - Re: problem

2009-06-26 Thread jaikiran
Just to be sure, the folder name should be META-INF (case sensitive). Is that what you have named it? Looking at the error message, it looks like the bean that is relying on the persistence context injection is in a different jar than the one containing the persistence.xml. So you should try s

[jboss-user] [EJB 3.0] - Re: problem

2009-06-26 Thread daviddev
Thanks for replying. both files are in the meta-inf directory (I just forgot to add the directory in my structure when i post the problem). | |--MyMMClient1EJB.jar (my application that use the message manager beans) | |--META-INF | |--ejb-jar.xml |

[jboss-user] [EJB 3.0] - Re: problem

2009-06-26 Thread jaikiran
|--MyMMClient1EJB.jar (my application that use the message manager beans) | |--ejb-jar.xml | |--persistence.xml | The ejb-jar.xml and the persistence.xml should be in the META-INF folder of the ejb jar (MyMMClient1EJB.jar) View the original post :

[jboss-user] [EJB 3.0] - Re: Problem in calling methods on EJB3 app from client

2009-05-13 Thread wolfc
That piece of source is here: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.0.0/src/main/java/org/jboss/ejb3/stateless/StatelessContainer.java?annotate=83287 Apparently the business method called can't be found in the AOP Advisor. Could you try again usi

[jboss-user] [EJB 3.0] - Re: Problem in calling methods on EJB3 app from client

2009-05-12 Thread llper
Sorry, port was not 4446 but ejb.deployer.port=3873. Here the stacktrace: java.lang.NullPointerException | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:445) | at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableCon

[jboss-user] [EJB 3.0] - Re: Problem with deployment of ejb3 SLSB (5.0.0 beta2)

2009-02-07 Thread jayakrishnajava
Hey you did the mistake here man @Stateless public class MaterializePreSelectionUseCase implements Serializable, IMaterializePreSelectionUseCaseRemote, IMaterializePreSelectionUseCaseLocal { // @javax.annotation.Resource(mappedName="maxAdults") // Integer maxAdults; @EJB

[jboss-user] [EJB 3.0] - Re: Problem during marshalling/unmarshalling

2008-12-22 Thread imranpariyani
"lincao123" wrote : Hi, imranpariyani, | | Recently I got the same error while invoking remote ejb from jboss 4.0.5 to 4.2.0. Can you share your solution with me? Thanks a lot! | | Lin Hi lin Well for me the problem was an object somewhere within the entity which was not Serializabl

[jboss-user] [EJB 3.0] - Re: Problem in injecting simple env entries in EJB

2008-12-08 Thread jaikiran
Which version of JBoss and Java do you use? Also, please post the entire console logs. While posting logs or xml content or code, remember to wrap it in a code block. Also please hit the Preview button before posting, to ensure your post is correctly formatted. View the original post : http:

[jboss-user] [EJB 3.0] - Re: Problem in injecting simple env entries in EJB

2008-12-08 Thread plethora
Ti, Thanks for your recommendation. But it did not work . The problem is simple env entries are not getting bound to the JNDI namespace . Plethora View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195078#4195078 Reply to the post : http://www.jboss.com/inde

[jboss-user] [EJB 3.0] - Re: Problem in injecting simple env entries in EJB

2008-11-24 Thread ti
Hi Plethora You don't need the @Resource Annotation if you define the injection within the xml descriptor. You can just use String duration; in your Bean. Best Regards Tom View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191675#4191675 Reply to the post :

[jboss-user] [EJB 3.0] - Re: problem withonetoone mapping

2008-11-21 Thread Wolfgang Knauf
Could you also post the entity "BuyerRating"? Remember to wrap all code snippets in "code" blocks and preview the result before posting. Best regards Wolfgang View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191288#4191288 Reply to the post : http://www.jbos

[jboss-user] [EJB 3.0] - Re: Problem during marshalling/unmarshalling

2008-11-05 Thread lincao123
Hi, imranpariyani, Recently I got the same error while invoking remote ejb from jboss 4.0.5 to 4.2.0. Can you share your solution with me? Thanks a lot! Lin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187108#4187108 Reply to the post : http://www.jboss.

[jboss-user] [EJB 3.0] - Re: Problem deploy EJB 3 and JSP

2008-10-18 Thread jaikiran
You are using an incorrect jndi-name in the lookup. Follow the steps mentioned here http://www.jboss.org/community/docs/DOC-9583 to view the jndi tree and figure out the jndi-name for your bean (in the global jndi namespace). Then use that name in the lookup code. View the original post : htt

[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei

2008-10-16 Thread mark_man
imranpariyani - you have articulated this issue very well. I am having the same problem with JBoss 4.2.2. Did you ever find a solution. Thanks, Mark View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182824#4182824 Reply to the post : http://www.jboss.com/ind

[jboss-user] [EJB 3.0] - Re: Problem with Embeddable EJB 3.0 and MBeans

2008-10-16 Thread Silenius
If I change my startupEmbeddedJboss method to: | private static void startupEmbeddedJboss() { | EJB3StandaloneBootstrap.boot(null); | EJB3StandaloneBootstrap.deployXmlResource("security-beans.xml"); | EJB3StandaloneBootstrap.scanClasspath(); | } | it works. But I can't u

[jboss-user] [EJB 3.0] - Re: Problem Creating sequence

2008-10-15 Thread PeterJ
My previous post was a hint that the hibernate.dialect property is not correctly set; you should have been able to fix the problem based on the hint. You even highlighted the fact that you are using the HSQLDB dialect, and not the PostgreSQL dialect. When you fixed this, did it work? View the

[jboss-user] [EJB 3.0] - Re: Problem Creating sequence

2008-10-14 Thread lalsamir
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182276#4182276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182276 ___ jboss-user mailing list jbo

[jboss-user] [EJB 3.0] - Re: Problem Creating sequence

2008-10-14 Thread lalsamir
property name="hibernate.hbm2ddl.auto" value="create-drop" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182277#4182277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182277 __

[jboss-user] [EJB 3.0] - Re: Problem Creating sequence

2008-10-13 Thread PeterJ
In your persistence.xml file, what do you have hibernate.dialect set to? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181912#4181912 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181912 __

[jboss-user] [EJB 3.0] - Re: Problem during marshalling/unmarshalling

2008-10-01 Thread imranpariyani
hi ocsamuel were u able to solve this problem ? i am also getting the same error .. checked the client jars twice .. they are the same .. below is the stack trace .. i am streaming the object from jboss to tomcat ... when i print the object in jboss console it seems to be fine ... and the f

[jboss-user] [EJB 3.0] - Re: problem with MBeans webservices and ejb3.0

2008-09-23 Thread gcoleman
Check for any circular dependencies. JBoss doesn't like them but doesn't actually tell you so. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178250#4178250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178250 ___

[jboss-user] [EJB 3.0] - Re: Problem with stateful session bean and connection

2008-09-11 Thread Marcos_APS
"jaikiran" wrote : | See this http://wiki.jboss.org/wiki/WhatDoesTheMessageDoYourOwnHousekeepingMean I read the article and understand what was going on with my stateful session bean. Indeed, the problem is very simple to fix. I just have to close the connection after I use it in the same wa

[jboss-user] [EJB 3.0] - Re: Problem with stateful session bean and connection

2008-09-11 Thread jaikiran
anonymous wrote : 13:35:10,000 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: [EMAIL PROTECTED] | java.lang.Throwable: STACKTRACE | See this http://wiki.jboss.org/wiki/WhatDoesTheMessageDoYourOwnHousekeepingMean View the original post : http://ww

[jboss-user] [EJB 3.0] - Re: Problem with TimerService

2008-08-14 Thread kyle.bober
I am running into the same issue. I am running JBoss 4.2.2. Is this still an outstanding issue or is there a fix for this or a work around? Any help or response is much appreciated! Regards, Kyle View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170644#4170644

[jboss-user] [EJB 3.0] - Re: Problem with EJB3 MDB, & Entity Objects

2008-07-31 Thread wolfc
Most likely the message is received before the transaction of the first MDB has been fully completed. Even when using a transacted session this can happen. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167821#4167821 Reply to the post : http://www.jboss.com

[jboss-user] [EJB 3.0] - Re: Problem with EJB3 MDB, & Entity Objects

2008-07-30 Thread smeverts
anyone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167712#4167712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167712 ___ jboss-user mailing list jboss-user@lists.jboss.

[jboss-user] [EJB 3.0] - Re: Problem Call ejb3.0

2008-07-17 Thread fduartej1
Yes. I am sure good deploy ejb jar, My problem is solutions. I deploy ear in server all, and not report error in this server View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165186#4165186 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [EJB 3.0] - Re: Problem with Native Queries

2008-07-17 Thread rcherchi
No sorry, I just replaced all my native queries by standard EJB/QL queries :) Cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165144#4165144 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165144 ___

[jboss-user] [EJB 3.0] - Re: Problem with Native Queries

2008-07-17 Thread mapoitras
Have you found a solution to this problem? I'm having the exact same issue and I can't seem to figure it out. In my case I get [IntegerType] could not read column value from result set: FINC1_18_0_; In my SQL statement, all the columns have alias so I have no idea where FINC1_18_0_ comes from

[jboss-user] [EJB 3.0] - Re: Problem Call ejb3.0

2008-07-16 Thread jaikiran
Are you sure the ejb jar that you have deployed is the correct version and contains this method? Also, is there any other jar containing this ejb (but not the method) in the classpath which might be causing this issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [EJB 3.0] - Re: Problem with Bean

2008-06-06 Thread Ceene
Thank u very much. I fixed the Problem. The jndi.properties was the Problem. Not that I do NOT had one, in one of my Beans I found the File and ereased it and now it works. Now I don't have any jndi.properties in my *.jar File and it works fine. Thanks a lot View the original post : http://ww

[jboss-user] [EJB 3.0] - Re: Problem with Bean

2008-06-04 Thread jaikiran
anonymous wrote : javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is j | avax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception | is java.net.ConnectException: Connection refused: connect]] | a

[jboss-user] [EJB 3.0] - Re: Problem using JBoss Datasource

2008-06-03 Thread peiguo
I used resource injection with JBoss 4.2.2 and Oracle 10g, and there was no probem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155541#4155541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155541 _

[jboss-user] [EJB 3.0] - Re: Problem with jboss-4.0.4.GA doing lookup for EJB3.0

2008-06-03 Thread chinvelski
Do you solved the problem? I am with the same problem. Thanks, André Chinvelski View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155456#4155456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155456 ___

[jboss-user] [EJB 3.0] - Re: Problem using JBoss Datasource

2008-06-01 Thread jaikiran
"zxm0412" wrote : i've the same question too,does everyone can help me ...or a little tip Which version of JBoss and Java do you use? Post the entire exception stacktrace, the code where the injection is happening and the -ds.xml file. While posting the logs or xml content or code, remember to

[jboss-user] [EJB 3.0] - Re: Problem using JBoss Datasource

2008-06-01 Thread zxm0412
i've the same question too,does everyone can help me ...or a little tip View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154887#4154887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154887 ___

[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-27 Thread peiguo
Thank you very much and you are right, once ejb-jar.xml is removed things worked. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147071#4147071 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=414707

[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-27 Thread jaikiran
Let's stick to JBoss-4.2.2 GA. Did you try removing the ejb-jar.xml from your packaging? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147066#4147066 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147066

[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-26 Thread peiguo
I just notoced that,t the beginning of my ejb-jar.xml, it says version="2.1". That might be part of the problem, what's the correct schema and version etc? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147017#4147017 Reply to the post : http://www.jboss.com

[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-26 Thread peiguo
Thank for your reply. I tried your first option, and got the same null pointer error. Your second option actually was the first thing I tried when I first started to experiment. I am using 4.2.2.GA if that means anything. I have attempted to upgrade to 5.0.0.Beta4, but it gave me some wierd err

[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB

2008-04-26 Thread jaikiran
Are you sure there were no errors during deployment? anonymous wrote : @EJB(beanName = "org.jboss.ws.hello.HelloBean") | private HelloBean h; This should have been: @EJB(beanName = "HelloBean") | private HelloBean h; or even this should work: @EJB | private HelloBea

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-25 Thread aisrael
Sorry, found my problem. My problems was using the wrong annotation. At first, I was compiling against jboss-ext3-ext-api.jar and using the org.jboss.ejb3.annotation.ResourceAdapter annotation. Eventually figured out that I needed the org.jboss.annotation.ejb.ResourceAdapter annotation, which

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-23 Thread jaikiran
Can you please post your code? Also, the logs from server.log file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146413#4146413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146413 _

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-23 Thread aisrael
Thanks. Will try again with an Ant build and an absolutely fresh install of JBoss 4.2. I've tried building and deploying using both Eclipse and Maven 2 so I'm not sure it's entirely build related. Will also try it on Windows XP to rule out anything platform related (am running on JDK 1.5.0_13

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-23 Thread jaikiran
"aisrael" wrote : | | At this point, even just confirmation of whether anyone else has been able to get the example to work (or whether they're encountering the same problem) on JBoss 4.2.2 would be helpful. I tried that example, after seeing your post yesterday. I have been able to get i

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-23 Thread aisrael
Nope. quartz-1.6.0.jar is in server/default/lib. I don't exactly know how to package the quartz.jar in my EJB JAR file (there's no "lib" directory like with WARs) and in any case, I'm just using Maven 2 to package the EJB and it doesn't include any dependencies in the JAR. I've also tried it wi

[jboss-user] [EJB 3.0] - Re: Problem with Quartz Scheduler Integration (JBoss AS 4.2.

2008-04-23 Thread jaikiran
Are you packaging the quartz-1.6.0 jar along with your application? Does it work if you don't include that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146115#4146115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41

[jboss-user] [EJB 3.0] - Re: Problem with TimerService

2008-04-22 Thread agenttokyo
"hasc" wrote : Hi, | | i posted this question already in the seam forum, but i was told I should post the question here again... | | I wrote a simple stateless bean to test the TimerService. i am using jboss 4.2.0GA | | I hope you long ago solved your issue =) Bit since I saw th

[jboss-user] [EJB 3.0] - Re: problem passivating SFSB

2008-04-16 Thread asookazian
Problem resolved by setting an additional instance variable to null in the @PrePassivate method: private void cleanUp() | { | try | { | if (rs != null) | { | rs.close(); |

[jboss-user] [EJB 3.0] - Re: problem passivating SFSB

2008-04-16 Thread asookazian
what are the repurcussions or problems of a failed passivation?? how will it affect the next use case execution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144644#4144644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[jboss-user] [EJB 3.0] - Re: Problem Starting Jboss with ejb3

2008-04-03 Thread jwenting
looks like a problem in either your persistence unit, your datasource, or all those EJBs. As it's not happening to anyone else, I think we can rule out an error in JBoss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141475#4141475 Reply to the post : http

[jboss-user] [EJB 3.0] - Re: Problem facing in the configuration of instance pool siz

2008-03-27 Thread jaikiran
anonymous wrote : On the startup of the server the instance pool of session bean does not have any instance of bean. So what you are looking for is the minSize of the pool, which as far as i know, is not available. Why do you want the pool to contain an instance when the server has started? May

[jboss-user] [EJB 3.0] - Re: Problem facing in the configuration of instance pool siz

2008-03-27 Thread puneetjain
Hi Jaikiran, Thanks for your reply. Sorry to bother you by posting same issue at multiple places. I have already gone through this link twice, but my problem still remains same. The configuration specified on the link describes how to set the maxsize of instance pool and timeout time. But my ques

[jboss-user] [EJB 3.0] - Re: Problem facing in the configuration of instance pool siz

2008-03-27 Thread jaikiran
Please go through the JBoss EJB3 documentation at http://labs.jboss.com/jbossejb3/docs/reference/build/reference/en/html/ The documentation has a specific chapter on Pooling http://labs.jboss.com/jbossejb3/docs/reference/build/reference/en/html/session-bean-config.html#d0e26 View the original p

[jboss-user] [EJB 3.0] - Re: Problem in mapping a many to many relation to a list

2008-03-01 Thread matt_lc
Hi, I have exactly the same problem. I want to order a many-to-many association with a field like an index in the join table. Is there a fix since 2006 ? tks ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133461#4133461 Reply to the post : http://www.

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-02-05 Thread tsirel84
JIRA-issue is closed. When I separated those entities (in one ear) - they worked fine. Investigating further base project. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126546#4126546 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-02-04 Thread tsirel84
Created JIRA-issue: http://jira.jboss.com/jira/browse/EJBTHREE-1188 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126147#4126147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126147 __

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-01-30 Thread tsirel84
Unfortunately it hasn't helped - I tried specifying Generic types for collections, tried specifying targetEntity on both sides - still same exception... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124890#4124890 Reply to the post : http://www.jboss.com/i

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-01-30 Thread ALRubinger
Check out: http://java.sun.com/javaee/5/docs/api/javax/persistence/ManyToMany.html#targetEntity() ...try either Genericizing your Collections between Course/Student, or specifying @ManyToMany.targetEntity. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[jboss-user] [EJB 3.0] - Re: Problem on updating M:N relations

2008-01-30 Thread Darquerus
Add an JIRA-issue for this problem: http://jira.jboss.com/jira/browse/EJBTHREE-1187 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124837#4124837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124837 __

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-01-30 Thread tsirel84
This is stated as a recommendation for using JIRA: "Report your issue to JIRA if someone tells you to do so on the user forum." Could anybody of experienced EJB3 users or developers of JBoss implementation tell me - should I post it to JIRA or I'm missing something? View the original post : htt

[jboss-user] [EJB 3.0] - Re: Problem with simple example of @ManyToMany

2008-01-28 Thread tsirel84
Any ideas? Should I put it to JIRA as a bug or I'm doing something wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124100#4124100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124100 _

[jboss-user] [EJB 3.0] - Re: Problem during marshalling/unmarshalling

2008-01-23 Thread ocsamuel
I also get this error...how to resolve it? Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is: java.io.OptionalDataException View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122877#4122877

[jboss-user] [EJB 3.0] - Re: Problem on updating M:N relations

2007-12-13 Thread Darquerus
I forgot my JBoss Version. I'm using JBoss 4.2.2.GA on a windows system. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112642#4112642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112642 _

[jboss-user] [EJB 3.0] - Re: Problem instantiating an EntityManagerFactory

2007-11-22 Thread waynebaylor
two things: 1)not sure if it matters, but use java:/DefaultDS instead of java:DefaultDS in persistence.xml. 2)Persistence.create* is for use outside the container. try doing a JNDI lookup of the factory instead. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[jboss-user] [EJB 3.0] - Re: Problem retrieving dates from database

2007-11-19 Thread chawax
I found my problem. You just have to know that works by default with UTC time and not with the date variable timezone, which is not the case with java.util.SimpleDateFormat. So you have to explicitely set the timezone attribute for Something like that : | | View the original post

[jboss-user] [EJB 3.0] - Re: Problem retrieving dates from database

2007-11-19 Thread chawax
Thanks, it works. Anyway I thought this was what caused my formatting problems, but I still have them ... For example, I have a java.util.Date variable which contains "Thu Nov 15 00:00:00 CET 2007" value. If I format it with SimpleDateFormat : SimpleDateFormat sdf = new SimpleDateFormat("dd/M

[jboss-user] [EJB 3.0] - Re: Problem retrieving dates from database

2007-11-16 Thread genman
You can do something like this: | | public void setDateDebut(java.util.Date value) | { | this.dateDebut = new java.util.Date(value.getTime()); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105727#4105727 Reply to the post : http:/

[jboss-user] [EJB 3.0] - Re: Problem with Entity Manager dependency injection in JBos

2007-10-22 Thread Zyborg
please have a look into following topic: Sticky: Why is injection not working in AS 4.0 and 4.2 (servlets)? there is a detailed description of my problems (which should be analogous to this one here). thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=vie

[jboss-user] [EJB 3.0] - Re: Problem with Entity Manager dependency injection in JBos

2007-10-19 Thread waynebaylor
have you tried putting the persistence.xml in the META-INF dir? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097090#4097090 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097090 ___

[jboss-user] [EJB 3.0] - Re: Problem with Entity Manager dependency injection in JBos

2007-10-17 Thread Zyborg
i think i am facing the same troubles. did you find any solution for this issue? i can't get out of my mind that it is just a deployment failure ... so maybe i should pack my .ear file little different ... ? anyone else can help? View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB 3.0] - Re: Problem with enum datatype

2007-09-19 Thread ALRubinger
Maybe ask the guys over on the Hibernate Developer's forums if they think you've discovered a bug, and if you patch would be worthwhile in the codebase? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086261#4086261 Reply to the post : http://www.jbos

[jboss-user] [EJB 3.0] - Re: Problem with enum datatype

2007-09-19 Thread imranpariyani
Well finally i figured it out.. applied a small patch to hibernate and build the source and replaced it with the original one .. Well if any one is stuck with similar kinda problem just let me know and i will send over the patch .. Regards Imran View the original post : http://www.jboss.com

[jboss-user] [EJB 3.0] - Re: Problem with Native Queries

2007-09-18 Thread rcherchi
Here is the exception generated by postgresql : | org.postgresql.util.PSQLException: The column name x was not found in this ResultSet. | Would you need any other information to solve the problem ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=

[jboss-user] [EJB 3.0] - Re: Problem with enum datatype

2007-09-17 Thread imranpariyani
"FabryProg" wrote : Please: | - Post your entity class | - Use HQL instead SQL | | | | FABRYPROG I am not using HQL and am not mapping it to an entity .. i am using a nativequery here and the query looks like this String query = "SELECT DISTINCT type FROM card WHERE type IS NOT

[jboss-user] [EJB 3.0] - Re: Problem with deployment of ejb3 SLSB (5.0.0 beta2)

2007-09-17 Thread ALRubinger
...unless some of the the tags of your ejb.jar.xml was lost in formatting of your post? I do see you've put the names of your local and remote interfaces in there, though not enclosed in nodes. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085067#40

[jboss-user] [EJB 3.0] - Re: Problem with deployment of ejb3 SLSB (5.0.0 beta2)

2007-09-17 Thread ALRubinger
Your bean's implementation class does not explicitly designate any business interfaces; the container will not automatically scan for @Local and @Remote in the subclasses of the parent you've specified. I'd look there first (as it seems this is what you've intended). Try: @Stateless | publi

[jboss-user] [EJB 3.0] - Re: Problem using orm.xml instead of annotation

2007-07-27 Thread waynebaylor
in my experience that means there is either a typo in the class name or the class is not included in deployment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068406#4068406 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-23 Thread waynebaylor
please enclose your XML in quote or code tags. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066691#4066691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066691 ___ jboss-u

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-23 Thread sankarreddy123
hi there is mistake in u r persistence.xml file i correctd it and i am giving that at here. u should give provider class in the tag only... http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0" xsi:schemaLocation="http://java.sun

[jboss-user] [EJB 3.0] - Re: Problem when persisting Entity

2007-07-19 Thread ycswyw
I think the "PrimaryKeyJoinColumn" attribute should be used instead of "JoinColumn". Also check that "JobItemId" field names match with JobItem field names. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065910#4065910 Reply to the post : http://www.jboss.

[jboss-user] [EJB 3.0] - Re: Problem when persisting Entity

2007-07-19 Thread waynebaylor
do you want the two unannotated fields to be persisted? by default they are considered to be annotated with @Basic, but if you don't want them to be persisted you must annotate them with @Transient. hope that helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtop

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-19 Thread waynebaylor
here's an example oracle-ds.xml: | | | | | OracleDS | jdbc:oracle:thin:@db_host:1521:database_name | | oracle.jdbc.driver.OracleDriver | | my_name | my_pass | | | org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSor

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-18 Thread ashusri000
HI , I am using Oracle 10g , the same configuration as you are using . Actually I wished if you could give me the configuration details such as -.ds.xml files along with the packaging details of the ear/ jar files. It would be very kind of you if I could get some respite from you in th

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-18 Thread waynebaylor
JBoss comes with Hibernate installed, so there's no work to do there. What database are you using? oracle, mysql, ...? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065477#4065477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [EJB 3.0] - Re: Problem with Threads and Transactional context

2007-07-18 Thread zerok
Thank you very much Bill. I'll try it right away! But first Let me see if I understood you right. I'll keep my Stateless Bean,but I'll add this SessionContext to keep the bean alive when the threads stop running so I can use the Stateless Bean entityManager or I should use SessionContext to ma

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-18 Thread ashusri000
It would be very kind of you if you can send me a simple ear file containing an entity bean (one you have been able to deploy successfully) to my mail id : [EMAIL PROTECTED] Along with other configuration files... Regards View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-17 Thread ashusri000
Hi waynebaylor , I am sure you can help me out . Now I am trying to put this hibernate thing instead of toplink . Please can you put the configuration so that I can get ahead with this persistence. I am supposed to use JBoss4.2 with hibernate . Kindly , let me know the

[jboss-user] [EJB 3.0] - Re: Problem with Threads and Transactional context

2007-07-17 Thread [EMAIL PROTECTED]
You can pass this pointers around of EJBs and expect transactions to work. This is because EJBs have a container that sits in front of bean instances so that it can handle things like transaction bounders. You should instead do: | @Resource SessionContext ctx; | | | public void proc

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-17 Thread waynebaylor
hmmm, well it looks like there's a conflict with toplink: anonymous wrote : java.lang.ClassCastException: oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider but i don't know what would cause this error. i'm using hibernate with oracle 10g. View the original post : http://www.jbo

[jboss-user] [EJB 3.0] - Re: Problem with Threads and Transactional context

2007-07-17 Thread zerok
Dear waynebaylor, Ty very much for your answer. Although, I'm not trying to persist anything inside my threads. What I'm doing inside my threads in to use the genericDAOBean to perform some searchs. About the thread spawning, can you or anyone suggest a better way to do it? Ty again. Roberto C

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-16 Thread ashusri000
Hi waynebaylor , Earlier I did put the datasource in the same as you have , but when it didn't work out I tried to put in this way . Still it just did not worked out . Any clue ... Regards View the original post : http://www.jboss.com/index.html?mod

[jboss-user] [EJB 3.0] - Re: Problem with Threads and Transactional context

2007-07-16 Thread waynebaylor
My guess is that the problem stems from your thread trying to invoke EntityManager.merge(). Since your thread probably doesn't do any transaction management you are getting that TransactionRequiredException. Before you try to fix that though, consider that you probably shouldn't be spawning yo

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-16 Thread waynebaylor
ashusri000, i think you may need to change your JTA data source. I'm using oracle (i copied the oracle-ds.xml) and my JTA data source is: java:/OracleDS which was specified in the xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064589#4064589 Reply

[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-15 Thread ejbiva
I also have similar problem when I call EntityManager.create to insert one record into oracle DB.Fatal error occur.one thing should be added that is I have never create related table in the DB.I think the mapping machenism should create it instead of me.It is true? Stanley View the original po

  1   2   3   >