Hi,
i have a basic problem. I am a newbie to geronimo.
Geronimo is running:
Version 2.1.3
Build 2008.09.10-10:18:40.636-0400
Java Version 1.5.0_17
Java Vendor Sun Microsystems Inc.
Architecture i386
Name Linux
Version 2.6.9-023stab048.6-smp
I try to deploy a very simple web application to check my installation:
HelloWorld\HelloWorld.jsp
\WEB-INF\web.xml
\geronimo-web-xml
-----------------------------------------------------------
HelloWorld.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HelloWorld!</title>
</head>
<body bgcolor="#707DB8">
<h1>
Hello world from GERONIMO V1.1!
</h1>
${datetime}
</html>
---------------------------------------------------------
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="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">
<welcome-file-list>
<welcome-file>HelloWorld.jsp</welcome-file>
</welcome-file-list>
</web-app>
------------------------------------------------------------
geronimo-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
<environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
<moduleId>
<groupId>geronimo</groupId>
<artifactId>HelloWorld</artifactId>
<version>1.1</version>
<type>war</type>
</moduleId>
</environment>
<context-root>/hello</context-root>
</web-app>
I build a jar file with:
jar cvf HelloWorld.jar HelloWorld
Hot deploy:
cp HelloWorld.jar $GERONIMO_HOME/deploy
Messages in geronimo.out:
17:34:58,001 WARN [TomcatModuleBuilder] Web application . does not contain
a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a
problem, depending on whether you have things like resource references that
need to be resolved. You can also give the deployer a separate deployment
plan file on the command line.
The Geronimo Admin-Console shows the webapp running with component name
default/HelloWorld/1236184497929/war
and URL /HelloWorld
http://localhost:8080/HelloWorld and
http://localhost:8080/HelloWorld/HelloWorld.jsp do not work:
The requested resource (/HelloWorld/) is not available.
The requested resource (/HelloWorld/HelloWorld.jsp) is not available.
"Standard" web-app WARS (e.g. monitoring) show the same result:
Component-name:
org.apache.geronimo.plugins/mconsole-tomcat/2.1.3/car
url:
/monitoring
Result:
The requested resource (/monitoring/) is not available.
Whats wrong?
Thank you for your help.
Peter
--
View this message in context:
http://www.nabble.com/Hotdeploy-Problem-tp22334444s134p22334444.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.