sonnv56 / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Spring mvc xdocreport #372

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.i flow the example which use spring 
https://code.google.com/p/xdocreport/source/browse?repo=samples#git%2Freporting-
webapp-springmvc 
it's running but when i press one of the button i see HTTP 404
i want know what must be the result of this example ?

2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ammar100...@gmail.com on 26 Feb 2014 at 3:37

GoogleCodeExporter commented 9 years ago
> it's running but when i press one of the button i see HTTP 404
You mean hyperlink "Download docx" ? 

> it's running but when i press one of the button i see HTTP 404
I cannot help you more with this info. Have a stack trace?

Are you sure the WebApp is well built? Have you tried to add your own Spring 
Controller to check the WebApp is well built? 

Original comment by angelo.z...@gmail.com on 27 Feb 2014 at 9:32

GoogleCodeExporter commented 9 years ago
yes i mean hyperlink "Download docx" 
and this is the stack trace

??? 27, 2014 10:39:50 ? org.apache.catalina.core.AprLifecycleListener init
Infos: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\Program 
Files\Java\jdk1.7.0_51\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Window
s;C:\Program Files (x86)\PHP\;C:\Program Files (x86)\NVIDIA 
Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
;C:\Windows\System32\WindowsPowerShell\v1.0\;d:\Program Files (x86)\MiKTeX 
2.9\miktex\bin\;C:\Program Files (x86)\Microsoft SQL 
Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\100\DTS\Binn\;C:\apache-maven-2.2.1\bin;C:\php;;.
??? 27, 2014 10:39:52 ? org.apache.tomcat.util.digester.SetPropertiesRule begin
Avertissement: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 
property 'source' to 'org.eclipse.jst.j2ee.server:reporting-webapp-springmvc' 
did not find a matching property.
??? 27, 2014 10:39:53 ? org.apache.coyote.AbstractProtocolHandler init
Infos: Initializing ProtocolHandler ["http-bio-8080"]
??? 27, 2014 10:39:53 ? org.apache.coyote.AbstractProtocolHandler init
Infos: Initializing ProtocolHandler ["ajp-bio-8009"]
??? 27, 2014 10:39:53 ? org.apache.catalina.startup.Catalina load
Infos: Initialization processed in 3196 ms
??? 27, 2014 10:39:53 ? org.apache.catalina.core.StandardService startInternal
Infos: Démarrage du service Catalina
??? 27, 2014 10:39:53 ? org.apache.catalina.core.StandardEngine startInternal
Infos: Starting Servlet Engine: Apache Tomcat/7.0.12
??? 27, 2014 10:39:56 ? org.apache.catalina.core.ApplicationContext log
Infos: Initializing Spring root WebApplicationContext
??? 27, 2014 10:39:56 ? org.springframework.web.context.ContextLoader 
initWebApplicationContext
Infos: Root WebApplicationContext: initialization started
??? 27, 2014 10:39:56 ? 
org.springframework.context.support.AbstractApplicationContext prepareRefresh
Infos: Refreshing Root WebApplicationContext: startup date [Thu Feb 27 10:39:56 
GMT+01:00 2014]; root of context hierarchy
??? 27, 2014 10:39:57 ? 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
Infos: Loading XML bean definitions from ServletContext resource 
[/WEB-INF/applicationContext.xml]
??? 27, 2014 10:39:58 ? 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
Infos: Loading XML bean definitions from ServletContext resource 
[/WEB-INF/xdocreport-views.xml]
??? 27, 2014 10:39:58 ? 
org.springframework.beans.factory.support.DefaultListableBeanFactory 
preInstantiateSingletons
Infos: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@32fdff4f: 
defining beans 
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor
,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org
.springframework.context.annotation.internalRequiredAnnotationProcessor,org.spri
ngframework.context.annotation.internalCommonAnnotationProcessor,mainController,
mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotati
on.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingC
onversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotat
ion.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.Mappe
dInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHa
ndlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.Response
StatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHan
dlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandl
erMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.spri
ngframework.web.servlet.mvc.SimpleControllerHandlerAdapter,reportConfiguration,d
ocxReport,pdfReport,org.springframework.context.annotation.ConfigurationClassPos
tProcessor.importAwareProcessor]; root of factory hierarchy
??? 27, 2014 10:39:58 ? 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping 
registerHandlerMethod
Infos: Mapped 
"{[/main/download],methods=[GET],params=[],headers=[],consumes=[],produces=[],cu
stom=[]}" onto public java.lang.String 
fr.opensagres.xdocreport.samples.reporting.springmvc.controllers.MainController.
getDownloadPage()
??? 27, 2014 10:39:58 ? 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping 
registerHandlerMethod
Infos: Mapped 
"{[/main/download/pdf],methods=[],params=[],headers=[],consumes=[],produces=[],c
ustom=[]}" onto public java.lang.String 
fr.opensagres.xdocreport.samples.reporting.springmvc.controllers.MainController.
staticPdfReport(org.springframework.ui.ModelMap)
??? 27, 2014 10:39:58 ? 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping 
registerHandlerMethod
Infos: Mapped 
"{[/main/download/pdf2],methods=[],params=[],headers=[],consumes=[],produces=[],
custom=[]}" onto public java.lang.String 
fr.opensagres.xdocreport.samples.reporting.springmvc.controllers.MainController.
dynamicPdfReport(org.springframework.ui.ModelMap)
??? 27, 2014 10:39:58 ? 
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping 
registerHandlerMethod
Infos: Mapped 
"{[/main/download/docx],methods=[],params=[],headers=[],consumes=[],produces=[],
custom=[]}" onto public java.lang.String 
fr.opensagres.xdocreport.samples.reporting.springmvc.controllers.MainController.
docxReport(org.springframework.ui.ModelMap)
232  [Thread-2] DEBUG f.o.x.core.logging.LogUtils - Using 
fr.opensagres.xdocreport.core.logging.Slf4jLogger for logging. 
263  [Thread-2] DEBUG f.o.x.c.internal.JDKServiceLoader - Uses JDK6 
java.util.ServiceLoader to load services. 
264  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - discoveries found ? 
true 
267  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - Registered Discovery 
instance  
fr.opensagres.xdocreport.document.docx.discovery.DocxReportFactoryDiscovery@5b67
60e3 true 
340  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - discoveries found ? 
true 
341  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - Registered Discovery 
instance  
fr.opensagres.xdocreport.document.template.TemplateCacheInitializerDiscovery@a3e
3bfc true 
343  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - Registered Discovery 
instance  
fr.opensagres.xdocreport.document.docx.discovery.DocxTemplateEngineInitializerCo
nfigurationDiscovery@385ec662 true 
345  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - discoveries found ? 
true 
361  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - Registered Discovery 
instance  
fr.opensagres.xdocreport.template.velocity.discovery.VelocityTemplateEngineDisco
very@604043dd true 
371  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - discoveries found ? 
true 
374  [Thread-2] DEBUG f.o.x.c.registry.AbstractRegistry - Registered Discovery 
instance  
fr.opensagres.xdocreport.template.velocity.VelocityFieldsMetadataClassSerializer
@17defd7e true 
??? 27, 2014 10:39:59 ? org.springframework.web.context.ContextLoader 
initWebApplicationContext
Infos: Root WebApplicationContext: initialization completed in 2993 ms
??? 27, 2014 10:39:59 ? org.apache.catalina.core.ApplicationContext log
Infos: Initializing Spring FrameworkServlet 'spring'
??? 27, 2014 10:39:59 ? org.springframework.web.servlet.FrameworkServlet 
initServletBean
Infos: FrameworkServlet 'spring': initialization started
??? 27, 2014 10:39:59 ? 
org.springframework.context.support.AbstractApplicationContext prepareRefresh
Infos: Refreshing WebApplicationContext for namespace 'spring-servlet': startup 
date [Thu Feb 27 10:39:59 GMT+01:00 2014]; parent: Root WebApplicationContext
??? 27, 2014 10:39:59 ? 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
Infos: Loading XML bean definitions from ServletContext resource 
[/WEB-INF/spring-servlet.xml]
??? 27, 2014 10:39:59 ? 
org.springframework.beans.factory.support.DefaultListableBeanFactory 
preInstantiateSingletons
Infos: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@6af3a7d5: 
defining beans 
[viewResolver,org.springframework.web.servlet.view.XmlViewResolver#0]; parent: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@32fdff4f
??? 27, 2014 10:40:00 ? 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
Infos: Loading XML bean definitions from ServletContext resource 
[/WEB-INF/xdocreport-views.xml]
??? 27, 2014 10:40:00 ? 
org.springframework.context.support.AbstractApplicationContext prepareRefresh
Infos: Refreshing 
org.springframework.web.context.support.GenericWebApplicationContext@6ae9e439: 
startup date [Thu Feb 27 10:40:00 GMT+01:00 2014]; parent: 
WebApplicationContext for namespace 'spring-servlet'
??? 27, 2014 10:40:00 ? 
org.springframework.beans.factory.support.DefaultListableBeanFactory 
preInstantiateSingletons
Infos: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@2413b53e: 
defining beans [reportConfiguration,docxReport,pdfReport]; parent: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@6af3a7d5
??? 27, 2014 10:40:00 ? org.springframework.web.servlet.FrameworkServlet 
initServletBean
Infos: FrameworkServlet 'spring': initialization completed in 179 ms
??? 27, 2014 10:40:00 ? org.apache.coyote.AbstractProtocolHandler start
Infos: Starting ProtocolHandler ["http-bio-8080"]
??? 27, 2014 10:40:00 ? org.apache.coyote.AbstractProtocolHandler start
Infos: Starting ProtocolHandler ["ajp-bio-8009"]
??? 27, 2014 10:40:00 ? org.apache.catalina.startup.Catalina start
Infos: Server startup in 6697 ms

Original comment by ammar100...@gmail.com on 27 Feb 2014 at 9:42

GoogleCodeExporter commented 9 years ago
It's the stack trace when WebApp starts, but not when you click on "download 
docx".

Original comment by angelo.z...@gmail.com on 27 Feb 2014 at 9:50

GoogleCodeExporter commented 9 years ago
nothing happen when i click on "download docx" the stack trace doesn't add 
anything.
i see HTTP 404 
La ressource demandée (/reporting/xdocreport/main/download/docx) n'est pas 
disponible.

Original comment by ammar100...@gmail.com on 27 Feb 2014 at 9:59

GoogleCodeExporter commented 9 years ago
Have you tried to add your own controller? I suggest you to do that to check 
that Spring MVC is well configured.

Original comment by angelo.z...@gmail.com on 27 Feb 2014 at 10:01

GoogleCodeExporter commented 9 years ago
ok but i want know what must be the result of this exemple.

Original comment by ammar100...@gmail.com on 27 Feb 2014 at 10:03