Hi Jacob, Thanks , for the inforamtion, I understood now...
Regards, Pratt. ----- Original Message ----- From: "Jacob Kjome" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, March 01, 2003 10:41 PM Subject: Re: Fw: Tomcat WAR expansion > > This is expected behavior. If you add an explicit <Context ....> for you > app and the "path" attribute matches the name of the .war file (less > ".war"), then the .war file will not be expanded. You will have to expand > it yourself. This is kind of a confusing issue for new users and I'm not > entirely sure why Tomcat's behavior is this way. However, the behavior is > this way and you will simply have to live with it. > > Note that not all appservers expand the .war file to a directory structure > by default like Tomcat does. You shouldn't count on this behavior if you > want your app to be portable. For instance, if your app isn't expanded to > a directory, any File IO done by the webapp to files your classes assume > will be available via File IO won't work. To access files from an archive > you need to use streams and you should do so in any case because of this > fact unless you specifically check for the File object being null. Anyway, > that goes beyond your question, so I'll stop there. > > later, > > Jake > > At 11:38 AM 3/1/2003 +0530, you wrote: > >Hi Craig, > > > >Can you please help me out. as per phillip i am approaching you... > > > > Hi, > > > >When i place a WAR file into the Tomcat webapps folder, on Restart tomcat is > >not expanding the WAR if server.xml contains the Context entry > >related to this, If i remove the Context entry it is expanding. Is there > >any configuration required to expand the WAR by keeping the > >Context entry in the server.xml? > > I am using Tomcat 4.1.18 version. > > > >Thanks and Regards, > >Pratt > > > >----- Original Message ----- > >From: "Phillip Qin" <[EMAIL PROTECTED]> > >To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > >Sent: Friday, February 28, 2003 11:17 PM > >Subject: RE: Tomcat WAR expansion > > > > > > > I gave up. Instead, I use ant to create a webapps/myapp dir and copy all > > > stuff to that directory. Craig should be the right person to answer this > > > question. > > > > > > Regards, > > > > > > > > > PQ > > > > > > "This Guy Thinks He Knows Everything" > > > "This Guy Thinks He Knows What He Is Doing" > > > > > > -----Original Message----- > > > From: Prathap [mailto:[EMAIL PROTECTED] > > > Sent: February 28, 2003 11:29 AM > > > To: Tomcat Users List > > > Subject: Re: Tomcat WAR expansion > > > > > > Hi > > > I am getting this trace.. Can you figure it out?? > > > > > > 2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to > > > work directory C:\test\Tomcat41\work\Standalone\localhost\webdav > > > 2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number > > > generator class java.security.SecureRandom > > > 2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number > > > generator has been completed > > > 2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container > > > servlet default > > > 2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container > > > servlet invoker > > > 2003-02-28 21:55:02 StandardContext[/test]: Resources start failed: > > > 2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to > > > previous errors > > > 2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after > > > start failed > > > LifecycleException: Container StandardContext[/test] has not been started > > > at > >org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643) > > > at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:3621) > > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) > > > at > >org.apache.catalina.core.StandardService.start(StandardService.java:497) > > > at > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:512) > > > at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > > at org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > > > > > Regards, > > > Pratt > > > ----- Original Message ----- > > > From: "Phillip Qin" <[EMAIL PROTECTED]> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > > Sent: Friday, February 28, 2003 9:55 PM > > > Subject: RE: Tomcat WAR expansion > > > > > > > > > > I saw some error messages and my app war is not expanded. Did you see > >them > > > > in your log? > > > > > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(), > > > > current available=false > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default > > > > Resources > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start > >failed: > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring > > > non-privileged > > > > default Loader > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default > > > > Manager > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard > > > > container startup > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed > > > due > > > > to previous errors > > > > 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during > >cleanup > > > > after start failed > > > > LifecycleException: Container StandardContext[/lciponline] has not been > > > > started > > > > at > > > > org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643) > > > > at > > > > > >org.apache.catalina.core.StandardContext.start(StandardContext.java:3621) > > > > at > > > > > > > > >org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: 8 > > > > 21) > > > > at > > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) > > > > at > > > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) > > > > at > > > > > > > > >org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer . > > > > java:529) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at > > > > > > > > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9 > > > > ) > > > > at > > > > > > > > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l > > > > .java:25) > > > > at java.lang.reflect.Method.invoke(Method.java:324) > > > > at > > > > > > > > >org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228) > > > > at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) > > > > at > > > > org.apache.commons.digester.Digester.endElement(Digester.java:1036) > > > > at > > > > > > > > >org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.ja v > > > > a:585) > > > > at > > > > > > > > >org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.jav a > > > > :647) > > > > at > > > > > > > > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDoc u > > > > mentFragmentScannerImpl.java:1008) > > > > at > > > > > > > > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispat c > > > > her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) > > > > at > > > > > > > > >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocum e > > > > ntFragmentScannerImpl.java:329) > > > > at > > > > > > > > >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) > > > > at > > > > > > > > >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) > > > > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) > > > > at > > > > > > > > >org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:11 7 > > > > 5) > > > > at org.apache.commons.digester.Digester.parse(Digester.java:1514) > > > > at > > > > > > > > >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer. j > > > > ava:335) > > > > at > > > > org.apache.catalina.core.StandardHost.install(StandardHost.java:803) > > > > at > > > > > > > > >org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:45 2 > > > > ) > > > > at > > > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409) > > > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) > > > > at > > > > > >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) > > > > at > > > > > > > > >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo r > > > > t.java:166) > > > > at > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) > > > > at > > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > > > at > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > > > at > > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) > > > > at > > > > org.apache.catalina.core.StandardService.start(StandardService.java:497) > > > > at > > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) > > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:512) > > > > at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > > > at org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > at > > > > > > > > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9 > > > > ) > > > > at > > > > > > > > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l > > > > .java:25) > > > > at java.lang.reflect.Method.invoke(Method.java:324) > > > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > > > > > > > > > > > Regards, > > > > > > > > > > > > PQ > > > > > > > > "This Guy Thinks He Knows Everything" > > > > "This Guy Thinks He Knows What He Is Doing" > > > > > > > > -----Original Message----- > > > > From: Prathap [mailto:[EMAIL PROTECTED] > > > > Sent: February 28, 2003 11:07 AM > > > > To: Tomcat Users List > > > > Subject: Re: Tomcat WAR expansion > > > > > > > > Hi, > > > > My Problem is why it is not expanded even the unpackWARS is set to true, > > > > any idea? > > > > > > > > Thanks > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Scott, Sean" <[EMAIL PROTECTED]> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > > > Sent: Friday, February 28, 2003 9:39 PM > > > > Subject: RE: Tomcat WAR expansion > > > > > > > > > > > > > I can't speak for Pratt, but my WAR runs fine without being expanded. > > > > > (4.1.18) > > > > > > > > > > -----Original Message----- > > > > > From: Phillip Qin [mailto:[EMAIL PROTECTED] > > > > > Sent: Friday, February 28, 2003 9:02 AM > > > > > To: 'Tomcat Users List' > > > > > Subject: RE: Tomcat WAR expansion > > > > > > > > > > > > > > > War is different from jar. WAR has to be expanded in order to run. > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > PQ > > > > > > > > > > "This Guy Thinks He Knows Everything" > > > > > "This Guy Thinks He Knows What He Is Doing" > > > > > > > > > > -----Original Message----- > > > > > From: Scott, Sean [mailto:[EMAIL PROTECTED] > > > > > Sent: February 28, 2003 11:02 AM > > > > > To: 'Tomcat Users List' > > > > > Subject: RE: Tomcat WAR expansion > > > > > > > > > > I am seeing this behavior too, but I am not sure of the benefit of > > > > expanding > > > > > the WAR. Does it run faster? > > > > > > > > > > -sean > > > > > > > > > > -----Original Message----- > > > > > From: Tomcat [mailto:[EMAIL PROTECTED] > > > > > Sent: Friday, February 28, 2003 2:55 AM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: Tomcat WAR expansion > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > When i place a WAR file into the Tomcat webapps folder, on Restart > > > tomcat > > > > > is not expanding the WAR if server.xml contains the Context entry > > > related > > > > to > > > > > this, If i remove the Context entry it is expanding. > > > > > > > > > > Is there any configuration required to expand the WAR by keeping the > > > > > Context entry in the server.xml? > > > > > > > > > > I am using Tomcat 4.1.18 version. > > > > > > > > > > Thanks and Regards, > > > > > Pratt > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
