Hi, I try to save a Java- object to the context with groovy: <% test=context.getContext().get("test"); if(test==null) println "test is null" else println "test is not null" context.getContext().put("test",new Object()); %> If you reload the page the object should be in the context and the output should be "test is not null". But unfortunately I get "test is null". I also tried it with the Servlet-Context like this: <% scontext=context.getRequest().getSession().getServletContext(); test=scontext.get("test"); if(test==null) println "test is null" else println "test is not null" scontext.put("test",new Object()) %> Then I get an exception: java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade This class is in the catalina.jar which is located in tomcat/server/lib and the documentation of tomcat says: These classes and resources are TOTALLY invisible to web applications. I copied catalina.jar to WEB-INF/lib but then I get a ClassCastException: java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade I guess this is because of different ClassLoaders. How can I save a Java-Object to a session? Thanks Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6170318 Sent from the XWiki- Users forum at Nabble.com.
Hi Barbara, On 9/6/06, bkrausz <[email protected]> wrote:
Hi,
I try to save a Java- object to the context with groovy:
<% test=context.getContext().get("test"); if(test==null) println "test is null" else println "test is not null" context.getContext().put("test",new Object()); %>
If you reload the page the object should be in the context and the output should be "test is not null". But unfortunately I get "test is null".
No it's normal. :-)
I also tried it with the Servlet-Context like this:
<% scontext=context.getRequest().getSession().getServletContext(); test=scontext.get("test"); if(test==null) println "test is null" else println "test is not null" scontext.put("test",new Object()) %>
Then I get an exception: java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade
This class is in the catalina.jar which is located in tomcat/server/lib and the documentation of tomcat says: These classes and resources are TOTALLY invisible to web applications. I copied catalina.jar to WEB-INF/lib but then I get a ClassCastException:
java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade
I guess this is because of different ClassLoaders.
How can I save a Java-Object to a session?
And here is the code fixed : <% scontext=context.getRequest().getSession().getServletContext(); test=scontext.getAttribute("test"); if(test==null) println "test is null" else println "test is not null" scontext.setAttribute("test",new Object()) %> jeremi -- jeremi
And here is the code fixed : <% scontext=context.getRequest().getSession().getServletContext(); test=scontext.getAttribute("test"); if(test==null) println "test is null" else println "test is not null" scontext.setAttribute("test",new Object()) %>
Yes, you're right. It must be scontext.setAttribute("test",new Object()) instead of put(). But that't not the problem. I always get NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade or when I copy catalina.jar to WEB-INF/lib I get a ClassCastException because of different ClassLoaders. Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6225830 Sent from the XWiki- Users forum at Nabble.com.
Hi, Why you wants to copy this file here? jeremi On 9/9/06, bkrausz <[email protected]> wrote:
And here is the code fixed : <% scontext=context.getRequest().getSession().getServletContext(); test=scontext.getAttribute("test"); if(test==null) println "test is null" else println "test is not null" scontext.setAttribute("test",new Object()) %>
Yes, you're right. It must be scontext.setAttribute("test",new Object()) instead of put(). But that't not the problem. I always get NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade or when I copy catalina.jar to WEB-INF/lib I get a ClassCastException because of different ClassLoaders.
Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6225830 Sent from the XWiki- Users forum at Nabble.com.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
jeremi joslin wrote:
Hi, Why you wants to copy this file here?
jeremi
Because I get an NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade This class is in the catalina.jar which is located in tomcat/server/lib and the documentation of tomcat says: These classes and resources are TOTALLY invisible to web applications. I copied catalina.jar to WEB-INF/lib but then I get a ClassCastException: java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6231558 Sent from the XWiki- Users forum at Nabble.com.
Hi, I think it's another problem. Do you have this message at the startup? can you send me the full stacktrace. jeremi On 9/10/06, bkrausz <[email protected]> wrote:
jeremi joslin wrote:
Hi, Why you wants to copy this file here?
jeremi
Because I get an NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade
This class is in the catalina.jar which is located in tomcat/server/lib and the documentation of tomcat says: These classes and resources are TOTALLY invisible to web applications. I copied catalina.jar to WEB-INF/lib but then I get a ClassCastException:
java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade
Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6231558 Sent from the XWiki- Users forum at Nabble.com.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
jeremi joslin wrote:
Hi, I think it's another problem. Do you have this message at the startup? can you send me the full stacktrace.
No, I get this message when viewing the page which looks like <% scontext=context.getRequest().getSession().getServletContext(); %> And I just get the message java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade. There's nothing in catalina.out Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6260874 Sent from the XWiki- Users forum at Nabble.com.
I tried, it's working fine for me. what is your version of tomcat? jeremi On 9/12/06, bkrausz <[email protected]> wrote:
jeremi joslin wrote:
Hi, I think it's another problem. Do you have this message at the startup? can you send me the full stacktrace.
No, I get this message when viewing the page which looks like
<% scontext=context.getRequest().getSession().getServletContext(); %>
And I just get the message java.lang.ClassCastException: org.apache.catalina.session.StandardSessionFacade. There's nothing in catalina.out
Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6260874 Sent from the XWiki- Users forum at Nabble.com.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
jeremi joslin wrote:
I tried, it's working fine for me. what is your version of tomcat?
Oh, really? You copied catalina.jar to WEB-INF/lib and it works? I tried it with the newest version of tomcat 5.5.17. But I always get this ClassCastException. Perhaps I should reinstall xwiki and all these things. Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6262006 Sent from the XWiki- Users forum at Nabble.com.
No, i didn't copy it.there is no need to do it. I just tried on my installation. I think it's your tomcat or your jdk who have problems try with a fresh installation of both. jeremi On 9/12/06, bkrausz <[email protected]> wrote:
jeremi joslin wrote:
I tried, it's working fine for me. what is your version of tomcat?
Oh, really? You copied catalina.jar to WEB-INF/lib and it works? I tried it with the newest version of tomcat 5.5.17. But I always get this ClassCastException. Perhaps I should reinstall xwiki and all these things. Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6262006 Sent from the XWiki- Users forum at Nabble.com.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
jeremi joslin wrote:
No, i didn't copy it.there is no need to do it. I just tried on my installation.
I think it's your tomcat or your jdk who have problems try with a fresh installation of both.
Häh? I don't understand this. I've reinstalled tomcat and xwiki but it doesn't work. Here's the full stacktrace when I don't copy catalina.jar to WEB-INF/lib Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Wrapped Exception: java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade at gjdk.org.apache.catalina.session.StandardSessionFacade_GroovyReflector.invoke(StandardSessionFacade_GroovyReflector.java) at groovy.lang.MetaMethod.invoke(MetaMethod.java:110) at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1395) at groovy.lang.MetaClass.invokeMethod(MetaClass.java:318) at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:143) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:84) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNoArgumentsMethod(ScriptBytecodeAdapter.java:136) at Script1.run(Script1.groovy:3) at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.writeTo(GroovyTemplateEngine.java:255) at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.toString(GroovyTemplateEngine.java:268) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.evaluate(XWikiGroovyRenderer.java:94) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.render(XWikiGroovyRenderer.java:128) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:116) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93) at com.xpn.xwiki.render.XWikiRenderingEngine.renderDocument(XWikiRenderingEngine.java:85) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:220) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:151) 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:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:223) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:125) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) and in catalina.out: 15:40:36,415 WARN http-8080-Processor23 RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view' org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:223) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:125) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6266491 Sent from the XWiki- Users forum at Nabble.com.
Hi, have you done the same with the jdk? jeremi On 9/12/06, bkrausz <[email protected]> wrote:
jeremi joslin wrote:
No, i didn't copy it.there is no need to do it. I just tried on my installation.
I think it's your tomcat or your jdk who have problems try with a fresh installation of both.
Häh? I don't understand this. I've reinstalled tomcat and xwiki but it doesn't work. Here's the full stacktrace when I don't copy catalina.jar to WEB-INF/lib
Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
java.lang.NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade at gjdk.org.apache.catalina.session.StandardSessionFacade_GroovyReflector.invoke(StandardSessionFacade_GroovyReflector.java) at groovy.lang.MetaMethod.invoke(MetaMethod.java:110) at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1395) at groovy.lang.MetaClass.invokeMethod(MetaClass.java:318) at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:143) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:84) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNoArgumentsMethod(ScriptBytecodeAdapter.java:136) at Script1.run(Script1.groovy:3) at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.writeTo(GroovyTemplateEngine.java:255) at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.toString(GroovyTemplateEngine.java:268) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.evaluate(XWikiGroovyRenderer.java:94) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.render(XWikiGroovyRenderer.java:128) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:116) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93) at com.xpn.xwiki.render.XWikiRenderingEngine.renderDocument(XWikiRenderingEngine.java:85) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:220) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:151) 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:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:223) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:125) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)
and in catalina.out:
15:40:36,415 WARN http-8080-Processor23 RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view' org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception class java.lang.NoClassDefFoundError : org/apache/catalina/session/StandardSessionFacade at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:223) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:125) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87) at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:219) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)
-- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6266491 Sent from the XWiki- Users forum at Nabble.com.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
jeremi joslin wrote:
Hi, have you done the same with the jdk?
Usually I use java 5. But I tried 1.4.2 (Is it ok to write in catalina.sh JAVA_HOME=/usr/lib/jvm/java_1.4.2?) and also some versions of tomcat: 5.5.17, 5.5.9 and 5.0.28. I don't know why it doens't work but I need it. Is there another possibility to store Java objects so that I can use it in one session? I have an object which connects to a repository. But it should do that only once. So I wanted to store it in the context. Thanks Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6280971 Sent from the XWiki- Users forum at Nabble.com.
jeremi joslin wrote:
Hi, have you done the same with the jdk?
I've found that it could be a problem with groovy's reflection (http://permalink.gmane.org/gmane.comp.lang.groovy.user/2029). So I tried <% groovy.lang.MetaClass.setUseReflection(true) scontext=context.getRequest().getSession().getServletContext(); %> But this didn't work either. Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6281287 Sent from the XWiki- Users forum at Nabble.com.
participants (2)
-
bkrausz -
jeremi joslin