Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC90F838B for ; Tue, 30 Aug 2011 08:07:16 +0000 (UTC) Received: (qmail 88384 invoked by uid 500); 30 Aug 2011 08:07:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 87423 invoked by uid 500); 30 Aug 2011 08:07:12 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 87359 invoked by uid 99); 30 Aug 2011 08:07:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 08:07:01 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 08:06:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 99DF3D652F for ; Tue, 30 Aug 2011 08:06:38 +0000 (UTC) Date: Tue, 30 Aug 2011 08:06:38 +0000 (UTC) From: "Han Hong Fang (JIRA)" To: dev@geronimo.apache.org Message-ID: <1491773333.6570.1314691598627.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1953396378.8503.1314169896413.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GERONIMO-6121) Url of spring sample petclinic can't be accessed successfully MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-6121?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 3093536#comment-13093536 ]=20 Han Hong Fang commented on GERONIMO-6121: ----------------------------------------- Look into geronimo log, and seems that it has some problem to locate the bu= ndle resource with URL as [bundleresource://379.fwk9102426/org/springframew= ork/samples/petclinic/web/], please first set GERONIMO_OPTS=3D-Dorg.apache.= geronimo.equinox.useURLClassLoader=3Dtrue, and then start geronimo server a= nd have another try. > Url of spring sample petclinic can't be accessed successfully=20 > -------------------------------------------------------------- > > Key: GERONIMO-6121 > URL: https://issues.apache.org/jira/browse/GERONIMO-6121 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues)=20 > Components: osgi > Affects Versions: 3.0 > Environment: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9= -20110203_74623 (JIT enabled, AOT enabled) > Reporter: Tina Li > Priority: Minor > Attachments: geronimo_0824.log > > > 1.Use Aug 23 build of Geronimo server > 2.Start the server if it's not started > 3.Download spring sample from svn: https://src.springframework.org/svn/sp= ring-samples > 4.According to sample named "petclinic", modify the pom.xml file which un= der trunk folder: Change the element of spring vesion from = 3.0.0.RELEASE to 3.0.6.RELEASE > 5.Build this sample successfully using cmd : mvn clean package, then can = find web application:petclinic.war under /trunk/target folder > 6.In order to deploy this web application successfully, Modify geronimo-w= eb.xml and web.xml: > For geronimo-web.xml: > Change the element > =09=09 configId=3D"org/springframework/samples/petclinic"> > to=20 > =09=09 configId=3D"org/springframework/samples/petclinic"> > For web.xml: > Change: > =09 > =09=09default > =09=09/static/* > =09 > to > > 7. Deploy and start the petclinic web application successfully. > 8. Access the depolyed application using firefox 3.6.20 and found error : > HTTP Status 404 - > type Status report > message > description The requested resource () is not available. > 9. Check geronimo.log file and found: > 2011-08-24 14:24:16,593 WARN [PathMatchingResourcePatternResolver] Canno= t search for matching files underneath URL [bundleresource://372.fwk1348096= 09/org/springframework/samples/petclinic/web/] because it does not correspo= nd to a directory in the file system > java.io.FileNotFoundException: URL [bundleresource://372.fwk134809609/org= /springframework/samples/petclinic/web/] cannot be resolved to absolute fil= e path because it does not reside in the file system: bundleresource://372.= fwk134809609/org/springframework/samples/petclinic/web/ > =09at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:2= 04) > =09at org.springframework.core.io.AbstractFileResolvingResource.getFile(A= bstractFileResolvingResource.java:52) > =09at org.springframework.core.io.UrlResource.getFile(UrlResource.java:16= 8) > =09at org.springframework.core.io.support.PathMatchingResourcePatternReso= lver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.ja= va:528) > =09at org.springframework.web.context.support.ServletContextResourcePatte= rnResolver.doFindPathMatchingFileResources(ServletContextResourcePatternRes= olver.java:92) > =09at org.springframework.core.io.support.PathMatchingResourcePatternReso= lver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:349= ) > =09at org.springframework.core.io.support.PathMatchingResourcePatternReso= lver.getResources(PathMatchingResourcePatternResolver.java:267) > =09at org.springframework.context.support.AbstractApplicationContext.getR= esources(AbstractApplicationContext.java:1227) > =09at org.springframework.context.annotation.ClassPathScanningCandidateCo= mponentProvider.findCandidateComponents(ClassPathScanningCandidateComponent= Provider.java:204) > =09at org.springframework.context.annotation.ClassPathBeanDefinitionScann= er.doScan(ClassPathBeanDefinitionScanner.java:204) > =09at org.springframework.context.annotation.ComponentScanBeanDefinitionP= arser.parse(ComponentScanBeanDefinitionParser.java:84) > =09at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse= (NamespaceHandlerSupport.java:73) > =09at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.= parseCustomElement(BeanDefinitionParserDelegate.java:1338) > =09at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.= parseCustomElement(BeanDefinitionParserDelegate.java:1328) > =09at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocument= Reader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) > =09at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocument= Reader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) > =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.regis= terBeanDefinitions(XmlBeanDefinitionReader.java:493) > =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoa= dBeanDefinitions(XmlBeanDefinitionReader.java:390) > =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadB= eanDefinitions(XmlBeanDefinitionReader.java:334) > =09at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadB= eanDefinitions(XmlBeanDefinitionReader.java:302) > =09at org.springframework.beans.factory.support.AbstractBeanDefinitionRea= der.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) > =09at org.springframework.beans.factory.support.AbstractBeanDefinitionRea= der.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) > =09at org.springframework.beans.factory.support.AbstractBeanDefinitionRea= der.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) > =09at org.springframework.web.context.support.XmlWebApplicationContext.lo= adBeanDefinitions(XmlWebApplicationContext.java:124) > =09at org.springframework.web.context.support.XmlWebApplicationContext.lo= adBeanDefinitions(XmlWebApplicationContext.java:93) > =09at org.springframework.context.support.AbstractRefreshableApplicationC= ontext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) > =09at org.springframework.context.support.AbstractApplicationContext.obta= inFreshBeanFactory(AbstractApplicationContext.java:467) > =09at org.springframework.context.support.AbstractApplicationContext.refr= esh(AbstractApplicationContext.java:397) > =09at org.springframework.web.servlet.FrameworkServlet.createWebApplicati= onContext(FrameworkServlet.java:467) > =09at org.springframework.web.servlet.FrameworkServlet.createWebApplicati= onContext(FrameworkServlet.java:483) > =09at org.springframework.web.servlet.FrameworkServlet.initWebApplication= Context(FrameworkServlet.java:358) > =09at org.springframework.web.servlet.FrameworkServlet.initServletBean(Fr= ameworkServlet.java:325) > =09at org.springframework.web.servlet.HttpServletBean.init(HttpServletBea= n.java:127) > =09at javax.servlet.GenericServlet.init(GenericServlet.java:161) > =09at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrappe= r.java:1216) > =09at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrappe= r.java:1135) > =09at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:= 1031) > =09at org.apache.catalina.core.StandardContext.loadOnStartup(StandardCont= ext.java:4957) > =09at org.apache.catalina.core.StandardContext$3.call(StandardContext.jav= a:5284) > =09at org.apache.catalina.core.StandardContext$3.call(StandardContext.jav= a:5279) > =09at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) > =09at java.util.concurrent.FutureTask.run(FutureTask.java:149) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolEx= ecutor.java:897) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:919) > =09at java.lang.Thread.run(Thread.java:736) > 2011-08-24 14:24:16,625 INFO [AutowiredAnnotationBeanPostProcessor] JSR-= 330 'javax.inject.Inject' annotation found and supported for autowiring > 2011-08-24 14:24:16,640 INFO [DefaultListableBeanFactory] Pre-instantiat= ing singletons in org.springframework.beans.factory.support.DefaultListable= BeanFactory@494a494a: defining beans [org.springframework.context.annotatio= n.internalConfigurationAnnotationProcessor,org.springframework.context.anno= tation.internalAutowiredAnnotationProcessor,org.springframework.context.ann= otation.internalRequiredAnnotationProcessor,org.springframework.context.ann= otation.internalCommonAnnotationProcessor,org.springframework.context.annot= ation.internalPersistenceAnnotationProcessor,org.springframework.web.servle= t.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.s= ervlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.ser= vlet.view.ContentNegotiatingViewResolver#0,org.springframework.web.servlet.= view.BeanNameViewResolver#0,org.springframework.web.servlet.view.InternalRe= sourceViewResolver#0,visits,vets,marshaller,messageSource]; parent: org.spr= ingframework.beans.factory.support.DefaultListableBeanFactory@3cde3cde > 2011-08-24 14:24:16,734 INFO [Jaxb2Marshaller] Creating JAXBContext with= classes to be bound [class org.springframework.samples.petclinic.Vets] > 2011-08-24 14:24:16,828 INFO [DispatcherServlet] FrameworkServlet 'petcl= inic': initialization completed in 313 ms > 2011-08-24 14:24:17,750 INFO [SupportedModesServiceImpl] Portlet mode 'e= dit' not found for portletId: 'console-base.WARModules!-717254442|0' > 2011-08-24 14:24:17,750 INFO [SupportedModesServiceImpl] Portlet mode 'h= elp' not found for portletId: 'console-base.WARModules!-717254442|0' > 2011-08-24 14:24:20,187 WARN [PageNotFound] No mapping found for HTTP re= quest with URI [/petclinic/] in DispatcherServlet with name 'petclinic' > 10.But for tomcat apache-tomcat-7.0.20, this sample can be accessed succe= ssfully. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira