[jboss-user] [JBoss Seam] - seam-gen problem with generate-ui and repeated types

2008-02-08 Thread jcg3
I am designing from the entities out and the seam-gen generate-ui is incredibly 
helpful.  Great stuff.

I've noticed a minor thing that I have questions on.

I believe this is a bug...  anyone care to confirmation and/or tell me where to 
log the issue to be fixed in a future release?

The problem is best shown with a contrived example.  Suppose I'm building a 
model of a house and the doors in the house.  Here are two simple entities:

@Entity public class House {
  @Id private Long id;
  @OneToOne private Door frontDoor;
  @OneToOne private Door backDoor;
  ...
}

@Entity public class Door {
  @Id private Long id;
  private String description;
  ...
}

When I run seam-gen's generate-ui command, I get a HouseHome.java file that has 
the following annotations:

@In(create = true)
DoorHome doorHome;
@In(create = true)
DoorHome doorHome;

The obvious problem is that the generator assumes that both Door objects are 
the same type.  Incidentally, hibernate does hbm2ddl on this type of 
association properly (there are two columns and two foreign keys created in the 
db).

Thoughts?  Am I missing something or a custom mapping that I can provide the 
seam utility?

Thanks,
Jason


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128032#4128032

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen makes EARs that are 12X bigger than they need to be

2008-01-28 Thread jsimone
I created a new project with seam-gen create-project and then imported it into 
eclipse as a general project.  After copying the helloworld source files into  
the project to create a deployable EAR I noticed that the EAR that gets built 
from build.xml is 12 times larger that the helloworld.ear from the 2.0 updated 
book samples download.


helloworld.ear  @ 889 KB
newproject.ear @ 11377 KB

How can this be?   Did I do something wrong?

It seems the small helloworld.ear deploys and executes just fine even though 
there are about 100 less libs in it!

Thanks for listening!
(the above was with 2.0.1.CR2 version of Seam and Europa Eclipse with JBoss 
Tools 2.0 GA)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4124219#4124219

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124219
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam gen doesn't fit with JMS_MESSAGES?!

2008-01-17 Thread Mussie
Ok new error when doing seam gen from prompt I tried to generate entities!
And got this error: 15:56:16,466 WARN  [ServiceController] Problem starting 
service persistence.units:ear=helloworld.ear,unitName=helloworld
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Wrong column type: MESSAGEBLOB, expected: varbinary(255)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)

Messageblob is from the table JMS_MESSAGES in my hsqldb.
shouldn't this be correct why does seam expect another column type?

thanks and best regards,
Mussie

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120925#4120925

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120925
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generate-entities broken

2008-01-14 Thread nathandennis
grabbed seam from the cvs today 011408 to get around a few other bug in older 
revision.

wouldnt run generate entities on my existing db. 

jboss 4.2.1
postgres 8.1.5
postgresql-8.1-411.jdbc3.jar (current as of today) also tried with 410



  | [hibernate] INFO: Hibernate Annotations 3.3.0.GA
  | [hibernate] Jan 14, 2008 3:11:43 PM org.hibernate.ejb.Version clinit
  | [hibernate] INFO: Hibernate EntityManager 3.3.1.GA
  | [hibernate] An exception occurred while running exporter #2:generic 
exportertemplate: view/list.xhtml.ftl
  | [hibernate] To get the full stack trace run ant with -verbose
  | [hibernate] Problems in creating a configuration for JPA. Have you 
remembered to add hibernate EntityManager jars to the classpath ?
  | [hibernate] java.lang.reflect.InvocationTargetException
  | [hibernate] javax.persistence.PersistenceException: [PersistenceUnit: 
mysite] class or package not found
  | [hibernate] java.lang.ClassNotFoundException: com.mysite.model.UserAccount
  | [hibernate] A class were not found in the classpath of the Ant task.
  | 

it appears to be looking for a class com.mysite.model.UserAccount. the question 
is, why is it looking for it?  its looking for a table in my db that doesnt 
exist. 

any clue as to what is happening here?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119808#4119808

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119808
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam gen in eclipse?

2008-01-10 Thread Mussie
Hello Forum,
I'm trying to build a CRUD web application using seam-gen.
I watched these two movies:
http://www.jboss.com/products/seam/SeamHBTools.html
http://michaelyuan.com/download/seam/rhds-20070306.html

In michael yuans example there is a button Seam Gen on the menu bar in his 
eclipse. How do I get this button I thought I have all plugins.

In the JBoss example there is a button Generate JBoss Seam skeleton app in 
the window Hibernate Code Generation... / Exporters.
I don't have that either.
I have eclipse webtools and JBPM GPD, JbossIDE and TestNG plugin installed.
Is there anything missing?

Thanks and best regards,
Mussie

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118917#4118917

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118917
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen with rf 3.1.3 simpleTogglePanel float clearing

2007-12-23 Thread andrewa
Apparently rf 3.1.3 moved from tables to css for the simpleTogglePanel layout 
and now the seam-gen generated display forms have some float clearing issue.

To reproduce in a seam-gen generated project:
!DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |  
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | 
  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:rich=http://richfaces.org/rich;
  | template=layout/template.xhtml
  |
  | ui:define name=body
  | 
  | rich:simpleTogglePanel label=Lorem ipsum switchType=client width=30% 

  |   
  |   s:decorate template=layout/display.xhtml
  |   ui:define name=labelLorem ipsum/ui:define
  |   h:inputText id=lorem1 value=/
  |   /s:decorate
  |   
  |   s:decorate template=layout/display.xhtml
  |   ui:define name=labelLorem ipsum/ui:define
  |   h:inputText id=lorem2 value=/
  |   /s:decorate
  |   
  | /rich:simpleTogglePanel
  | 
  | /ui:define
  | 
  | /ui:composition

As a workaround I added to theme.css:
.rich-stglpanel-body {
  | overflow: auto;
  | }

Not sure if this also applies to other rf components like panel.

A more subtle seam-gen issue that I came across is that the components*.xml 
templates have an incorrect or outdated event id:
event type=org.jboss.seam.security.notLoggedIn
  |action execute=#{redirect.captureCurrentView}/
  | /eventshould beevent type=org.jboss.seam.notLoggedIn
  |action execute=#{redirect.captureCurrentView}/
  | /event

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115255#4115255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen : reverse DB : many-to-many convention ?

2007-12-14 Thread damienhuriet
Hi ! 

I'm trying to find the convention to use so that seam-gen generates a 
many-to-many relationship. 

I'm using seam 2.0 in Eclipse Europa and JBossTools. 
My DB is in MySQL 5.0. 
The wizards to generate entities from an existing DB works very well. 

I'have understood that there is a convention to name the link table to preform 
the many-to-many relationship between two other tables, 
but I could not find a precise description of it. 

What name should I give to this link table ? 
Is there other thing than the name to do ? 

Thanks in advance ! 
And thanks JBoss and all the contributers for their great job about Seam ! 
It rocks ! 

Damien 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4113074#4113074

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen, javax.el.PropertyNotFoundException when running Se

2007-12-05 Thread thoman23
Hello everybody,

I am brand new to Seam.  I have been evaluating it for a few days, and I'm very 
excited by the possibilities.  However, I keep running into an issue with 
seam-gen.

When I deploy a Seam example, like the seam-registration example, it works fine 
when I use the example build script ant explode or ant deploy targets.  
However, if I create an empty project using seam-gen, and then copy in the 
src and view files from the example to the seam-gen shell, I get the 
following error when clicking a command button in the application:

Exception during request processing:
Caused by javax.servlet.ServletException with message: /register.xhtml @17,84 
value=#{user.username}: Target Unreachable, identifier 'user' resolved to 
null
Caused by javax.el.PropertyNotFoundException with message: /register.xhtml 
@17,84 value=#{user.username}: Target Unreachable, identifier 'user' resolved 
to null

This happens both with the command line seam-gen and the Eclipse seam tools 
plugin.  I am sure others must run into this as well, but I can't find the 
exact resolution to the problem posted anywhere.

Can someone please help me get past this?  I'd really like to use seam-gen more 
in my evaluation.

Thanks,

Anthony

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110641#4110641

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110641
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen : list.xhtml - Create Button issue

2007-11-29 Thread gonzalad
Hello,

When using seam-gen (2.0.0) I have the following issue : in list page, button 
'Create entity' can disappear.

To reproduce the problem, you'll need 2 associated entities (i.e. @ManyToOne) :
1 - navigate to entity A list.
2 - click 'Create entity A' button.
3 - click 'Select entity B' button.
4 - on entity B edit page, just click on the menu link 'Entity A List'
5 - you're back to 'Entity A List' page, but the 'Create entity A' button just 
disappeared.

This issue is because Create button is rendered only if 'from' parameter is 
empty :
s:div styleClass=actionButtons rendered=#{empty from}

This isn't the case in interaction 4-5.

I've just modified menu.xhtml to force from parameter to '' and it resolves 
this issue :
changed from 
s:link view=/CustomerList.xhtml 
  |value=Customer List 
  |  propagation=none/
to :
s:link view=/CustomerList.xhtml 
  |value=Customer List 
  |  propagation=none
  | f:param name=from value=/
  | /s:link

Should I raise a JIRA ? Or have I misunderstood sthing ?

Thank you



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108794#4108794

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108794
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen 'generate-entities' generates invalid code for tabl

2007-11-14 Thread voreichel
Using seam-gen 'generate-entities' to generate a CRUD application from an 
existing PostgreSQL database does not generate working code.

I have the follwing two tables in my database:
Table t_user

  | CREATE TABLE t_user
  | (
  |   email character varying(255) NOT NULL,
  |   firstname character varying(255),
  |   lastname character varying(255),
  |   loginname character varying(255),
  |   password character varying(255),
  |   joined timestamp without time zone,
  |   CONSTRAINT t_user_pkey PRIMARY KEY (email)
  | ) 
  | 
and a second table t_user_roles

  | CREATE TABLE t_user_roles
  | (
  |   t_user_email character varying(255) NOT NULL,
  |   element integer,
  |   CONSTRAINT fk8fc22a14c7001400 FOREIGN KEY (t_user_email)
  |   REFERENCES t_user (email) MATCH SIMPLE
  |   ON UPDATE NO ACTION ON DELETE NO ACTION
  | ) 
  | 

element encodes which role a user is in.

When I run seam generate-entities I get no errors or warnings

  | C:\seam-buch\seam\jboss-seam-2.0.0.GAseam generate-entities
  | C:\seam-buch\jdk\jdk_1_5_0_12
  | Buildfile: C:\seam-buch\seam\jboss-seam-2.0.0.GA\seam-gen\build.xml
  | 
  | init:
  | 
  | init-properties:
  |  [echo] c:/seam-buch/appserv/jboss-4.2.1.GA
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  |  [echo] Reverse engineering database using JDBC driver 
C:/seam-buch/appserv/jboss-4.2.1.GA/server\default/lib/postgresql-8.2-506.jdbc2ee.jar
  |  [echo] project=c:/seam-buch/workspaceJBossTools/seamquizadmin
  |  [echo] model=com.seamguru.seamquizadmin
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] 14.11.2007 17:53:12 org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: Hibernate 3.2.5
  | [hibernate] 14.11.2007 17:53:12 org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] 14.11.2007 17:53:12 org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | [hibernate] 14.11.2007 17:53:12 org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.reveng.OverrideRepository 
addFile
  | [hibernate] INFO: Override file: 
c:\seam-buch\workspaceJBossTools\seamquizadmin\resources\seam-gen.reveng.xml
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Using Hibernate built-in connection pool (not for 
production use!)
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Hibernate connection pool size: 20
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: autocommit mode: false
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: using driver: org.postgresql.Driver at URL: 
jdbc:postgresql:seamDB
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: connection properties: {user=postgres, password=}
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: RDBMS: PostgreSQL, version: 8.2.5
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC driver: PostgreSQL Native Driver, version: 
PostgreSQL 8.2 JDBC2 with NO SSL (build 506)
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.dialect.Dialect init
  | [hibernate] INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
  | [hibernate] INFO: Using default transaction strategy (direct JDBC 
transactions)
  | [hibernate] 14.11.2007 17:53:13 
org.hibernate.transaction.TransactionManagerLookupFactory 
getTransactionManagerLookup
  | [hibernate] INFO: No TransactionManagerLookup configured (in JTA 
environment, use of read-write or transactional second-level cache is not 
recommended)
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Automatic session close at end of transaction: disabled
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC batch size: 15
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC batch updates for versioned data: disabled
  | [hibernate] 14.11.2007 17:53:13 org.hibernate.cfg.SettingsFactory 
buildSettings
  | 

[jboss-user] [JBoss Seam] - seam-gen entities: cascading bug or accepted behavior?

2007-11-14 Thread sstrenn
Folks,

When seam-gen generates an entity with a one-to-many association to another 
entity, it appears to always set the cascade attribute to CascadeType.ALL.

My sense is that this is incorrect behavior when the foreign key's constraint 
in the database is set to ON DELETE RESTRICT.

Is this an undocumented feature, or an misunderstanding of the expected 
behavior on my part.  If so, could you please give me a quick explanation of 
why CascadeType.ALL is correct when a foreign key's constraint is ON DELETE 
RESTRICT.

Thanks,
Stephen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4104799#4104799

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4104799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen is not a solution worth trying for existing EJB3 pr

2007-11-10 Thread mortena
Hi Seam folks

I've tried getting a proper start using seam by using seam-gen. The basis of 
the project is a running EJB3 application with a JSP based web-interface.

Based on a number of searches on the web I concluded that seam-gen should be 
able to generate the CRUD based WEB-UI in seconds based on the existing EJB3 
application.

It is not! And I recommend none to use that tool!

seam-gen reverse engineers directly from the database not the EJB3's already 
created and it does it in a rather dumb manner! ?

All the information regarding the relationships (OneToOne, ManyToOne and 
ManyToMany) between the entities are totally lost when the view is generated 
from database instead of directly from the EJB's.

The reason for this is probably that it was possible to use hibernate Tools as 
a basis for seam-gen and that the developers needed something up and running 
fast...

Why is there not a tool in the seam-gen pack, that makes it possible to 
generate a CRUD view with proper support for dates, relationsships etc. 
directly from EJB3 entities?

This would make it possible to create the entities, set the relationships 
between them and have a seam-application up and running based on that in no 
time.

Instead we're stuck with a tool that does some of the basic stuff in a 
seam-application like inserting strings into entities using a textinput but not 
the stuff like creating a drop-down with objects to select the One side in  a 
ManyToOne relationsship.

Please comment on the following:

 - How can I go from an existing EJB3 application with a JSP based ui to a seam 
application?
 - How can I support refactoring in such an application?
 - How can I support an iterative implementation in such an environment?
 - What are the plans with seam-gen?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103407#4103407

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen generates compile error

2007-11-06 Thread sdthomas
I am attempting to reverse engineer a database with seam-gen/generate-entities. 
 Everything is built correctly.  But the isDefined() method in the generated 
