anonymous wrote : "An EJB module must contain one or more enterprise beans."
still remains..
That's a normal validation failure, since there actually aren't any beans yet.
You can silence it by editing the EJB's META-INF/ejb-jar.xml file and taking
the schema attribute off the opening tag, i.
Actually it looks like it's not that simple. If I take that shortcut, the
sample fails to deploy:
| :18:55,245 ERROR [MainDeployer] Could not create deployment:
file:/pkg/jboss-4.0.4.GA/server/default/tmp/deploy/tmp3975sample.ear-contents/sampleEJB.jar
| org.jboss.deployment.DeploymentExcep
I'm really frustrated at how cumbersome getting started with Seam is. I've
spent close to a week trying to find a skeleton app that is friendly to eclipse
WTP. I have given up -- seamgen didn't work for me and fiddling with the
sample apps doesn't give me a self-contained build.xml, let alone
Oh the framework looks terrific -- I come here to praise seam, not to bury it
:) I'm just chomping at the bit to get started, and feeling frustrated by the
tools. It's probably not helped by the fact that I'm taking up JEE after only
having dabbled in it years previously, so I'm having to re-l
Over at
http://weblogs.java.net/blog/bleonard/archive/2006/05/trying_out_jbos.html I
found a very helpful tutorial on getting seam going with netbeans, using the
registration example. This works perfectly, but I killed all day today
attempting to port the example to eclipse, running into comp
Incidentally, I'm referring to the three-project type of project, with separate
projects for EAR, EJB, and WAR. When they're all in one project, it's much
harder to handle multiple WAR files, and the project I'm aiming at will be
using at least two..
View the original post :
http://www.jboss
The latest version of seam-gen is looking for a src directory that is nowhere
to be found.
| C:\jboss\seam\seam-gen>seam scaffold-wtp-project myseam
| Buildfile: build.xml
|
| create-folders-wtp:
| [echo] Creating Project Folders ...
| [mkdir] Created dir: C:\workspace\myse
Make sure you use the JEMS installer and the ejb3 profile, as is mentioned in
the docs. Edit jboss.home in build.properties in the root of the seam
distribution. Then you can build examples. I recommend the booking example,
since it comes with a bunch of "help" files you can view while using
Never mind -- seam-gen now likes me again! After I created the missing (empty)
bin/ subdirectory in seam-gen and making sure I was using the version installed
under the unpacked seam (symlinks are not my friend here), I now have a working
example site.
I'm pondering converting some of the othe
It looks like the missing src directory is supposed to be empty, so I just
created it. Also, I had troubles when I was not running seam-gen in the
seam-gen subdirectory of the unpacked seam distribution (I had another copy I
was messing with that wasn't under a seam distribution).
View the
seam-gen is working for me now, I just had to create the empty bin/ directory
(cvs probably pruned it) and make sure I had it installed under the seam
distribution. I look forward to getting it running on my work machine today
View the original post :
http://www.jboss.com/index.html?module=bb&
I think of a context as a closure over a scope. Scopes are static constructs
in the source, contexts are instances in the runtime. I think context is one
of the most overloaded terms in programming, but seam's use is pretty
consistent with the way JEE (or at least the servlet spec) uses it.
| * When you create a new project, you will always get the "must contain one
or more enterprise beans" error. seam-gen will add beans for you and that
error will go away. If it doesn't, close the project and reopen it. Eclipse's
validators sometimes just get stuck.
|
| * The SEVERE
All the lib/ subdirectory is is a copy of ../lib. The lack of a lib directory
suggests that either scaffold-wtp-project didn't complete, the project name
wasn't provided, or seamgen wasn't installed and run from a subdirectory of a
complete seam installation.
You should probably paste in the
Gahh, the last thing I want is for Seam to turn into Spring. Still, the option
of naming externally would be a plus. Maybe it could even take over managing
JSF components in faces-config.xml, though I suppose it might demand more or
different metadata.
I'm not sure what you'd gain by moving
This announcement is out of date now since there's an announcement for 1.01GA.
However it's stuck to the page as announcements always are, and since phpBB
doesn't offer any option to view more posts per page or RSS feeds (or much of
anything beyond gaping security holes) it's taking up real-est
@Length doesn't make sense for a primitive char field -- chars don't have a
length, Strings do. You'll probably find more help on the Hibernate forums for
setting up mappings and validators.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033466#4033466
Repl
Caucho is the one with the PHP implementation in Java, called Quercus. It's
pretty slick, but it's pretty well tied to Resin, and it doesn't have the kind
of integration with Java classes that would let you write a seam app in PHP.
You could make a PHP app communicate with Seam if you used MDB'
I know one of the Seam users is working on GWT integration, though I don't
know how far along it is. I'm not sure that facelets will cooperate with
generating source on the fly -- you might be better served by writing custom
facelets tags instead that dynamically insert JSF controls when rende
+1 on meetup (not in moscone), maybe I can make it there this time.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037320#4037320
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037320
__
You need to use @In to inject a SMPC, not @PersistenceContext.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018043#4018043
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018043
___
The forum seems to have eaten my response, so I'll try again:
You need to use @In to inject the SMPC, not @PersistenceContext.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018074#4018074
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=post
And there was my previous reply. I sure can't wait for seam-forum to replace
phpBB :P
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018075#4018075
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018075
__
Your id field is an int and not an Integer. @NotNull is nonsensical for
primitive types.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018364#4018364
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018364
___
This is a longstanding JVM bug. Increasing permgen space delays the inevitable
a little bit, but switching to JRockit fixed it completely.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018574#4018574
Reply to the post :
http://www.jboss.com/index.html?mod
You might outject to a different scope or different context variable, or both.
Any examples of this I can think of would be pretty contrived, but I'm sure
someone will think of one eventually.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019115#4019115
R
Entity beans do have an associated component, though I'm not sure how they
participate in bijection (it certainly doesn't work on the entity itself). Try
outjecting to a context variable not named "organization", or switching to a
getter on your bean instead of a context variable.
View the or
SLSB's work pretty well when everything is passed through request parameters,
because the resulting page is always bookmarkable. Search pages are great with
SLSB's. SFSB's on the other hand are great for wizards and carts, and pretty
much anything you would stick into the session.
There's a
A conversation isn't normally destroyed when an exception is thrown out of an
@End method, so you should be able to redirect to an error page that lets you
get back into your edit screen.
If you prefer to catch inside the save method, you should have save() return a
String for the outcome, and
What do you mean by buggy?
If you end the conversation with a menu selection, you break the back button --
or more specifically, you break it once someone hits back and selects another
option. If you select an item that might begin a different top-level
conversation or not run in a conversatio
You could take the suggestion of using persistence events to accumulate a
running tally, but I would at most use such a total to update the UI with a
"non-authoritative figure". Especially for financial data, you should only
have one authoritative definition of any figure, and that should be fr
I'm trying to do the simplest possible test, and have a stateless bean called
GreeterBean, with its @Name set to greeter, with a getHello() method that
returns "Hello, world!", so I can plug it into a page as #{greeter.hello}.
This works perfectly. My troubles come when trying to write a test
I looked at SeamTest and felt kind of silly for not putting any of the test
logic in a script. I changed it thusly:
| public class GreeterTest extends SeamTest {
|
| @Test
| public void testGreeterHello() throws Exception {
| new Script() {
|
I need to stop skipping lunch before I post, and I wish I could edit my posts
... hard to get any more specific than "Need to specify class name in
environment or syst
em property, or as an applet parameter, or in an application resource file". I
was hoping that I wouldn't need an actual contai
A null test using the embedded-ejb3 in seam results in this result from
EJB3StandaloneBootstrap.boot(null):
And no, my tests are not parallel.
| 11:59:39,223 ERROR [AbstractKernelController] Error installing to Start:
name=TransactionManagerInitializer state=Create
| java.lang.NoSuchField
I switched my test's classpath to use a freshly installed embedded-ejb3
download's libraries and conf/ directory, and this particular error went away.
The version of embedded ejb3 shipping with seam would appear to be broken, and
it appears to be the libs, since only using the conf/ directory
My informed hunch about Eclipse was right. Once I fixed the test's classpath
and removed the extra cruft, the container started up fine. Deployment's not
as fast with this thing as I would have hoped, but I can live with it.
I'm still having jndi problems now.
| org.jboss.seam.Instantiation
anonymous wrote : Do you have the components.xml in your WEB-INF directory?
That did it, now it's working -- You sir are the savior of my sanity :D
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968980#3968980
Reply to the post :
http://www.jboss.com/inde
anonymous wrote : you just call something like
register("setName(Ljava/lang/String)")
You have to deal with signature notation and they call that a feature?
Delegates are supposedly coming in dolphin. We'll see if they makes a dogs
breakfast of it the way they did generics. And of course C#
You can't depend on the EJB3 container being initialized in a
@BeforeClass/beforeTestClass method, because it does in fact run before the
embedded container is started by SeamTest.init().
I believe TestNG will run tests in the order they're specified in the
testng.xml file, so you could defin
@Stateful isn't Seam's annotation to begin with, and most of the other
annotations are pretty orthogonal to each other. @Role subsumes @Name and
@Scope, and maybe they could make it suck up some of the other annotations too.
You still need @Name though, or seam won't even pick it up as a compo
The cid (what conversationId has been shortened to in cvs) shouldn't be
necessary after a conversation has ended. It does have a tendency to hang
around however, at least as I've observed in the seam scaffold application. I
wonder if cid could be stuck in a cookie instead?
You want nasty look
I never thought of this question myself until I actually got asked by someone
else. Where does the name Seam come from?
My pet guess is that it's a cricket reference, in analogy to Wicket. Am I
right?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=397143
I had to switch to the 1.2RI because Myfaces apparently lacks an enum
converter, my app uses lots of enums, and rather than having to roll my own
converters, I followed the directions to switch to the RI. Everything seemed
to work all right except for a mysterious problem: inputText fields aren
A big middle finger to phpBB which interprets "disable HTML" as "well I really
wanted you to interpret entities anyway". When using the 1.2 RI, inputText
fields are not escaping the left angle bracket character to
ampersand-ell-tee-semicolon. What befuddles me to no end is that it does fine
Ick, something is getting unescaped somehow. If I have this in a page:
|
|
I get this browser error in response:
| XML Parsing Error: not well-formed
| Location: http://localhost:8080/fiat/home.seam
| Line Number 18, Column 81:
|
|
-
phpBB strikes again. I properly escaped my tags in the value field in the page
text. Preview just undoes it, something I fixed for the second part but not
the first.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972425#3972425
Reply to the post :
http:
It seems this problem happens even in regular input fields, not just
h:inputText, and it persists even when I switch the viewhandler to
com.sun.facelets.FaceletViewHandler, which suggests to me a facelets bug (I'm
using the latest I could find, 1.1.9) or maybe a misconfiguration on my part
(I'm
Having tested this with several configurations on both jboss and glassfish, I'm
reasonably sure this is either a 1.2RI bug or a facelets bug. Since it doesn't
appear in JSP pages, and given the problems facelets has had with HTML entities
before, I'm inclined to blame facelets.
I guess I'll
I was looking at the hibernate booking example, and noticed that not only
doesn't it use Entities, it doesn't use Session beans either, yet some of the
actions are still annotated with interceptors like @Login (and of course Seam's
interceptors). I was under the impression that javax.intercepto
Nevermind -- I perused the source and the manual a bit more, and that cleared
it up -- plain javabeans are managed by seam, so Seam takes care of adding the
interceptors. Since I've little need for EJB's infrastructure, I might just go
that route. Reminds me a bit of Spring, but without having
If you want something run on every invocation in a SLSB (or anything else for
that matter), you're looking for an interceptor. Check out the @LoggedIn
interceptor in the booking example for a simple implementation. The manual
covers this interceptor in section 2.6
All @Factory does is initial
JSF 1.2 handles enums just fine. 1.1 will require you to supply your own enum
converter.
This page has one of the simplest enum converters around:
http://brondsema.net/blog/index.php/2005/09/30/jsf_and_java_5_0_enums
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Check the Wiki:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamWithJSF1.2
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973971#3973971
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973971
__
Is there a wiki page or guide anywhere that goes into more detail about mixing
JSF and Seam? All I've done is migrated some JSF backing beans to Seam
components, but I never thought of actually mixing Seam into JSF. What are the
limitations involved? I presume backing beans don't participate
Is the crud framework the same thing as the seam app generator in the eclipse
hibernate tools?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974631#3974631
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974631
___
Where in cvs might I find the crud framework? Fisheye shows an examples/crud
in seam cvs, but it has no files under it. I have a CRUD-heavy app right now
that could definitely use all the help it could get.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=397
Aha, I found contactlist in jboss-seam-head. Thanks!
Which raises the question .. which is the real HEAD, jboss-seam or
jboss-seam-head? I've been using just jboss-seam to keep up to date on the
seam codebase.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=
It looks as though the example and the crud framework code live only in
jboss-seam-head.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974907#3974907
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974907
_
I still can't see it, just did a fresh update. What should my cvsroot be?
Here's what I currently have:
| $ cat /opt/jboss/seam/CVS/Root
| :pserver:[EMAIL PROTECTED]:/cvsroot/jboss
|
| $ cat /opt/jboss/seam/CVS/Repository
| jboss-seam
|
View the original post :
http://www.
I am really truly a dope. I forgot to use cvs -d. I usually have it automatic
in my .cvsrc, but not on this box.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975063#3975063
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=
jboss-seam-ui.jar. Add it to WEB-INF/lib in your .war
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975532#3975532
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975532
__
I'm still unable to get Seam to work with JSF 1.2. I now get this error on any
request to the booking example:
| com.sun.facelets.FaceletException: Could not instantiate
feature[compiler.ExpressionFactory]:
org.jboss.seam.ui.facelet.SeamExpressionFactory
| at
com.sun.facelets.co
I found that the booking example wasn't adding jboss-seam-ui.jar to the build,
and after copying it into WEB-INF/lib, it seems to work fine.
Validation errors are looking a little strange, giving me the form id unbidden,
like so:
j_id16:password: Validation Error: Value is required.
But I susp
Viewing the debug page for the booking example results in this error in
firefox:
| XML Parsing Error: not well-formed
| Location: http://localhost:8080/seam-booking/debug.seam
| Line Number 84, Column 86:
|
That ampersand looks suspiciously unescaped, and sadly, the behavior of
fa
And BTW, why the heck is it that when I'm logged in to the same account from
home, I post as "chuckadams", and when I post from my other machine, I'm
"cja987"? Maybe a real mailing list is in order...
View the original post :
http://www.jboss.com/index.html?mo
Check out the contactlist example, which uses the framework. It's also in the
documentation. From what I can see, It's basically Generic DAO components,
though I'm also curious what else might come under the umbrella of the
framework.
I've been using it to build an internal app for my workp
It builds fine -- just not on eclipse. I don't think the eclipse project file
gets updated as often, since when I import the project, it still has
dependencies on old library versions (myfaces-1.1.3 instead of 1.1.4,
jbpm-3.1.1 instead of 3.1.2, etc). Blame eclipse for not supporting wildcard
Looks like some bad XML snuck in. This from a fresh CVS checkout:
| $ ant refdoc
| refdoc:
|
| clean:
|[delete] Deleting directory /opt/seam/doc/reference/build
|
| all.doc:
|
| lang.all:
|
| lang.docpdf.prepare:
| [copy] Copying 33 files to /opt/seam/doc/re
I work with the framework in my own app, so I test the contactlist example
every time I update. It works just fine for me on AS 4.05
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981560#3981560
Reply to the post :
http://www.jboss.com/index.html?module=bb
I've tried using trinidad and found that when I set it up as documented, that
the standard JSF components no longer rendered (and I got log messages about
HTMLRenderKit not being found). I thought maybe it was a classloader problem
since I had trinidad in WEB-INF/lib and myfaces in jboss's jsf-
web.xml
|
| http://java.sun.com/xml/ns/j2ee";
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
|
|
| javax.faces.DEFAULT_SUFFIX
I tried the trinidad example on the wiki (registrationtrinidad.zip) and simply
changed the tr:inputText tag to an h:inputText tag (and of course removed the
trinidad-specific attributes). No changes to the web.xml or faces-config at
all. So here's the entire diff of the two trees:
| --- re
Some interesting messages from catalina.out as well:
| 08:23:55,538 INFO [Initialization] done initializing Seam
| Oct 31, 2006 8:23:55 AM org.apache.coyote.http11.Http11BaseProtocol start
| INFO: Starting Coyote HTTP/1.1 on http-8080
| Oct 31, 2006 8:23:56 AM org.apache.jk.common.Channe
What does the method that contains this query look like?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982692#3982692
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982692
_
It's odd that it decided there was something to flush, but I don't pretend to
know the internal motivations of JPA. Try starting a conversation with
flushMode=MANUAL and see if that fixes it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982699#3982699
R
It's running inside a transaction, yes, and that's part of the EJB spec unless
you mark the business method @TransactionAttribute(NOTSUPPORTED) but that
doesn't explain where the update is coming from. Since it's probably due to a
flush, you can just keep it from flushing by setting flushMode=M
Framesets are highly troublesome in JSF in general: there's no easy way for a
postback to force rerendering of the whole frameset. Nor can you effectively
submit two frames at once. This is actually a problem with framesets in
general, not just JSF.
Facelets makes composing templates really e
78 matches
Mail list logo