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,
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
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
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=
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
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
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
|
|--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 :
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
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
Hey you did the mistake here man
@Stateless
public class MaterializePreSelectionUseCase implements Serializable,
IMaterializePreSelectionUseCaseRemote, IMaterializePreSelectionUseCaseLocal {
// @javax.annotation.Resource(mappedName="maxAdults")
// Integer maxAdults;
@EJB
"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
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:
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
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 :
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
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.
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
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
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
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
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
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
__
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
__
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
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
___
"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
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
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
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
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.
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
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
___
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
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
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
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
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
_
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
___
"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
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
___
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
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
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
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
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
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
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
_
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
"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
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
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
"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
Problem resolved by setting an additional instance variable to null in the
@PrePassivate method:
private void cleanUp()
| {
| try
| {
| if (rs != null)
| {
| rs.close();
|
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
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
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
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
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
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.
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&
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
__
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
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&
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
__
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
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
_
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
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
_
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
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
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
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:/
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
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
___
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
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
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
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=
"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
...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
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
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
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
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
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.
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
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
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 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
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
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
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
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
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
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
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
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
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
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 - 100 of 201 matches
Mail list logo