This content has been marked as final. Show 23 replies
same problem here - using firefox.
So it seems following the J2EE guide is leading to this problem, as both myself, you and other users on another forum have the problem. I have deleted and retried the First Cup guide and still get the same error.
But it seems the xhtml and faces_config files are correct, Can someone with a better knowledge of J2EE and JSF explain which component(class,bean, etc) control the rendering of the xhtml pages as it seems that this must be causing the problem. If they can I'll take a look at this and try to work out which part of the code is causing the problem?
Could somebody from Sun take a look at the guide "http://java.sun.com/javaee/6/docs/firstcup/doc/firstcup.pdf" as it seems to be leading to the same problem for a view users.
Also from taking a brief look at the documentation for EE5 there seems to be a substantial section on deploying via ant and asadmin. In EE6 this doesn't take place but maybe this is improved functionality.
Have you tried to do firstcup without Netbeans? I mean, with ant and asadmin?
(it was rather long ago and I don't recall much details) I somehow managed to make EE5 firstcup (pdf) work with Netbeans +6.7.something+ version and with some Glassfish 2.something version but the experience was really ugly - I learned nothing useful then.
Per my recollection, what I did was a random mix of looking into error logs in occasional places and compulsive changes based on uneducated guesses here and there. After few days of trials and errors I made it work - without knowing or understanding what was missing / wrong there.
Suming up, to me doing JEE5 firstcup with Netbeans was a total waste of time
Edited by: gnat on Jan 22, 2010 8:52 AM
I have the same problem. I also use NetBeans 6.8 and GlassFish v3.
The strange thing is that if I open the original project from the "example" directory, and run it, it works.
I have not found the difference between the projects. I guess that the original project was created by NetBeans 6.7, that generated some configuration file in an other way.
Thanks for the heads up, any suggestions on what to try first? Just trying to get an understanding and any tutorial for beginners that you can recommend would be great?
well I would suggest the same firstcup, just with ant/asadmin instead of Netbeans
if the delivered example app. work with netbeans 6.8 and you suggest to try the own one with asadmin/ant. lets assume the own app. works with ant in which file(s) could be the difference between the own and the delivered app? which files/parts of the app. become obsolete if i use ant?
I don't quite follow sorry. Do you have a specific problem?
you say we should try ant/asadmin. the problem is: if this works we are where we are now: we know it works some how (we also know the delivered app. works without ant). but we want to know what could be the difference(in which file/part of the app) between the app delivered with glassfish and our app (the outcome of the tutorial).
gnat wrote:I don't quite follow sorry. Do you have a specific problem?
the only way we see at the moment is to overwrite each single file of our app with the files of example app and at the moment our app works we know the last file overwritten was wrong. The purpose of this thread is to get help for this process: which files we should overwrite first or which files have definitely nothing to with our problem.
by the way: the first post states the "specific problem"
Edited by: dermoritz1 on Jan 26, 2010 5:02 AM
Yeah, I'm with the OP here, I mean how much more specific do you need to be. The tutorial doesn't work.
I starting working with EE 6 and spent a wasted day trying to get this to work. For a start it doesn't work on
IE8 because of the xhtml+xml MIME support problem and neither does it work on Chrome. From the look
of it various other people have tried it on just about every other browser and it doesn't work on them either.
All we're missing here is someone who has managed to get it working. You need to understand that for
people taking their tentative first steps with EE 6 this tutorial is like the shop window. When you can't even
get the hello world app to work the only conclusion that can be reached is that the technology is a pile of
As for the suggestion to ditch NetBeans and use Ant, I mean really, why don't we just ditch the high level
languages and go back to machine code and command lines.
you say we should try ant/asadminI didn't say that.
we want to know what could be the difference(in which file/part of the app)Sounds like you want someone to spoonfeed you with explanation for every little detail you're curious about. If that's the case, hire a tutor.
for those that want a working example: https://glassfishplugins.dev.java.net/eclipse34/
i tried it till "hello world" - it works and its eclipse. but i will do some additional research (overwriting all files, one by one).
...As for the suggestion to ditch NetBeans and use Ant, I mean really, why don't we just ditch the high levelwell if you're going to professionally work with Java EE, you may eventually have to reconsider that attitude. Thing is, sometimes there's simply no other choice but using command line tools. I mean, in commercial development not in toy projects from tutorials.
languages and go back to machine code and command lines.
Oh and sticking with IDE can certainly lower chances to get an answer at forums like these. Just think of it...
Hello I am using Netlipse IDE version 6.6.6. I have Habracadabra setting selected in Mumbo-Jumbo config dialog...Do you expect reader to install your version of your IDE and learn about your settings - just to answer your question?
Now, read another question (like yours) from another guy (like you)...
...using Ecbeans IDE version 7.7.7 with Humpty-Dumpty setting selected in Ooby-Dooby config dialog...Would you (yes, you) install his version of his IDE and learn about his settings - just to answer his question?