Re: Strategy to consume JSON/REST SErver
We see that struts2 is better See our prototype For struts2 see github.com/blueoxygen/cimande Vs Springmvc rest Github.com/meruvian/yama Hope after this code u will see We modify the json plugins using jackson, because it is unstable, see the org.blueoxygen.cimande.rest /m/ -Original Message- From: Eduard Neuwirt Date: Thu, 10 Feb 2011 22:19:37 To: Reply-To: "Struts Users Mailing List" Subject: Re: Strategy to consume JSON/REST SErver Hi, I think the spring-web is better candidate for REST. I have not seen until now a well Struts2-REST prototype. Eduard Am 10.02.2011 20:31, schrieb Frans Thamura: > hi all > > we know REST is getting popular, and we know Struts2 can produce REST/JSON > > but.. > > any idea to consume REST/JSON in Struts2 approach > > anyone working on this? > > I want like hibernate way, but hibernate connectes to database. > > F > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: XSS Validation
Greg- There seems to be two issues that you've talked about. 1) Input sanitization: OWASP doesn't directly address this, as I recall. They do have a canonicalization library that you can use to prevent funny character tricks that let characters sneak past your filtering, however. You should use this canonicalizer before filtering out bad characters such as angle brackets, ampersands, percent signs, etc. (I integrated this into a Web app using a plain old Java filter, and not using Struts2). 2) Validation, which can be used to prevent XSS. Once again, I don't think the OWASP library addresses this directly, however, you can certainly do your own rules in Struts2. In general, the stricter the better for any given field. The main feature of OWASP seem to be *output encoding*, which can be customized for various contexts: HTML, attributes, JavaScript. Struts2 does some output encoding (for example, angle brackets and quotes), but not nearly as much as the OWASP library. I'd also be interested to find out if anyone has integrated S2 and OWASP output escaping. It would not be a simple integration, however, as you would have to change the encoding functions depending on the context. As I mentioned above, there's a different library for encoding user input depending on whether you're using it in attributes, html, or javascript. Perhaps you could create custom type tags for each of these contexts. -David -Original Message- From: Greg Akins [mailto:angryg...@gmail.com] Sent: Thursday, February 10, 2011 1:39 PM To: user@struts.apache.org Subject: XSS Validation I'm looking to do some general input santization on a Struts2 application. Thinking that the OWASP validators might be a good place to start; maybe along with a Struts CustomValidator Has anyone done anything like this? Does anyone have some advice for providing "general" protection againts XSS and other types of non-checked input vulnerabilities? -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strategy to consume JSON/REST SErver
You can check the rest showcase sample application from the struts 2 distribution: http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/rest-showcase/ On Thu, Feb 10, 2011 at 8:31 PM, Frans Thamura wrote: > hi all > > we know REST is getting popular, and we know Struts2 can produce REST/JSON > > but.. > > any idea to consume REST/JSON in Struts2 approach > > anyone working on this? > > I want like hibernate way, but hibernate connectes to database. > > F > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Strategy to consume JSON/REST SErver
Hi, I think the spring-web is better candidate for REST. I have not seen until now a well Struts2-REST prototype. Eduard Am 10.02.2011 20:31, schrieb Frans Thamura: hi all we know REST is getting popular, and we know Struts2 can produce REST/JSON but.. any idea to consume REST/JSON in Struts2 approach anyone working on this? I want like hibernate way, but hibernate connectes to database. F - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Strategy to consume JSON/REST SErver
hi all we know REST is getting popular, and we know Struts2 can produce REST/JSON but.. any idea to consume REST/JSON in Struts2 approach anyone working on this? I want like hibernate way, but hibernate connectes to database. F - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
XSS Validation
I'm looking to do some general input santization on a Struts2 application. Thinking that the OWASP validators might be a good place to start; maybe along with a Struts CustomValidator Has anyone done anything like this? Does anyone have some advice for providing "general" protection againts XSS and other types of non-checked input vulnerabilities? -- Greg Akins http://twitter.com/akinsgre - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
OT static resources, cache control, and versioning
I'm trying to find out what are the "Best Practices" and if there are any utilities available to assist with versioning of static resources and cache-control. I'm working on an application (written with Struts 2) that uses a filter to apply cache-control headers to the static resources, javascript, css, and image files. The problem is we are having frequent releases to production and user's browser's will have cached previous versions of the 'static' resources. Now it is possible for the developers to manually add a version number to each static resource file and update that version number before each release but that would be a very fragile and error prone procedure. To mitigate the problem we have turned down the cache-control down to 1 hour but his is still far from ideal and only helps if the browsers obey the max-age setting. So what are the "Best Practices" and are there any utilities to assist? Here is the scheme I was considering building: Use tags to generate the static resource paths so they will include a release number in the path. So instead of path "/js/site.js" as in this script tag: I would generate this with the path "/v1.2.3/js/site.js" where "/v1.2.3/" represents the release number: I would also write a Filter that would look for requests starting with the "/v1.2.3/" release number. When it found one it would strip off the release from the path and forward it to the actual path and on return it would apply the cache-control headers. I think this would handle the cache-control problem as the browsers would cache using the path with the release version and this would change with each new release. Do any utilities like this exist already? (no need to reinvent the wheel if they do.) Greg - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
Good morning, Although I did not use hibernate but mybatis - struts2 + tiles2.0.7 + mybatis3, I had the similar problem long time ago. It was related to the tiles version. If I use tiles 2.2.2, I have an exception. But with 2.0.7, no compile error. You may try. -- Lu Ying On 02/10/2011 05:21 AM, Nuwan Arambage wrote: On Thu, Feb 10, 2011 at 3:49 PM, Nuwan Arambage wrote: Hi, This link might be helpful to you.explore this by your own.It contains good examples :) http://www.mkyong.com/struts2/struts-2-hibernate-integration-example/ cheers !! On Thu, Feb 10, 2011 at 3:22 PM, wrote: Look on internet. It's a problem with the parser, you are using the wrong version. I had the same problem and needed to change it using a JVM parameter. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain Date: Thu, 10 Feb 2011 15:12:36 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse the tiles is creating a problem with the following exception: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digester.Digester.getFactory(Digester.java:534) at org.apache.commons.digester.Digester.getParser(Digester.java:786) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at org.apache.commons.digester.Digester.parse(Digester.java:1887) at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) thanks abhi On Thu, Feb 10, 2011 at 3:03 PM, adam pinder wrote: i would start with the struts2 sample app, get it working then add hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working then add tiles2 and get that working - don't try and throw them all in together then try to work out which one is causing the issue. Date: Thu, 10 Feb 2011 14:53:52 +0530 Subject: Decent tutorial or work
RE: cannot run a simple struts application, server start error - myeclipse
take a look at /WEB-INF/classes/struts-tiles.xml which should look something like http://struts.apache.org/dtds/struts-2.0.dtd";> showcase.index showcase.index Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 10 Feb 2011 15:00:30 +0530 > Subject: Re: cannot run a simple struts application, server start error - > myeclipse > From: kusha...@gmail.com > To: user@struts.apache.org > > This one also relates with the XML parser, What are you going to do in your > application, how it interacts with a parser? > > On Thu, Feb 10, 2011 at 2:49 PM, abhishek jain > wrote: > > > hi > > here is another error: > > cannt understand what it is: > > > > Digester.getParser: java.lang.UnsupportedOperationException: This > > parser does not support specification "null" version "null" at > > javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) > > at > > org.apache.commons.digester.Digester.getFactory(Digester.java:534) at > > org.apache.commons.digester.Digester.getParser(Digester.java:786) at > > org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at > > org.apache.commons.digester.Digester.parse(Digester.java:1887) at > > org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) > > at > > org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) > > at > > org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) > > at > > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) > > at > > org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) > > at > > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) > > at > > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) > > at > > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) > > at > > org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) > > at > > org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) > > at > > org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) > > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) > > at > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at > > org.apache.catalina.core.StandardService.start(StandardService.java:516) > > at > > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > > org.apache.catalina.startup.Catalina.start(Catalina.java:566) at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > > sun.reflect.NativeMethodAccessorImpl.inv
Re: cannot run a simple struts application, server start error - myeclipse
you try to parse a XML File, but there is a null value, you may put out more trace of exception 2011/2/10 abhishek jain > hi > here is another error: > cannt understand what it is: > > Digester.getParser: java.lang.UnsupportedOperationException: This > parser does not support specification "null" version "null" at > javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) > at > org.apache.commons.digester.Digester.getFactory(Digester.java:534) at > org.apache.commons.digester.Digester.getParser(Digester.java:786) at > org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at > org.apache.commons.digester.Digester.parse(Digester.java:1887) at > org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) > at > org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) > at > org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) > at > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) >at > org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) >at > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) > at > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) > at > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) > at > org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) > at > org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) > at > org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) >at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at > org.apache.catalina.core.StandardService.start(StandardService.java:516) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > org.apache.catalina.startup.Catalina.start(Catalina.java:566) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:597)at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > > > Please help > > thanks > abhishek > > On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake >wrote: > > > It seems there is another xml parser is conflicting. Check the lib folder > > of > > the tomcat, there should be another Xml parser there. Remove it, and > > replace > > the parser in your application. > > On 8 Feb 2011 17:38, "abhishek jain" wrote: > > > hi, > > > I noticed if i remove the xerces-2.6.2.jar file and restart the server, > > it > > > works fine, dont know why, > > > Pl. advice the reason and will it have any affect on Hibernate thing in > > the > > > project, > > > > > > thanks > > > abhishek > > > > > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain < > > abhishek.netj...@gmail.com > > >wrote: > > > > > >> hi, > > >> thanks for replying, > > >> in myeclipse,if i do contrl + click on the struts-default.xml in > > >> struts.xml, it opens the file, > > >> hence it seems this is also not the error, > > >> thanks > > >> abhishek > > >> > > >> > > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI > > wrote: > > >> > > >>> You should have problem in your classpath, it looks for a file named > > >>> struts-default in your classpath, so in your classes directory can > you > > >>> check > > >>> if you have
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
On Thu, Feb 10, 2011 at 3:49 PM, Nuwan Arambage wrote: > Hi, > This link might be helpful to you.explore this by your own.It contains > good examples :) > http://www.mkyong.com/struts2/struts-2-hibernate-integration-example/ > cheers !! > > On Thu, Feb 10, 2011 at 3:22 PM, wrote: >> >> Look on internet. It's a problem with the parser, you are using the wrong >> version. I had the same problem and needed to change it using a JVM >> parameter. >> Sent via BlackBerry from T-Mobile >> >> -Original Message- >> From: abhishek jain >> Date: Thu, 10 Feb 2011 15:12:36 >> To: Struts Users Mailing List >> Reply-To: "Struts Users Mailing List" >> Subject: Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + >> Tiles 2 on myeclipse >> >> the tiles is creating a problem with the following exception: >> >> Digester.getParser: java.lang.UnsupportedOperationException: This >> parser does not support specification "null" version "null" at >> javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) >> at >> org.apache.commons.digester.Digester.getFactory(Digester.java:534) at >> org.apache.commons.digester.Digester.getParser(Digester.java:786) at >> org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at >> org.apache.commons.digester.Digester.parse(Digester.java:1887) at >> org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) >> at >> org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) >> at >> org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) >> at >> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) >> at >> org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) >> at >> org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) >> at >> org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) >> at >> org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) >> at >> org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) >> at >> org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) >> at >> org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) >> at >> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) >> at >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at >> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) >> at >> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) >> at >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at >> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) >> at >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) >> at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at >> org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at >> org.apache.catalina.core.StandardService.start(StandardService.java:516) >> at >> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at >> org.apache.catalina.startup.Catalina.start(Catalina.java:566) at >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at >> java.lang.reflect.Method.invoke(Method.java:597) at >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >> >> >> thanks >> abhi >> On Thu, Feb 10, 2011 at 3:03 PM, adam pinder wrote: >> >> > >> > >> > i would start with the struts2 sample app, get it working then add >> > hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working >> > then add tiles2 and get that working - don't try and throw them all in >> > together then try to work out which one is causing the issue. >> > >> > > Date: Thu, 10 Feb 2011 14:53:52 +0530 >> > > Subject: Decent tutorial or working example of Hibernate 3 +
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
Hi, This link might be helpful to you.explore this by your own.It contains good examples :) http://www.mkyong.com/struts2/struts-2-hibernate-integration-example/ cheers !! On Thu, Feb 10, 2011 at 3:22 PM, wrote: > > Look on internet. It's a problem with the parser, you are using the wrong > version. I had the same problem and needed to change it using a JVM parameter. > Sent via BlackBerry from T-Mobile > > -Original Message- > From: abhishek jain > Date: Thu, 10 Feb 2011 15:12:36 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + > Tiles 2 on myeclipse > > the tiles is creating a problem with the following exception: > > Digester.getParser: java.lang.UnsupportedOperationException: This > parser does not support specification "null" version "null" at > javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) > at > org.apache.commons.digester.Digester.getFactory(Digester.java:534) at > org.apache.commons.digester.Digester.getParser(Digester.java:786) at > org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at > org.apache.commons.digester.Digester.parse(Digester.java:1887) at > org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) > at > org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) > at > org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) > at > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) > at > org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) > at > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) > at > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) > at > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) > at > org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) > at > org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) > at > org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at > org.apache.catalina.core.StandardService.start(StandardService.java:516) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > org.apache.catalina.startup.Catalina.start(Catalina.java:566) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:597) at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > > thanks > abhi > On Thu, Feb 10, 2011 at 3:03 PM, adam pinder wrote: > > > > > > > i would start with the struts2 sample app, get it working then add > > hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working > > then add tiles2 and get that working - don't try and throw them all in > > together then try to work out which one is causing the issue. > > > > > Date: Thu, 10 Feb 2011 14:53:52 +0530 > > > Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + > > Tiles 2 on myeclipse > > > From: abhishek.netj...@gmail.com > > > To: user@struts.apache.org > > > > > > Hi, > > > Can anyone forward me to a good tuto
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
Look on internet. It's a problem with the parser, you are using the wrong version. I had the same problem and needed to change it using a JVM parameter. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain Date: Thu, 10 Feb 2011 15:12:36 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse the tiles is creating a problem with the following exception: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digester.Digester.getFactory(Digester.java:534) at org.apache.commons.digester.Digester.getParser(Digester.java:786) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at org.apache.commons.digester.Digester.parse(Digester.java:1887) at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) thanks abhi On Thu, Feb 10, 2011 at 3:03 PM, adam pinder wrote: > > > i would start with the struts2 sample app, get it working then add > hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working > then add tiles2 and get that working - don't try and throw them all in > together then try to work out which one is causing the issue. > > > Date: Thu, 10 Feb 2011 14:53:52 +0530 > > Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + > Tiles 2 on myeclipse > > From: abhishek.netj...@gmail.com > > To: user@struts.apache.org > > > > Hi, > > Can anyone forward me to a good tutorial or a working example of > Hibernate > > 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in > > myeclipse or so, > > any simple skeleton will do, > > > > I tried my hand directly but cannt get through i get some exceptions > > everytime i add struts and hibernate with tiles capabilities in > myeclipse. I > > think some libraries default in Myeclipse are conflicting each other . > >
Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse
the tiles is creating a problem with the following exception: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digester.Digester.getFactory(Digester.java:534) at org.apache.commons.digester.Digester.getParser(Digester.java:786) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at org.apache.commons.digester.Digester.parse(Digester.java:1887) at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) thanks abhi On Thu, Feb 10, 2011 at 3:03 PM, adam pinder wrote: > > > i would start with the struts2 sample app, get it working then add > hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working > then add tiles2 and get that working - don't try and throw them all in > together then try to work out which one is causing the issue. > > > Date: Thu, 10 Feb 2011 14:53:52 +0530 > > Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + > Tiles 2 on myeclipse > > From: abhishek.netj...@gmail.com > > To: user@struts.apache.org > > > > Hi, > > Can anyone forward me to a good tutorial or a working example of > Hibernate > > 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in > > myeclipse or so, > > any simple skeleton will do, > > > > I tried my hand directly but cannt get through i get some exceptions > > everytime i add struts and hibernate with tiles capabilities in > myeclipse. I > > think some libraries default in Myeclipse are conflicting each other . > > > > thanks > > -- > > Thanks and kind Regards, > > Abhishek jain > >
RE: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse
i would start with the struts2 sample app, get it working then add hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working then add tiles2 and get that working - don't try and throw them all in together then try to work out which one is causing the issue. > Date: Thu, 10 Feb 2011 14:53:52 +0530 > Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles > 2 on myeclipse > From: abhishek.netj...@gmail.com > To: user@struts.apache.org > > Hi, > Can anyone forward me to a good tutorial or a working example of Hibernate > 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in > myeclipse or so, > any simple skeleton will do, > > I tried my hand directly but cannt get through i get some exceptions > everytime i add struts and hibernate with tiles capabilities in myeclipse. I > think some libraries default in Myeclipse are conflicting each other . > > thanks > -- > Thanks and kind Regards, > Abhishek jain
Re: cannot run a simple struts application, server start error - myeclipse
This one also relates with the XML parser, What are you going to do in your application, how it interacts with a parser? On Thu, Feb 10, 2011 at 2:49 PM, abhishek jain wrote: > hi > here is another error: > cannt understand what it is: > > Digester.getParser: java.lang.UnsupportedOperationException: This > parser does not support specification "null" version "null" at > javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) > at > org.apache.commons.digester.Digester.getFactory(Digester.java:534) at > org.apache.commons.digester.Digester.getParser(Digester.java:786) at > org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at > org.apache.commons.digester.Digester.parse(Digester.java:1887) at > org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) > at > org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) > at > org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) > at > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) >at > org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) >at > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) > at > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) > at > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) > at > org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) > at > org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) > at > org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) >at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at > org.apache.catalina.core.StandardService.start(StandardService.java:516) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at > org.apache.catalina.startup.Catalina.start(Catalina.java:566) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:597)at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > > > Please help > > thanks > abhishek > > On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake >wrote: > > > It seems there is another xml parser is conflicting. Check the lib folder > > of > > the tomcat, there should be another Xml parser there. Remove it, and > > replace > > the parser in your application. > > On 8 Feb 2011 17:38, "abhishek jain" wrote: > > > hi, > > > I noticed if i remove the xerces-2.6.2.jar file and restart the server, > > it > > > works fine, dont know why, > > > Pl. advice the reason and will it have any affect on Hibernate thing in > > the > > > project, > > > > > > thanks > > > abhishek > > > > > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain < > > abhishek.netj...@gmail.com > > >wrote: > > > > > >> hi, > > >> thanks for replying, > > >> in myeclipse,if i do contrl + click on the struts-default.xml in > > >> struts.xml, it opens the file, > > >> hence it seems this is also not the error, > > >> thanks > > >> abhishek > > >> > > >> > > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI > > wrote: > > >> > > >>> You should have problem in your classpath, it looks for a file named > > >>> struts-default in your classpath, so in your classes
RE: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse
make sure you only add additional jars into the web app itself and avoid (mostly) adding jars into common library folders. i use struts2 and hibernate3 but not tiles and have no problems like yours. adam > Date: Thu, 10 Feb 2011 14:53:52 +0530 > Subject: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles > 2 on myeclipse > From: abhishek.netj...@gmail.com > To: user@struts.apache.org > > Hi, > Can anyone forward me to a good tutorial or a working example of Hibernate > 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in > myeclipse or so, > any simple skeleton will do, > > I tried my hand directly but cannt get through i get some exceptions > everytime i add struts and hibernate with tiles capabilities in myeclipse. I > think some libraries default in Myeclipse are conflicting each other . > > thanks > -- > Thanks and kind Regards, > Abhishek jain
Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse
Hi, Can anyone forward me to a good tutorial or a working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in myeclipse or so, any simple skeleton will do, I tried my hand directly but cannt get through i get some exceptions everytime i add struts and hibernate with tiles capabilities in myeclipse. I think some libraries default in Myeclipse are conflicting each other . thanks -- Thanks and kind Regards, Abhishek jain
Re: cannot run a simple struts application, server start error - myeclipse
hi here is another error: cannt understand what it is: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digester.Digester.getFactory(Digester.java:534) at org.apache.commons.digester.Digester.getParser(Digester.java:786) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at org.apache.commons.digester.Digester.parse(Digester.java:1887) at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267) at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286) at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130) at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406) at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130) at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232) at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198) at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163) at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90) at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68) at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Please help thanks abhishek On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake wrote: > It seems there is another xml parser is conflicting. Check the lib folder > of > the tomcat, there should be another Xml parser there. Remove it, and > replace > the parser in your application. > On 8 Feb 2011 17:38, "abhishek jain" wrote: > > hi, > > I noticed if i remove the xerces-2.6.2.jar file and restart the server, > it > > works fine, dont know why, > > Pl. advice the reason and will it have any affect on Hibernate thing in > the > > project, > > > > thanks > > abhishek > > > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain < > abhishek.netj...@gmail.com > >wrote: > > > >> hi, > >> thanks for replying, > >> in myeclipse,if i do contrl + click on the struts-default.xml in > >> struts.xml, it opens the file, > >> hence it seems this is also not the error, > >> thanks > >> abhishek > >> > >> > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI > wrote: > >> > >>> You should have problem in your classpath, it looks for a file named > >>> struts-default in your classpath, so in your classes directory can you > >>> check > >>> if you have this file or not, another alternative, check your > >>> classpathconfiguration in your eclipse . > >>> > >>> > >>> > >>> 2011/2/8 abhishek jain > >>> > >>> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI > >>> wrote: > >>> > > >>> > > Hi, > >>> > > > >>> > > May be you dont have well configure your application context. >