Rajesh,
Great to hear it's working for you!
You can use ant if you like. The most important thing is that the
resulting war file is structured exactly like the one we ship in the
openejb.home/wars/ directory.
Before you do that, though, give this a try:
1. Go to the moviefun directory where you see the project.xml and
maven.xml
2. Edit the src/webapp/WEB-INF/web.xml so that the openejb.home
points to where you installed OpenEJB.
3. Now type the command 'maven' with no arguments.
That should be it. Here are some more maven commands that are useful
C:> maven clean (this deletes old build data)
C:> maven clean war (this deletes old build data, then builds
a war file)
C:> maven idea (this Intellij project files that are
completely setup)
C:> maven eclipse (this Eclipse project files that are
completely setup)
C:> maven javadoc (creates javadoc at target/docs/apidocs/
index.html)
Also, make sure you have a somewhat new version of Maven. I use 1.0.2.
Let me know how it goes and if this gets things working for you. If
it does, I'll show you how to change the name of your project, add
libraries, and a few other basic things. There are many people who
would appreciate that documentation, so I'm game.
Thanks,
David
On Sep 21, 2005, at 8:36 AM, Rajesh Puri wrote:
I am trying to rebuild this sample. On first go, the
war given did not work and then on cleaning all
directories it did work.
I like to rebuild moviefun.war. I see you have a
build.xml and project.xml file at the root of this
folder. So I guess if I type
maven war it should recreate war and I should be able
to use it. Seems that does happen and I find this
creates war in a new folder target, but this new war
file does not work. Kind of asking you how do I create
new war using maven, I am more familar with ant.
-rajesh
--- David Blevins <[EMAIL PROTECTED]> wrote:
Rajesh,
Jeremy came to the rescue. He's fixed the issues
and got the
Moviefun example working on windows. I've put
together a new set of
binaries that include his fixes, which you can get
here:
http://openejb.org/unstable/v1.0-20050920/openejb-1.0-20050920.zip
As usual, the details of that binary are listed
here:
http://openejb.org/Latest+Unstable
Give that a try and let is know how it goes.
Thanks,
David
On Sep 20, 2005, at 1:48 PM, Rajesh Puri wrote:
On cleaning all directories, the first page comes
up
without any data, when I go to do add it gives
error
see below something like castor initialization
failed.
I do not think the first page got loaded
completely as
there is a castor intilaization on load see logs:
----------------------------
Sep 20, 2005 4:40:05 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9050
Sep 20, 2005 4:40:05 PM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2093 ms
Sep 20, 2005 4:40:05 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 20, 2005 4:40:05 PM
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache
Tomcat/5.0.25
Sep 20, 2005 4:40:06 PM
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 20, 2005 4:40:06 PM
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment (
non-jmx )
Sep 20, 2005 4:40:06 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Program Files\Apache Software
Foundation\Tomcat
5.0\conf\Catalina\localhost\admin.xml
Sep 20, 2005 4:40:08 PM
org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing,
config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 20, 2005 4:40:08 PM
org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing,
config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 20, 2005 4:40:09 PM
org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Sep 20, 2005 4:40:11 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Program Files\Apache Software
Foundation\Tomcat
5.0\conf\Catalina\localhost\balancer.xml
Sep 20, 2005 4:40:11 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Program Files\Apache Software
Foundation\Tomcat
5.0\conf\Catalina\localhost\manager.xml
Sep 20, 2005 4:40:11 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Program Files\Apache Software
Foundation\Tomcat
5.0\conf\Catalina\localhost\testejb.xml
Sep 20, 2005 4:40:12 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/jasper-webapp from URL file:C:/Program
Files/Apache
Software Foundation/Tomcat
5.0/webapps/jasper-webapp
Sep 20, 2005 4:40:12 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/miceapplication from URL file:C:/Program
Files/Apache
Software Foundation/Tomcat
5.0/webapps/miceapplication
Sep 20, 2005 4:40:13 PM
org.apache.catalina.startup.ContextConfig
validateSecurityRoles
INFO: WARNING: Security role name admin used in an
<auth-constraint> without being defined in a
<security-role>
Sep 20, 2005 4:40:13 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/mouse from URL file:C:/Program Files/Apache
Software
Foundation/Tomcat 5.0/webapps/mouse
Sep 20, 2005 4:40:13 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/moviefun from URL file:C:/Program Files/Apache
Software Foundation/Tomcat 5.0/webapps/moviefun
OpenEJB init-params:
param-name: openejb.home, param-value:
c:\openejb
param-name: openejb.loader, param-value:
tomcat-webapp
OpenEJB 1.0-20050917 build: 20050917-1716
http://www.openejb.org
resources 1
OpenEJB ready.
Sep 20, 2005 4:40:16 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/jsp-examples from URL file:C:\Program
Files\Apache
Software Foundation\Tomcat
5.0\webapps\jsp-examples
Sep 20, 2005 4:40:16 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/nodg
from URL file:C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\nodg
Sep 20, 2005 4:40:16 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
from
URL file:C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\ROOT
Sep 20, 2005 4:40:17 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/servlets-examples from URL file:C:\Program
Files\Apache Software Foundation\Tomcat
5.0\webapps\servlets-examples
Sep 20, 2005 4:40:17 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/tomcat-docs from URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\webapps\tomcat-docs
Sep 20, 2005 4:40:17 PM
org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path
/webdav from URL file:C:\Program Files\Apache
Software
Foundation\Tomcat 5.0\webapps\webdav
Sep 20, 2005 4:40:17 PM
org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted
sessions:
java.io.EOFException
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(Unknown
=== message truncated ===
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com