Re: I can't integrate Spring with GWT! What can I do?
GWT has a bug in Hosted mode with Spring and Hibernate: http://code.google.com/p/google-web-toolkit/issues/detail?id=3496 On Mar 9, 12:49 am, Renan Wuo wrote: > Hi everybody > > I'm working on a project that's currently using: > GWT - 2.0.4 > Spring - 3.0.5 > Hibernate - 3.3.1 > Maven - 2.2.1 > Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 > > Whenever I try to run my app using the Jetty server I got this error: > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read > schema document 'http://www.springframework.org/schema/aop/spring- > aop-2.5.xsd', because 1) could not find the document; 2) the document > could not be read; 3) the root element of the document is not > . > > This error concern this part of my XML configuration file: > > > http://www.springframework.org/schema/beans"; > xmlns:aop="http://www.springframework.org/schema/aop"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > > http://www.springframework.org/schema/aop > > http://www.springframework.org/schema/aop/spring-aop-2.5.xsd";> > > Does anyone got any idea of what's going on ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I can't integrate Spring with GWT! What can I do?
Try put this in your file. Remove the schema that you don't need: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:context=" http://www.springframework.org/schema/context"; xmlns:mvc="http://www.springframework.org/schema/mvc"; xmlns:tx=" http://www.springframework.org/schema/tx"; xmlns:aop="http://www.springframework.org/schema/aop"; xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd";> Juan 2011/3/8 Renan Wuo > Thanks for the help. > > I do have access to the internet and the proxy configurations are ok. > > When I put the schema in the project this error is solved, but I got a > new error: > > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate NamespaceHandler for namespace > [http://www.springframework.org/schema/aop] > > > The thing is, this error occurs only when I try to run the app from > the Jetty server, if I use a Tomcat server, the app runs fine. > > > On 8 mar, 15:02, Juan Pablo Gardella > wrote: > > If you have internet in your machine where you work, verify if you behind > a > > proxy. The set the proxy in your IDE. If not you can unzip the schema and > > paste in your project. > > > > Or try with: > > > > > http://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.0.xsd > "> > > > > Juan > > > > 2011/3/8 Renan Wuo > > > > > Hi everybody > > > > > I'm working on a project that's currently using: > > > GWT - 2.0.4 > > > Spring - 3.0.5 > > > Hibernate - 3.3.1 > > > Maven - 2.2.1 > > > Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 > > > > > Whenever I try to run my app using the Jetty server I got this error: > > > > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read > > > schema document 'http://www.springframework.org/schema/aop/spring- > > > aop-2.5.xsd', because 1) could not find the document; 2) the document > > > could not be read; 3) the root element of the document is not > > > . > > > > > This error concern this part of my XML configuration file: > > > > > > > > http://www.springframework.org/schema/beans"; > > >xmlns:aop="http://www.springframework.org/schema/aop"; > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > >xsi:schemaLocation="http://www.springframework.org/schema/beans > > > > >http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > > > > >http://www.springframework.org/schema/aop > > > > >http://www.springframework.org/schema/aop/spring-aop-2.5.xsd";> > > > > > Does anyone got any idea of what's going on ? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to > google-web-toolkit@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I can't integrate Spring with GWT! What can I do?
Thanks for the help. I do have access to the internet and the proxy configurations are ok. When I put the schema in the project this error is solved, but I got a new error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/aop] The thing is, this error occurs only when I try to run the app from the Jetty server, if I use a Tomcat server, the app runs fine. On 8 mar, 15:02, Juan Pablo Gardella wrote: > If you have internet in your machine where you work, verify if you behind a > proxy. The set the proxy in your IDE. If not you can unzip the schema and > paste in your project. > > Or try with: > > http://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.0.xsd";> > > Juan > > 2011/3/8 Renan Wuo > > > Hi everybody > > > I'm working on a project that's currently using: > > GWT - 2.0.4 > > Spring - 3.0.5 > > Hibernate - 3.3.1 > > Maven - 2.2.1 > > Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 > > > Whenever I try to run my app using the Jetty server I got this error: > > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read > > schema document 'http://www.springframework.org/schema/aop/spring- > > aop-2.5.xsd', because 1) could not find the document; 2) the document > > could not be read; 3) the root element of the document is not > > . > > > This error concern this part of my XML configuration file: > > > > > http://www.springframework.org/schema/beans"; > > xmlns:aop="http://www.springframework.org/schema/aop"; > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > xsi:schemaLocation="http://www.springframework.org/schema/beans > > >http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > > >http://www.springframework.org/schema/aop > > >http://www.springframework.org/schema/aop/spring-aop-2.5.xsd";> > > > Does anyone got any idea of what's going on ? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I can't integrate Spring with GWT! What can I do?
If you have internet in your machine where you work, verify if you behind a proxy. The set the proxy in your IDE. If not you can unzip the schema and paste in your project. Or try with: http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd";> Juan 2011/3/8 Renan Wuo > Hi everybody > > I'm working on a project that's currently using: > GWT - 2.0.4 > Spring - 3.0.5 > Hibernate - 3.3.1 > Maven - 2.2.1 > Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 > > Whenever I try to run my app using the Jetty server I got this error: > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read > schema document 'http://www.springframework.org/schema/aop/spring- > aop-2.5.xsd', because 1) could not find the document; 2) the document > could not be read; 3) the root element of the document is not > . > > > This error concern this part of my XML configuration file: > > > http://www.springframework.org/schema/beans"; >xmlns:aop="http://www.springframework.org/schema/aop"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >xsi:schemaLocation="http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-2.5.xsd > > http://www.springframework.org/schema/aop > > http://www.springframework.org/schema/aop/spring-aop-2.5.xsd";> > > Does anyone got any idea of what's going on ? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I can't integrate Spring with GWT! What can I do?
Hi everybody I'm working on a project that's currently using: GWT - 2.0.4 Spring - 3.0.5 Hibernate - 3.3.1 Maven - 2.2.1 Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0 Whenever I try to run my app using the Jetty server I got this error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/aop/spring- aop-2.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . This error concern this part of my XML configuration file: http://www.springframework.org/schema/beans"; xmlns:aop="http://www.springframework.org/schema/aop"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd";> Does anyone got any idea of what's going on ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can't integrate spring with gwt
I am not sure if this is the correct way to do this for hosted mode, but i had to place contextConfigLocation classpath:org/personalsite/config/ applicationContext.xml org.springframework.web.context.ContextLoaderListener in the mywebapp\tomcat\webapps\root\war\web-inf\web.xml file On Apr 24, 2:18 pm, mabebe wrote: > Thanks... > > On Apr 24, 10:49 am, "Alejandro D. Garin" wrote: > > > Hi, > > > Try moving your applicationContext.xml to WEB-INF/applicationContext.xml > > > On Fri, Apr 24, 2009 at 10:38 AM, mabebe wrote: > > > > Hi i am having difficulty integrating spring with gwt. Below is my > > > code for my serviceImpl class...and where i think the error is > > > > @Override > > > public void init() throws ServletException { > > > super.init(); > > > ServletContext sc = this.getServletContext(); > > > > WebApplicationContext ctx = > > > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > > > returns a null pointer exception exception > > > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > > > } > > > > i have the following in my webapp web.xml file... > > > > > > > contextConfigLocation > > > > > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > > > > > > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
Thanks... On Apr 24, 10:49 am, "Alejandro D. Garin" wrote: > Hi, > > Try moving your applicationContext.xml to WEB-INF/applicationContext.xml > > On Fri, Apr 24, 2009 at 10:38 AM, mabebe wrote: > > > Hi i am having difficulty integrating spring with gwt. Below is my > > code for my serviceImpl class...and where i think the error is > > > @Override > > public void init() throws ServletException { > > super.init(); > > ServletContext sc = this.getServletContext(); > > > WebApplicationContext ctx = > > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > > returns a null pointer exception exception > > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > > } > > > i have the following in my webapp web.xml file... > > > > > contextConfigLocation > > > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
Thanks... On Apr 24, 10:49 am, "Alejandro D. Garin" wrote: > Hi, > > Try moving your applicationContext.xml to WEB-INF/applicationContext.xml > > On Fri, Apr 24, 2009 at 10:38 AM, mabebe wrote: > > > Hi i am having difficulty integrating spring with gwt. Below is my > > code for my serviceImpl class...and where i think the error is > > > @Override > > public void init() throws ServletException { > > super.init(); > > ServletContext sc = this.getServletContext(); > > > WebApplicationContext ctx = > > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > > returns a null pointer exception exception > > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > > } > > > i have the following in my webapp web.xml file... > > > > > contextConfigLocation > > > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
Hi, Try moving your applicationContext.xml to WEB-INF/applicationContext.xml On Fri, Apr 24, 2009 at 10:38 AM, mabebe wrote: > > Hi i am having difficulty integrating spring with gwt. Below is my > code for my serviceImpl class...and where i think the error is > > @Override >public void init() throws ServletException { >super.init(); >ServletContext sc = this.getServletContext(); > >WebApplicationContext ctx = > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > returns a null pointer exception exception >reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); >} > > > i have the following in my webapp web.xml file... > > >contextConfigLocation > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
take look at http://www.leeonsoft.com/mail/Mail.html for an example. Jim Xie http://www.leeonsoft.com For GWT ORM http://code.google.com/p/dreamsource-orm/downloads/list On Apr 24, 9:54 am, Salvador Diaz wrote: > Please use the search in the forum, this question has just been > answered (it's even in the first page of the discussions list) > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > Hope that helps, > > Salvador > > On Apr 24, 3:38 pm, mabebe wrote: > > > > > Hi i am having difficulty integrating spring with gwt. Below is my > > code for my serviceImpl class...and where i think the error is > > > @Override > > public void init() throws ServletException { > > super.init(); > > ServletContext sc = this.getServletContext(); > > > WebApplicationContext ctx = > > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > > returns a null pointer exception exception > > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > > } > > > i have the following in my webapp web.xml file... > > > > > contextConfigLocation > > > > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > - Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't integrate spring with gwt
Please use the search in the forum, this question has just been answered (it's even in the first page of the discussions list) http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d672bd0bcd9fc917# Hope that helps, Salvador On Apr 24, 3:38 pm, mabebe wrote: > Hi i am having difficulty integrating spring with gwt. Below is my > code for my serviceImpl class...and where i think the error is > > @Override > public void init() throws ServletException { > super.init(); > ServletContext sc = this.getServletContext(); > > WebApplicationContext ctx = > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > returns a null pointer exception exception > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > } > > i have the following in my webapp web.xml file... > > > contextConfigLocation > > > classpath:org/personalsite/config/applicationContext.xml > > > > > > org.springframework.web.context.ContextLoaderListener > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Can't integrate spring with gwt
Hi i am having difficulty integrating spring with gwt. Below is my code for my serviceImpl class...and where i think the error is @Override public void init() throws ServletException { super.init(); ServletContext sc = this.getServletContext(); WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(sc); <--- this returns a null pointer exception exception reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); } i have the following in my webapp web.xml file... contextConfigLocation classpath:org/personalsite/config/applicationContext.xml org.springframework.web.context.ContextLoaderListener --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---