struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi Lu <em...@encs.concordia.ca>
Subject Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse
Date Thu, 10 Feb 2011 14:31:29 GMT
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
> <nuwan.arambage@gmail.com>  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,<jlmagc@gmail.com>  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<abhishek.netjain@gmail.com>
>>> Date: Thu, 10 Feb 2011 15:12:36
>>> To: Struts Users Mailing List<user@struts.apache.org>
>>> Reply-To: "Struts Users Mailing List"<user@struts.apache.org>
>>> 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<apinder@hotmail.co.uk>  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.netjain@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
>>>>
>>>>
>>>
>>
>>
>>
>> --
>>   Fail again. Fail better
>>
>> With Regards ,
>> Nuwan  Arambage
>>
>
>
>


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message