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.
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
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() {
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
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
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.
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
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
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()
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;
|
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
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
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
What does here JBoss?
anonymous wrote :
|
|
|
findByUserName
|
|
java.lang.String
|
Is open source always such a pain?
I changed jbosscmp.xml exception.
|
| LoginEntityBean
| login
|
|
|
|
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:
jbosscmp-jdbc.xml entry of the entity
anonymous wrote :
|
|
| LoginEntityBean
| login
|
| loginKey
| loginid
|
|
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
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=
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
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
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
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
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:
| [
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",
|
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
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/
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-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
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
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
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
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,
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
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
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
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
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#
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
---
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
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
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
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
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
-
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/
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
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
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
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
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
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
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
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
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
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
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
56 matches
Mail list logo