geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@geronimo.apache.org
Subject [Apache Geronimo Wiki] Updated: HowToTutorial
Date Tue, 28 Dec 2004 15:00:09 GMT
   Date: 2004-12-28T07:00:09
   Editor: RalfBarkow
   Wiki: Apache Geronimo Wiki
   Page: HowToTutorial
   URL: http://wiki.apache.org/geronimo/HowToTutorial

   Include http://www.javaworld.com/javaworld/jw-12-2004/jw-1213-geronimo-p2.htm

Change Log:

------------------------------------------------------------------------------
@@ -17,12 +17,28 @@
 
 }}}
 
- * Create the file geronimo-jetty.xml
+ * Modify the Web application descriptor, web.xml, in the directory j2eetutorial14\examples\web\hello1\build\WEB-INF
+
+ {{{
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app 
+    xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"   
+    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"
+    id="hello1"
+    >
+    <display-name>hello1</display-name>
+</web-app>
+}}}
+ Note the id attribute in the <web-app> tag. This gives Geronimo a name for your application.
(If you don't supply the name, Geronimo will try to use the value of the <display-name>
tag.) Without a name¬ótechnically a configuration id¬óGeronimo can't deploy the application.
(cf. http://www.javaworld.com/javaworld/jw-12-2004/jw-1213-geronimo-p2.html)
+
+
+ * Add a Geronimo-specific Web application descriptor: create the file geronimo-jetty.xml
in the directory j2eetutorial14\examples\web\hello1\build\WEB-INF
  {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <web-app 
     xmlns="http://geronimo.apache.org/xml/ns/web/jetty" 
-    configId="your/domain/name/j2eetutorialhello1"
+    configId="j2eetutorialhello1"
     parentId="org/apache/geronimo/Server"
     >
     <context-root>/j2eetutorialhello1</context-root>
@@ -38,34 +54,35 @@
 
 }}}
 
- * Deploy the war
+ * Run the server and Deploy the war (with geronimo-1.0-M3)
  {{{
 $ cd ~/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT
-$ java -jar bin/deployer.jar distribute "x:\Sun\j2eetutorial14\examples\web\hello1\j2eehello1.war"
-Distributed your/domain/name/j2eetutorialhello1
+$ java -jar bin/server.jar
+$ java -jar bin/deployer.jar --user system --password manager deploy "x:\Sun\j2eetutorial14\examples\web\hello1\j2eehello1.war"
+Distributed j2eetutorialhello1
 
 }}}
+ Point your browser to http://localhost:8080/j2eetutorialhello1/ [[BR]]
+ You will get an '''HTTP ERROR: 500''' :
+ {{{
+HTTP ERROR: 500
 
+The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
or the jar files deployed with this application
 
- * Run the server
- {{{
-$ java -jar bin/server.jar your/domain/name/j2eetutorialhello1
+RequestURI=/j2eetutorialhello1/
 
-}}}
+Powered by Jetty://
 
-Point your browser to 
-http://localhost:8080/j2eetutorialhello1/
-[[BR]]
-You will get an '''HTTP ERROR: 500''' :
+}}}
+ or
  {{{
 HTTP ERROR: 500
 
-The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
or the jar files deployed with this application
+Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
 
 RequestURI=/j2eetutorialhello1/
 
 Powered by Jetty://
-
 }}}
 
 # Old instructions (before 2004-11-13) ---> 

Mime
View raw message