TransectHome class incorrectly applies a Strings.isEmpty() method (the objects 
are not always Strings).  Is this a bug?

Generated Pojo

@Entity
  | @Table(name = transect, schema = public)
  | public class Transect implements java.io.Serializable {
  | 
  | private TransectId id;
  | 
  | public Transect() {
  | }
  | 
  | public Transect(TransectId id) {
  | this.id = id;
  | }
  | 
  | @EmbeddedId
  | @AttributeOverrides({
  | @AttributeOverride(name = pkTransect, column = 
@Column(name = pk_transect, nullable = false)),
  | @AttributeOverride(name = transectId, column = 
@Column(name = transect_id)),
  | @AttributeOverride(name = transectName, column = 
@Column(name = transect_name)),
  | @AttributeOverride(name = groupedData, column = 
@Column(name = grouped_data)),
  | @AttributeOverride(name = plots, column = 
@Column(name = plots))})
  | @NotNull
  | public TransectId getId() {
  | return this.id;
  | }
  | 
  | public void setId(TransectId id) {
  | this.id = id;
  | }
  | 
  | }

Generated Id Class

@Embeddable
  | public class TransectId implements java.io.Serializable {
  | 
  | private int pkTransect;
  | private Integer transectId;
  | private String transectName;
  | private Integer groupedData;
  | private String plots;
  | 
  | public TransectId() {
  | }
  | 
  | public TransectId(int pkTransect) {
  | this.pkTransect = pkTransect;
  | }
  | public TransectId(int pkTransect, Integer transectId, String 
transectName,
  | Integer groupedData, String plots) {
  | this.pkTransect = pkTransect;
  | this.transectId = transectId;
  | this.transectName = transectName;
  | this.groupedData = groupedData;
  | this.plots = plots;
  | }
  | 
  | @Column(name = pk_transect, nullable = false)
  | @NotNull
  | public int getPkTransect() {
  | return this.pkTransect;
  | }
  | 
  | public void setPkTransect(int pkTransect) {
  | this.pkTransect = pkTransect;
  | }
  | 
  | @Column(name = transect_id)
  | public Integer getTransectId() {
  | return this.transectId;
  | }
  | 
  | public void setTransectId(Integer transectId) {
  | this.transectId = transectId;
  | }
  | 
  | @Column(name = transect_name)
  | public String getTransectName() {
  | return this.transectName;
  | }
  | 
  | public void setTransectName(String transectName) {
  | this.transectName = transectName;
  | }
  | 
  | @Column(name = grouped_data)
  | public Integer getGroupedData() {
  | return this.groupedData;
  | }
  | 
  | public void setGroupedData(Integer groupedData) {
  | this.groupedData = groupedData;
  | }
  | 
  | @Column(name = plots)
  | public String getPlots() {
  | return this.plots;
  | }
  | 
  | public void setPlots(String plots) {
  | this.plots = plots;
  | }
  | 
  | public boolean equals(Object other) {
  | if ((this == other))
  | return true;
  | if ((other == null))
  | return false;
  | if (!(other instanceof TransectId))
  | return false;
  | TransectId castOther = (TransectId) other;
  | 
  | return (this.getPkTransect() == castOther.getPkTransect())
  |  ((this.getTransectId() == 
castOther.getTransectId()) || (this
  | .getTransectId() != null
  |  castOther.getTransectId() != 
null  this
  | 
.getTransectId().equals(castOther.getTransectId(
  |  ((this.getTransectName() == 
castOther.getTransectName()) || (this
  | .getTransectName() != null
  |  castOther.getTransectName() 
!= null  this
  | 
.getTransectName().equals(castOther.getTransectName(
  |  ((this.getGroupedData() == 
castOther.getGroupedData()) || (this
  | .getGroupedData() != null
  |  castOther.getGroupedData() 
!= null  this
  | 
.getGroupedData().equals(castOther.getGroupedData(
  |  ((this.getPlots() == 

[jboss-user] [JBoss Seam] - -Seam-gen PropertyNotFoundException after generate-entities

2007-11-05 Thread nharrison
Hi,

I'm evaluating Seam and trying to deploy a simple app using seam-gen with a 
preexisting MySQL database (also tried the same with MSSQL).

I've tried to deploy with JBoss 4.2.0 and  4.2.2 with both seam 1.2 and 2.0CR3.

The empty shell seam-gen runs fine. After running generate-entites the , 
generated entities match the DB schema and the pages are created.  But  upon 
accessing the home page a PropertyNotFound exception occurs:

  | javax.el.PropertyNotFoundException: Property 'sApplications' not found on 
type shippingapp.SApplicationsList_$$_javassist_0
  | at 
javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)

The problem occurs when an s:link tag is rendered in the menu.  This links to 
a page called:  SApplicationsList.xhtml (corresponding to the SApplictions.java 
entity - see DDL below).   Along with the xhtml page there is a 
SApplicationsList.page.xml file.   The problem occurs there when the following 
is rendered, specifically, when the 
sApplicationsList.sApplications.shipmentCode EL is processed.   This seems to 
suggest an issue with EJB3 / Hibernate...  but I'm new to this..

?xml version=1.0 encoding=UTF-8?
  | page xmlns=http://jboss.com/products/seam/pages;
  |   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |   xsi:schemaLocation=http://jboss.com/products/seam/pages 
http://jboss.com/products/seam/pages-2.0.xsd;
  |   
  |param name=firstResult value=#{sApplicationsList.firstResult}/
  |param name=order value=#{sApplicationsList.order}/
  |param name=from/
  |param name=shipmentCode 
value=#{sApplicationsList.sApplications.shipmentCode}/
  |param name=projectBrief 
value=#{sApplicationsList.sApplications.projectBrief}/
  | 
  | /page

DROP TABLE IF EXISTS `dbo`.`s_applications`;
  | CREATE TABLE  `dbo`.`s_applications` (
  |   `applicationId` int(10) unsigned NOT NULL AUTO_INCREMENT,
  |   `shipmentCode` varchar(45) DEFAULT NULL,
  |   `dateInitialContact` datetime DEFAULT NULL,
  |   `projectBrief` text,
  |   PRIMARY KEY (`applicationId`)
  | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


Any clues?

Thanks,

Neville


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102053#4102053

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen in components.xml wrongly puts action execute

2007-11-02 Thread codelion
In the seam-gen generate components.xml the two

action execute

apparently don't go with the 2.0 schema, says my Eclipse.

It is happy with an

action expression

instead.  Not sure who of the parties is wrong, but one of them is.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101163#4101163

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen with hxtt

2007-10-29 Thread sa_shadow
hi!
i have a little problem here.
i'm trying to access dbf from seam via hxtt driver. There are two jars:
jdbc_dbf.jar - driver
hibernate.jar - it contains HxttDbfDialect class, that is used too. 
So now when i run seam setup i can place there only one jar- JDBC driver. But i 
need to attach dialect class too. I've tried to put both jars into lib dirs and 
write an options to .classpath file - but it took no affect. 
i've noticed i can write two lines with driver.jar property - if that the last 
option will be used and previous will be ignored. 

Is it possible to set dialect class with any other way or i;ve forgotten smth? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100051#4100051

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100051
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generate entities errors

2007-10-22 Thread bdlink
Saw something similar in JIRA regarding Temporal fields, but that is not an 
issue here.  

Running Seam 2.0.0.CR2 with JDK 1.5.0_12 and JBoss4.2.1.GA and eclipse3.3.1 
with JBoss Tools2.0.0.beta4 installed.

Created a new project with seamgen new-project with the following properties: 
  | #Generated by seam setup
  | #Sun Oct 21 13:21:48 PDT 2007
  | hibernate.connection.password=changed
  | workspace.home=C\:/Documents and Settings/blink/workspace33
  | model.package=ca.bcit.infosys.entity
  | 
hibernatetool.metadatadialect=org.hibernate.cfg.reveng.dialect.MySQLMetaDataDialect
  | driver.jar=lib/mysql-connector-java-5.0.7-bin.jar
  | action.package=ca.bcit.infosys.session
  | test.package=ca.bcit.infosys.test
  | database.type=mysql
  | richfaces.skin=blueSky
  | hibernate.default_catalog.null=
  | hibernate.default_schema.null=
  | database.drop=n
  | project.name=infosys
  | hibernate.connection.username=changed
  | hibernate.connection.driver_class=com.mysql.jdbc.Driver
  | hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
  | project.type=ear
  | icefaces.home=
  | database.exists=y
  | jboss.home=C\:/apps/jboss-4.2.1.GA
  | hibernate.dialect=org.hibernate.dialect.MySQLDialect
  | hibernate.connection.url=jdbc\:mysql\://localhost\:3306/infosys
  | 

then generated entities from the mysql database.  No errors from seamgen script.

Code generated did not compile due to duplicate names (the type was used 
instead of the column name for the variable name - column name would be 
better).  After fixing this so it would compile, project would not deploy.  

Error:

  | 11:40:40,929 INFO  [SchemaValidator] Running schema validator
  | 11:40:40,929 INFO  [SchemaValidator] fetching database metadata
  | 11:40:40,999 INFO  [TableMetadata] table found: infosys.review
  | 11:40:40,999 INFO  [TableMetadata] columns: [comments, ratepersonal3, 
reviewer, rateleadership4, tech4, ratepersonal4, ratetask1, id, ratepersonal5, 
ratetech1, ratetask3, ratetask6, rateleadership2, ratepersonal2, tech3, 
summary, period, received, ratetask8, ratepersonal7, reviewtype, ratetech2, 
rateleadership1, ratetask5, ratepersonal8, ratetask7, ratetask2, 
rateleadership3, tech1, ratetech4, year, pos, ratepersonal1, employee, 
ratepersonal6, ratetech3, tech2, ratetask4]
  | 11:40:41,009 WARN  [ServiceController] Problem starting service 
persistence.units:ear=infosys.ear,unitName=infosys
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Wrong column type: id, expected: varchar(32)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
  | 
The generated annotation for the Review class is as follows:

  | @Entity
  | @Table(name = review, catalog = infosys)
  | public class Review implements java.io.Serializable {
  | 
  | private String id;
  | ...
  | @Id
  | @Column(name = id, unique = true, nullable = false, length = 32)
  | @NotNull
  | @Length(max = 32)
  | public String getId() {
  | return this.id;
  | }
  | ...
  | 

Following is the schema of the review table:

  | CREATE TABLE `review` (
  |   `id` char(32) NOT NULL,
  |   `employee` varchar(32) default NULL,
  |   `pos` varchar(20) default NULL,
  |   `reviewer` varchar(32) default NULL,
  |   `received` datetime default NULL,
  |   `period` tinyint(4) default NULL,
  |   `year` smallint(4) unsigned default NULL,
  |   `reviewType` varchar(20) default NULL,
  |   `tech1` varchar(35) default NULL,
  |   `rateTech1` tinyint(3) unsigned default NULL,
  |   `tech2` varchar(35) default NULL,
  |   `rateTech2` tinyint(3) unsigned default NULL,
  |   `tech3` varchar(35) default NULL,
  |   `rateTech3` tinyint(3) unsigned default NULL,
  |   `tech4` varchar(35) default NULL,
  |   `rateTech4` tinyint(3) unsigned default NULL,
  |   `rateTask1` tinyint(3) unsigned default NULL,
  |   `rateTask2` tinyint(3) unsigned default NULL,
  |   `rateTask3` tinyint(3) unsigned default NULL,
  |   `rateTask4` tinyint(3) unsigned default NULL,
  |   `rateTask5` tinyint(3) unsigned default NULL,
  |   `rateTask6` tinyint(3) unsigned default NULL,
  |   `rateTask7` tinyint(3) unsigned default NULL,
  |   `rateTask8` tinyint(3) unsigned default NULL,
  |   `ratePersonal1` tinyint(3) unsigned default NULL,
  |   `ratePersonal2` tinyint(3) unsigned default NULL,
  |   `ratePersonal3` tinyint(3) unsigned default NULL,
  |   `ratePersonal4` tinyint(3) unsigned default NULL,
  |   `ratePersonal5` tinyint(3) unsigned default NULL,
  |   `ratePersonal6` tinyint(3) unsigned default NULL,
  |   `ratePersonal7` tinyint(3) unsigned default NULL,
  |   `ratePersonal8` tinyint(3) unsigned default NULL,
  |   `rateLeadership1` tinyint(3) unsigned default NULL,

[jboss-user] [JBoss Seam] - seam-gen EntityList, how to disable auto search

2007-10-13 Thread terryb

In search (list) pages generated by seam-gen. it automatically displays results 
when list page is first opened.

I can't seem to find a way to stop this auto search behaviour? I would like to 
stop that, and only execute search when pressing search button.

Also, I got some buttons on page, which should render olny if user had typed 
any search values. Is it possible to make this check in EntityList object?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094856#4094856

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] Seam-Gen: Current best practices for dealing with JBSEAM-994?

2007-10-10 Thread Tony Payne
What is considered the best practice for dealing with JBSEAM-994,  
where seam-gen is unable to deal with tables which reference another  
table multiple times? I'm evaluating using Seam, and this is  
presenting a significant roadblock to my evaluation. I am reluctant  
to fix the Home classes directly, as I will be regenerating pretty  
frequently during the early phases of the project.


Tony

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBOSS-SEAM] Seam-Gen: Current best practices for dealing with JBSEAM-994?

2007-10-08 Thread Tony Payne
What is considered the best practice for dealing with JBSEAM-994,  
where seam-gen is unable to deal with tables which reference another  
table multiple times? I'm evaluating using Seam, and this is  
presenting a significant roadblock to my evaluation. I am reluctant  
to fix the Home classes directly, as I will be regenerating pretty  
frequently during the early phases of the project.


Tony Payne
Lone Star Software Engineering Services, Inc.
[EMAIL PROTECTED]
818-723-8527 (C)



___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen : old issues

2007-10-04 Thread atao
There is a bunch of feature requests for seam-gen that are awaiting now for 
quite a long time, e.g.:

JBSEAM-994   seam-gen and mutiple foreign keys,
JBSEAM-843   Generate application from existing entities,
JBSEAM-1493 Seam-gen: allow return to original page,
JBSEAM-1136 Support multiple projects in Seam Gen,
JBSEAM-1206 improve i18n in seam-gen.

Is there any schedule about them? Can we expect to see them in some release 
2.0.x?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091369#4091369

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091369
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-Gen Project Directory Structures

2007-10-03 Thread dhinojosa
http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html/configuration.html#d0e13286

Referencing the above link, is there anyway we can choose the directory 
structure (standard, 25.2.1, 25.3.3, 25.5.2, or 25.6.1) with seam-gen to create 
our desired structure?

I prefer not to use the standard structure, and depending on the technology, 
structures could change.

Also, are there plans to put cobertura in the seam-gen?  BTW, I am willing send 
some enhancement patches to seam-gen if you are interested. 

Let me know,
Danno

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091154#4091154

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen changes character

2007-10-03 Thread piotr.walczyszyn
I'm running recent CVS version and I just found out (the hard way) that 
seam-gen when I run seam update-project command changes - to _ character in 
my project name and all the jars and updates end up in different folder than I 
expected.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091187#4091187

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091187
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen

2007-10-01 Thread marius.oancea
Hello, I have a column ABSPROP_PROP_UNIQUE_GUID CHAR(32).

Seam-gen generates the following code in the Entity:
@Column(name = ABSPROP_PROP_UNIQUE_GUID, nullable = false, length = 
32)
  | @NotNull
  | @Length(max = 32)
  | public String getAbspropPropUniqueGuid() {
  | return this.abspropPropUniqueGuid;
  | }
  | 



When I deploy the aplicaiton in JBoss, i got:
--- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:ear=eptosiv.ear,unitName=eptosiv
  |   State: FAILED
  | 
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Wrong column type: ABSPROP_PROP_UNIQUE_GUID, 
expected: varchar(32)
  |   I Depend On:
  | jboss.jca:service=DataSourceBinding,name=ivDatasource
  | 



I found some things in 
http://forum.hibernate.org/viewtopic.php?p=2336432#2336432,

http://jira.jboss.com/jira/browse/JBSEAM-637

but nothing helped me to solve this problem.

Any clue what I can try?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090212#4090212

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090212
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen problem when same table is referenced two times

2007-09-26 Thread marius.oancea
Hello,
  I have a table USER and a table ADDRESS.

USER has two (important) attributes :
- localAddress
- remoteAddress

both are foreign keys to ADDRESS table.

So in ADDRESS table we will have two records for each user.

seam generate-entities perfectly generate the beans but home entities are 
wrong. Name of address home entities injected in user home have the same name.



  | create table xx.user (
  | userid varchar(10)NOT NULL  PRIMARY KEY,
  | local_address integer,
  | remote_address integer
  | ) in userspace1;
  | 
  | create table xx.ADDRESS (
  | adrid integer NOT NULL  PRIMARY KEY,
  | street varchar(200),
  | streetNo integer
  | ) in userspace1;
  | 
  | alter table xx.user add CONSTRAINT ADR1  foreign key (local_address) 
references xx.ADDRESS(adrid);
  | alter table xx.user add CONSTRAINT ADR2  foreign key (remote_address) 
references xx.ADDRESS(adrid);
  | 



  | Entity user is good:
  | @Entity
  | @Table(name = USER, schema = xx)
  | public class User implements java.io.Serializable {
  | 
  | private String userid;
  | private Address addressByLocalAddress; // correct, different names
  | private Address addressByRemoteAddress; // correct, different names
  | 


but in UserHome we have:

  | @Name(userHome)
  | public class UserHome extends EntityHomeUser {
  | 
  | @In(create = true)
  | AddressHome addressHome; //- WRONG, SAME NAME
  | @In(create = true)
  | AddressHome addressHome; //- WRONG, SAME NAME
  | 


I'm using SEAM 2.0 BETA (Hibernate Tools 3.2.0.b9) with ant.

Any clue?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=403#403

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam gen issue

2007-09-24 Thread minamti
I get an error from seam generate-entities for the following situations.

table locale

locale_id integer NOT NULL, 
locale_name varchar(10) NOT NULL, 
locale_desc varchar(50) NOT NULL, 
PRIMARY KEY(locale_id)

table user 

user_id integer NOT NULL, 
locale_id integer NOT NULL, 
.
PRIMARY KEY(user_id, locale_id)
FOREIGN KEY(locale_id) REFERENCES locale(locale_id) ON DELETE RESTRICT

table foo

foo_id integer NOT NULL,
locale_id integer NOT NULL,
foo_user1 integer NOT NULL, 
foo_user2 integer NOT NULL, 
...
PRIMARY KEY(foo_id, locale_id)
FOREIGN KEY(locale_id) REFERENCES locale(locale_id) ON DELETE RESTRICT
FOREIGN KEY(foo_user1) REFERENCES user(user_id) ON DELETE RESTRICT
FOREIGN KEY(foo_user2) REFERENCES user(user_id) ON DELETE RESTRICT


FooHome will have two UserHome declarations and a compiler error results. 

I see this error.

org.hibernate.AnnotationException: A Foreign key refering User from Foo has the 
wrong number of colum. should be 2.

Thanks, 

M








View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088234#4088234

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088234
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen setup and maven

2007-09-22 Thread atao
I just updated seam from cvs and tried to created a new project.

When I run seam setup I get:
anonymous wrote : 
  | Buildfile: C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml
  | 
  | init:
  | [artifact:dependencies] Downloading: 
org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.pom
  | [artifact:dependencies] [WARNING] POM for 
'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:compile' is invali
  | d. It will be ignored for artifact resolution. Reason: The POM expression: 
${version} could not be evaluated. Reason: Ex
  | pression value '${version}.${patchlevel}' references itself in 
'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchleve
  | l}'. for project org.jboss.seam:jboss-seam-gen at Artifact 
[org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:c
  | ompile]
  | [artifact:dependencies] Downloading: 
org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.jar
  | [artifact:dependencies] An error has occurred while processing the Maven 
artifact tasks.
  | [artifact:dependencies]  Diagnosis:
  | [artifact:dependencies]
  | [artifact:dependencies] Unable to resolve artifact: Missing:
  | [artifact:dependencies] --
  | [artifact:dependencies] 1) 
org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies]   Try downloading the file manually from the 
project website.
  | [artifact:dependencies]
  | [artifact:dependencies]   Then, install it using the command:
  | [artifact:dependencies]   mvn install:install-file 
-DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]   -Dversion=${version}.${patchlevel} 
-Dpackaging=jar -Dfile=/path/to/file
  | [artifact:dependencies] Alternatively, if you host your own repository you 
can deploy the file there:   mvn deploy:d
  | eploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]   -Dversion=${version}.${patchlevel} 
-Dpackaging=jar -Dfile=/path/to/file \
  | [artifact:dependencies]-Durl=[url] -DrepositoryId=[id]
  | [artifact:dependencies]
  | [artifact:dependencies]   Path to dependency:
  | [artifact:dependencies] 1) unspecified:unspecified:jar:0.0
  | [artifact:dependencies] 2) 
org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies] --
  | [artifact:dependencies] 1 required artifact is missing.
  | [artifact:dependencies]
  | [artifact:dependencies] for artifact:
  | [artifact:dependencies]   unspecified:unspecified:jar:0.0
  | [artifact:dependencies]
  | [artifact:dependencies] from the specified remote repositories:
  | [artifact:dependencies]   central (http://repo1.maven.org/maven2)
  | [artifact:dependencies]
  | [artifact:dependencies]
  | 
  | BUILD FAILED
  | C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml:25: Unable to 
resolve artifact: Missing:
  | --
  | 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command:
  |   mvn install:install-file -DgroupId=org.jboss.seam 
-DartifactId=jboss-seam-gen \
  |   -Dversion=${version}.${patchlevel} -Dpackaging=jar 
-Dfile=/path/to/file
  | Alternatively, if you host your own repository you can deploy the file 
there:   mvn deploy:deploy-file -DgroupId=org
  | .jboss.seam -DartifactId=jboss-seam-gen \
  |   -Dversion=${version}.${patchlevel} -Dpackaging=jar 
-Dfile=/path/to/file \
  |-Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency:
  | 1) unspecified:unspecified:jar:0.0
  | 2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  | --
  | 1 required artifact is missing.
  | 
  | for artifact:
  |   unspecified:unspecified:jar:0.0
  | 
  | from the specified remote repositories:
  |   central (http://repo1.maven.org/maven2)
  | 
  | 
  | Total time: 2 seconds
  | 
  | 

I don't know Maven. It seams that version and patchlevel should be initialized.

Am'I right? If so, where this must be done?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4087554#4087554

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087554
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen and Hibernate Search

2007-08-30 Thread srpantano
I created classes with Seam-Gen (Seam 1.2.1) and I try use Hibernate Search the 
follow errors appears:



  | 14:41:05,194 INFO  [STDOUT] Hibernate: insert into RCR.CONF_SYSTEM 
(SYSTEM_NAME, ID_SYSTEM) values (?, ?)
  | 14:41:05,209 FATAL [application] java.lang.reflect.InvocationTargetException
  | javax.faces.el.EvaluationException: 
java.lang.reflect.InvocationTargetException
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
  | 
...

  | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.reflect.InvocationTargetException
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
...

  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | ... 61 more
  | Caused by: java.lang.NoSuchMethodError: 
org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
  | at 
org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
  | at 
org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
  | at 
org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
  | at 
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
  | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
  | 
...

  | at 
org.jboss.seam.persistence.EntityManagerProxy.flush(EntityManagerProxy.java:83)
  | at org.jboss.seam.framework.EntityHome.persist(EntityHome.java:49)
  | at 
com.bcsinfo.security.view.web.util.AuditLogHome.persist(AuditLogHome.java:79)
  | ... 92 more
  | 14:41:05,209 WARN  [lifecycle] #{sistemHome.persist}: 
java.lang.reflect.InvocationTargetException
  | javax.faces.FacesException: #{sistemHome.persist}: 
java.lang.reflect.InvocationTargetException
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 
...

  | at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | ... 61 more
  | Caused by: java.lang.NoSuchMethodError: 
org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
  | at 
org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
  | at 
org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
  | at 
org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
  | at 
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
  | 

the Seam-gem (1.2.1) and Hibernate Search works togheter?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079714#4079714

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079714
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen and hibernate tools! Target Unreachable, identifier

2007-08-25 Thread dashti
Hi there !

I wanted to generate my entites automatically from my database !

I used jboss-seam-2.0.0.BETA1 , jboss-4.2.1.GA, 
JBossTools-200706241629-nightly-ALL-win32.

I had 2 ways:

1. I used hibernate tools reverse engineering to do this approach!
I get the lastest dev Jboss IDE from the eclipse update center
and do the tutorial follow the flash , 
http://www.jboss.com/products/seam/captivate/SeamHBTools.swf

there was a big problem that there was no longer 
@jboss.seam.annotations.IfInvalid in the jboss-seam.jar. and after deleting all 
references to it, it doesn't work either !

how can I get it work ??!?

2. after that I used Seam Gen:
first of all , I made a new project, and the I used generate entites, it worked 
properly, but when I run the project, I can login, and after logging in, I go 
to one of the xyzList pages, and after trying to use Create New row or Search 
the table, I encounter this exeption:


so now i cannot ran this tutorial , 
maybe this tutorial cannot work in the lastest Jboss IDE or something i do 
wrong .
 Exception during request processing:
  | Caused by javax.el.PropertyNotFoundException with message: Target 
Unreachable, identifier 'humansHome' resolved to null
  | 
  | org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
  | org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
  | org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
  | org.jboss.seam.navigation.Page.preRender(Page.java:275)
  | org.jboss.seam.navigation.Pages.preRender(Pages.java:292)
  | 
org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:541)
  | 
org.jboss.seam.jsf.SeamPhaseListener.beforeRender(SeamPhaseListener.java:473)
  | 
org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
  | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
  | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
  | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
  | 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | 

[jboss-user] [JBoss Seam] - Seam-gen and @Version annotation

2007-08-17 Thread franciscoacb
If the use of @Version annotation is a good pratice (if - I'm not sure)), then 
wouldn't it be a good idea to seam-gen generate it within entities code 
(generate-entities)?

Cheers,
Francisco Antônio
Although nobody can come back and make a new start, anyone can start now and 
make a new end. (Chico Xavier, Brazil's most famous medium)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075321#4075321

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075321

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generate-entities has detectmanytomany=false. why

2007-08-17 Thread modoc
Why is the detectmanytomany flag set to false for the hibernate reverse 
engineering?  Is there a reason you wouldn't want them detected as the default 
state?

Thanks!

Devon

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075427#4075427

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075427
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam gen floats (in many meanings ...)

2007-08-10 Thread limousyf
Hello,

I notice a weird stuff about my seam-generated entities.

I have float fields in two of my tables :

Forfait :


  | CREATE TABLE `forfait` (
  |   `forfait_id` int(11) NOT NULL auto_increment,
  |   `numero_avenant` varchar(60) NOT NULL,
  |   `numero_commande` varchar(60) default NULL,
  |   `date_signature` date NOT NULL,
  |   `montant_total` float default NULL,
  |   `conditions_generales_id` int(11) NOT NULL,
  |   `contact_client_id` int(11) default NULL,
  |   PRIMARY KEY  (`forfait_id`),
  |   KEY `contact_client_id` (`contact_client_id`),
  |   KEY `conditions_generales_id` (`conditions_generales_id`)
  | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  | 

and Regie :


  | CREATE TABLE `regie` (
  |   `regie_id` int(11) NOT NULL auto_increment,
  |   `numero_avenant` varchar(60) NOT NULL,
  |   `numero_commande` varchar(60) default NULL,
  |   `date_signature` date NOT NULL,
  |   `date_debut` date default NULL,
  |   `date_fin` date default NULL,
  |   `descriptif_intervention` text NOT NULL,
  |   `montant_total` float NOT NULL,
  |   `tarif_journalier` float default NULL,
  |   `conditions_generales_id` int(11) NOT NULL,
  |   `contact_client_id` int(11) default NULL,
  |   `collaborateur_id` int(11) default NULL,
  |   PRIMARY KEY  (`regie_id`),
  |   KEY `contrat_cadre_id` (`conditions_generales_id`),
  |   KEY `contact_client_id` (`contact_client_id`),
  |   KEY `collaborateur_id` (`collaborateur_id`)
  | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  | 

Here's an extract of the entities :

Forfait :


  | @Column(name = montant_total, precision = 12, scale = 0)
  | public Float getMontantTotal() {
  | return this.montantTotal;
  | }
  | 

and Regie :


  | @Column(name = montant_total, nullable = false, precision = 12, scale 
= 0)
  | @NotNull
  | public float getMontantTotal() {
  | return this.montantTotal;
  | }
  | 
  | 
  | @Column(name = tarif_journalier, precision = 12, scale = 0)
  | public Float getTarifJournalier() {
  | return this.tarifJournalier;
  | }
  | 

My question is: why is this a float and not a Float generated in Regie for the 
montant_total column ?
The exact same column in Forfait generated a Float.
Is this some kind of bug or did I miss something ?

tarif_journalier in Regie can be NULL so I guess a Float is mandatory here, to 
handle default NULL value.
But for montant_total I don't get it ...


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072943#4072943

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072943
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen plugin available for Eclipse yet?

2007-08-09 Thread asookazian
There's one available for NetBeans.  Anything available now for Eclipse?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072648#4072648

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072648
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam Gen

2007-07-29 Thread mrohad
Is there any documentation or any test case how to change seam gen?

i.e I would like to have drop down list for codes-tables

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068539#4068539

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068539
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen: is there a way to regenerate the UI without regene

2007-07-26 Thread cupdike
Using Seam 1.2.1 GA, I used seam-gen to reverse engineer from some db tables.  
However, I need to tweak the mappings .  Is there anyway to regenerate the UI 
without doing the full generate-entities?  Probably even better would be to 
generate everything BUT the entities (including Home and List objects) but I'd 
be happy with even just regenerating the UI.

Thanks, Clark

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4067911#4067911

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen build corrupts images

2007-07-20 Thread trickyvail
Seam 1.2.1.GA

I have experienced corrupt image files when creating new seam-gen projects in a 
Linux environment (Debian  Ubuntu) for some time. When creating a new seam-gen 
project in a WindowsXP environment the file corruption does not occur.

There are only 3 files that are effected by this problem:

/view/img/cal-next.png
/view/img/cal-prev.png
/view/img/dtpick.gif

So it has not been a big deal to copy the files over manually.

I've done a little research into the problem and I think it is related to the 
use of a filterset in the ant copy task on lines 602-605 of the seam-gen build 
file $SEAM_HOME/seam-gen/build.xml
  | 
  | 
  | copy todir=${project.home}/view
  | fileset refid=view/
  | filterset refid=project/
  | /copy

The ANT documentation (http://ant.apache.org/manual/CoreTasks/copy.html) says:
anonymous wrote : Note: If you employ filters in your copy operation, you 
should limit the copy to text files. Binary files will be corrupted by the copy 
operation. This applies whether the filters are implicitly defined by the 
filter task or explicitly provided to the copy operation as filtersets. See 
encoding note.
  | 

When copying the contents of the image directory within a copy task (without 
any filters) the file corruptions do not occur.

Would it be appropriate to post a JIRA issue with a patch?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066241#4066241

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066241
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-Gen and overwriting of files

2007-07-19 Thread garypinkham
Is there a way to have Seam generate-entities not overwrite existing files? 
I have been using it in an incremental way.   I make some tables.  
generate-entities.   do some coding and go back to making some new tables 
etc...   The issue I mostly have is it wipes out my menu.xhtml.   I'd like to 
keep that. I tried searching the forum and looking thru the docs and 
scripts and didn't notice a parameter or something to tell it not to overwrite. 
 Any help would be great!

Thanks
Gary

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065930#4065930

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065930
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen plus arhitecture questions

2007-07-18 Thread trouby
Hey,

I was wondering about few issues that I'll be glad if you guys can make them 
clear to me,

Since actions can be implemented on any bean without much limitations, I'm 
kinda confused how to design my beans correctly.

Usually actions needs access to resources such as database, transactions, 
etc... and since EJBs are not so expensive (performance/system resources, 
etc...), then I understand the concept and suggestions of making most of the 
beans as EJBs,

but I'm still confused of how to divide my business code correctly,

1st question:

It seems that part of the applications implements an EJB per action(lets say 
searching a specific type of entities), sometimes there is an EJB per 
entity(all CRUD operations + some other actions related to that specific 
entity), etc...

In very big applications, for example, having an EJB per entity search might 
end with about 40-50 ejbs, and this is only about search, but sometimes 
consolidating all actions related to a specific entity to one EJB grows and 
grows and my ejbs looks too big and hard to manage.
and if all methods related to one entity are implemented within the same EJB, 
it is more confusing where to implement methods that are related to more than 
one entity.

Are there any standards and suggestions how to divide the business code 
correctly/best way?


2nd question:
Also, are you guys suggesting the structure that seam-gen creates? are all the 
application samples of SEAM are generated by seam-gen? or having the same 
project structures? or there are suggestions and standards of project 
structure(I mean the structure of the view/web resources/ejbs/etc...) depends 
on the project size and needs?


3rd question:
Since it became easier with EJB3 to create the entities and their relations 
than creating the tables and managing the foreign keys manually (at least I see 
it that way), it would be very nice if seam-gen could generate all the CRUD 
view/ejbs based on the created entities and not by tables,

I only found the 'generate-entities'  command that generates the 
entities/view/ejbs based on tables but couldn't find a way to generate all SEAM 
code based on ready made entities.
Any way of doing this?


As always - many thanks,

Asaf.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065504#4065504

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065504
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen seam setup problem

2007-07-16 Thread Stateless Bean
Hi,
I tryed to create new seam project, but still have some problem.

I'm in cmd command line in seam folder:
D:\jboss-seam-1.2.1.GA
and like in docs write:
seam setup

and I get:

anonymous wrote : 
  | Microsoft Windows XP [Wersja 5.1.2600]
  | (C) Copyright 1985-2001 Microsoft Corp.
  | 
  | D:\jboss-seam-1.2.1.GAseam setup
  | Unknown argument: -
  | ant [options] [target [target2 [target3] ...]]
  | Options:
  |   -help, -h  print this message
  |   -projecthelp, -p   print project help information
  |   -version   print the version information and exit
  |   -diagnostics   print information that might be helpful to
  |  diagnose or report problems.
  |   -quiet, -q be extra quiet
  |   -verbose, -v   be extra verbose
  |   -debug, -d print debugging information
  |   -emacs, -e produce logging information without adornments
  |   -lib specifies a path to search for jars and classes
  |   -logfile use given file for log
  | -l ''
  |   -logger the class which is to perform logging
  |   -listener   add an instance of class as a project listener
  |   -noinput   do not allow interactive input
  |   -buildfile   use given buildfile
  | -file  ''
  | -f ''
  |   -D=   use value for given property
  |   -keep-going, -kexecute all targets that do not depend
  |  on failed target(s)
  |   -propertyfileload all properties from file with -D
  |  properties taking precedence
  |   -inputhandler   the class which will handle input requests
  |   -find(s)earch for buildfile towards the root of
  | -s the filesystem and use it
  |   -nice  number  A niceness value for the main thread:
  |  1 (lowest) to 10 (highest); 5 is the default
  |   -nouserlib Run ant without using the jar files from
  |  ${user.home}/.ant/lib
  |   -noclasspath   Run ant without using CLASSPATH
  | 
  | 
  | D:\jboss-seam-1.2.1.GA
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064527#4064527

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064527
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-Gen few questions

2007-07-14 Thread mrohad
1) when seam-gen genrete screens(create/update) can I somehow force it to 
generete drop down lists for some codes table that connected to the genereted 
table?
2)how can I change the name of the columns in the screen? can I make seam-gen 
use the coulmn comment or anything like that?

thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064245#4064245

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064245
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen, EJBs and different databases

2007-07-09 Thread laessig
i searched the forums and the docs but could not find the answer to my 
question. setup is jboss as 4.0.5 GA, seam 1.2.1GA, mysql 5.1, mysql connector 
5.0.6, eclipse europa.

i have a seam-gen genereted app with EJBs reverse engineered through hibernate. 
the EJBs all use annotations and are connected to the db via a jndi datasource 
(as far as i understand). the datasource is defined in app-dev-ds.xml, then the 
jndi is referenced in persistence-dev.xml to get an EntityManagerFactory which 
is finally used in componments.xml:


  | core:managed-persistence-context name=entityManager
  |   auto-create=true
  |persistence-unit-jndi-name=java:/appEntityManagerFactory/
  | 

this setup is autogenerated and works nicely. the EJBs are all bound to the 
corresponding database tables.

now i'd like to bring in a new EJB to access a different table in another 
database. so i duplicated the configuration: added a second datasource in 
persistence-dev.xml, a second entry in persistence-dev.xml and created a second 
managed-persistence-context in components.xml. that works fine and i see in the 
log output that the new managed-persistence-context is created. after that my 
problem occurs.

after succesfully binding the EJBs to entityManager1 the JPA tries to (re)bind 
all EJBs to entityManager2 which is of course not possible since it ties into 
another database table. so i guess i have to exlicitly configure every EJB for 
a specific entityManager (1 or 2)? but where should i do that? i tried to use 
@PersistenceContext(unitName=entityManager1) in the EJBs but that did not 
work.

i have some experience with spring and hibernate but i feel that i need better 
knowhow on the jboss-seam ejb hibernate integration to work that question out. 
so thx in advance for any advice.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061841#4061841

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen hibernate-console.properties hibernate.connection.p

2007-07-09 Thread tim_ph
Well, default setting in hibernate-console.properties is (missing =)
hibernate.connection.provider_class 
org.hibernate.connection.DriverManagerConnectionProvider

Right now, it didn't seem to cause any problem to me (probably default).


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062159#4062159

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062159
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen new-action : test fails

2007-07-04 Thread koenhandekyn
i created a new project using seam-gen. next i created an action using seam 
new-action. the test fails as follows:

any comments?


  | test:
  |[testng] [Parser] Running:
  |[testng]   C:\workspace\upbox\test-build\ExampleActionTest.xml
  |[testng]
  |[testng] WARN  04-07 15:02:49,313 
[org.jboss.mx.loading.UnifiedLoaderRepository3.addClassLoader():675] Tried to 
add n
  | on-URLClassLoader.  Ignored
  |[testng] ERROR 04-07 15:02:49,488 
[org.jboss.dependency.plugins.AbstractController.incrementState():456] Error 
instal
  | ling to Instantiated: name=DeploymentFilter state=Described
  |[testng] java.lang.IllegalStateException: Class not found: 
[Ljava.lang.String;
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174)
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125)
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292)
  |[testng] at 
org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getComponentMetaDataRetri
  | eval(AnnotatedElementMetaDataLoader.java:138)
  |[testng] at 
org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetrieval(AbstractMeta
  | DataContext.java:280)
  |[testng] at 
org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaData(MetaDataRetri
  | evalToMetaDataBridge.java:159)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotations(AOPConstructorJ
  | oinpoint.java:202)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(AOPConstructorJoin
  | point.java:172)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpointMetaData(AOPCo
  | nstructorJoinpoint.java:152)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.jav
  | a:99)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerC
  | ontextAction.java:103)
  |[testng] at 
org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52
  | )
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerConte
  | xtAction.java:197)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextActi
  | on.java:136)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextAction
  | s.java:51)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302
  | )
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:27
  | 2)
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
  |[testng] at 
org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
  |[testng] at 
org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
  |[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  |[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
  |[testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |[testng] at 

[jboss-user] [JBoss Seam] - Seam-gen. The prefix bpm not bound in generated components

2007-07-03 Thread Jump
PLZ add binding xmlns:bpm=http://jboss.com/products/seam/bpm; to generated 
components.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059975#4059975

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059975
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen and WTP in Seam 2

2007-07-02 Thread demetrio812
Hi,
I just tried seam-gen of Seam 2.0 b1 and the help says that:


  | There is support for generating eclipse WTP compliant EAR, JAR, WAR 
projects. If you select 'Y' for WTP, then some build tasks, like compile, 
build, deploy will not work.
  | 

But doing the setup there no question about WTP support, I also checed JIRA and 
it seam that WTP support is still not closed.

Where is the truth? :)

Thanks

Demetrio Filocamo

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059678#4059678

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059678
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam gen edit pages, update without press save button

2007-06-28 Thread rbcdexia
I have a problem with seam generator edit pages.
When a generated pojo has a complex object inside it, seam gen generates in the 
edit page a rich:tab with the following code.
rich:tab label=entidad * labelClass=required
  | div class=association id=entidadParent
  | 
  | h:outputText value=No entidad 
  | 
  |rendered=#{operacionHome.instance.entidad == null}/
  | 
  | rich:dataTable var=entidad 
  |value=#{operacionHome.instance.entidad} 
  | rendered=#{operacionHome.instance.entidad != null}
  |   rowClasses=rvgRowOne,rvgRowTwo
  |   id=entidadTable
  |   bypassUpdates=true
  | h:column
  | f:facet name=headerempresa/f:facet
  | #{entidad.empresa.nombre}
  | /h:column
  | h:column
  | f:facet name=headernombre/f:facet
  | #{entidad.nombre}
  | /h:column
  | h:column
  | f:facet name=headernumerocnmv/f:facet
  | #{entidad.numerocnmv}
  | /h:column
  | h:column
  | f:facet name=headerisin/f:facet
  | #{entidad.isin}
  | /h:column
  | /rich:dataTable
  | 
  | div class=actionButtons
  | s:button  value=Select entidad bypassUpdates=true
  | view=/EntidadList.xhtml
  | f:param name=from value=OperacionEdit/
  | /s:button
  | /div
  | 
  | /div
  | /rich:tab
When I press the botton and I bring the object entidad the following update is 
aoutomatically executed  without press the save button:


  | 10:28:30,488 INFO  [STDOUT] Hibernate: update fondval.dbo.operacion set 
entidadid=?, ctapersonasid=?, activoid=?, volumen=?, divisaid=?, sistema=?, 
precio=?, fecha=?, mercadoid=?, tipoprecio=?, tipo=?, referencia=? where 
operacionid=?
  | 

Can you help me with this question, please?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058600#4058600

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058600
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen can't start

2007-06-07 Thread mladen.babic
I  downloaded Jboss-Seam and Seam-gen zip files.I extracted seam-gen into 
Jboss-Seam folder and I typed seam.sh in terminal but it trows me command not 
found .I 'm using Ubuntu.What I'll do to start seam-gen?

Best regards,
mb

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052290#4052290

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052290
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam gen problem

2007-06-05 Thread carlos.abreu
Hy, i tried to use the seam gen shell script in my Ubuntu O.S and i had the 
following exception:

[EMAIL PROTECTED]:/opt/jboss-seam-1.2.1.GA# sh seam generate-entities
Buildfile: build.xml

validate-workspace:

validate-project:

generate-entities:
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)

BUILD FAILED
java.lang.NoClassDefFoundError: net.sf.cglib.core.DebuggingClassWriter$1

Does anyone know what is happening?? 

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051365#4051365

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051365
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen: What is it good for?

2007-06-04 Thread mugwump
After playing a while with seam-gen, I'd really like to hear if somebody is 
actually using this for something more than generating a template from which to 
start. I mean, is this supposed to be something comparable to rails or grails 
scaffolding? Or is it just a toy to give you a prepared build and some wired 
components? 

For serious work, all this seems to be too fragile. Here is what happened after 
2 hours of work:

action-package screwed  up: 
although both 


  | model.package=mypackage.model
  | action.package=mypackage.action
  | 

are setup in build.properties, all files get generated into the package 
model.package=.model with no apparent reason. 

netbeans project does not compile out-of-the-box:netbeans-project is setup with 
action..action and model..model as src-folders. Takes a while to realize, that 
these are two distinct source-folders and you have to manually set them up.

 Clean task is working mediocre: There is a task missing to clean up the 
exploded directory: if you happen to move a class between packages, you end up 
with duplicate components (and undeploy does not work when the server is 
running).

The database is torn down, when the server is shuts down, which is fatal, if 
you you go bottom-up and use your database and generate-entities for modelling, 
which seam-gen suggests.

Entities with relations throw a duplicate method: createInstance-Exception, 
which I did not manage to resolve.

Taken all this rather unpleasant experience together, I think we still have a 
long way to go to have something comparable to the simple rails script/generate 
scaffold - which simply works. 

I'm pretty sure, that this whole code-generation stuff can be turned into 
something really really powerful (with the mix of hbm2xmlfreemarkertemplattes 
you can sure do a good thing or two...). Right now, I just wonder, what the 
audience for this is?! It only has basic features, so it's not suitable for 
real projects (what about schema-evolution, mechanisms for extending classes, 
top-down generation, per-project properties, using uml-models as basis etc.) - 
given the fact that it is terribly easy to break and terribly hard to get it 
running for more than the most basic tasks, it's not for the novice either - so 
again, the question: Where is seam-gen heading?!





View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051109#4051109

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051109
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen

2007-05-14 Thread cormet
Hi All,

I read the tutorial on seam reference documentation. But I can't run the simple 
war file which is genereated from seam-gen code (when I execute the seam 
new-project).

here are the error and any helps will be appriacited:
12:35:02,687 ERROR [[/ms_accountingsystem]] Exception sending context 
initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: Could not create Component: org.jboss.seam.core.init
at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:865)
at org.jboss.seam.init.Initialization.init(Initialization.java:492)
at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy38.start(Unknown Source)
at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

[jboss-user] [JBoss Seam] - seam-gen and inputSecret in edit form

2007-05-11 Thread demetrio812
Hi,
I made a project with seam-gen: all works! great framework and tools!!

But when I changed this code:

  | s:decorate id=passwordDecoration template=layout/edit.xhtml
  | ui:define name=labelpassword/ui:define
  | h:inputText id=password 
  |required=true
  |size=20
  |   maxlength=20
  |   value=#{utenteHome.instance.password}
  | a:support event=onblur reRender=passwordDecoration/
  | /h:inputText
  | /s:decorate
  | 

In this:

  | s:decorate id=passwordDecoration template=layout/edit.xhtml
  | ui:define name=labelpassword/ui:define
  | h:inputSecret id=password 
  |required=true
  |size=20
  |   maxlength=20
  |   value=#{utenteHome.instance.password}
  | a:support event=onblur reRender=passwordDecoration/
  | /h:inputSecret
  | /s:decorate
  | 

When I move out from the inputSecret the value disappear...

how can I solve this?

Thanks a lot!

Demetrio


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044958#4044958

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044958
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen vs. Oracle CHAR(n) and FLOAT

2007-05-09 Thread steve_of_AR
A couple of type-mapping problems with seam-gen/hibernate and an Oracle 
database:
CHAR(200)  in the database becomes a String entity property
FLOAT in the database becomes a double entity property

These cause exceptions during deployment.   I can probably fix these in the 
seam-gen.reveng.xml file's typemapping section, but for the character field I'd 
really rather that it be a String in my entity instead of a Char[] (if that's 
what it wants).  Is there a bettter way to fix these?  Why's hibernate being so 
picky? I thought jdbc at least would silently do these conversions anyway...

The deployment exception (for the CHAR(200) column):
WARN  [ServiceController] Problem starting service 
persistence.units:ear=Janus.ear,unitName=DevSchema
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Wrong column type: CODE_CD, expected: varchar2(200 char)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
  |  

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=407#407

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen + RichFaces + Firefox = null page

2007-05-03 Thread viniciuscarvalho
Hello there! I've started a project with seam gen, using richfaces, and 
sometimes (mostly when an error happen) it stops displaying the page only on 
firefox. On IE it keep running ok. Is there any issue with the browser?

Regards

PS: So far I've only used the rich:panel component.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042940#4042940

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042940
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-Gen: ANT Task to build/deploy to BEA Weblogic?

2007-05-02 Thread hatcheck
Hi - Does anyone have an ANT Task to build a Seam-Gen Project to BEA Weblogic 
9.x or 10.x?

FYI: I've successfully deployed the two Seam Examples (hibernate2  jpa) that 
have builds for Weblogic and I've tried modifying the project's build.xml.  
However, I can't seem to get the Seam-Gen project to deploy on Weblogic (and I 
want to keep that structure so I can make use of the seam-gen features).

Seam-Gen Feature Request: When defining project properties, be able to define 
which server (JBoss, Tomcat, Weblogic, Websphere) is being used and the servers 
respective details so that Seam-Gen is able to create a build.xml for different 
the different servers.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042524#4042524

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen Entity name generation question

2007-04-24 Thread anescu
Hi,

Maybe this was already answered, but I couldn't find it:
I have a DB schema, where tables have a prefix, to identify them as belonging 
to a module:
md_*
  | msg_*
If I use seam-gen, out of the box, I get entities (and all the other java, 
xhtml files) like this:
Md*
  | Msg*
Can this be avoided? Can you specify somewhere that you want to ignore the 
prefix when generating the code? Or transform the prefix into a package? I 
found on the net an article about the way you can generate the table/column 
names for hibernate but that involved creating your own Java class. Maybe here 
it's easier to do this, from a config file?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040186#4040186

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen , Authenticate and EntityHome

2007-04-24 Thread hvram
Hi
   My application uses the generate-entities to reverse engineer an existing DB 
schema . I am using the pages generated using seam-gen.

   I am trying to plug in the authentication and I am wondering what is the 
correct way to go about it .

   I did the following in Authenticator.java

@Out (scope=Session)
User user;

and in the authenticate method I set the user object.

But the pages generated by seam-gen refer to the UserHome object instead of 
user.

When I try to do a 
@In (create=true)
@Out (Scope=Session) 
UserHome userHome

OR

userHome = Component.getInstance(userHome)

things do not work . The userHome object if viewed using the debug.seam shows 
illegalStateException for the Collection objects

So should I

a) rewrite the pages to refer to user instead of userHome . If that is the 
case can I use the persist methods of EntityHome or should I write those 
methods again

b) Any other way to solve the problem ? Is there are different approach to 
authentication

Thanks in Advance

Regards
Hari

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040306#4040306

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040306
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen hbm to entities

2007-04-18 Thread lavoir
Hello,

I was wondering if there was an easy way to generate a seam project from a 
hibernate map file to help me migrate some spring projects.

I tried generating from the DB, but the relations are not quite the way they 
are defined in my hibernate mapping files + I loose component objects.

Thanks,

Btw, I'd like to congratulate the whole Seam team, Seam went a long way since I 
first played with it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038255#4038255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen: behaviour of an generated app

2007-04-18 Thread baz
Hello,
I do have some problems with a seam-gen (Seam 1.2.1GA)  generated app.
My setup:
1. seam setup
2. seam new-project
3. seam generate-entiities
Now i hae a complete app which i can deploy to jboss.
For simplicity i will reference to an entity called Car

Start the application and navigate to view-id 'CarList.xhtml'Press the 'select' 
Link for a car.
You are forwarded to Car.xhtml.
Now press the 'edit' button. You are on carEdit Change some attributes and 
press 'Done'.
You are now back to Car.xhtml and all changes where persisted to database. This 
is not what i want. The Done button should cancel all changes.

I edited CarEdit.page.xml and added the attribute flush-mode=MANUAL to the 
begin-converstaion tag.

Now i have the desired behaviour. But a little inconsistency remains.
On CarEdit.xhtml the 'Save' button does what it should do. Perfect.
The 'Done' Button forwards to Car.xhtml but all changes done on the 
CarEdit.xhtml page are shown here. A browser reload of the Car.xhtml page drops 
all changes and shows the page as it was before the changes on CarEdit..
Or do this:
On CarEdit make changes, reload the page through the browser reload button. All 
changes that you have made are still shown.
Now press the 'Done' button, and voila you get the expected 'old' values back.

How can i achieve my requirement that pressing the 'Done' button will show 
directly the old values. (All changes are thrown away)
Any ideas about this?
I do have searched this forum and the seam jira but i have not found anything 
about this. If i overlooked something a pointer to the right direction is 
welcomed.
Ciao,
Carsten

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038281#4038281

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038281
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam gen war on tomcat - @startup dependency problem

2007-04-17 Thread matt.drees
I've been trying to get a war seam-gen project running on Tomcat, and I've been 
successful at getting the right jars, I believe.  However, I am having problems 
with the EntityManagerFactory component starting before the embedded EJB 
container is started (which fails because the datasource isn't in jndi).  It's 
strange because integration tests don't have any problems.  

I think the issue is the EntityManagerFactory component is declared to depend 
on the microcontainer, but not eejb.
(its declaration for reference:)

  | @Scope(ScopeType.APPLICATION)
  | @Intercept(NEVER)
  | @Startup(depends=org.jboss.seam.core.microcontainer)
  | public class EntityManagerFactory
  | 

I think during tests the ejb component is luckily started before the EMF 
component, but on tomcat it unluckily isn't.  It seems like 
org.jboss.seam.core.ejb ought to be added to EntityManagerFacatory's startup 
dependency list.

Does this sound reasonable? 


releveant components.xml:

  |core:managed-persistence-context name=entityManager
  |   auto-create=true
  |entity-manager-factory=#{crsEntityManagerFactory}/
  | 
  |core:entity-manager-factory name=crsEntityManagerFactory 
  |persistence-unit-name=crs/
  |
  |core:ejb installed=@embeddedEjb@/
  | 

log/stacktrace:

  | 11:55:21,268 INFO  [Lifecycle] starting up: crsEntityManagerFactory
  | 11:55:21,393 INFO  [Version] Hibernate EntityManager 3.2.0.CR1
  | 11:55:21,440 INFO  [Version] Hibernate Annotations 3.2.0.CR1
  | 11:55:21,471 INFO  [Environment] Hibernate 3.2 cr2
  | ...more non-interesting EMF startup stuff...
  | 11:55:29,540 INFO  [NamingHelper] JNDI InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 11:55:29,619 ERROR [NamingHelper] Could not obtain initial context
  | javax.naming.NamingException: Local server is not initialized
  | at 
org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
  | at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
  | at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
  | at javax.naming.InitialContext.init(Unknown Source)
  | at javax.naming.InitialContext.init(Unknown Source)
  | at 
org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
  | at 
org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
  | at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
  | at 
org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:1850)
  | at org.jboss.seam.Component.callCreateMethod(Component.java:1765)
  | at org.jboss.seam.Component.newInstance(Component.java:1754)
  | at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
  | at 
org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:504)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
  | at 

[jboss-user] [JBoss Seam] - seam-gen and clickable lists

2007-04-17 Thread hvram
Hi
   I am trying to modify the seam-gen generated code to support clicable lists .

   I have modified the List.java file and have 
a) implemented a local interface which contains one method
in addition to extending the EntityQuery  
b) Annotated that method with the @Factory (x)
c) made the List a stateful bean
d) added the @DataModel annotation for a variable x
e) Referenced the variable from the List.xhtml page as #x

But things are not working . I get an error that says validate method of 
component not found . Can somebody tell me if I am proceeding in the correct 
direction 

Implementing a stand alone interface without extending the EntityQuery does 
work but I need to integrate with the seam-gen generated code

Regards
Hari

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038213#4038213

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038213
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen for a multi-user (server) environment on multiple p

2007-03-31 Thread sushmu
How to run seam-gen on multiple projects in a multi user environment:

http://groups.google.com/group/EtoE/browse_thread/thread/64c7528417ac3f32/42328079e0a09f78#42328079e0a09f78



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4033429#4033429

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4033429
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen reverse engineer doesn't recognize link table

2007-03-29 Thread kingcu
I have a one-to-many relationship, which involves 3 database tables: a table 
for the one side, a table for the many side and a link table. After I run seam 
generate-entities, it created 3 entity beans, instead of 2 as I would expect!

I can probably get around this by removing the link table and adding a foreign 
key in the table that's on the many side. Then, what about a many-to-many 
relationship, in which case the link table is a must. Please fix seam-gen so it 
will detect a link table and act accordingly. 

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032935#4032935

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen from jboss-ide/command line

2007-03-28 Thread mario D
Hi all,

I'm quite new to seam and trying hard to understand seam. In order to grasp the 
ideas behind seam, I've  reverse-engineered an application from a database both 
with the eclipse based jbosside and the cli seam-gen and was surprised to see 2 
different applicationstyles, editor/finderbean (jboss-ide) and entity/queryhome.

Could somebody enlighten me on the preferred way of using the 
reverse-engineering tools (and why), i.e what is the difference between those 2 
styles besides the obvious.

I apologize in advance if this has been covered before, I've searched the 
forums but could not find anything on this subject. 

TIA

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032405#4032405

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032405
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen web 2.0 based

2007-03-27 Thread cristiano.nicolai
Hello everyone,

I really enjoy the seam-gen feature, but i`m trying do made her more Web 2.0 
based...like search and update just the result table, made the pagination like 
this to.and delete an entity directly from the table...using the EntityHome 
and EntityQuery

There is some example like this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032028#4032028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen Login

2007-03-27 Thread eeckmann
How do you pull out IceFaces ?

I am getting this msg when trying to login (with and without the Remember me 
checked):

Caused by: javax.faces.el.PropertyNotFoundException: Base is null: authenticator
at 
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:460)
at 
org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:180)
at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:114)
... 67 more

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032306#4032306

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032306
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen build

2007-03-25 Thread atao
I work under Eclipse, with seam 1.2.0PATCH1

In the build.xml of a project created by seam-gen, the targets explode and 
buildtest are lauched after each change of a file. But then the target 
compile is not lauched. 
So after any change in a java file, compile must be lauched by hand.

Is it on purpose or did I miss something?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031375#4031375

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031375
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generated code gives: SEVERE: Error Rendering View[

2007-03-25 Thread irVega
I run the script below to generate some simple tables and insert a bit of data.
I use seam-gen to create my project settings and then generate a project (m2m) 
and the entities.
I use the generated ant script to deploy.
I open the browser at the m2m home page.
I click on the A List menu and see my A record.
I click on the B List menu and see my B records.

All good up to this point.

I click on the AB List menu and ... not so good.


The db script I use to create/populate the database looks like ...

  | CREATE MEMORY TABLE A(ID_ BIGINT GENERATED BY DEFAULT AS IDENTITY(START 
WITH 1) NOT NULL PRIMARY KEY,DEFN VARCHAR(11));
  | 
  | CREATE MEMORY TABLE B(ID_ BIGINT GENERATED BY DEFAULT AS IDENTITY(START 
WITH 1) NOT NULL PRIMARY KEY,DEFN VARCHAR(11));
  | 
  | CREATE MEMORY TABLE A_B(ID_ BIGINT GENERATED BY DEFAULT AS IDENTITY(START 
WITH 1) NOT NULL PRIMARY KEY,A_ID BIGINT NOT NULL,B_ID BIGINT NOT 
NULL,CONSTRAINT VALID_A FOREIGN KEY(A_ID) REFERENCES A(ID_),CONSTRAINT VALID_B 
FOREIGN KEY(B_ID) REFERENCES B(ID_));
  | 
  | INSERT INTO A VALUES(1,'a01');
  | INSERT INTO B VALUES(1,'b01');
  | INSERT INTO B VALUES(2,'b02');
  | INSERT INTO A_B VALUES(1,1,1);
  | 
  | 

... and here's the stack trace.


  | 
  | 20:38:20,781 INFO  [STDOUT] Hibernate: select top ? a0_.ID_ as ID1_0_, 
a0_.DEFN as DEFN0_ from PUBLIC.A a0_
  | 20:38:22,937 INFO  [STDOUT] Hibernate: select top ? ab0_.ID_ as ID1_1_, 
ab0_.B_ID as B2_1_, ab0_.A_ID as A3_1_ from PUBLIC.A_B ab0_
  | 20:38:23,093 ERROR [STDERR] 25-Mar-2007 20:38:23 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/ABList.xhtml]
  | javax.faces.el.PropertyNotFoundException: Bean: 
m2m.BHome$$EnhancerByCGLIB$$c9f31ea1, property: bId
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:483)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:454)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:417)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
  | at 
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
  | at 
org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:57)
  | at org.jboss.seam.pages.Param.getValueFromModel(Param.java:93)
  | at org.jboss.seam.core.Pages.getPageParameterValue(Pages.java:582)
  | at org.jboss.seam.core.Pages.getConvertedParameters(Pages.java:558)
  | at org.jboss.seam.ui.HtmlButton.encodeBegin(HtmlButton.java:135)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
  | at 

[jboss-user] [JBoss Seam] - seam-gen error

2007-03-22 Thread javalover75
Running seam-gen generate-entities command (just built from CVS) I am 
experiencing the error below.  After searching the form and Jira a similiar 
error has appeared and it was suggested by Gavin that old jars are somewhere.  
I have verified this is not the case.  If I can provide any additional 
information to assist please let me know.  Any help would be greatly 
appreciated.  


  | C:\eclipse\workspace\jboss-seamseam generate-entities
  | Buildfile: C:\eclipse\workspace\jboss-seam\seam-gen\build.xml
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] Mar 22, 2007 9:36:59 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: Hibernate 3.2.0.cr5
  | [hibernate] Mar 22, 2007 9:36:59 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] Mar 22, 2007 9:36:59 PM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | [hibernate] Mar 22, 2007 9:36:59 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernate] Mar 22, 2007 9:37:00 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Using Hibernate built-in connection pool (not for 
production use!)
  | [hibernate] Mar 22, 2007 9:37:00 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Hibernate connection pool size: 20
  | [hibernate] Mar 22, 2007 9:37:00 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: autocommit mode: false
  | [hibernate] Mar 22, 2007 9:37:00 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: 
jdbc:mysql:///adtutor
  | [hibernate] Mar 22, 2007 9:37:00 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: connection properties: {user=adtutorapp, password=}
  | [hibernate] Mar 22, 2007 9:37:01 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: RDBMS: MySQL, version: 5.0.27-community-nt
  | [hibernate] Mar 22, 2007 9:37:01 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC driver: MySQL-AB JDBC Driver, version: 
mysql-connector-java-3.1.10 ( $Date: 2005/05/19 15:52:23 $, $Revision: 1.1.2.2 
$ )
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.dialect.Dialect init
  | [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
  | [hibernate] Mar 22, 2007 9:37:02 PM 
org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
  | [hibernate] INFO: Using default transaction strategy (direct JDBC 
transactions)
  | [hibernate] Mar 22, 2007 9:37:02 PM 
org.hibernate.transaction.TransactionManagerLookupFactory 
getTransactionManagerLookup
  | [hibernate] INFO: No TransactionManagerLookup configured (in JTA 
environment, use of read-write or transactional second-level cache is not 
recommended)
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Automatic session close at end of transaction: disabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC batch size: 15
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC batch updates for versioned data: disabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Scrollable result sets: enabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: JDBC3 getGeneratedKeys(): enabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Connection release mode: auto
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Maximum outer join fetch depth: 2
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Default batch fetch size: 1
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Generate SQL with comments: disabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] INFO: Order SQL updates by primary key: disabled
  | [hibernate] Mar 22, 2007 9:37:02 PM org.hibernate.cfg.SettingsFactory 
createQueryTranslatorFactory
  | [hibernate] INFO: Query translator: 

[jboss-user] [JBoss Seam] - Seam-gen and Oracle

2007-03-08 Thread ector7280
I'm using Seam 1.2 and an Oracle 10g db.  The problem is when I use seam-gen on 
my db, where ever I have have a need for an Integer I'm getting BigDecimal, 
int, short etc.
Since there is no Integer type in 10g how do I get Number in Oracle to produce 
an Integer in my generated code? Has anyone conquered this yet?

Thanks,

JR

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4026442#4026442

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026442
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen and mutiple foreign keys

2007-03-06 Thread NielsH
I have generated a project with seam-gen based on generate-entities. All works 
fine, except for the generation of the home interfaces. In one of my tables I 
have two foreign keys to the same table. In the home interface two references 
are created to the appropriate object, but with the same name (which of course 
doesn't compile).

Here is a simplified example:
Table 1

  | CREATE TABLE test
  | (
  |   id int4 NOT NULL DEFAULT nextval('test_id_seq'::regclass),
  |   name varchar,
  |   id_test2_1 int4,
  |   id_test2_2 int4,
  |   CONSTRAINT test_pkey PRIMARY KEY (id),
  |   CONSTRAINT test_id_test2_1_fkey FOREIGN KEY (id_test2_1)
  |   REFERENCES test2 (id) MATCH SIMPLE
  |   ON UPDATE NO ACTION ON DELETE NO ACTION,
  |   CONSTRAINT test_id_test2_2_fkey FOREIGN KEY (id_test2_2)
  |   REFERENCES test2 (id) MATCH SIMPLE
  |   ON UPDATE NO ACTION ON DELETE NO ACTION
  | ) 
  | 
Table2

  | CREATE TABLE test2
  | (
  |   id int4 NOT NULL DEFAULT nextval('test2_id_seq'::regclass),
  |   name varchar,
  |   CONSTRAINT test2_pkey PRIMARY KEY (id)
  | ) 
  | 

First Entity

  | @Entity
  | @Table(name = test, schema = public)
  | public class Test implements java.io.Serializable {
  | 
  | private int id;
  | private Test2 test2ByIdTest22;
  | private Test2 test2ByIdTest21;
  | private String name;
  | 
  | public Test() {
  | }
  | 
  | public Test(int id) {
  | this.id = id;
  | }
  | public Test(int id, Test2 test2ByIdTest22, Test2 test2ByIdTest21,
  | String name) {
  | this.id = id;
  | this.test2ByIdTest22 = test2ByIdTest22;
  | this.test2ByIdTest21 = test2ByIdTest21;
  | this.name = name;
  | }
  | 
  | @Id
  | @Column(name = id, unique = true, nullable = false)
  | @NotNull
  | public int getId() {
  | return this.id;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = id_test2_2)
  | public Test2 getTest2ByIdTest22() {
  | return this.test2ByIdTest22;
  | }
  | 
  | public void setTest2ByIdTest22(Test2 test2ByIdTest22) {
  | this.test2ByIdTest22 = test2ByIdTest22;
  | }
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = id_test2_1)
  | public Test2 getTest2ByIdTest21() {
  | return this.test2ByIdTest21;
  | }
  | 
  | public void setTest2ByIdTest21(Test2 test2ByIdTest21) {
  | this.test2ByIdTest21 = test2ByIdTest21;
  | }
  | 
  | @Column(name = name, length = 0)
  | @Length(max = 0)
  | public String getName() {
  | return this.name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | }
  | 

second entity


  | @Entity
  | @Table(name = test2, schema = public)
  | public class Test2 implements java.io.Serializable {
  | 
  | private int id;
  | private String name;
  | private SetTest testsForIdTest21 = new HashSetTest(0);
  | private SetTest testsForIdTest22 = new HashSetTest(0);
  | 
  | public Test2() {
  | }
  | 
  | public Test2(int id) {
  | this.id = id;
  | }
  | public Test2(int id, String name, SetTest testsForIdTest21,
  | SetTest testsForIdTest22) {
  | this.id = id;
  | this.name = name;
  | this.testsForIdTest21 = testsForIdTest21;
  | this.testsForIdTest22 = testsForIdTest22;
  | }
  | 
  | @Id
  | @Column(name = id, unique = true, nullable = false)
  | @NotNull
  | public int getId() {
  | return this.id;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | 
  | @Column(name = name, length = 0)
  | @Length(max = 0)
  | public String getName() {
  | return this.name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy 
= test2ByIdTest21)
  | public SetTest getTestsForIdTest21() {
  | return this.testsForIdTest21;
  | }
  | 
  | public void setTestsForIdTest21(SetTest testsForIdTest21) {
  | this.testsForIdTest21 = testsForIdTest21;
  | }
  | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy 
= test2ByIdTest22)
  | public SetTest getTestsForIdTest22() {
  | return this.testsForIdTest22;
  | }
  | 
  | public void setTestsForIdTest22(SetTest testsForIdTest22) {
  | this.testsForIdTest22 = testsForIdTest22;
  | }
  | 
  | }
  | 

Home interface of first entity. Here we have two Test2Home references, both 
with the name test2Home.


  | @Name(testHome)
  | public class TestHome extends EntityHomeTest 

[jboss-user] [JBoss Seam] - Seam gen wire() problem

2007-03-06 Thread y_zl
Hi!,

I just migrated from 1.1.7 to 1.2.0, the view pages gnerated by 
seam generate-entites  don't work.

when 
  | public void wire() {
  |   if (role != null) {
  | getInstance().setRole(role;
  |   }
  | } is executed from the .page.xml

the following exception were thrown. Any extra configration needed? 

Thanks in advance!


  | 22:38:13,822 ERROR [SeamPhaseListener] uncaught exception
  | javax.faces.el.EvaluationException: Exception while invoking expression 
#{User.wire}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  | at 
org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
  | at 
org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:106)
  | at org.jboss.seam.pages.Page.enter(Page.java:226)
  | at org.jboss.seam.core.Pages.enterPage(Pages.java:269)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:242)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:193)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:57)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.persistence.TransactionRequiredException: No active JTA 
transaction on joinTransaction call
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:469)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:442)
  | at 
org.jboss.seam.persistence.EntityManagerProxy.joinTransaction(EntityManagerProxy.java:111)
  | at org.jboss.seam.framework.EntityHome.find(EntityHome.java:69)
  | at org.jboss.seam.framework.Home.initInstance(Home.java:84)
  | at org.jboss.seam.framework.Home.getInstance(Home.java:70)
  | at com.math.model.User.wire(User.java:29)
  | at 

[jboss-user] [JBoss Seam] - seam gen - which one?

2007-03-05 Thread buddy1974
As far as I can see, the seam-gen that comes with seam is different than the 
one that is available via the wiki. Is there a reason for this? Which one is 
the one, one should take? 

The packed one provides the following targets:


  | clean
  | delete-project
  | deploy
  | explode
  | generate-entities
  | new-action
  | new-entity
  | new-form
  | new-project
  | reset
  | restart
  | settings
  | setup
  | test
  | undeploy
  | unexplode
  | update-project
  | 
  | 
  | and the one available via the wiki provides
  | 
  | create-folders
  |   | create-folders-wtp
  |   | delete-project
  |   | deploy-project
  |   | exploded-ear-copy
  |   | exploded-jar-copy
  |   | exploded-war-copy
  |   | file-copy
  |   | file-copy-wtp
  |   | help
  |   | new-action
  |   | new-action-page
  |   | new-bpm-action
  |   | new-conversation
  |   | new-entity
  |   | new-mdb
  |   | new-page
  |   | new-project
  |   | new-sfsb-action
  |   | new-slsb-action
  |   | new-testcase
  |   | new-wtp-project
  |   | scaffold-copy
  |   | scaffold-copy-wtp
  |   | update-project
  |   | Default target: new-project
  |   | 
  | 
  | Any Help is highly appreciated
  | 
  | Kind regards
  | 
  | Juergen
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025040#4025040

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025040
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generate entities problem

2007-03-05 Thread sstrenn
I am trying out seam 1.2 and jboss 4.0.5 ejb.  I setup a project with seam-gen 
that accesses a simple little mysql database with users and blogs.  After I 
call seam generate-entities, and restart seam, I get the following error trace 
upon accessing the users page.  

In the example below, it appears that the User object is not mapped, even 
though it has been generated by seam-gen.  Same goes for my other domain 
objects.

Any ideas as to what is wrong?  BTW - same thing happens w/postgresql.


08:05:54,875 ERROR [STDERR] Feb 15, 2007 8:05:54 AM 
com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/UserList.xhtml]
javax.faces.el.EvaluationException: /UserList.xhtml @57,57 rendered=#{empty 
userList.resultList}: Exception getting value of property resultList of base 
of type : blogtest.UserList$$EnhancerByCGLIB$$ef8d664f
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.el.EvaluationException: Bean: 
blogtest.UserList$$EnhancerByCGLIB$$ef8d664f, property: resultList
at 
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
at 
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
at 
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:49)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
... 32 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
... 39 more
Caused by: java.lang.IllegalArgumentException: 
org.hibernate.hql.ast.QuerySyntaxException: 

[jboss-user] [JBoss Seam] - seam-gen : two attributes of same kind in an entity

2007-02-28 Thread atao
Hello,

I use seam-gen (seam 1.1.7.RC1) to generate list and home classes from entities 
with jpaconfiguration .

One class, Contract,  has two attributs, seller and purchaser, with the same 
type Party. 

The generated ContractHome class contains:

  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party seller;
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party purchaser;
  | 
  | 

So seller and purchaser use the same instance!

Any idea to get two different instances?

Regards
Pierre

PJ :



  | @Name(contract)
  | @javax.persistence.Entity
  | public class Contract extends Entity
  | {
  | 
  | private DateTime  begin;
  | private DateTime  end;
  | private Party seller;
  | private Party purchaser;
  | 
  | public Contract()
  | {
  | this(null);
  | }
  | 
  | public Contract(Party seller)
  | {
  | this(seller, null);
  | }
  | 
  | public Contract(Party seller, Party purchaser)
  | {
  | super();
  | this.seller = seller;
  | this.purchaser = purchaser;
  | }
  | 
  | @Id 
  | public String getId() {return super.getId();}
  | public void setId(String id) {super.setId(id);}
  | 
  | /**
  |  * the seller
  |  */
  | @ManyToOne
  | @JoinColumn(name=sellerId)
  | public Party getSeller() {return this.seller;}
  | public void setSeller(Party seller) {this.seller = seller;}
  | public Contract seller(Party seller) {
  | setSeller(seller);
  | return this;
  | }
  | 
  | /**
  |  * the purchaser
  |  */
  | @ManyToOne
  | @JoinColumn(name=purchaserId)
  | public Party getPurchaser() {return this.purchaser;}
  | public void setPurchaser(Party purchaser) {this.purchaser = purchaser;}
  | public Contract purchaser(Party purchaser) {
  | setPurchaser(purchaser);
  | return this;
  | }
  | 
  | /**
  |  * the begin date
  |  */
  | @Column(name=begindate)
  | @Type(type=org.joda.time.contrib.hibernate.PersistentDateTime)
  | public DateTime getBegin() {return this.begin;}
  | public void setBegin(DateTime begin) {this.begin = begin;}
  | public Contract begin(DateTime begin) {
  | setBegin(begin);
  | return this;
  | }
  | 
  | /**
  |  * the end date
  |  */
  | @Column(name=enddate)
  | @Type(type=org.joda.time.contrib.hibernate.PersistentDateTime)
  | public DateTime getEnd() {return this.end;}
  | public void setEnd(DateTime end) {this.end = end;}
  | public Contract end(DateTime end) {
  | setEnd(end);
  | return this;
  | }
  | 
  | /* (non-Javadoc)
  |  * @see java.lang.Object#toString()
  |  */
  | @Override
  | public String toString()
  | {
  | return Contract(   + getPurchaser().getName() 
  |  +  [  + getBegin() 
  |  +  -  + getEnd()
  |  +  ]);
  | }
  | 
  | }
  | 



  | @Name(contractHome)
  | public class ContractHome extends EntityHomeContract {
  | 
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party seller;
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party purchaser;
  | 
  | public void setContractId(String id) {
  | setId(id);
  | }
  | 
  | public String getContractId() {
  | return (String) getId();
  | }
  | 
  | @Override
  | protected Contract createInstance() {
  | Contract contract = new Contract();
  | return contract;
  | }
  | 
  | public void wire() {
  | if (seller != null) {
  | getInstance().setSeller(seller);
  | }
  | if (purchaser != null) {
  | getInstance().setPurchaser(purchaser);
  | }
  | }
  | 
  | public boolean isWired() {
  | return true;
  | }
  | 
  | public Contract getManagedInstance() {
  | return isManaged() ? getInstance() : null;
  | }
  | 
  | }
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024028#4024028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen 1.1.7RC1

2007-02-26 Thread rengar
With seam-geam after first compilation shoq this error:

incomparable types int and 
incomparable types char and 

This is because in IDs use int instead of Integer, Character, ...

The best solution is change int to Integer, ?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022471#4022471

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022471
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen stack overflow

2007-02-25 Thread pista666
occurs when you have 2 tables referencing each other

like this:
alter table core.ORG_PARTNER
add constraint FK1 foreign key  (PRIMARY_CONTACT_ID)
   references core.ORG_PARTNER_CONTACT(CONTACT_ID)
;

alter table core.ORG_PARTNER_CONTACT
add constraint FK2 foreign key  (PARTNER_ID)
   references core.ORG_PARTNER (PARTNER_ID)
;



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022051#4022051

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022051
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen error (generate-entities did not work)

2007-02-22 Thread grdzeli_kaci
hi all,
seam version : 1.1.6 GA (i got it from CVS few days ago)
jboss version : 4.0.5 GA
ant version : 1.7.0
os version : SUSE LINUX 10.1 (i586)
java version : 5.0

i tryed to use seam gen template, 
fierst i did seam setup, then seam new-project, all works fine now i want 
generate entities but i got an error:



  | [EMAIL PROTECTED]:~/InstalledPrograms/jboss-seam-1.1.6.GA ./seam 
generate-entities
  | Buildfile: build.xml
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] 23-Feb-07 1:48:19 AM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: Hibernate 3.2 cr4
  | [hibernate] 23-Feb-07 1:48:19 AM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] 23-Feb-07 1:48:19 AM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | 
  | BUILD FAILED
  | java.lang.NoClassDefFoundError: 
org.hibernate.bytecode.cglib.BytecodeProviderImpl
  | 
  | Total time: 3 seconds
  | 
  | 

any idea ?




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4020472#4020472

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020472
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen Issues

2007-02-17 Thread phicorp
Hello All,

I have experienced the following seam-gen issues using PostgreSQL 8.0.3

When I run seam-gen, I receive an error message which states that the 
expression property.value.typeName is undefined in the following line
#if property.value.typeName == string
within the freemarker template file called list.xhtml.ftl

When I examined the trace, I found that the above error occurred because the 
view called pg_logdir_ls does not have a primary key.

I do not know where this view comes from, as it was not created by me.

I then deleted the generated entities and the view, and re-ran seam 
generate-entities again, and this time I did not receive the error message 
above.

However, when I attempt to run the generated output, I receive a deployment 
error stating Missing table: pg_logdir_ls

Could anyone help me with the following questions:

(1) What creates the view called pg_logdir_ls?

(2) Why do I receive the deployment error after:
(a) Deleting all of the generated entities from the first unsuccessful run of 
seam generate-entities,
(b) Deleting the view called pg_logdir_ls, and
(c) Re-running seam generate-entities?

(3) Is there a more widespread problem with seam-gen and views which do not 
have a primary key, or is my problem constrained to my environment?

Looking forward to any help you can provide.

Many thanks,
Bruce.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018375#4018375

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018375
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen code for many-to-one associations and reference dat

2007-02-14 Thread lawrieg
Hi,

I'm trying to understand the seam-generated code for many-to-one associations, 
and whether / how I need to modify it if I'm dealing with reference data that 
either is read-only (i.e. will be an Enum and will have matching database 
lookup table), or modified only very occasionally by an administrator (will be 
a class mapped to a database lookup/reference table).

seam-gen generates the following Seam Application Framework EntityHome code for 
my example project's Customer class: 

@Name(customerHome)
  | public class CustomerHome extends EntityHomeCustomer {
  | 
  | @In(value = #{statusHome.managedInstance}, required = false)
  | Status status;
  | 
  | @In(value = #{customerTypeHome.managedInstance}, required = false)
  | CustomerType customerType;
  | 
  | public void setCustomerId(Integer id) {
  | setId(id);
  | }
  | 
  | public Integer getCustomerId() {
  | return (Integer) getId();
  | }
  | 
  | @Override
  | protected Customer createInstance() {
  | Customer customer = new Customer();
  | return customer;
  | }
  | 
  | public void wire() {
  | if (status != null) {
  | getInstance().setStatus(status);
  | }
  | if (customerType != null) {
  | getInstance().setCustomerType(customerType);
  | }
  | }
  | 
  | public boolean isWired() {
  | if (getInstance().getStatus() == null)
  | return false;
  | if (getInstance().getCustomerType() == null)
  | return false;
  | return true;
  | }
  | 
  | public Customer getManagedInstance() {
  | return isManaged() ? getInstance() : null;
  | }
  | 
  | }

and CustomerEdit.page.xml is generated as follows

page no-conversation-view-id=/CustomerList.xhtml
  | 
  |restrict#{identity.loggedIn}/restrict
  | 
  |begin-conversation join=true/
  | 
  |action execute=#{customerHome.wire}/
  | 
  |param name=customerFrom/
  |param name=customerId value=#{customerHome.customerId}/
  | 
  |param name=statusFrom/
  |param name=statusId value=#{statusHome.statusId}/
  | 
  |param name=customerTypeFrom/
  |param name=customerTypeId value=#{customerTypeHome.customerTypeId}/
  | 
  |navigation from-action=#{customerHome.persist}
  |end-conversation/
  |redirect view-id=/Customer.xhtml/
  |/navigation
  | 
  |navigation from-action=#{customerHome.update}
  |end-conversation/
  |redirect view-id=/Customer.xhtml/
  |/navigation
  | 
  |navigation from-action=#{customerHome.remove}
  |end-conversation/
  |redirect view-id=/CustomerList.xhtml/
  |/navigation
  | 
  | /page


So if I want Status to be an Enum, and CustomerType to be an immutable class 
that will be mapped to a database lookup/reference table, then what changes 
should I make to the seam-gen code???

I particular, I'm confused by the need for the wire() and isWired() methods - 
can anyone shed any light on what they are for and whether I'll still need them?

Thanks,

Lawrie

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4016451#4016451

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4016451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen setup bug (hibernate.default_schema)

2007-02-12 Thread gunnarif
Hi!
I think this is a bug. 
When you generate the build.properties file with 'seam setup' and you choose a 
database (e.x. db2). You are prompted to set the default_schema property. 
Then if you use 'seam setup' again but you choose mysql you are not prompted 
for the default_schema property, but it is unchanged in the build.property 
file. This causes problems when the persistence*.xml file is generated, and 
hibernate fails.

Thanks,
Gunnar

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4015514#4015514

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4015514
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen error

2007-02-07 Thread pbrewer_uk
I've just started looking at seam-gen (with Seam 1.1.5 and Oracle XE) and it 
fails when running the generate-entites task. It manages to build all the 
entity beans, but breaks half way through building the xxxList.xhtml pages (it 
does output about 10 files of an expected 40).

The error message is:

  | ...
  | [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl
  | 07-Feb-2007 14:43:32 
org.hibernate.connection.DriverManagerConnectionProvider close
  | INFO: cleaning up connection pool: jdbc:oracle:thin:@localhost:1521:XE
  | [hibernate] 07-Feb-2007 14:43:33 
freemarker.log.JDK14LoggerFactory$JDK14Logger error
  | [hibernate] SEVERE:
  | 
  | [hibernate] Expression property.value.typeName is undefined on line 30, 
column 6 in view/list.xhtml.ftl.
  | [hibernate] The problematic instruction:
  | [hibernate] --
  | [hibernate] == if property.value.typeName == string [on line 30, column 
1 in view/list.xhtml.ftl]
  | [hibernate] --
  | 
  | [hibernate] Java backtrace for programmers:
  | [hibernate] --
  | [hibernate] freemarker.core.InvalidReferenceException: Expression 
property.value.typeName is undefined on line 30, column 6 in 
view/list.xhtml.ftl.
  | [hibernate] at 
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
  | [hibernate] at 
freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121)
  | [hibernate] at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
  | [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
  | [hibernate] at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
  | [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
  | [hibernate] at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
  | [hibernate] at freemarker.core.Environment.visit(Environment.java:351)
  | [hibernate] at 
freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
  | [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
  | [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92)
  | [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
  | [hibernate] at freemarker.core.Environment.process(Environment.java:176)
  | [hibernate] at freemarker.template.Template.process(Template.java:231)
  | [hibernate] at 
org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247)
  | [hibernate] at 
org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
  | [hibernate] at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
  | [hibernate] at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
  | [hibernate] at 
org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84)
  | [hibernate] at 
org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73)
  | [hibernate] at 
org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56)
  | [hibernate] at 
org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41)
  | [hibernate] at 
org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182)
  | [hibernate] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
  | [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
  | [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | [hibernate] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | [hibernate] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
  | [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  | [hibernate] An exception occurred while running exporter #3:generic 
exportertemplate: view/list.xhtml.ftl
  | [hibernate] To get the full stack trace run ant with -verbose
  | [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while 
processing template view/list.xhtml.ftl
  | [hibernate] freemarker.core.InvalidReferenceException: Expression 
property.value.typeName is undefined on line 30, column 6 in 
view/list.xhtml.ftl.
  | 
  | BUILD FAILED
  | 

[jboss-user] [JBoss Seam] - Seam Gen messages

2007-02-03 Thread fady.matar
I have been playing around with Seam Gen, and I liked the approach and the 
source code generation is way better than the one by the previous Seam wizard 
by Hibernate tools.

I have a few questions to raise, I have updated one of the classes of my Entity 
Bean and update the persist and the update method since one of the fields is 
unique and I don't want to be redirected to the debug page.

The update was simple and I don't believe it is the right approach. Here's my 
code for the two methods.

  | @Override
  | public String persist() {
  | try {
  | return super.persist();
  | } catch (Exception ex) {
  | return null;
  | }
  | }
  | 
  | @Override
  | public String update() {
  | try {
  | return super.update();
  | } catch (Exception ex) {
  | return null;
  | }
  | }
  | 

Now I'm not redirected to the debug page, and a message Transaction Failed 
appears. 

Here's the custom message I have added to provide more feedback about the error 
to the end user:


  | @Override
  | public String persist() {
  | try {
  | return super.persist();
  | } catch (Exception ex) {
  | FacesMessages.instance().clear();
  | FacesMessages.instance().add(
  | The name you has already been 
reserved.);
  | return null;
  | }
  | }
  | 
  | @Override
  | public String update() {
  | try {
  | return super.update();
  | } catch (Exception ex) {
  | FacesMessages.instance().clear();
  | FacesMessages.instance().add(
  | The name you has already been 
reserved.);
  | return null;
  | }
  | }
  | 

I would like to take the Transaction Failed message and replace it with one 
specified above. The clear method did not take it out. 
Any suggestions?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010576#4010576

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4010576
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen enhancement

2007-02-01 Thread guanwh
Would it be great that seam-gen will generate crud pages and classes for an 
existing Entity class,just like seam-gen generate the crud pages,classes and 
entity classes from database.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009250#4009250

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009250
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen puts both antlr-2.7.6.jar and antlr-3.0ea8.jar

2007-02-01 Thread codelion
Both antlr .jar are coming from drools\lib, I guess.

Is that intentional, or is that an oversight, which one should be it?

Afraid those two versions might conflict.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009706#4009706

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009706
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen vs. reference doc re Home setId()

2007-01-31 Thread codelion
seam-gen with generate-entities keeps generating methods like setSomethingId() 
and getSomethingId() in

public class SomethingHome extends EntityHomeSomething {
  | 
  | public void setSomethingId(String id) {
  | setId(id);
  | }
  | 
  | public String getSomethingId() {
  | return (String) getId();
  | }
  | 
  | @Override
  | protected Something createInstance() {
  | Something result = new Something();
  | return result;
  | }
  | }

Then in the generated Something.page.xml there is

page
  |param name=somethingFrom/
  |param name=somethingId value=#{somethingHome.somethingId}/
  | /page

In contrast, seam reference doc shows

param name=personId value=#{personHome.id}/

and no methods wrapping setId() and getId(), i.e. no setSomethingId() and no 
getSomethingId().

Big Question:  Is it safe to not have setSomethingId() and not have 
getSomethingId() in my own code, just use setId() and getId()?

And, are setSomethingId() and getSomethingId() there for a good reason we 
should know?

And, will setSomethingId() and getSomethingId() be removed in the future?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009116#4009116

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009116
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generate-entities not using Entity.java

2007-01-28 Thread dan.j.allen
When I use the seam-gen generate-entities target to reverse engineer my 
database, it does a great job ;) However, the resulting entity classes don't 
use the Entity.java template from the seam-gen source code.  However, if I use 
the seam-gen new-entity target, it does.  Is there any reason?

The main issue is that my generated entities don't have a @GeneratedValue 
annotation on the id property, even though my database uses an auto increment 
feature (MySQL).  Its not that big of a deal to go in and edit the generated 
classes, but it is additional work.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4007525#4007525

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007525
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - SEAM-GEN: Feature Recommendations

2007-01-24 Thread awesomejt
Seam Folks:

I got the seam gen tools working great for my needs. However, I do have a few 
recommendations:

1. Can the setup command take an extra parameter to keep different 
build.properties files -- I actually work on more than one application. My 
current workaround is to save the working build.properties file as 
projectname.build.properties and rename it when I need to gen more stuff.
2. Can you create a filter or property setting that allow me to specify which 
tables I want included in the data model extraction? Not all my tables are or 
should be editable.
3. There seems to be a bug with some data types in Oracle.
4. EntityManager isn't created (or accessible) with the new-entity command.
5. Can you make a property to control whether to use xhtml or jspx/jsf style 
views?
6. Property controlling various paths (src, libs, etc) would be nice. Yeah, I 
know I can screw with the build.xml generated, but the option would be nice.
7. Entity/Form creation -- allow for input of methods to go ahead and stub in. 
I guess that would be more difficult since you would need to know data types
8. Single/additional entity/form extraction from data model would be neat -- 
right now there is all or nothing. :-)

That's it for now. It would be way cool to eventually make a GUI version/option 
or Eclipse plugin that provides more features than is practical at the command 
prompt.

Thanks for a great tool. Certainly helps jump start my Seam app development!



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4006036#4006036

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam Gen Problem

2007-01-23 Thread kasim

This is probably something obvious but i cant figure it out.

When i run the ./seam generate-entities

i get No driver found error. i was assuming it was going off the one we defined 
in the setup. which i verified is there

Total time: 1 second
  | apple-nusairat:/usr/local/java/packages/jboss-seam-1.1.1.GA online$ ./seam 
generate-entities
  | Buildfile: build.xml
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: Hibernate 3.2 cr4
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment clinit
  | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Using Hibernate built-in connection pool (not for 
production use!)
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Hibernate connection pool size: 20
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: autocommit mode: false
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: 
jdbc:mysql://localhost
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: connection properties: {user=root, password=}
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] WARNING: Could not obtain connection metadata
  | [hibernate] java.sql.SQLException: No suitable driver
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:545)
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:140)
  | [hibernate] at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | [hibernate] at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
  | [hibernate] at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929)
  | [hibernate] at 
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38)
  | [hibernate] at 
org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(JDBCConfigurationTask.java:82)
  | [hibernate] at 
org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:55)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:298)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:314)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
  | [hibernate] at 
org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter(Hbm2JavaExporterTask.java:34)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182)
  | [hibernate] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
  | [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
  | [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | [hibernate] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | [hibernate] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
  | [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.dialect.Dialect init
  | [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.transaction.TransactionFactoryFactory 

[jboss-user] [JBoss Seam] - seam-gen and type specific controls

2007-01-16 Thread zeljko_t
It seems to me that seam-gen generates text fields for all data types. What I 
was expecting was check boxes for booleans and combos for enumerations.

Is there a way to force seam-gen to do this?

If not, does special tag for this exists, e.g. one that will render booleans as 
check boxes, strings as plain text boxes etc.?

Or this should be done manually?

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4002362#4002362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen

2007-01-08 Thread ector7280
I'm using an Oracle Express db with seam-gen and I'm getting the following 
error message:

generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] An exception occurred while running exporter #2:hbm2java 
(Generates a set of .java files
  | )
  | [hibernate] To get the full stack trace run ant with -verbose
  | [hibernate] org.hibernate.exception.DataException: Error while reading 
column meta data for SYS.SYSN
  | TQ/5M5j/MQNSejz17KVYonQ==
  | [hibernate] java.sql.SQLException: ORA-01424: missing or illegal character 
following the escape char
  | acter
  | [hibernate]
  | 
  | BUILD FAILED
  | C:\jboss-seam-1.1.0.GA\seam-gen\build.xml:665: 
org.hibernate.exception.DataException: Error while re
  | ading column meta data for SYS.SYSNTQ/5M5j/MQNSejz17KVYonQ==
  | at 
org.hibernate.tool.ant.HibernateToolTask.reportException(HibernateToolTask.java:222)
  | at 
org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:185)
  | at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | at org.apache.tools.ant.Task.perform(Task.java:364)
  | at org.apache.tools.ant.Target.execute(Target.java:341)
  | at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | at org.apache.tools.ant.Main.runBuild(Main.java:668)
  | at org.apache.tools.ant.Main.startAnt(Main.java:187)
  | at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  | at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  | Caused by: org.hibernate.exception.DataException: Error while reading 
column meta data for SYS.SYSNT
  | Q/5M5j/MQNSejz17KVYonQ==
  | 

Is there a known problem with seam-gen and oracle express?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3999199#3999199

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3999199
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen problems and solutions

2007-01-04 Thread codelion
Several suggestions listed below.

Using jboss-seam-CVS.20070102.zip, jems-installer-1.2.0.CR1.jar and 
JBossIDE-2.0.0.Beta2-Bundle-win32.zip.

Following seam_reference.pdf Chapter 2. Getting started with Seam using 
seam-gen.

In 2.1 it says add your JBoss installation to the JBoss Server View.

There are two choices, JBoss / JBoss v4.0 and JBoss Inc / JBoss AS 4.0.

Suggestion 1)

Would be nice if documentation says which to use.

I pick JBoss Inc / JBoss AS 4.0.

In 2.2 it says add the project using New - Project... - Java Project.  The 
leads to a problem for me.  (Some error message about a directory.)

So I try New - Project... - Java Project for Existing Ant Buildfile.  That 
almost works.

Suggestion 2)

If correct, please say New - Project... - Java Project for Existing Ant 
Buildfile.

There is still a problem.  In build.xml (the last delete task in target 
clean) ... myproject/exploded-archives/myproject.jar not found.  The problem 
persists through attempts to build and clean.

When I run ant from the command line I get som success.  It deploys.

The root cause appears in target clean the last delete with the fileset not 
finding the dir of the fileset.

Suggestion 3)

In target name=clean for the last delete add a failonerror=no.

Still more problems... I find out things are done differently within versus 
outside Eclipse.

So when I run ant outside Eclipse it deploys (by target deploy) a file 
myproject.ear, when I run ant inside Eclipse it deploys (by target explode) a 
directory myproject.ear.

In target unexplode the delete of ear.deploy.dir fails if it encounters the 
file.

My workaround hopefully will be to clean or undeploy or unexplode with ant from 
outside Eclipse if I deployed (or exploded) from outside Eclipse, and from 
inside if from inside.

Suggestion 4)

Document that command line and Eclipse deployment don't mix.  Reason:  One uses 
archive files, the other uses exploded directories, which makes Ant tasks choke 
if they collide.  Workaround:  Must undeploy one (command line or Eclipse) 
before deploying the other.  After deploy must undeploy, after explode must 
unexplode.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3998076#3998076

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3998076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam Gen problem with ejb-jar.xml

2007-01-03 Thread james_027
Hi,

I am new with Seam. Iam trying to create a new project with seam gen. After 
doing the seam setup, seam new-project, and seam explode. I cannot open the web 
page.

This is one of the error I found during the startup of JBOSS AS

ejb-jar.xml must either obey the right  xml schema or define a valid DOCTYPE!

I am now stock and can't proceed. Please help.

James



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997466#3997466

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997466
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen generates java.lang.StackOverflowError on self refe

2006-12-17 Thread jdijkmeijer
Hi,

I've been playing with (seam-)gen the last few days and today I decided to 
upgrade to Seam 1.1 GA. I was very impressed by its capabilities, however with 
the last release I run into an stackoverflow error doing seam generate-entites 
which didn't occur on the CR2 release. The tables I refer to are self 
referential (child parent) and leaving out the reference to itself solves the 
problem but that's not realy an option for me now.


  | create table if not exists subject (
  | subjectid INTEGER NOT NULL AUTO_INCREMENT
  | , info varchar(150)
  | , firstname varchar(50)
  | , lastname varchar(50) NOT NULL
  | , email varchar(70)
  | , PRIMARY KEY (subjectid)
  | ) TYPE = InnoDB;
  | 
  | create table if not exists role (
  | roleid INTEGER NOT NULL AUTO_INCREMENT
  | , info varchar(150)
  | , parentid INTEGER
  | , name varchar(50) NOT NULL
  | , PRIMARY KEY (roleid)
  | , INDEX parent_ind (parentid)
  | , FOREIGN KEY (parentid) references role (roleid)
  | ) TYPE=InnoDB;
  | 
  | 
Database is mysql 5.0, jdk: build 1.5.0_04-b05, os winxp sp2.
Can anybody point me to a solution or is this a bug?
thanks in advance.

Jeroen.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3994490#3994490

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3994490
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen generated entity and @Embeddable class problem

2006-12-01 Thread jlemoine
Hi, 

I'm a total newbie with Seam/Hibernate, and I encounter a problem as I play 
with my first Seam-gen generated Entity. (1.1.0CR1 + adequate jbossAS)

I would like to create a Country entity, that has an ISO code, an Int'l 
spelling name and a local name. Just like JP, Japan, ??.
Since I plan to have a lot of stuff with this kind of Int'l / local names, I've 
tuned the Country class like this :

@Entity(country)
  | public class Country ... {
  |...
  |// private String name;
  |private Name name;
  |...
  |
  |public Name getName(){
  |  return this.name;
  |}
  |public void setName(Name name){
  |  this.name = name;
  |}
  | }
This seems OK regarding Hibernate's ref. manual.

Then, I wrote the following Name class :

@Embeddable
  | public class Name{
  | private String local;
  | private String intl;
  | 
  | // getters and setters
  | ...
  | }

I've also adapted the default countryList.xhtml and country.xhtml accordingly.

So far so good. Now I seam-explode my project and start jbossAS.
I access the default countryList page (empty), click Create, type in the 
data, and save. 
The page redraws and shows beside the 2 names (translated from the French error 
messages) :
intl : error while updating the data 
local : error while updating the data

So, I manually create a row in the DB (MySQL), and go back to the country list. 
It displays the new row. Good.

So why can JSF/SEAM/Hibernate access the country.name.local data in 
countryList.xhtml, but fails to update countryHome.instance.name.local in 
country.xhtml ?

BTW, there's just no error message in jboss's console.
I have tried without the Name class, and works perfectly. But I'd prefer the 
@Embeddable class solution.

Any idea ?

Thanks for your help. It would be cool I get it to work before I go on 
exploring entity associations...

Regards,

Jean
 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3990440#3990440

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990440
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam gen or seam framework problem?

2006-11-29 Thread [EMAIL PROTECTED]
I have two table with a parten child relation (FK).
Both the table have an autoincrement integer column as PK.

Seamgen generate two entity with a one to many bidirectional relation.

After I have inserted a new instance of Parent Entity and I try to insert the 
relative child I have an exception related to this inner exception


  | Caused by: org.jboss.seam.framework.EntityNotFoundException
  | at org.jboss.seam.framework.Home.handleNotFound(Home.java:95)
  | at org.jboss.seam.framework.EntityHome.find(EntityHome.java:66)
  | at org.jboss.seam.framework.Home.initInstance(Home.java:80)
  | at org.jboss.seam.framework.Home.getInstance(Home.java:68)
  | at org.jboss.seam.framework.Home$$FastClassByCGLIB$$76f3c0be.invoke
  | 


How we have to work with autogenerated id?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989649#3989649

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989649
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen new-conversation does not generate test.

2006-11-19 Thread js8523
Hi All 

Just noticed that contrary to the seam help blurb on the new-form entry 
generates the test versions for the file. 

I checked if it was just a accidental leave off, but there were other items 
missing rather than just the entries in the build.xml, I presuem this is work 
in progress, but just in case it isn't I thought I'd raise this. 

I was looking to use it as an exemplarary project generator, to help the 
learning process. 

Many thanks for the good work. 

James

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3987171#3987171

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987171
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen and recursive tables

2006-11-15 Thread y_zl
anonymous wrote : packages an updated seam-gen which includes a totally 
revamped database to application reverse engineering tool based on Hibernate 
Tools 

I tried a simple recursive table test which has a field parent with a foreign 
key to this table's  id column. 

test (id, parent, desc)

then I ran command same generate-entities. it generated some entity homes and 
lists objects as well as some xhtml view files. 

when I used the created xhtml to create a new entity Test. I got ClassNotFound 
Exception

I also tried a none-recursive entiy, it works fine.

thanks a lot!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3986284#3986284

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3986284
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen head startup issue: ClassCastException: org.jboss.s

2006-11-09 Thread stu2
I've been working with seam head (pre beta2).  Built the seam jars, then 
created ran seam-gen new-project.  I've tried a number of variations, and 
each time I end up with the following exception.  I saw someone else on the 
list had seen this, and thought it'd be worth posting (next person will find 
the answer via google :-)

Anyway, I've since found James' excellent instructions, and will go through the 
process again using these - and switch to Seam 1.0.1GA if that doesn't work.  
But if anyone knows what I'm doing wrong here (newbie error I'm sure) I'm 
definitely curious.


03:29:14,637 ERROR [PhaseListenerManager] Exception in PhaseListener 
RESTORE_VIEW(1) afterPhase
javax.ejb.EJBTransactionRolledbackException: java.lang.ClassCastException: 
org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$ba08a277
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy100.begin(Unknown Source)
at 
org.jboss.seam.example.pageflow.SimpleFlow$$FastClassByCGLIB$$9639c07e.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:68)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3984721#3984721

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3984721
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen does not work

2006-08-17 Thread VotTak
Wasted another day, just to make sure that seam-gen is not working.

In JBossSeamGettingStartedGuideStep4
After creating a projects... in project sampleEJB... error:
Severity and DescriptionPathResourceLocation
Creation Time   Id
An EJB module must contain one or more enterprise beans.
sampleEJB/ejbModule/META-INFejb-jar.xml line 2  1155840718987   0

In JBossSeamGettingStartedGuideStep5
seam-gen...
When command seam set-properties...
Is this an expected behavior:
 [java] Aug 17, 2006 3:09:24 PM org.jboss.seam.tool.AbstractSeamGen 
 [java] SEVERE: build.properties (The system cannot find the file specified)

 [java] Aug 17, 2006 3:09:24 PM org.jboss.seam.tool.BuildPropertiesGenerator
 generate
 [java] INFO: Generating a new build.properties file
 [java] Aug 17, 2006 3:09:24 PM org.jboss.seam.tool.AbstractSeamGen generate
File
 [java] INFO: New File Generated by Seam Gen using: build-properties.ftl

So is it expected or no?

Next.
After issuing seam scaffold-wtp-project sample it looks for src directory 
under C:\seam-workspace\jboss-seam-1.0.1.GA\seam-gen
and if it is missing build fails. Well I made it happy when I add empty src 
dir there. It did not use it, so why is that directory required?

Next difference I notice when I tried to follow the guide to change build path 
and library dependencies.
On the picture I saw JBOSS 4.0 library... which is missing in my project. 
Should I add J2EE 1.4 library(JBOSS-IDE)?

Besides, When I click on Add JARs... I got JAR selection window which has 
red cross and No entries available.
Besides, I looked in sample directory and it does not contain lib directory.

I do not see how it can be worked out from this point on. 
Of course, your suggestions are welcome

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3965880#3965880

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user