cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [WIKI-UPDATE] BeginnerDefaultContext BeginnerInstallation BeginnerDefaultPort BeginnerInstallTomcat CocoonCompetenceCenter Fri Feb 7 00:00:07 2003
Date Thu, 06 Feb 2003 23:00:07 GMT
Page:, version: 3 on Thu Feb
 6 22:40:14 2003 by Dabbous

+ !And now eliminate the port...
+ As stated at the beginning of this document, you may want to also eliminate
+ the port from your URL. If you want to this, please read the accompanion
+ document [BeginnerDefaultPort]. 

Page:, version: 30 on Thu Feb
 6 22:58:52 2003 by Dabbous

- ''by Robert Simmons Jr.''
+   Please look at the page [BeginnerDeployOnAppServer] for further infos about deploying
+   on JBOSS.
- Deploying Cocoon on an application server is a fairly straight forward task. The main thing
to keep in mind is that Cocoon is, at its core, just a servlet. Granted that it is a massive
and turbocharged servlet, but still a servlet. With that in mind, deploying on your application
server is just the same as deploying any other servlet. For JBoss 3.0+ it's a simple matter
of dropping the war in the correct deploy directory. Some things you will want to keep in
mind as you do development on Cocoon in an application server context. 
- * Unlike writing JSP, which are compiled into servlets, XSP pages are interpreted and compiled
into generators. These are special cocoon extensions that allow you to create custom documents
dynamically. Since these generators are not independent servlets but just extensions to cocoon,
they do not require you to modify the web.xml file. Once you add them appropriately to your
sitemap, it will all work magically. 
- * You should hardly ever have to modify the WEB-INF files. Remember, you will be adding
to Cocoon, not adding new servlets. You should only edit the files in the WEB-INF directory
if you really know what you are doing. 
- * Once you deploy cocoon to your application server, you should have access to all of the
JNDI properties in your custom generators or XSP pages. Getting an initial context is identical
to the manner you would normally use for your application server. For JBoss 3.0+, for example,
you merely need to call. {{InitialContext ictxt = new InitialContext();}}
- * Beware when adding any env-entry or ejb-ref elements or other elements to the web.xml.
Although it shouldn't be a problem, make sure you understand the file completely and don't
delete anything critical to cocoon. 
- * If you edit the xconf files, you should be advanced enough that all of the information
in this tutorial should be trivial to you. Just copy them over in place and leave them alone
for the most part. 

Page:, version: 2 on Thu Feb 
6 22:51:05 2003 by Dabbous

+ !! The trivial solution
+ If you don't bother with peformance ad you don't want to make things too complex 
+ at the beginning you can simply run tomcat on port 80 instead of the default port 8080.
+ If you do this, you can access tomcat as if it where the default HTTP server. I.e. the URL
{{http://mycompany}} would already be served by tomcat and if you already followed the approach
in [BeginnerDefaultContext] you are done.
+ But this is not the recommended approach, because 
+ # tomcat is said to be far less performant as the apache-webserer for standard file serving.
+ # most probably your webserver/intranet server already is up and running on the default
port, so you don't even have the chance to get hands on port 80 for our tomcat.
+ # If port 80 is not occupied you can use it for now, but you definitely cut off the possibility
to run your webserver under the now occupied default port.
+ Because all of this you may need to read on ...
- !!The following text is in german. I will translate it asap...
+ !!The following text is in german. 
+ I will translate it asap... meanwhile please look into [CocoonAndApache] ...

Page:, version: 7 on Thu Feb
 6 22:23:44 2003 by Dabbous

- Until this page is populated, look at [Windows 2000 Setup|CocoonDistSetupWin2000].
+ This page can be deleted.
+ If you happen to come on this page, please move on to the [CocoonCompetenceCenter]
+ or have a look to following douments:
+ [complete setup for Windows 2000 Setup|CocoonDistSetupWin2000]\\
+ [setup tomcat under unix/linux|BeginnerInstallTomcatUnix]\\
+ [setup tomcat under windows|BeginnerInstallTomcatWindows]\\

Page:, version: 19 on Thu Feb
 6 22:29:59 2003 by Dabbous

+ [Hiding ''/cocoon'' from the URL|beginnerDefaultContext]\\
+ [Hiding the tomcat port from the URL|beginnerDefaultPort]\\
- [Hiding ''/cocoon'' from the URL|beginnerDefaultContext]\\
- [Hiding the tomcat port from the URL|beginnerDefaultPort]\\

View raw message