[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity
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 configuration. Anyone know offhand? Is it true that if I'm using the Tomcat / microcontainer / no-EJB3 configuration, that EJB3 lifecycle callbacks (e.g. @PreUpdate) won't be called? If so, does this mean that @EntityListeners won't work either without going to an embeddedEjb configuration? And in general, is there any reason to prefer the microcontainer config (a la the Seam Hibernate example) to the embeddedEjb config (a la the blog example)? Seems like the microcontainer style might be strictly less useful...? Thanks Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956008#3956008 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956008 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity
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 : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955975#3955975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955975 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - @PreUpdate not being called on Seam @Entity
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 session). But my method is never called. Code: @Entity | @Inheritance(strategy=InheritanceType.JOINED) | public class RepObject { | ... |private Changeset replicatedChangeset; | |/** | * The changeset in which this object was created. Null for head objects; set for all | * versioned copies. | */ |@ManyToOne |public Changeset getReplicatedChangeset () |{ | return replicatedChangeset; |} | ... |@PreUpdate |private void checkUpdate () { | log.debug("Calling checkUpdate on " + this + "..."); | if (replicatedChangeset != null) { | throw new IllegalStateException("Can't update snapshotted object " + this); | } |} The idea is that a RepObject can be copied, and the copy has a non-null "Changeset". The copy then should never ever be updated again. Basically I want it to be "dynamically immutable" (I wish there was a way to flag a particular object as immutable at the Hibernate level, but the best I can do is blow up if you change it and then try to flush). The test is this. (BlogPostImpl is of course a subclass of RepObject.) database.enableFilter("priorVersion").setParameter("version", last.getId()); | List priorBlogPosts = database.createQuery("from BlogPostImpl").list(); | | try { |BlogPost prior1 = priorBlogPosts.get(0); |prior1.setTitle("changedTitle"); | |// this should call the @PreUpdate on RepObject, which should blow up here |// ... but doesn't! and I can't even see where the @PreUpdate gets read! |database.flush(); | |// assert false; // plan to die if we get this far; should get exception from the flush | } catch (Exception e) { |// you should never do this, so we don't attempt to support any sort of recovery! |log.info("Got expected exception from attempted snapshot update", e); | } But my @PreUpdate method is never called, no exception gets thrown, and I hit the "assert false". And I can see in the log output that the flush *is* causing a single update: DEBUG 06-07 08:49:12,353 (Log4JLogger.java:debug:84) -Flushed: 0 insertions, 1 updates, 0 deletions to 4 objects | ... DEBUG 06-07 08:49:12,393 (Log4JLogger.java:debug:84) -update RepObject set version=?, replicatedChangeset_id=?, replicatedKey=? where id=? and version=? | ... DEBUG 06-07 08:49:12,433 (Log4JLogger.java:debug:84) -update BlogPostImpl set content=?, title=? where repobject_id=? In digging through hibernate-annotations source, I can't see where AnnotationBinder ever looks at the Entity methods to see which of them are flagged with EJB3 callbacks! I would like to trace through the code that sets up the callbacks on this Entity, but I can't find it to trace through! What am I missing? Can anyone confirm or disconfirm that EJB3 persistence lifecycle annotations actually work with Seam @Entities? I will also post this in the Hibernate EJB3 forum Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955971#3955971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955971 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Log4JLogger doesn't print right source line
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) -reading components.xml |[testng] INFO 03-07 10:40:37,218 (Log4JLogger.java:info:94) -reading properties from: /seam.properties Note that all of the logging lines are "Log4JLogger.java:info:94". This is, of course, not what I want. I want to know where in the source is the original call to log.info, not the line number inside Log4JLogger! This used to work with a previous beta of Seam, but broke somewhere along the way to 1.0.1GA. Anyone else noticed this? Troubled by it? Got a fix? Thanks :-) Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955111#3955111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955111 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Can you @Filter a Seam @Entity?
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 now? Is there going to be a Hibernate 3.3? Or 4.0? Or ? Basically, I can see myself wanting to do some JIRA patches to filters in Hibernate3 soon, and I'm wondering what the chances are that they'll get accepted View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954764#3954764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954764 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Can you @Filter a Seam @Entity?
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 broken on this forum; can't actually put in any anchor text. (url=http://whatever)My Anchor Text(url) doesn't display My Anchor Text at all. Oh well!) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954466#3954466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954466 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Can you @Filter a Seam @Entity?
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 class BlogPostImpl implements BlogPost, Serializable { |private Long id; | ... |@Id @GeneratedValue |public Long getId() |{ | return id; |} | ... |private Changeset replicatedChangeset; | |/** | * The changeset in which this object was created. Null for head objects; set for all | * versioned copies. | */ |@ManyToOne |public Changeset getReplicatedChangeset () |{ | return replicatedChangeset; |} | ... | } And I'm trying to use it in a query like this (yes, this is basically trying to make a version-tracking blog-posting system): new Script() { | ... | private Session database; | @Override | protected void updateModelValues() | { | database = (Session) Component.getInstance("database", true); | assert database != null; | } | | @Override | protected void invokeApplication() | { | ... | database.enableFilter("headOnly"); | List headBlogPosts = database.createQuery("from BlogPostImpl").list(); | ... | } | | }.run(); The exception I get is that the "headOnly" filter is not found: [testng] FAILED: com.robjsoftware.replog.test.ChangesetTest.testChangeset() |[testng] org.hibernate.HibernateException: No such filter configured [headOnly] |[testng] at org.hibernate.impl.SessionFactoryImpl.getFilterDefinition(SessionFactoryImpl.java:962) |[testng] at org.hibernate.impl.SessionImpl.enableFilter(SessionImpl.java:1025) |[testng] at com.robjsoftware.replog.test.ChangesetTest$4.invokeApplication(ChangesetTest.java:127) What am I missing? Is there any other magic I need to do to make @Filter work for a Seam @Entity? Are there any known examples of trying this? Should I even be expecting it to work? Should I try moving this to hibernate.cfg.xml (since I do *have* a hibernate.cfg.xml)? The Hibernate startup debug spam mentions "Binding entity from annotated class: com.robjsoftware.replog.domain.BlogPostImpl" but doesn't mention any filter annotations. Thanks very much -- I'm planning a bunch of aggressive weirdness with @Filters in this application, so it'll be a big bummer if Seam doesn't grok @Filter yet Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954234#3954234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954234 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: ClassCastException: DelayedPostInsertIdentifier after go
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 microcontainer. So I chopped out this method from the end of my test: @Override |public SeamPhaseListener createPhaseListener() |{ | return new SeamExtendedManagedPersistencePhaseListener(); |} Restoring that method fixed the exception. I twigged to this by rereading the Hibernate forum post that I followed up to, which mentioned that DelayedPostInsertIdentifier only is used by Hibernate when there is no outstanding transaction. Re-adding the createPhaseListener method caused there to be a transaction at this point in my test, as originally. Onwards :-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954232#3954232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954232 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - ClassCastException: DelayedPostInsertIdentifier after going
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 Long getId() |{ | return id; |} | ... |public List queryChangedObjects (Session database) { | Query query = database.createQuery("from BlogPostImpl bp where bp.replicatedChangeset = :changeset") | .setParameter("changeset", this); | List ret = query.list(); | log.debug("Got list of changed objects in " + this + ", it's " + ret); | return ret; |} | } The query.list() call breaks with this stacktrace: [testng] java.lang.ClassCastException: org.hibernate.action.DelayedPostInsertIdentifier |[testng] at org.hibernate.type.LongType.set(LongType.java:42) |[testng] at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:83) |[testng] at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:65) |[testng] at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:77) |[testng] at org.hibernate.loader.hql.QueryLoader.bindNamedParameters(QueryLoader.java:515) |[testng] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577) |[testng] at org.hibernate.loader.Loader.doQuery(Loader.java:661) |[testng] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) |[testng] at org.hibernate.loader.Loader.doList(Loader.java:2145) |[testng] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) |[testng] at org.hibernate.loader.Loader.list(Loader.java:2024) |[testng] at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392) |[testng] at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333) |[testng] at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) |[testng] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114) |[testng] at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) |[testng] at com.robjsoftware.replog.replicated.Changeset.queryChangedObjects(Changeset.java:77) |[testng] at com.robjsoftware.replog.test.ChangesetTest$2.invokeApplication(ChangesetTest.java:77) |[testng] at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:242) |[testng] at com.robjsoftware.replog.test.ChangesetTest.testChangeset(ChangesetTest.java:57) Why in heaven's name would this have worked up until I upgraded to 1.0.1??? The only changes I made in the upgrade were those necessary to get things compiling (e.g. adding @GeneratedValue, etc.). Where could this exception be coming from and how can I address it? I also posted to the Hibernate forum asking about this error, which one other person reported there after going to Hibernate 3.2CR2 (and got no reply to their report). (That post is here: http://forum.hibernate.org/viewtopic.php?p=2312158#2312158) Really not sure what to do about this. The Changeset I am calling queryChangedObjects on has definitely been persisted and flushed already by the time I call queryChangedObjects. Help?! Thanks, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954231#3954231 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954231 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Details?
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=bb&op=viewtopic&p=3949217#3949217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949217 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Details?
What was the resolution? Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949216#3949216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949216 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Where Seam's Mailing Lists? and cvs
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=bb&op=viewtopic&p=3923228#3923228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923228 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Bookmakring jsf pages in seam?
"[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=bb&op=viewtopic&p=3923213#3923213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923213 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t
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 com.sun.facelets.FaceletViewHandler handleRenderException | SEVERE: Error Rendering View | org.jboss.seam.RequiredException: Out attribute requires value for component: hotelList.hotelIndex | at org.jboss.seam.Component.setOutjectedValue(Component.java:867) | at org.jboss.seam.Component.outjectFields(Component.java:845) Which I don't fully understand. I mean, I understand why null gets injected to HotelListAction (though I'd expect required=false to prevent that), but I don't understand why it seems to be getting outjected again before the @Factory method is even called on HotelListAction. This is all frustrating, since I feel like I *almost* get the concepts behind Seam, but if I'm thrashing like this then obviously there's clues I still lack. But it's kind of how it felt when I started dinking with Hibernate in early 2004, and that turned out great, so I'm still hopeful :-) Cheers Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923212#3923212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923212 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t
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 declared as "@DataModelSelectionIndex hotelIndex". So HotelFactory can outject hotelIndex all it wants, HotelListAction isn't injecting it. Just changing the declaration to "@In(required=false) @DataModelSelectionIndex hotelIndex" in HotelListAction doesn't work either, because Seam tries to inject a null value for "hotelIndex", and of course you can't put a null into an int. Perhaps all this exposing of hotelIndex outside of HotelListAction is just wrong and I should be reorganizing HotelListAction to look at the "hotel" component (which is set by the HotelFactory after all) and drive its indexing from that on every action. I'll try that... next time I get to hack Seam... which is unfortunately only a couple of times a week right now :-( Anyway, still curious for the official word on this entire structure. Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923208#3923208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923208 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t
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" links become plain links with "hotelId" request parameters, for bookmarkability. So I split HotelBookingAction into HotelListAction (SESSION scope, responsible for the "hotels" datamodel) and HotelBookingAction (the editing methods, still conversational). HotelListAction's find() method becomes a @Factory("hotels") method. There is a new HotelFactory class, which creates the "hotel" component from the "View Hotels" link. So the "View Hotel" links actually read http://localhost:8080/tomcat-seam-noejb/hotel.jsf?hotelId=9 which is fine. (HotelFactory was originally @Stateless but it started complaining about no @JndiName, which I didn't want to have to mess with, so I just made it @Scope(STATELESS).) All of this works... EXCEPT for the interaction between the HotelFactory and the HotelListAction. Basically, I want the "Next Hotel" and "Previous Hotel" buttons in hotel.xhtml to work, regardless of whether I arrived at hotel.xhtml from main.xhtml or from a bookmarked link. Somehow I need the HotelFactory (the only bean that gets invoked when a bookmarked hotel.jsf link is loaded) to be aware of "hotels" and "hotelIndex", so it can set "hotelIndex" appropriately. Otherwise HotelListAction.nextHotel and HotelListAction.previousHotel don't work properly. Here's my stab at HotelFactory. /** | * Factory class to create a single hotel based on request parameter. | */ | @Name("hotelFactory") | @Scope(ScopeType.STATELESS) | public class HotelFactory { |private static final Logger log = Logger.getLogger(HotelFactory.class); | |@Out Hotel hotel; |@RequestParameter String hotelId; | |@In(create=true) |private Session bookingDatabase; | |@In |private List hotels; // big trouble with the type of this field |@Out |private int hotelIndex; | |@Factory("hotel") |public void getHotel() { | long hotelId = Long.parseLong(this.hotelId); | | hotel = (Hotel)bookingDatabase.createQuery("from Hotel where id = ?") | .setParameter(0, hotelId) | .uniqueResult(); | | if (hotels != null) { | for (int i = 0; i < hotels.size(); i++) { | Hotel listHotel = (Hotel) hotels.get(i); | // have to compare id's because "hotel" and "hotels" were loaded in different | // persistence sessions (since there's no common context for them both). | if (hotel.getId().equals(listHotel.getId())) { |hotelIndex = i; |break; | } | } | } | | log.info("got hotel for id " + hotelId + ": " + hotel); |} | } As you can see from the comments, this doesn't work. It actually fails to biject "hotels". - If I declare "hotels" as "@In private List hotels", it fails, because it tries to inject a ListDataModel value into HotelFactory.hotels, which (sensibly enough) gives an IllegalArgumentException at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63). - If I declare "hotels" as "@In @DataModel private List hotels", it fails for the same reason -- still trying to inject a ListDataModel into a List. - If I start flailing wildly and declare "hotels" as "@In @DataModel private ListDataModel hotels", munging the code around to call .getWrappedData() etc., etc., then it actually injects successfully and updates hotelIndex properly. THEN it dies with: java.lang.ClassCastException: org.jboss.seam.jsf.ListDataModel | at org.jboss.seam.Component.outjectDataModel(Component.java:773) | at org.jboss.seam.Component.outject(Component.java:695) Line 773 is: list = (List) getFieldValue( bean, dataModelGetter, name ); Seems like Seam's got me coming and going on this one! :-) Either it won't inject a List, or it won't outject a ListDataModel! What gives? The above seems crufty even to me (even if it worked it would be crufty), so I'm wondering whether there's just a better way to do all this. Is there an existing sample showing how to use a session-scoped list, RESTful item links, and next/previous item navigation all together? How's that blog sample coming? ;-) Also, as you can see, I have to compare IDs rather than just using "hotels.indexOf(hotel)" since there doesn't seem to be a shared persistence context. (In other words, Hibernate session caching not working in this case.) Is that expected? I'm also using a CVS snapshot from late January, not Beta2. Would any of this be different in Beta2? Thanks again. Worst comes to worst, I'll bail on trying to keep the session-scop
[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t
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=bb&op=viewtopic&p=3921772#3921772 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921772 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Ending a conversation and begining another at the same t
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 pull up main.jsf, and then conversations started from the View links. So, if I'm starting from (you guessed it) the noejb example, this means that I want to basically split HotelBookingAction into two beans: - HotelSearchAction (@Stateful @Scope(EVENT), containing @DataModel(scope=PAGE) List hotels and @Out Hotel hotel) - HotelBookingAction (@Stateful @Scope(CONVERSATION)), which gets @In Hotel hotel Is that right? Will "hotel" be properly propagated from the HotelSearchAction to the HotelBookingAction? I'll proceed along this path and find out :-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921750#3921750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921750 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Redirecting for exceptions
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=bb&op=viewtopic&p=3921744#3921744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921744 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Does Tomcat reload work w/noejb?
p.s. No, this is not absolute latest CVS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921681#3921681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921681 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Does Tomcat reload work w/noejb?
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] | [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 2006-02-04 12:32:27,968 INFO HostConfig:783 - Deploying web application archive tomcat-seam-noejb.war | [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 2006-02-04 12:32:28,265 INFO ContextConfig:311 - Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/tomcat-seam-noejb] Why does it not find web.xml on redeploy? Do other people have this working? Yes, I know Tomcat sucks for hot-swap. I don't really expect to get it working, honestly (I already have targets to shut Tomcat down completely, deploy, then start it up again). Yeah yeah real app server etc. Problem is I want to host this on lower-end providers, so Tomcat is my target Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921680#3921680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921680 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Is seam compatible with Oracle ADF?
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 just do "ant -f build.tomcat.xml deploy" in your example directory, and it works :-) Otherwise it's as if Gavin had given us *only* the documentation for SEAM, and not included the examples sources themselves! Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921679#3921679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921679 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Can I really not get the size of a list in JSF?!
:-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=bb&op=viewtopic&p=3920140#3920140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920140 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Can I really not get the size of a list in JSF?!
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 thing into production anytime soon (it's my personal project, which means it's moving slowly) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919967#3919967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919967 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Can I really not get the size of a list in JSF?!
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: View #{blogPosts.size} posts Blew up with a "no property 'size' on ListDataModel". Sure enough, there isn't. But there's getWrappedData(). So fine, I try: View #{blogPosts.wrappedData.size} posts Now I get "no property 'size' on java.util.ArrayList"! Feh, sure, it's List.size() not List.getSize(), right? Well, what's the workaround? I try View #{blogPosts.wrappedData['size']} posts Same error. Surf some *more*, and find this page which says it can't be done at all!!! http://www.crazysquirrel.com/computing/java/jsf/list-size.jspx Well, the page does suggest adding getSize() on the wrapper object if any. So that brings me to the point here, which is why I'm posting here and not a JSF forum: Can I submit a JIRA patch to add an org.jboss.seam.jsf.ListDataModel.getSize() method, which does the obvious thing? Then at least Seam apps would be able to get the freakin' size of a simple list via JSF EL :-) (Also is there anywhere that documents how to generate a patch that Gavin will accept, with a Windows machine?) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919949#3919949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919949 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Handling StaleObjectStateException?
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 Hibernate forums about this exact issue, with some good ideas: http://forum.hibernate.org/viewtopic.php?t=942461&highlight=retry Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919483#3919483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919483 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Managed-Beans -> SLSB
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=bb&op=viewtopic&p=3919482#3919482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919482 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Why does ChangePasswordTest expect outcome==null?
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 original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918813#3918813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918813 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Why does ChangePasswordTest expect outcome==null?
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 changePassword; | | @Override | protected void applyRequestValues() throws Exception | { | Contexts.getSessionContext().set("loggedIn", true); | Contexts.getSessionContext().set("user", new User("Gavin King", "foobar", "gavin")); | } | | @Override | protected void updateModelValues() throws Exception | { | User user = (User) Component.getInstance("user", true); | user.setPassword("xxx"); | changePassword = (ChangePasswordAction) Component.getInstance("changePassword", true); | changePassword.setVerify("xxx"); | } | | @Override | protected void invokeApplication() | { | String outcome = changePassword.changePassword(); | log.info("Outcome is " + outcome); | assert outcome==null; // fails | } | | @Override | protected void renderResponse() | { | User user = (User) Component.getInstance("user", false); | assert user.getName().equals("Gavin King"); | assert user.getUsername().equals("gavin"); | assert user.getPassword().equals("xxx"); | assert !Manager.instance().isLongRunningConversation(); | assert Contexts.getSessionContext().get("loggedIn").equals(true); | | } | | }.run(); My question is, why is outcome expected to be null there? It looks to me like the test goes to pains to set up a User object whose password *does* match the value of "verify". And ChangePasswordAction is: @Name("changePassword") | @LoggedIn | public class ChangePasswordAction | { | |private static final Logger log = Logger.getLogger(ChangePasswordAction.class); | |@In @Out @Valid |private User user; | |@In(create=true) |private Session bookingDatabase; | |@In |private FacesContext facesContext; | |private String verify; | |@IfInvalid(outcome=REDISPLAY) |public String changePassword() |{ |log.info("user is " + user + " with password " + user.getPassword()); | if ( user.getPassword().equals(verify) ) | { | log.info("updating password to: " + verify); | user = (User) bookingDatabase.merge(user); | return "main"; | } | else | { | log.info("password not verified"); | facesContext.addMessage(null, new FacesMessage("Re-enter new password")); | bookingDatabase.refresh(user); | verify=null; | return null; | } |} | |public String cancel() |{ | bookingDatabase.refresh(user); | return "main"; |} | |public String getVerify() |{ | return verify; |} | |public void setVerify(String verify) |{ | this.verify = verify; |} | | } Looks to me like if user.getPassword().equals(verify), which it *does* in this test, then outcome is -- and SHOULD be -- "main", not null. And that's what I see in my log: INFO 20-01 23:17:48,562 (ChangePasswordAction.java:changePassword:38) -user is User(gavin) with password xxx | INFO 20-01 23:17:52,281 (ChangePasswordAction.java:changePassword:41) -updating password to: xxx | INFO 20-01 23:20:54,187 (ChangePasswordTest.java:invokeApplication:51) -Outcome is main | java.lang.AssertionError | at com.robjsoftware.replog.test.ChangePasswordTest$1.invokeApplication(ChangePasswordTest.java:52) The action looks right to me. It's the *test* that looks wrong! What simple detail am I missing? Thanks, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918807#3918807 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918807 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb
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 directories, and you need to run "ant testexample" before running TestNG under IDEA. It is probably possible to do better than this, but that's good enough for me for right now. Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918804#3918804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918804 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Trouble running TestNG SEAM tests using microcontainer i
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. So you need to have build/test as your test output directory, and you need to NOT exclude output directories, and you need to run "ant testexample" before running TestNG under IDEA. It is probably possible to do better than this, but that's good enough for me for right now. Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918803#3918803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918803 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb
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=bb&op=viewtopic&p=3917522#3917522 Strange that I now get different TestNG plugin behavior in two different projects :-( IDE configuration is becoming as much of a black art as Ant build maintenance If anyone here has run Seam TestNG tests under IDEA, please do speak up! Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917523#3917523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917523 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: NoEJB example: log.info not visible
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=bb&op=viewtopic&p=3916819#3916819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916819 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb
Done: http://jboss.org/index.html?module=bb&op=viewtopic&t=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=bb&op=viewtopic&p=3916818#3916818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916818 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Microcontainer] - Trouble running TestNG SEAM tests using microcontainer in ID
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 Tomcat. So the source itself seems fine. I am using IDEA as my IDE. I am having some issues with a modified copy of the example, and I wanted to step through the TestNG tests in the debugger. After some IDEA build confusion, I managed to configure the examples/noejb/src/.../test/testng.xml suite in the TestNG plugin. I ran it, and I got an exception: IllegalStateException: Naming already defined The full stack trace is in this thread on the Seam forum: http://jboss.org/index.html?module=bb&op=viewtopic&t=75125. Gavin said I should ask about it over here. So here's hoping that one or more of you have some suggestions for me. Is this a configuration problem of my IDEA build? Is there any documentation on the microcontainer that would be helpful when I'm debugging issues like this? Thanks very, very much, Rob Jellinghaus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916817#3916817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916817 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: NoEJB example: log.info not visible
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: | | Actually, what I had was dir="${seam.home}/microcontainer/conf" because my project is in a different relative location to my local CVS copy of jboss-seam. Might be nice to use something like ${seam.home} throughout the examples for this reason In any case, this works like a charm under Tomcat. I'd like to submit a patch for this, since no one likes having to mung with an example to get its logging working. What's the process for that? Also Gavin, you chopped out all the info logging in the various noejb example actions. Why??? I personally found it useful and decided not to integrate those changes of yours (I have a personal Perforce server that I'm using to pull your CVS changes into my modified example source in a controlled way). Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916815#3916815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916815 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb
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 possible stacktrace to look at :-) This error comes up when I configure it to run the entire noejb/test/testng.xml suite. All of the subtests fail, but here's the stack dump from the first one. There sure is a lot of stuff that works properly before it blows up with the "IllegalStateException: Already installed Naming" problem And this is with the absolute latest CVS, from tonight. Thanks for any clues, Rob C:\jdk1.5.0_06\bin\java -ea -Xdebug -Xrunjdwp:transport=dt_socket,address=highball:1644,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\jdk1.5.0_06\jre\lib\charsets.jar;C:\jdk1.5.0_06\jre\lib\deploy.jar;C:\jdk1.5.0_06\jre\lib\javaws.jar;C:\jdk1.5.0_06\jre\lib\jce.jar;C:\jdk1.5.0_06\jre\lib\jsse.jar;C:\jdk1.5.0_06\jre\lib\plugin.jar;C:\jdk1.5.0_06\jre\lib\rt.jar;C:\jdk1.5.0_06\jre\lib\ext\dnsns.jar;C:\jdk1.5.0_06\jre\lib\ext\localedata.jar;C:\jdk1.5.0_06\jre\lib\ext\sunjce_provider.jar;C:\jdk1.5.0_06\jre\lib\ext\sunpkcs11.jar;C:\robj\dev\p4_robj-home-desktop2\replog\main\build\exploded\WEB-INF\classes;C:\robj\dev\seam\jboss-seam\lib\asm.jar;C:\robj\dev\seam\jboss-seam\lib\bsh-2.0b2.jar;C:\robj\dev\seam\jboss-seam\lib\cglib-2.1.1.jar;C:\robj\dev\seam\jboss-seam\lib\commons-beanutils.jar;C:\robj\dev\seam\jboss-seam\lib\commons-codec-1.2.jar;C:\robj\dev\seam\jboss-seam\lib\commons-digester-1.6.jar;C:\robj\dev\seam\jboss-seam\lib\concurrent.jar;C:\robj\dev\seam\jboss-seam\lib\ejb3-persistence.jar;C:\robj\dev\seam\jboss-seam\lib\hibernate-annotations.jar;C:\robj\dev\seam\jboss-seam\lib\hibernate3.jar;C:\robj\dev\seam\jboss-seam\lib\hsqldb.jar;C:\robj\dev\seam\jboss-seam\lib\javax.servlet.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-common-jdbc-wrapper.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-common.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-ejb3.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-ejb3x.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-j2ee.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-j2se.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-jca.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-local-jdbc.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-microcontainer.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-system.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-transaction.jar;C:\robj\dev\seam\jboss-seam\lib\jnpserver.jar;C:\robj\dev\seam\jboss-seam\lib\myfaces-api.jar;C:\robj\dev\seam\jboss-seam\lib\myfaces-impl.jar;C:\robj\dev\seam\jboss-seam\lib\portlet-api-lib.jar;C:\robj\dev\seam\jboss-seam\lib\testng-2.5.3-jdk15.jar;C:\robj\dev\seam\jboss-seam\lib\tomahawk.jar;C:\robj\dev\seam\jboss-seam\jboss-seam.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\commons-el.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-compiler-jdt.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-compiler.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-runtime.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jsp-api.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-factory-dbcp.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-factory.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-resources.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\robj\dev\p4_robj-home-desktop2\replog\main\resources;C:\robj\dev\p4_robj-home-desktop2\replog\main\build\test;C:\robj\dev\seam\jboss-seam\microcontainer\lib\dom4j.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\namespace.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-common.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-common-jdbc-wrapper.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\xml-apis.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-microcontainer.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\log4j.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-transaction.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\antlr-2.7.6rc1.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-local-jdbc.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-j2se.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\commons-collections.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\xercesImpl.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-j2ee.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\commons-logging.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-jca.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-container.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-system.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jnpserver.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\hsqldb.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\concurrent.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-security.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-dependency.jar;C
[JBoss-user] [JBoss Seam] - Running noejb "ant testexample" under IDEA TestNG plugin?
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 testexample" -- the changePassword test in Hotel Booking. It says "the password was already changed". Interesting. I'd like to do some stepping through the code to see if I can figure out what's what. So I load up the TestNG plugin into IDEA 5.0 and try to run the LoginTest class (just to test out the plugin). And I get the following IDEA messages: Information: Compilation completed with 1 errors and 0 warnings Information: 1 error Information: 0 warnings Error: C:\\WEB-INF (The system cannot find the file specified) Well, of course it can't. There IS no WEB-INF directory under the main project directory. But why is it even looking for one? It's very possible this is an error in my setting up TestNG inside IDEA -- I haven't dug into the build file to see how it's launching TestNG. So really I'm just looking for a sanity check. Has anyone / is anyone using IDEA and the TestNG plugin to enable stepping through SEAM unit tests? Is this no big deal and I should just work on it some more? Or is this a never-before-tried combination and I'm in unknown territory? Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916374#3916374 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916374 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: jboss-seam-head build errors
Sounds like the tool generator should have an option to share a root build.xml, to enable lots of tool-generated subprojects sharing a common build.xml. Another nice thing for the infinite todo list :-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916253#3916253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916253 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: New stuff in CVS
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 : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915709#3915709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915709 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Feedback requested
Great, thanks, no more questions. (on this thread, anyway ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914975#3914975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914975 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Feedback requested
"[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 successful login. anonymous wrote : As for uniqueness, the whole *idea* of contextual components is that I have a unique instance of any particular component in "my current X context". Substitute EVENT, REQUEST, SESSION, CONVERSATION, PROCESS, APPLICATION or PAGE for X. And uniqueness is determined by @Name? Then how does "@In Transition transition;" work? It looks like uniqueness there is being determined by either field type (Transition) or field name (transition)...? It seems that Seam's aliasing rules require you to design your beans' field names around the names of the contextual components you want to alias to. It'd be really nice to have some form of Seam inspector that let you easily view the contextual components in scope at any point. I also note that you didn't mention where the standard Transition contextual component is documented... :-) Cheers! Rob (p.s. Yes, I know this is all newbie talk. I'm just hoping it helps you all with planning your documentation and training!) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914885#3914885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914885 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Feedback requested
"[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 objects might be outjected (as opposed to just side-effecting existing ones)? | | Right, this is a byvalue/byreference question. You can change the state of an @In-jected object by calling its method. This is not side-effecty. It is how any variable in Java works :-) Ya, I know. But it makes @Out seem kind of pointless. Why not do everything with side-effects? In other words, if @In(create="true") suffices to create a seam component and inject it, why not just do @In(create="true") and then side-effect away? The Seam documentation says this in chap. 4: Note that it is quite common for these annotations to occur together, for example: | @In(create=true) @Out private User currentUser; This is exactly what I'm talking about. What is the point of @Out here? It seems like just as much of a no-op as my use of @Out for the jBPM state, since the component will be created by @In(create=true) and then just put back by the @Out. There's something I'm missing here, but what? anonymous wrote : By definition, there is a unique instance of the Seam component named "transition" in your conversation context. It don't matter how many times you inject it, it will always be the same one. Until you switch conversations, that is ;-) Where's that documented? I would've expected it in chapter 5 of the 1.0alpha reference docs, but didn't see it anywhere...? Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914883#3914883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914883 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Feedback requested
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 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 objects might be outjected (as opposed to just side-effecting existing ones)? Second, is it assumed that there is only one unique @In Transition field in the bean? Is that always a good assumption? It seems a little fragile. Your first alternative seems like it's using fine-grained (primitive-valued) fields, one per piece of conversational / jBPM state, with distinct annotations per field. Your second alternative encodes the state information into objects, which are not really annotated at all, and apparently are expected to be unique in their bean. There might be a hybrid approach. Perhaps there's a JBPMState object, with transition and actorId properties, and you have @JBPM JBPMState jBPMState; | @ConversationState ConversationState convState; It's a little redundant, but it's trying to avoid the "explosion of annotations" problem without creating hardcoded type-based assumptions that an @In Transition field is always used to control the current jBPM flow. Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914655#3914655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914655 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - NoEJB example: log.info not visible
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 might be more like a JBoss microcontainer question, but I know this forum is much higher signal/noise than any other I am likely to find... but if there's a better place to ask this, please let me know. Thanks! Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914650#3914650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914650 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb tests w/o JBoss?
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 early 2004 and got a bunch of great responses from you. But then the newbies arrived in force. Here's hoping SEAM doesn't get that popular in the next two months :-) Cheers! Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914606#3914606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914606 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Running noejb tests w/o JBoss?
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 org.jboss.seam.core.Manager.touchConversationStack(Manager.java:118) That line is: if ( isLongRunningConversation() ) | { | getCurrentConversationEntry().touch(); // Manager.java:118 NPE | } So why would getCurrentConversationEntry() be null there? And what's bad in my environment? I'm just doing "ant test" in the root jboss-seam directory Will dig a bit more. Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914520#3914520 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914520 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Running noejb tests w/o JBoss?
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 tests. And I get this: C:\robj\dev\seam\jboss-seam\examples\noejb>ant testexample | Buildfile: build.xml | | init: | [echo] Build Seam on JBoss Hibernate3 Example 1.0 | | compile: | | testexample: | [copy] Copying 67 files to C:\robj\dev\seam\jboss-seam\examples\noejb\build\test | | BUILD FAILED | C:\robj\dev\seam\jboss-seam\build.xml:176: No sourceDir is specified. | | Total time: 0 seconds | C:\robj\dev\seam\jboss-seam\examples\noejb>ant -f build.tomcat.xml testexample | Buildfile: build.tomcat.xml | | init: | [echo] Build Seam on Tomcat Hibernate3 Example 1.0 | | compile: | | testexample: | | BUILD FAILED | C:\robj\dev\seam\jboss-seam\build.xml:171: Reference example.resources not found. | | Total time: 1 second So clearly it doesn't really want to work. Should I bother trying to fix these build problems? Or should I not expect the testng tests to work without JBoss? If it's a small amount of work I'll do it, but if it's not, I won't. Thanks! Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914356#3914356 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914356 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: CVS Noob question
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=bb&op=viewtopic&p=3914354#3914354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914354 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: CVS Noob question
I was indeed able to get it from CVS using the instructions from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70051: "Thomas Heute" wrote : cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/jboss co jboss-seamanonymous wrote : | | It built and deployed on Tomcat absolutely perfectly. Testing is another matter :-) | | Cheers! | | Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914353#3914353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914353 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Checkout jboss seam from cvs
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: c:\robj\dev\seam\cvs I get: The CVS Request failed. Failed to open socket to connect to cvs server '[EMAIL PROTECTED]'. could not create INETD connection for '[EMAIL PROTECTED]' --> Connection refused: connect could not create INETD connection for '[EMAIL PROTECTED]' --> Connection refused: connect What simple thing am I getting wrong? Thanks very much, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914123#3914123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914123 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Checkout jboss seam from cvs
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=bb&op=viewtopic&p=3914125#3914125 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914125 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: CVS Noob question
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 JBoss). So I want the latest CVS. But I would rather have a build process that doesn't go online for me, so I know what version I'm actually getting (and can baseline it in my own local source code control, especially if I'm getting frequent CVS updates). Is this any closer to being done? Thanks, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914110#3914110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914110 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user