Re: [JBoss-user] Please, please , please
it is all in the deployment descriptors... first web.xml the relevent parts first to map the servlet hello simple.helloServlet hello /hello this names out helloServlet.class hello, then maps ALL calls to /hello to that servlet so http://localhost:8080/hello results in a call to the helloServlet.class. now... index.jsp tells us that our welcome files... most people think of index.html as being the welcome file the welcome file is index.jsp. so... IF we had a directory hello that contained index.jsp then http://localhost:8080/hello/ would result in that index.jsp showing. however we dont have that directory. now the application.xml first we need to tell about our web application webapp.war / here we map this web application to / so a call to http://localhost:8080/ will result in our index.jsp showing. if you want to map to hello then change the / to /hello then to see JUST the servlet you would call it like this http://localhost:8080/hello/hello and to see the index.jsp you would call http://localhost:8080/hello/ Hope that clears up some things. Al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 5:26 PM Subject: Re: [JBoss-user] Please, please , please > At 01:33 PM 6/20/01 -0700, you wrote: > >How could there be a simpler HelloWorld ?? :) :) > > > It's not just the code compiling, it's understanding how the thing works. > > For instance I now know that I don't need to manually change the server.xml > file to deploy applications. But I still don't know why /hello works, and > hello/ or /hello/index.jsp does not. > > A tar'd example with all the directories in place eliminates mistakes of > directory structure and shows the requirement to get .class into > WEB-INF/classes. But, I still don't know if there is a way to undeploy an > app in the same way that all needed files are deployed. Seems like an > application server would have a remove feature in place or on the > improvements list. > > When I first started using Apache to manage sites I was just as lost in the > beginning. But, the docs on Apache covered every single line in httpd.conf. > Once I got the server up I could experiment with what would break/improve it. > > As I mentioned in an earlier post, I would love to learn every quirk and > optimization in JBoss-Tomcat. But, what I really need is to get it to serve > up pages right now, which is 25% of what I need to accomplish. > > A JDBC-MySQL 'hello world' would solve another %25 of what I need. > > How about a 'hello-world' for sending email? > > Last, a How-to on hot-swapping applications would be good. I need to know > if I can send people to an error page if an app has been removed for > instance? I'm sure this info is in docs or newsgroups some where but I > don't always have time for marathon learning binges. > > Many folks just need a webserver/app server to out send out HTML, merge > data, maintain apps, and send email. Four 'hello-world' examples and were > happy. > > Why it works is a matter for another time. Just give beginners examples > that work with a completely vanilla install and we can improve our > knowledge over time. > > How this benefits the creators of JBoss is we can roll out JBoss Apps on > just about anything that will run Apache. That starts to make JBoss > ubiquitous and opens the door to high level consulting and EJB component > libraries. > > Hell I'd pay now for a 1-2-3 setup for a MySQL/JDBC connectivity EJB > installer. It's trading 'work right now' for time to learn later. > > As a matter of fact some of my partners are kicking around the idea of a > stripped down Red Hat distro that comes up with Apache, MySQL JDBC, > JBoss-Tomcat and management console ready to go. Just add Sun's JDK/JSDK. > > I'm running my tests on a Pentium 166 with 32 megs of RAM. It's a junker > machine, but everything works just fine. Can you imagine providing > WebLogic-like functionality to webmasters in a $50 package that will run on > anything? > > Thanks for all the help and on behalf of the newbies, I swear I'll reach > back and help once I've got the hang of things. > > > r.b. > > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please, please , please
Yes I got Richard's point. I was just kidding...!! :) :) Dovan Allen fogleson wrote: > I think Richard was referring to the interest example being slightly more > than a bite for a new user. > > Al > > - Original Message - > From: Dovan Nguyen <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 20, 2001 4:33 PM > Subject: Re: [JBoss-user] Please, please , please > > > How could there be a simpler HelloWorld ?? :) :) > > > > dovan > > > > Richard Bottoms wrote: > > > > > At 02:42 PM 6/20/01 -0400, you wrote: > > > >Have you tried the Interest example? > > > > > > Yes, (it's working now BTW), but some of us newbies were clamoring for > an > > > even simpler Hello World example, precisely because it's easier to catch > > > beginner mistakes. > > > > > > Thanks, > > > r.b. > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please, please , please
I think Richard was referring to the interest example being slightly more than a bite for a new user. Al - Original Message - From: Dovan Nguyen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 4:33 PM Subject: Re: [JBoss-user] Please, please , please > How could there be a simpler HelloWorld ?? :) :) > > dovan > > Richard Bottoms wrote: > > > At 02:42 PM 6/20/01 -0400, you wrote: > > >Have you tried the Interest example? > > > > Yes, (it's working now BTW), but some of us newbies were clamoring for an > > even simpler Hello World example, precisely because it's easier to catch > > beginner mistakes. > > > > Thanks, > > r.b. > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please, please , please
At 01:33 PM 6/20/01 -0700, you wrote: >How could there be a simpler HelloWorld ?? :) :) It's not just the code compiling, it's understanding how the thing works. For instance I now know that I don't need to manually change the server.xml file to deploy applications. But I still don't know why /hello works, and hello/ or /hello/index.jsp does not. A tar'd example with all the directories in place eliminates mistakes of directory structure and shows the requirement to get .class into WEB-INF/classes. But, I still don't know if there is a way to undeploy an app in the same way that all needed files are deployed. Seems like an application server would have a remove feature in place or on the improvements list. When I first started using Apache to manage sites I was just as lost in the beginning. But, the docs on Apache covered every single line in httpd.conf. Once I got the server up I could experiment with what would break/improve it. As I mentioned in an earlier post, I would love to learn every quirk and optimization in JBoss-Tomcat. But, what I really need is to get it to serve up pages right now, which is 25% of what I need to accomplish. A JDBC-MySQL 'hello world' would solve another %25 of what I need. How about a 'hello-world' for sending email? Last, a How-to on hot-swapping applications would be good. I need to know if I can send people to an error page if an app has been removed for instance? I'm sure this info is in docs or newsgroups some where but I don't always have time for marathon learning binges. Many folks just need a webserver/app server to out send out HTML, merge data, maintain apps, and send email. Four 'hello-world' examples and were happy. Why it works is a matter for another time. Just give beginners examples that work with a completely vanilla install and we can improve our knowledge over time. How this benefits the creators of JBoss is we can roll out JBoss Apps on just about anything that will run Apache. That starts to make JBoss ubiquitous and opens the door to high level consulting and EJB component libraries. Hell I'd pay now for a 1-2-3 setup for a MySQL/JDBC connectivity EJB installer. It's trading 'work right now' for time to learn later. As a matter of fact some of my partners are kicking around the idea of a stripped down Red Hat distro that comes up with Apache, MySQL JDBC, JBoss-Tomcat and management console ready to go. Just add Sun's JDK/JSDK. I'm running my tests on a Pentium 166 with 32 megs of RAM. It's a junker machine, but everything works just fine. Can you imagine providing WebLogic-like functionality to webmasters in a $50 package that will run on anything? Thanks for all the help and on behalf of the newbies, I swear I'll reach back and help once I've got the hang of things. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please, please , please
How could there be a simpler HelloWorld ?? :) :) dovan Richard Bottoms wrote: > At 02:42 PM 6/20/01 -0400, you wrote: > >Have you tried the Interest example? > > Yes, (it's working now BTW), but some of us newbies were clamoring for an > even simpler Hello World example, precisely because it's easier to catch > beginner mistakes. > > Thanks, > r.b. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Please, please , please
At 02:42 PM 6/20/01 -0400, you wrote: >Have you tried the Interest example? Yes, (it's working now BTW), but some of us newbies were clamoring for an even simpler Hello World example, precisely because it's easier to catch beginner mistakes. Thanks, r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please, please , please
ill jar this all up as soon as i get t the machine i did the tutorial on. al - Original Message - From: Richard Bottoms <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 1:57 PM Subject: [JBoss-user] Please, please , please > Would someone send an example set of files for simple hello or anything > else with the deployable .ear file, and all the sources jar'd in the > directory structure you used to compile it. > > I've been up for two days and I'm sure I'm missing some minute thing. I am > working with vanilla installs of the jboss-tomcat bundle. I get things to > compile, so I'm sure the problem is in the .xml files. > > I'm getting successful deployments in some cases and see only the directory > instead of the app running. Or the app runs and I get null pointer > exception. Or other assoretd weirdness. > > If I can get a .ear that works and the exact tree to create it I think I'll > get this down. > > > Thanks, > r.b. > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Please, please , please
Have you tried the Interest example? -Original Message- From: Richard Bottoms [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 1:57 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Please, please , please Would someone send an example set of files for simple hello or anything else with the deployable .ear file, and all the sources jar'd in the directory structure you used to compile it. I've been up for two days and I'm sure I'm missing some minute thing. I am working with vanilla installs of the jboss-tomcat bundle. I get things to compile, so I'm sure the problem is in the .xml files. I'm getting successful deployments in some cases and see only the directory instead of the app running. Or the app runs and I get null pointer exception. Or other assoretd weirdness. If I can get a .ear that works and the exact tree to create it I think I'll get this down. Thanks, r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Please, please , please
Would someone send an example set of files for simple hello or anything else with the deployable .ear file, and all the sources jar'd in the directory structure you used to compile it. I've been up for two days and I'm sure I'm missing some minute thing. I am working with vanilla installs of the jboss-tomcat bundle. I get things to compile, so I'm sure the problem is in the .xml files. I'm getting successful deployments in some cases and see only the directory instead of the app running. Or the app runs and I get null pointer exception. Or other assoretd weirdness. If I can get a .ear that works and the exact tree to create it I think I'll get this down. Thanks, r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user