David,

I did exactly as said in email. On making war it puts
a war in target folder(this seems a new folder maven
created). The war file there is not of same size as
the one shppied in above unstable build. I do see
there were some error messages to do with test classes
etc while building war.

But when I deploy this file I get following messages.
I did check my openejb.home was set right. But do note
that war you shipped with unstable did work. Here I am
trying to rebuild as my interest is to clone this on
Oracle and build my base app, so I have to make a
number of changes in the application plus this is my
learning process.
-------------------------------------------------

2005-09-22 09:45:24 StandardWrapperValve[jsp]:
Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: ContextEJBLocal
cannot be retrieved from JNDI.
        at
org.acme.movie.JndiContext$1.getObject(JndiContext.java:60)
        at
org.acme.movie.JndiContext$1.lookup(JndiContext.java:87)
        at
org.apache.jsp.setup_jsp._jspService(setup_jsp.java:59)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.NoInitialContextException:
Cannot instantiate class:
org.openejb.client.LocalInitialContextFactory [Root
exception is java.lang.ClassNotFoundException:
org.openejb.client.LocalInitialContextFactory]
        at
javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
        at
javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at
org.acme.movie.JndiContext$1.getObject(JndiContext.java:56)
        ... 32 more
Caused by: java.lang.ClassNotFoundException:
org.openejb.client.LocalInitialContextFactory
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
        at java.lang.ClassLoader.loadClassInternal(Unknown
Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at
com.sun.naming.internal.VersionHelper12.loadClass(Unknown
Source)
        ... 37 more


--- David Blevins <[EMAIL PROTECTED]> wrote:

> 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
> 
=== message truncated ===



        
                
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 

Reply via email to