OK, so this is probably another Hibernate issue, but still. I'm building my
Seam app from the Seam Hibernate example under Tomcat alone (microcontainer,
yada yada). I'm trying to declare a @PreUpdate method to protect certain
objects from updates (by throwing an exception and killing the
Arrgh, sorry about that. I fundamentally misunderstood how this works. Now I
know about @EntityListeners and I will build a proper listener class and so
forth. SEARCH BEFORE POSTING :-(
Cheers,
Rob
View the original post :
Actually, it looks like I *didn't* misunderstand how this works. A Hibernate
forum post mentions that the EJB3 lifecycle callbacks only work if you're using
EntityManager, i.e. an embedded EJB3 container. Which I'm not -- I'm using the
microcontainer-based Hibernate example for my
When I run the Seam 1.0.1GA Hibernate testexample, here's the very beginning of
the ant clean testexample output:
testexample:
| [copy] Copying 44 files to
C:\robj\dev\seam\jboss-seam\examples\hibernate\build\test
|[testng] INFO 03-07 10:40:37,125 (Log4JLogger.java:info:94)
Yours doesn't seem down by much! I figured out the base problem (you need a
@FilterDef *and* a @Filter), but am encountering some other issues, mentioned
in the other thread. Nothing to do with Seam though.
I guess the only subquestion worth asking here is, what's the roadmap for
Hibernate 3
OK, I asked: http://forum.hibernate.org/viewtopic.php?t=961435
Here's hoping Emmanuel's response rate is anything like as good as yours :-\
If I don't hear back I will just start digging down into the source until I
find the problem, then I'll JIRA something up.
(Seems like the url tag is
Very confusing! I have some pretty straightforward code that worked fine with
the 1.0beta2-era CVS build I had, but that now breaks after upgrading to 1.0.1:
@Entity
| @Name(changeset)
| public class Changeset {
| ...
|private Long id;
| ...
|@Id @GeneratedValue
|public
NEVER MIND, FIXED!
Problem was that I am working in a noejb-like setting (I originally started
from the old noejb example, now the hibernate example). In the course of
porting to 1.0.1 I got confused and started making changes based on the booking
example, with embeddedEjb rather than
Working with my Seam example, just ported to 1.0.1. Originally derived from
the noejb example, which now became the Hibernate example.
I'm trying to declare a @Filter on one of my @Entities:
@Entity
| @Name(blogPost)
| @Filter(name=headOnly, condition=replicatedChangeset is null)
| public
What was the resolution?
Cheers!
Rob
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3949216#3949216
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949216
___
JBoss-user mailing
Arrgh, please disregard. This was intended to be a reply to another post, not
a new topic. My apologies.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3949217#3949217
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949217
Search this forum for cvs info. AFAIK there are no mailing lists, only this
forum.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3923228#3923228
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923228
OK, I tried the above. Specifically, I wanted to make it so the hotel/booking
noejb example brings up the hotel list the first time you land on main.xhtml,
without starting a conversation. The hotel list is in session scope, in other
words, just like the booking list. Then the View Hotel
OK, so of course I posted that and then thought of one last possibility, which
sort of kind of worked. Declare HotelFactory.hotels as @In ListDataModel
hotels. That gets past all the bijection issues.
Problem is it doesn't actually affect HotelListAction, because there,
hotelIndex is
LAST THING: Changing HotelListAction.hotelIndex to @In(required=false) @Out
@DataModelSelectionIndex Integer hotelIndex; doesn't work *either*, because it
blows up before even calling the @Factory HotelListAction.find() method.
Specifically, it blows up with:
Feb 12, 2006 11:04:24 PM
[EMAIL PROTECTED] wrote : By the way, there is a FAQ item on this...
Where *is* the FAQ? I don't see a FAQ link on the wiki?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3923213#3923213
Reply to the post :
As Gavin already said:
[EMAIL PROTECTED] wrote : For now, just write a Seam interceptor.
:-)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921744#3921744
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921744
I'm in exactly the same situation -- I want a search list that's
conversationless-ly populated the first time the user hits the main list page,
and that then lets you start edit/etc. conversations via action links. It's as
if the noejb example always gave you a list of hotels the minute you
Jeez, and here I am converting the noejb/booking sample INTO a blog sample! :-\
Are there any current samples that show how to use RESTful request parameters?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921772#3921772
Reply to the post :
My main feedback is, man, that would be painful, to have to recreate all those
files by copy-pasting them into a new directory tree.
Why not include a .zip or .tar.gz of the entire example with all the files laid
out properly (and all the ADF libs included etc.)? Huge bonus points if you
can
When I try it (with ant -f build.tomcat.xml redeploy), I get the stupid
Tomcat ThreadDeath, and then I get:
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] 2006-02-04
12:32:27,968 INFO HostConfig:982 - Undeploying context
[/tomcat-seam-noejb]
|
p.s. No, this is not absolute latest CVS.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921681#3921681
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921681
---
This
I went ahead and added ListDataModel.getSize() and it works like a champ:
public int getSize ()
|{
| return ((List)getWrappedData()).size();
|}
Now I can do #{blogPosts.size} as I originally wanted.
How about it, Gavin? Post-beta-2 is fine with me, I'm not putting this
:-P
Should have seen that one myself. Oh well, at least it was educational
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3920140#3920140
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3920140
So I'm mucking with the noejb example (which is basically the booking
application). I've changed it from a list of hotels to a list of blog posts
(yes, another blogging system, just what the world needs, I know, I know). And
I tried to make this change to pages.xml:
page
Gavin, can you give an example of some code using @Roles? Or is there a JIRA
for this?
Thanks!
Cheers,
Rob
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3919482#3919482
Reply to the post :
This is actually not really a Seam question, it's a question about optimistic
concurrency in Hibernate.
In some sense, once you've gotten a StaleObjectStateException, it's too late.
You have to throw out your whole Hibernate session, which is tough to do in
general.
Here's a thread from the
Dammit, you beat me. Yes, I tweaked the test to change the password min
validation length, and it broke these tests. Hooray for tests! Boo for
slow-on-the-draw newbies! Hooray for blazingly quick Gavin response times! So
I guess overall, it's a hooray situation
Cheers!
Rob
View the
Well, looks like they moved this thread out of the microcontainer forum after
all.
In any case, I did get this working eventually -- required many iterations of
IDEA project configuration. Basically, ant testexample populates the
build/test directory, which TestNG is fairly particular about.
I did get this working eventually -- required many iterations of IDEA project
configuration. Basically, ant testexample populates the build/test
directory, which TestNG is fairly particular about. So you need to have
build/test as your test output directory, and you need to NOT exclude output
I have a copy of the noejb example that I am modifying. I've modified it only
to change package names. But my ChangePasswordTest is failing.
ChangePasswordTest has this code. The failure is on the assert
outcome==null; line.
new Script() {
|
| ChangePasswordAction
Well, I've decided to set up an IDEA TestNG project running directly out of CVS
source, on the theory that that's reproducible by you all.
Here's the latest, from the microcontainer thread:
http://jboss.org/index.html?module=bbop=viewtopicp=3917522#3917522
Strange that I now get different
OK, it turned out to be a build misconfiguration in IDEA. Now the plugin comes
up and *starts* to run the test. But then it blows up.
I'm going to do the horrid paste-the-mondo-stacktrace thing, knowing that Gavin
will probably spend the least time diagnosing this if he has the biggest
Well, not wanting to litter your nice source tree with my random broken
log4j.properties, I instead inserted these lines between lines 113 and 114 of
current CVS's build.tomcat.xml:
fileset dir=../../microcontainer/conf
| include name=log4j.xml/
| /fileset
I am working with Seam, in its microcontainer-under-Tomcat configuration. I'm
using the latest CVS version of Seam.
I am able to get the noejb example (which uses the JBoss microcontainer under
Tomcat) to work fine with ant, both the TestNG tests (ant testexample) and the
deployment under
Done:
http://jboss.org/index.html?module=bbop=viewtopict=74754
Here's hoping they're anywhere near as responsive as you ;-)
Cheers!
Rob
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3916818#3916818
Reply to the post :
The tomcat build seems pretty good. What problems do you mean? Anything in
the tomcat realm (where I'm living), or is it all jboss related? Anything
others can help with?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3916819#3916819
Reply to the post :
I'm taking the noejb example and I'm using it as a starting point for a sample
app of my own. In doing this I've taken the classes and renamed them, and done
a few other minor modifications. The original code passes ant testexample
cleanly.
Now my repackaged example is failing ant
How much work would it be to make all the samples run outside JBoss? i.e.
create noejb versions of the dvdstore, issuetracker, etc.?
Also, what's the process for submitting patches? JIRA?
Cheers!
Rob
View the original post :
Great, thanks, no more questions. (on this thread, anyway ;-)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3914975#3914975
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914975
[EMAIL PROTECTED] wrote : anonymous wrote : First, it looks like the
transition object is only @In, not @In @Out. But it's pretty clear that
myActionListener is trying to communicate some state outwards to the
conversation. So why not @Out also? Or is @Out only for cases where new
contextual
[EMAIL PROTECTED] wrote : The difference with @In @Out is that you are able
to modify the value of the variable itself. ie. change the reference. With @In
alone, you can only change the state of the referent.
This is very clear and makes sense. I see where LoginAction.login() does this
on a
Yes, I know, I was just trying the toplevel tests as a sanity check (to avoid
any issues of the multiple build.xml files). examples / noejb / ant
testexample works great now :-)
I must say it's a pleasure being back on a forum that's got a timely Gavin on
it! I was on the Hibernate forums in
When I run the noejb example in Tomcat 5.5, the log.info statements in Seam
itself and in the noejb example code do not appear in the Tomcat log (at least,
not the log that I see in the standard Catalina window).
Any tips on getting Seam logging to show up in a Tomcat/noejb deployment?
This
Hm. The second version confuses me in two ways. First, you have this:
@In Transition transition;
|
| @EndTask
| public String myActionListener() {
|transition.setName(approved);
|return success;
| }
First, it looks like the transition object is only @In, not @In @Out. But
Looks like it was a stale Ant version -- 1.6.0 apparently doesn't recognize the
existence of Java 1.5 :-)
But then I get this:
[testng] FAILED:
org.jboss.seam.test.PhaseListenerTest.testSeamPhaseListenerNewLongRunning()
|[testng] java.lang.NullPointerException
|[testng] at
I was indeed able to get it from CVS using the instructions from
http://www.jboss.com/index.html?module=bbop=viewtopict=70051:
Thomas Heute wrote : cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/jboss co
jboss-seamanonymous wrote :
| | It built and deployed on Tomcat absolutely perfectly.
Sorry, garbled my close quote tag above. Wish we could edit posts in this
forum
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3914354#3914354
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914354
So I got SEAM from CVS (the jboss-seam module; Gavin said he uses
jboss-seam-head but I'm assuming there's no meaningful difference). I built it
and ran the noejb example under Tomcat absolutely the very first time I tried
it. Woohoo! Nice one, Gavin et al.!
Now I'm trying to run the TestNG
Fixed it. Should have EMPTY password rather than no password at all.
Too bad you can't edit or delete posts here ;-)
Cheers!
Rob
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3914125#3914125
Reply to the post :
Apologies for my ignorance...
I am trying to use jCVS II 1.4.2 to pull down the current CVS. I am using
Checkout, with the following settings:
PServer
User Name: anonymous
no password
CVS Module: jboss-seam
CVS Server: anoncvs.forge.jboss.com
CVS Repository: /cvsroot/jboss
Checkout Directory:
Am I reading correctly that the SEAM build requires you to have CVS pserver
access? In other words, we can't just download the CVS and then run ant to
build seam.jar?
I'm interested in using SEAM in Tomcat (I want to build an app to deploy on a
Java hosting ISP that supports Tomcat but not
52 matches
Mail list logo