[JBoss-user] [JBoss Seam] - Insert of a foreign key

2006-07-10 Thread urswag
Hello I would to use import.sql to setup the data. When I use anonymous wrote : | insert into Assortment (assortname) values ('Antiquitäten & Kunst') | insert into Category (categoryname) values ('Antikes aus Glas') | assortid is the foreign key of the category table. It is set to null.

[JBoss-user] [JBoss Seam] - Re: primary auto increment for MySQL

2006-07-06 Thread urswag
It is dummy mistake. I have to use long type and not the Long class. This helps. anonymous wrote : | @Id | @GeneratedValue | public long getUserid() { | | return userid; | } | | public void setUserid(long userid) { | | this.userid = userid; | } | | | View the o

[JBoss-user] [JBoss Seam] - primary auto increment for MySQL

2006-07-04 Thread urswag
Hello How will be generated an autoincrement primary key in MySQL? anonymous wrote : | public class User { | | ... | @Id | @NotNull | @GeneratedValue | public Long getUserid() { | | return userid; | } | | public void setUserid() {

[JBoss-user] [JBoss Seam] - Re: Cannot configure datasource

2006-07-04 Thread urswag
You are right I am using MySQL instead of HQL. In this case have to deploy a -dx.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955309#3955309 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955309 Using Tomcat b

[JBoss-user] [JBoss Seam] - Re: Use of the same entity name twice: User

2006-06-30 Thread urswag
Thanks for Your advice. I renamed the package name. There were package the User classes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954654#3954654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954654 Using Tomcat

[JBoss-user] [JBoss Seam] - Use of the same entity name twice: User

2006-06-29 Thread urswag
How can I check this? Can I see this in the jmx console? Is there an other way to check this? Thanks java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

[JBoss-user] [JBoss Seam] - Cannot configure datasource

2006-06-27 Thread urswag
I try to make my own seam ear file. Now I have this problem. Can someone tell me what the configuration problem is? anonymous wrote : | 22:41:49,000 INFO [EARDeployer] Init J2EE application: file:/C:/Programme/JBoss/server/default/deploy/ramschladen.ear | 22:41:49,859 INFO [Ejb3Annotation

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: identifier of an instance of ... was altered from 1 to 0

2006-06-23 Thread urswag
I do not exactly know what the problem is. I have changed the bean name to Vistit and the table to visit, this does work. When MySQL generates an error You get such a kind of error because the transcation is roll backed. Perhaps MySQL does not return an exact error message like in error cases. O

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: identifier of an instance of ... was altered from 1 to 0

2006-06-12 Thread urswag
password12_ from login login0_ where login0_.username=? and login0_.password=? | 2006-06-13 00:17:41,640 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() urswag -> userName [1] | 2006-06-13 00:17:41,640 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters()

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: identifier of an instance of ... was altered from 1 to 0

2006-06-12 Thread urswag
This is the source anonymous wrote : | import java.io.Serializable; | | import java.util.List; | | import javax.ejb.Remote; | import javax.ejb.Remove; | import javax.ejb.Stateful; | | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; |

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - identifier of an instance of ... was altered from 1 to 0

2006-06-11 Thread urswag
What means this exception? java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=Ursus/34, BranchQual=, localId=34] status=STATUS_NO_TRANSACTION; - nested throwable: (org.hibernate.HibernateException: identifier of an

[JBoss-user] [EJB 3.0] - Redeployment problem

2006-06-11 Thread urswag
I cannot redploy. It is awful always to restart JBoss. What have I to do that I can redploy my ear? The error is: java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb already registered. anonymous wrot

[JBoss-user] [EJB 3.0] - MySQL topic

2006-06-11 Thread urswag
What have I to take for MySQL? I get this exception, Caused by: org.hibernate.MappingException: Dialect does not support sequences Thanks anonymous wrote : | 2006-06-11 17:39:56,187 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed persistence.units:jar=ejb3tutorial.jar.jar,unit

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - field name and column name missmatch

2006-06-06 Thread urswag
What does here JBoss? anonymous wrote : | | | findByUserName | | java.lang.String |

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Finder method returns internal error

2006-06-06 Thread urswag
Is open source always such a pain? I changed jbosscmp.xml exception. | | LoginEntityBean | login | | | |

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Finder method returns internal error

2006-06-05 Thread urswag
I use a class LoginKey for the primary key. In the database the field is stored as logidid. When I call the finder method I get this exception. anonymous wrote : | | 2006-06-05 23:28:34,015 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.LoginEntityBean#findByUserName] Executing SQL:

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Finder method returns internal error

2006-06-05 Thread urswag
jbosscmp-jdbc.xml entry of the entity anonymous wrote : | | | LoginEntityBean | login | | loginKey | loginid | |

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Autoincrement primary key in MySQL

2006-05-27 Thread urswag
I want to use autoincrement in MySQL. As a consequence I do not specify the primary key in the create method. As result I get an exception. The record is created in the database. Is this a bad concept what I do or shall I simply catch this exception? anonymous wrote : | | public Addre

[JBoss-user] [JNDI/Naming/Network] - Re: java classpath question

2006-05-25 Thread urswag
This works better. anonymous wrote : | java -cp .;%JBOSS_HOME%\client\jbossall-client.jar test.de.laliluna.library.FirstEJB3TutorialClient | Now I get the "standard" NameNotFound Exception Bean not bound. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=

[JBoss-user] [JNDI/Naming/Network] - Re: java classpath question

2006-05-25 Thread urswag
I have the same problem anonymous wrote : | java -cp .;%JBOSS_HOME%\client\jnp-client.jar test.de.laliluna.library.FirstEJB3TutorialClient | | Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger | at org.jnp.interfaces.NamingContext.(NamingContext.ja

[JBoss-user] [JNDI/Naming/Network] - java classpath question

2006-05-24 Thread urswag
I use the command java -classpath .;C:\Programme\JBoss\server\default\lib test.de.laliluna.library.FirestEJB3TutorialClient. I get the displayed error stack. When I specifiy jnpserver.jar in the classpath option, I get the next excpetion java.lang.NoClassDefFoundError: org/jboss/logging/Logger

[JBoss-user] [EJB 3.0] - Re: EJB 3 Annotations problem

2006-05-22 Thread urswag
I found the problem, I have forgotten to add the subdirectory anonymous wrote : | ejb3.deployer | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945365#3945365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=394536

[JBoss-user] [EJB 3.0] - EJB 3 Annotations problem

2006-05-22 Thread urswag
I have added the directory ../default\jboss-ejb3\lib to the class path. I think simple add the jar files should be enough. The compiler cannot interpret the annotations. anonymous wrote : | [echo] Compiling sources | [javac] Compiling 2 source files to C:\Dokumente und Einstellung

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Hibernate warning

2006-05-05 Thread urswag
Can please give me someone a short instruction how I have to configurre the log correctly. Thanks anonymous wrote : | | Buildfile: C:\Dokumente und Einstellungen\jboss\workspace\webstore\build.xml | init: | prepare: | compile: | [echo] Compiling sources | schema: | [

[JBoss-user] [EJB 3.0] - meaning of @Entity

2006-04-25 Thread urswag
Where are these expressions well descripted? anonymous wrote : | | @Entity | @Table(name="book") | @SequenceGenerator(name = "book_sequence", sequenceName = "book_id_seq") | @TableGenerator( name="book_id", table="primary_keys", pkColumnName="key", pkColumnValue="book", |

[JBoss-user] [JBoss Eclipse IDE (users)] - UML plugin for Eclipse

2006-04-24 Thread urswag
Hello Has anyone I good advice which free plugin I can use for JBoss with Eclipse development. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938911#3938911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393891

[JBoss-user] [Management, JMX/JBoss] - Re: Class not found on

2006-04-19 Thread urswag
Thanks for Your answer It was a misstyping, I was so hyper active, it did not recognize it. It has to be com.sun.j2ee.blueprints.cart.ejb.ShoppingCartEJB View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938208#3938208 Reply to the post : http://www.jboss.com/

[JBoss-user] [Management, JMX/JBoss] - Class not found on

2006-04-19 Thread urswag
Who can help me? I have checked ejb-jar.xml, jboss.xml the clases are in the jar file. The other beans are working fine. anonymous wrote : | Bean : ShoppingCartEJB | Section: 22.2 | Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the e

[JBoss-user] [JBoss Seam] - Sorry

2006-04-16 Thread urswag
jboss-seam-booking not bound ist the cause. I do not know where I have to configure it. I have changed the app name from seam-booking to booking. anonymous wrote : | | 2006-04-16 20:58:18,906 DEBUG [org.jboss.seam.Component] instantiating Seam component: login | 2006-04-16 20:58:18,906

[JBoss-user] [JBoss Seam] - booking login problem

2006-04-16 Thread urswag
I try to build the booking seam example. I can build and deploy it. But after pressing the login button I get the error. | 2006-04-16 18:42:13,968 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: login | 2006-04-16 18:42:13,968 DEBUG [org.jboss.seam.Component] instantiating Se

[JBoss-user] [JBoss Eclipse IDE (users)] - Eclipse Library configuration

2006-04-15 Thread urswag
It is more a eclipse user question. I would like to configure a libary which can be used in the libraries tab in the Java Build Path. It should contain all jar files of | ...\JBoss\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs | Thanks View the original post : http://www.jboss.c

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - The correct entry for jbosscmp-jdbc.xml

2006-04-12 Thread urswag
What ist the correct entry in jbosscmp-jdbc.xml this ejb-jar.xml entry? The table addresslocals of the entity bean AddressEJB has primary key addressejb_upk. The table contactinfolocals of the entity bean ContactInfoEJB has primary key ContactInfoEJB_upk and foreing key address. A always get the

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - CMP Entity table create problem

2006-04-11 Thread urswag
Who can tell we why MySQL generates here an error? I think I have no influence in the table creation for a CMP bean. I need advices how I can debug this. | 4:35:51,984 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=com.sun.j2ee.blueprints.signon.user.ejb.UserLocalHome,

[JBoss-user] [JNDI/Naming/Network] - I have an entry in web.xml und ebj-jar.xml

2006-04-04 Thread urswag
Hello I get the error 16:03:16,171 ERROR [[PopulateServlet]] Servlet.service() for servlet PopulateServlet threw exception javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: com.sun.j2ee.blueprints.signon.user.ejb.UserLocalHome n

[JBoss-user] [Installation, Configuration & Deployment] - javax.naming.NameNotFoundException: comp not bound

2006-03-27 Thread urswag
Very informative error message!? EJB deployment can be very awful. What kind of reasons are this? 14:44:12,752 ERROR [MainDeployer] could not start deployment: file:/C:/Programme/JBoss/server/default/deploy/petstore.ear org.jboss.deployment.DeploymentException: Error during deploy; - nested thr

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: I need a good advice

2006-03-23 Thread urswag
I think I correct it the jndi-name was wrong. jboss-web.xml ejb/ShoppingController ShoppingControllerLocal The next error message is now: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameNotFoundExceptio

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - I need a good advice

2006-03-23 Thread urswag
Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/ShoppingController found in jboss-web.xml but not in web.xml web.xml entry ejb/ShoppingController Session com.sun.j2ee.blueprints.petstore.controller.ejb.ShoppingCo

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - URL connection string for MySQL

2006-03-09 Thread urswag
Hello What is the correct connection JDBC URL for the WinXP path C:\Programme\mysql\MySQL Server 5.0\data\petstore ? Please can someone write me the correct entry. I am not able to configure it. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929178#

[JBoss-user] [Installation, Configuration & Deployment] - Re: How can check the port?

2005-12-26 Thread urswag
OK but I cannot recognize the process using the port. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914359#3914359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914359 ---

[JBoss-user] [EJB/JBoss] - Re: How shall I interpret this? This xdoclet generate this.

2005-10-21 Thread urswag
The exception | org.jboss.deployment.DeploymentException: Parameter class not found: Integer | is throwed when I add this finder method. What I am doing wrong? | * @ejb.finder | * signature="Address findByPrimaryKey(Integer addressId)" | * query="SELECT OBJECT(a) FROM Ad

[JBoss-user] [EJB/JBoss] - How shall I interpret this?

2005-10-21 Thread urswag
I get parameter class not found during deploying. Can someone tell me how I have to interprete this exception stack? | 15:23:35,542 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'Partner' to jndi 'PartnerLocal' | 15:23:35,552 WARN [ServiceController] Problem starting service jboss.j2e

[JBoss-user] [JNDI/Naming/Network] - Re: Any good adivce for ejb not bound

2005-10-20 Thread urswag
Thanks You help me. I use xdoclet. I thought the PartnerAgency bean lookup does not work. Correctly the Partner bean lookup fails. I had to add | * @ejb.ejb-ref | * ejb-name="Partner" | * view-type="local" | * ref-name="ejb/PartnerLocal" | to generate the nece

[JBoss-user] [JNDI/Naming/Network] - Any good adivce for ejb not bound

2005-10-20 Thread urswag
It is hard, perhaps You have a good hint for me. In my ear file I always get a ejb not bound error. The call PartnerAgencyUtil.getLocalHome().create(); in the war file creates this exception. javax.naming.NameNotFoundException: ejb not bound at org.jnp.server.NamingServer.getBinding(Namin

[JBoss-user] [EJB/JBoss] - Re: Deployment error: Bean Provider must specify the fully-q

2005-10-17 Thread urswag
Thank You very much. I made a mess between the jar and war archive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901622#3901622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901622 -

[JBoss-user] [EJB/JBoss] - Re: Deployment error: Bean Provider must specify the fully-q

2005-10-17 Thread urswag
META-INF/ META-INF/MANIFEST.MF WEB-INF/ WEB-INF/classes/ WEB-INF/classes/org/ WEB-INF/classes/org/partnervermittlung/ WEB-INF/classes/org/partnervermittlung/ejb/ WEB-INF/classes/org/partnervermittlung/ejb/PartnerBean.class WEB-INF/classes/org/partnervermittlung/ejb/PartnerCMP.class WEB-INF/classes/

[JBoss-user] [EJB/JBoss] - Deployment error: Bean Provider must specify the fully-quali

2005-10-17 Thread urswag
In ejb-jar.xml there is an entry org.partnervermittlung.ejb.PartnerCMP In jboss.xml there is no entry in Partner PartnerLocal This is generated by xdoclet. Where is the bug Bean : Partner Section: 22.2 Warning: The Bean Provider must specify the fully

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - JSTL if statement does not work

2005-10-13 Thread urswag
The index2.jsp will be not included. loggedIn is a boolean property of the bean Partner. <[EMAIL PROTECTED] file="login2.jsp" %> And rather astonishing prints out ${Partner.loggedIn} Has anyone a good solution? Urs View the original post : http://www.jboss.com/index.html?module=bb&op=vie

[JBoss-user] [Installation, Configuration & Deployment] - EJB3Trail problem

2005-10-12 Thread urswag
The application does not run. It worked once. Any advice? type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.serv

[JBoss-user] [JNDI/Naming/Network] - Any advice

2005-09-04 Thread urswag
Who has any good advice for me? The result of the statement InitialContext ic = new InitialContext(prop); is: 23:30:18,023 INFO [STDOUT] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream c

[JBoss-user] [Installation, Configuration & Deployment] - Re: Not able to run my war folder properly

2005-08-27 Thread urswag
Perhaps this help. It is from the dvd app. I see they put myfaces-impl.jar into the dvd.war file. A workaround? Put simply myfaces-impl.jar in Your war app file. This could work. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891921#3891921 Reply to the pos

[JBoss-user] [Advanced Documentation] - dvd app application description

2005-08-27 Thread urswag
Is there any description about the dvd app? I do not see how the table are generated in the app. I try to port it to a firebrid database. The tables were not generated automatically. Thanks Urs View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891908#3891908

[JBoss-user] [Beginners Corner] - dvd app does not work

2005-08-26 Thread urswag
I have installed JBoss including eclipse. The dvd application does not work. I get the error message: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: The absolute

[JBoss-user] [Installation, Configuration & Deployment] - MyFaces and EJB3 app skeleton

2005-08-26 Thread urswag
Hello Has anybody a skeleotn app with MyFaces and EJB3 for Eclipse if possible. It would very accelerate my work. [EMAIL PROTECTED] Thanks Urs PS: The same for Struts and EJB3 for Eclipse would also interest me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtop

[JBoss-user] [EJB/JBoss] - Primary key generator pattern

2005-06-17 Thread urswag
Hello I need to generate the primary keys. Is there anywhere a good sample pattern with source code? Thanks Urs View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881966#3881966 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=rep

[JBoss-user] [EJB/JBoss] - Cannot generate primary key class with xdoclet

2005-05-22 Thread urswag
With xdoclet the primary can be generated. But I am not able to generate it. I have added in the MemberEJB.java file. * @ejb.pk * class="partner.domain.member.interfaces.MemberPK" * extends="java.lang.Object" * implements="java.io.Serializable" * generate="true" I always get an empty gener

[JBoss-user] [Persistence & CMP/JBoss] - EJB-QL parse error

2005-05-01 Thread urswag
What is wrong here? 2005-05-01 17:55:22,759 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: MBeans waiting for other MBeans: ObjectName: jboss.j2ee:jndiName=OrderItemLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.Depl