[JBoss Seam] - GWT Remoting Example is not working
by sohil.shahï¼ jboss.com
OS: Linux Fedora Core 6
JVM: java version "1.5.0_11"
JBoss AS: 4.2.1.GA
Seam: 2.0.0.CR2
When trying to run the GWT/Remoting example included under examples/remoting/gwt, I am getting the following stack trace:
Note: the example is deployed using 'ant deploy' and the following URL:
http://localhost:8080/seam-gwt
| 11:02:10,190 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 28s:157ms
| 11:02:19,279 ERROR [[default]] Servlet.service() for servlet default threw exception
| java.lang.IllegalStateException: Cannot create a session after the response has been committed
| at org.apache.catalina.connector.Request.doGetSession(Request.java:2284)
| at org.apache.catalina.connector.Request.getSession(Request.java:2066)
| at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
| at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:87)
| at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:25)
| at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:80)
| at org.jboss.seam.Component.newInstance(Component.java:1980)
| at org.jboss.seam.Component.getInstance(Component.java:1878)
| at org.jboss.seam.Component.getInstance(Component.java:1857)
| at org.jboss.seam.Component.getInstance(Component.java:1834)
| at org.jboss.seam.web.Session.getInstance(Session.java:122)
| at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:375)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:132)
| at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
| at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095012#4095012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095012
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Re: Steps for building JBoss from source inside eclipse
by SunSpider
Assumptions: Target is JBossAS05_Beta2
Prerequisite:
a) Download jboss-5.0.0.Beta2-src.tar.gz, since you need third party libs.
b) Have JBossIDE 2.0 installed.
Now start:
1.From Eclipse menu choose New>Project>Java Project>Create Project From Existing Source. Here you have to use ?thirdparty? as project name, case sensitive. Browse to thirdparty directory under the unpacked jboss-5.0.0.Beta2 parent directory and choose it for the existing source. Finish it, and you will get a project named thirdparty.
2.Create an new workspace for eclipse. Then ln -s ?path to jboss-5.0.0.Beta2 thirdparty directory?. Then you' ll get an link named ?thirdparty?to the directory where all dependencies lived.
3.Add a new SVN repository ?http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_5_0_0_Beta2/? to eclipse. (SVN plugin for eclipse can be found through the old ?HowToBuildJBoss? topic on jboss wiki). Pull out all sub-modules you need to examine. Check the project module dependencies, and pull out all those depended modules too.
4.Change to those newly pulled out projects under the workspace. And build them using command line ant separately. Pay attention to project dependencies showed inside eclipse Project>Properties>Java Build Path>Project page. Depended project should be build first. Finally refresh projects inside eclipse, and create a new project set, including all your pulled out project. Then build the project set.
5.Now you can play with your source code, and enjoys eclipse's short cut key!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095007#4095007
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095007
18Â years, 9Â months