[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - catching exception after duplicate persist (Hibernate)

2006-04-24 Thread didi
Hi, I am using EJB3.0 and the integrated EntityManager from Hibernate to persist a UserEntityBeans with the username as unique column. Whenever I insert the same username the second time, I always get an exception | 17:38:08,182 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null

[JBoss-user] [EJB 3.0] - Re: ClassCastException after return entity from slsb method

2006-04-24 Thread didi
it did. THANKS ALOT! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938988#3938988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938988 --- Using Tomcat but need to do

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Automatically Generating Keys

2006-04-12 Thread didi
if you use EJB3.0 its just as simple as putting the following annotations above the primary key: @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3936812#3936812 Reply to the post :

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - equivalent to @Id(generate = GeneratorType.NONE)

2006-04-11 Thread didi
Hi, I am using the EJB3.0 stuff with JBoss 4.0.4RC1. Even though I looked at the available migration guides, I could not find a proper answer. In the 4.0.3 Version I used | @Id(generate = GeneratorType.NONE) | public String getUsername() { | return this.username; |

[JBoss-user] [EJB 3.0] - ClassCastException after return entity from slsb method with

2006-03-27 Thread didi
Hi! I am using EJB 3 quite a while and with JBoss 4.0.3SP1 everything was working fine. So I updated to 4.0.4RC1... well here is my question: I have an pretty simple stateless session bean with a method | public UserEntityBean findUserByUsername(String username) { |

[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Struts Exception

2006-02-23 Thread didi
the field names in the html form have to much the attribute names in the Struts form View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3925788#3925788 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925788

[JBoss-user] [Installation, Configuration Deployment] - Re: How do you turn off clustering?

2006-02-22 Thread didi
in tc5-cluster-service.xml you can change the broadcasting attribute to false UDP mcast_addr=${jboss.partition.udpGroup:230.1.2.7} mcast_port=45577 ip_ttl=8 ip_mcast=false this advices jboss to supress multicasting... but this still spams my log

[JBoss-user] [Installation, Configuration Deployment] - Re: Installing JBoss on Linux

2006-02-22 Thread didi
or use screen as a quick (dirty) solution View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3925598#3925598 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925598 --- This

[JBoss-user] [Clustering/JBoss] - members shown even with DicoveryDisable set to true

2006-01-02 Thread didi
Hi, I want to disable all caching and all clustering functionality of JBoss 4.0.3SP1 (ran the installer and chose ejb3), to be able to run different JBoss servers and to develop software locally. Therefore, I changed in cluster-service.xml !-- A flag to disable the auto discovery via

[JBoss-user] [JBossWS] - Re: question to bug fix to

2005-06-16 Thread didi
[EMAIL PROTECTED] wrote : | Now that said, wscompile has issues with document/literal and will always wrap parameters (even if there is only one parameter). So, don't rerun wscompile because it will attempt to rewrap your wrapper object. | that is the behaviour that I expected to happen

[JBoss-user] [JBossWS] - Re: Exception: The OperationDesc for myMethod was not synchr

2005-06-15 Thread didi
the bug and its fix are described in http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3881576#3881576 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881576

[JBoss-user] [JBossWS] - question to bug fix to

2005-06-15 Thread didi
Hi everybody, I follow the step under http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep wrote the code, compiled everything and deployed it. I get the The operation desciption was not synchronized message as written in the tutorial. The bug fix states to re-write the interface to

[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-23 Thread didi
thanks a lot md5georg, I got my webservice working ... well at least the namespace error message is not coming up anymore. But: I tried http://www.soapclient.com/soapTest.html to interact with my webservice and another error is coming up. Even though I followed the jboss tutorial and the

[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-22 Thread didi
I am experiencing the same problem (Namespace URI cannot be null) and I tried to create a webservice using the jboss documentation (http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch12.html). I also used the recommended wscompile over AXIS Java2WSDL... I am using JDK1.5.0_01 with

[JBoss-user] [Security JAAS/JBoss] - Re: Getting the logged on user info

2005-01-08 Thread didi
I am having the same problem: request.getUserPrincipal() is null in my jsp even when I am authenticated sucessfully. I am using a simple jsp to understand the whole JAAS stuff but where do I have to change the security-constraint you mentioned? View the original post :

[JBoss-user] [Beginners Corner] - Re: Using hypersonic for PKGen when it should be using Postg

2005-01-07 Thread didi
the problem with table not found happened for me too but I am using hypersonic sql (defaultDS). I try to setup JAAS and I am already fail with the database itself :-( View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3861219#3861219 Reply to the post :

[JBoss-user] [EJB/JBoss] - Re: how to add/remove data from many-to-many CMR?

2004-07-11 Thread didi
can you give me a paragraph number please? 10.3.4 explains removing from a relationship. As far as I understood it you just have to entityBean2.remove() and entityBean2 gets removed from the relationship of entityBean1 (suggest there was a relationship between entityBean1 and entityBean2). Is

[JBoss-user] [EJB/JBoss] - how to add/remove data from many-to-many CMR?

2004-07-09 Thread didi
Hi, I set up a m-n bi-directional CMR relationship with XDoclet (with some little help from http://www.jboss.org/index.html?module=bbop=viewtopict=41050). So, my UserEntityBean looks like: /** * @ejb.interface-method * * @ejb.relation * name = user-role *

[JBoss-user] [EJB/JBoss] - Re: Possible JBoss Bug. Please suggest.

2004-05-31 Thread didi
can someone provide a correct, working XDoclet example for a 1-N CMR? That would be great. tnx View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836935#3836935 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836935

[JBoss-user] [EJB/JBoss] - Re: Problem deploying CMR (2)

2004-05-31 Thread didi
what would be the equivalent XDoclet tags for that? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836939#3836939 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836939

[JBoss-user] [Persistence CMP/JBoss] - adding record to CMR field

2004-05-29 Thread didi
Hi everybody, I have to EJB with 1-N CMR field (properly configured with xdoclet). /** * @ejb:persistent-field * * @ejb:relation name=idLectureQuestion * role-name=each-lecture-has-a-lot-of-questions * target-ejb=QuestionEntity *

[JBoss-user] [Persistence CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
everything is generated by xdoclet. Here is jbosscmp-jdbc.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd; jbosscmp-jdbc java:/DefaultDS datasource-mappingHypersonic

[JBoss-user] [Persistence CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
Here is ejb-jar.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ejb-jar ![CDATA[No Description.]] display-nameGenerated by XDoclet/display-name enterprise-beans

[JBoss-user] [Persistence CMP/JBoss] - Re: adding record to CMR field

2004-05-29 Thread didi
I am using j2sdk1.4.2_03/ and xdoclet-1.2.1/ but I am bound to jboss-3.0.7_jakarta-tomcat-4.1.24/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836841#3836841 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836841

[JBoss-user] [Persistence CMP/JBoss] - CMR with xdoclet for jboss

2004-05-11 Thread didi
Hi everybody! I thought I would never use hypersonic sql as db but now I have to :-/ A short description of my situation: I have a QuestionEntityBean and a AnswerEntityBean. It is obvious the ONE Question can have MANY Answers. So I defined /** * @ejb:persistent-field *

[JBoss-user] JMS: Late cleanup of threads with UIL2ConnectionFactory

2003-12-19 Thread Didi Posselt
Hi folks, If I create QueueConnections with a UIL2ConnectionFactory, a new thread seems to be generated for this QueueConnection. However, if I close this QueueConnection, the thread seems to live for another minute or so. I'm running a linux box with JDK-1.4.2 and JBoss-3.2.3RC1. I guess this

[JBoss-user] (no subject)

2003-12-05 Thread Didi Posselt
Hi folks, I tried the new JBoss-3.2.3 and found a problem with a non standard partition name. For our project we use XXXPartition as partition name. After searching the code for the undocumented switches I added the attributes PartitionName to the new MBeans

[JBoss-user] JMS implementation question

2003-12-05 Thread Didi Posselt
Hi, From the behaviour of the JMS implementation of JBoss 3.2.x I assume, that JBoss holds an in memory index of all JMS messages in all queues, no matter whether they are persistet in files or an RDBMS. Is this true? Even with setting the MessageCache to low values we encounter OutOfMemory

Re: [JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-24 Thread Didi Posselt
, mixed mode) Its a bug then. Is this only on win32 or all platforms? -- Scott Stark Chief Technology Officer JBoss Group, LLC Didi Posselt wrote: Hi, Since the option --host=yourhost causes lots of problems in applications

[JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-19 Thread Didi Posselt
Hi, Since the option --host=yourhost causes lots of problems in applications that don't specify a host to connect to, I cannot use it for my JMS-problem. I figured, that everything works fine, if I drop the Attribute BindAddress in the deployment descriptor for the UIL2 Invocation Layer (the

[JBoss-user] JMS to remote hosts doesn't work any more

2003-11-18 Thread Didi Posselt
Hi everybody, I have a problem with access to queues from remote hosts. We use JMS a lot and had no problems up until 3.2.2RC4. With 3.2.2final and 3.2.3RC1 the remote access to JMS queues doesn't work anymore. I already posted this problem on the developer list after we tried 3.2.2final and got

RE: [JBoss-user] JMS to remote hosts doesn't work any more

2003-11-18 Thread Didi Posselt
Hi folks, The '--host=yourhost' option solved my problem (Thanks to Bjoern) Any idea why it worked in 3.2.2RC4 without this option? @Markus: I read your message right when you posted it and tried it with no success. Thanks anyway. Greetings, Dietmar -- GMX Weihnachts-Special: