[JCA/JBoss] - Re: need help! JCA sample!
by bruce_yuan
well......i just follow the guide
1. ant-Dchap=chap7 build-chap
Buildfile: build.xml
|
| validate:
|
| fail_if_not_valid:
|
| init:
| [echo] Using jboss.dist=D:/jboss-4.0.5.GA
|
| compile:
|
| build-chap:
|
| build-all:
|
| prepare:
|
| chap7-ex1-rar:
|
| prepare:
|
| chap7-ex1-jar:
|
| BUILD SUCCESSFUL
| Total time: 2 seconds
then the example directory has a sub-dir named "output" which has 3 files:chap7-ex1.jar,4kb, chap-ex1.rar,10kb, ra.jar,10kb
2. ant -Dchap=chap7 config
| Buildfile: build.xml
|
| validate:
|
| fail_if_not_valid:
|
| init:
| [echo] Using jboss.dist=D:/jboss-4.0.5.GA
|
| compile:
|
| config:
|
| config:
| [copy] Copying 1 file to D:\jboss-4.0.5.GA\server\default\deploy
| [copy] Copying 1 file to D:\jboss-4.0.5.GA\server\default\deploy
|
| BUILD SUCCESSFUL
| Total time: 2 seconds
then the jboss\server\default\deploy dir has 2 more files:chap7-ex1.rar 10kb, notxfx-ds.xml 1kb
3. ant -Dchap=chap7 -Dex=1 run-example
Buildfile: build.xml
|
| validate:
|
| fail_if_not_valid:
|
| init:
| [echo] Using jboss.dist=D:/jboss-4.0.5.GA
|
| compile:
|
| run-example:
|
| prepare:
|
| chap7-ex1-jar:
|
| run-example1:
| [copy] Copying 1 file to D:\jboss-4.0.5.GA\server\default\deploy
| [echo] Waiting for deploy...
| [java] Created Echo
| [java] Echo.echo('Hello') = Hello
|
| BUILD SUCCESSFUL
| Total time: 9 seconds
the deploy dir has 1 more file :chap7-ex1.jar 4kb
then console shows the error above...
i don't kown why
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035207#4035207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035207
19 years
[JBoss Seam] - How to generate Id automatically?
by anarinsky
I use seam generator to generate entities based on the database. This database originally was generated by Hibernate using org.hibernate.tool.hbm2ddl.SchemaExportTask
Id supposed to be auto generated. However, when I add @GeneratedValue to the Id getter I am getting the exception on startup:
ObjectName: persistence.units:ear=spot4.ear,unitName=spot4
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing sequence or table: hibernate_sequence
I Depend On:
jboss.jca:service=DataSourceBinding,name=spot4Datasource
With the old variant of Hibernate this auto sequence generated worked fine with the following annotation used in Doclet:
/**
* @hibernate.id column="ID" generator-class="increment" unsaved-value="0"
*/
Any suggestions? Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035206#4035206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035206
19 years
[JBoss Seam] - Issue about EL enhancement
by raffaele.camanzo
Hi all,
I'm facing an issue using the Seam EL enhancement:
I have to create a results list, each result has a <s:link.. and the action gets, through the EL enhancement the list items as action parameter.
Instead of the booking example, I don't want to render the results a table and I use a <ui:repeat> as follows:
| <ui:repeat value="#{ricercaMenu.dataList}" var="actionDataEntry">
| <li>
| <s:link action="#{ricerca.begin(actionDataEntry)}">
| <h:outputText value="#{actionDataEntry.label}"/>
| <s:conversationPropagation type="none"/>
| </s:link>
| </li>
| </ui:repeat>
|
The list is ok, indeed, the label is present, but when I try to access to a actionDataEntry member inside the #{ricerca.begin(actionDataEntry)} I get a NullPointerException. Is this a bug or I'm missing something?
Regards,
Raffaele Camanzo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035194#4035194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035194
19 years