tag:blogger.com,1999:blog-5601223690880447601.post6683756857392245248..comments2024-03-27T03:35:08.877+01:00Comments on blog.m1key.me: REST with Spring 3.0, Spring MVC and Dojo. Part 3 - POST and JSR-303 validationMichał Huniewiczhttp://www.blogger.com/profile/03904658492365257143noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-5601223690880447601.post-88219178637379108682023-06-08T13:06:53.014+02:002023-06-08T13:06:53.014+02:00Virginia Reckless Driving Attorneyis a legal profe...<a href="https://srislawyer.com/reckless-driving-virginia/" rel="nofollow">Virginia Reckless Driving Attorney</a>is a legal professionals who expert in handling traffic related casese in virginia,Maryland,New jersey.The most informative post.valentinahttps://www.blogger.com/profile/04222022504578921860noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-73418586641366480512021-05-20T19:12:05.645+02:002021-05-20T19:12:05.645+02:00google 1729
google 1730
google 1731
google 1732
go...<a href="http://wikiartesania.cl/index.php?title=__GGR_3_138pct_" rel="nofollow">google 1729</a><br /><a href="https://wifidb.science/wiki/GGR_3_141pct" rel="nofollow">google 1730</a><br /><a href="https://botdb.win/wiki/GGR_3_141pct" rel="nofollow">google 1731</a><br /><a href="https://cameradb.review/wiki/GGR_3_142pct" rel="nofollow">google 1732</a><br /><a href="https://marvelcomics.faith/wiki/GGR_3_141pct" rel="nofollow">google 1733</a>adminhttps://www.blogger.com/profile/13328975220076167046noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-39702748357009517062011-02-14T15:47:17.934+01:002011-02-14T15:47:17.934+01:00Hi Srinivas, I have never done this, I can't a...Hi Srinivas, I have never done this, I can't answer your question. I can only suggest this discussion: http://codemonkeyism.com/how-to-put-binary-data-with-rest/Michał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-78332346869705708372011-02-10T16:46:31.813+01:002011-02-10T16:46:31.813+01:00Hi, I have one more quick question. How to handle ...Hi, I have one more quick question. How to handle images and videos in Spring REST. Images are stored in db. Also can I use MOXy JAXB with JPA and Hibernate 3.6?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-18786563114605556692011-02-10T16:45:15.115+01:002011-02-10T16:45:15.115+01:00Hi, I have one more quick question. How to handle ...Hi, I have one more quick question. How to handle images and videos in Spring REST. Images are stored in db. Also can I use MOXy JAXB with JPA and Hibernate 3.6?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-75983892311150110972011-02-07T21:30:32.233+01:002011-02-07T21:30:32.233+01:00Hi Michal,
I have one more question.I have more th...Hi Michal,<br />I have one more question.I have more than one domain classes and relation is one to many. I need to generate xml in the following format.<br /><br /><br />Here I have two domain objects 1. emp 2. address<br />relationship one to many<br />Using JAXB how to marshall the object to the xml<br /><br />Alternatively, I thought of creating a database view and map the view to the domain object.In this case I need to generate XML wrapper elements addressInfo<br />address type="home". <br /><br />Please suggest.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-65262489041310188082011-02-02T21:48:41.380+01:002011-02-02T21:48:41.380+01:00You're not bothering me at all. :)
To answer ...You're not bothering me at all. :)<br /><br />To answer your question - from my experience marshallers often behave counter intuitive. I doubt you can alter its behaviour - your code should rather accommodate it. If you feel this is a bug - you should report it. Alternatively, you may want to try a different marshaller.<br />CheersMichał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-84768760361415339222011-02-02T16:46:50.225+01:002011-02-02T16:46:50.225+01:00May be I don't.That was the suggestion from my...May be I don't.That was the suggestion from my tech lead.I am sorry to bother you. I have one more query related to xml output. If data is empty jaxbMarshaller is not generating xml tag. How can I generate empty xml tags if data nullAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-26635469953184363452011-02-01T19:02:24.633+01:002011-02-01T19:02:24.633+01:00Sorry to answer question with a question - why do ...Sorry to answer question with a question - why do you need to put it in CDATA?<br />Maybe you don't?Michał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-65082444683017221062011-02-01T17:22:38.170+01:002011-02-01T17:22:38.170+01:00Hi Michal,
Thank you. But I need to put this html ...Hi Michal,<br />Thank you. But I need to put this html in CDATA. How can I do that? Could you please suggest me the best approach?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-86506289969889102562011-02-01T10:30:29.078+01:002011-02-01T10:30:29.078+01:00Hi kanneganti75,
I would expect it to be escaped a...Hi kanneganti75,<br />I would expect it to be escaped automatically so you shouldn't worry.Michał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-49407001908629419532011-02-01T05:17:53.711+01:002011-02-01T05:17:53.711+01:00I have data in Oracle in HTML form. I need to send...I have data in Oracle in HTML form. I need to send this data in XML or JSON format. What is the best way to send html data in XML or JSON format?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-53617844846691058442011-01-03T12:30:28.627+01:002011-01-03T12:30:28.627+01:00Excellent. :) Good luck with it and thanks for vis...Excellent. :) Good luck with it and thanks for visiting the blog!Michał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-90688299856399467272011-01-03T04:55:02.342+01:002011-01-03T04:55:02.342+01:00Now that I'm using 1.6.2, it's working for...Now that I'm using 1.6.2, it's working for me.Unknownhttps://www.blogger.com/profile/13407768655685247886noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-82818077413421287822011-01-03T04:32:06.615+01:002011-01-03T04:32:06.615+01:00Yes, I have read the same post and I'm using
...Yes, I have read the same post and I'm using <br /><br /><br />org.codehaus.jackson<br />jackson-mapper-asl<br />1.4.2 <br /><br /> <br />org.codehaus.jackson <br /> com.springsource.org.codehaus.jackson.mapper <br /> 1.4.2Unknownhttps://www.blogger.com/profile/13407768655685247886noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-54026444811894008872010-12-31T11:23:49.160+01:002010-12-31T11:23:49.160+01:00Hi, are you sure you are using Jackson 1.4.2? I...Hi, are you sure you are using Jackson 1.4.2? I'm looking at this: https://jira.springsource.org/browse/SPR-7063Unknownhttps://www.blogger.com/profile/00491043456385770542noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-48882556958560477382010-12-31T01:41:49.507+01:002010-12-31T01:41:49.507+01:00Hi,
I got Jetty to run, the app is working except ...Hi,<br />I got Jetty to run, the app is working except for saving a book. I'm getting java.lang.NoSuchMethodError: org.codehaus.jackson.map.type.TypeFactory.type(Ljava/lang/reflect/Type;)Lorg/codehaus/jackson/type/JavaType;<br /><br />I have tried springframework 3.0.3 and 3.0.5 with org.codehaus.jackson 1.4.2+ but still getting the same error. Do you have any idea?<br /><br />Thank you.Unknownhttps://www.blogger.com/profile/13407768655685247886noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-62088213414921801192010-12-27T13:48:50.061+01:002010-12-27T13:48:50.061+01:00Hi, well the root cause is "nested exception ...Hi, well the root cause is "nested exception is java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory" so I would assume that while JBoss (I ran it on JBoss) has the proper class, Jetty doesn't.Michał Huniewiczhttps://www.blogger.com/profile/03904658492365257143noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-49942154998998504302010-12-27T00:34:35.246+01:002010-12-27T00:34:35.246+01:00Is this still a bug in Spring?Is this still a bug in Spring?Unknownhttps://www.blogger.com/profile/13407768655685247886noreply@blogger.comtag:blogger.com,1999:blog-5601223690880447601.post-74774134933666382222010-12-27T00:19:34.649+01:002010-12-27T00:19:34.649+01:00Hi I just downloaded the source and when I tried t...Hi I just downloaded the source and when I tried to start the Jetty server I'm getting these errors:<br /><br />What am I missing? Thank you.<br /><br />SEVERE: Context initialization failed<br />org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0' defined in ServletContext resource [/WEB-INF/rest-servlet.xml]: Cannot create inner bean 'org.springframework.web.bind.support.ConfigurableWebBindingInitializer#1f243d1' of type [org.springframework.web.bind.support.ConfigurableWebBindingInitializer] while setting bean property 'webBindingInitializer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.bind.support.ConfigurableWebBindingInitializer#1f243d1' defined in ServletContext resource [/WEB-INF/rest-servlet.xml]: Cannot resolve reference to bean 'validator' while setting bean property 'validator'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] for bean with name 'validator' defined in ServletContext resource [/WEB-INF/rest-servlet.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory<br /> at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)Unknownhttps://www.blogger.com/profile/13407768655685247886noreply@blogger.com