Hi Leon,
Leon Wang wrote:
Hi Marius,
I think I know what is wrong with this error. For your reference: "And this
time the error says:"$wnd[ab].getCommandManager is not a function.Please see
the screenshot:
http://picasaweb.google.com/lh/photo/wLOJbhbvl0xZe1ZWshA5wg?feat=directlink "
I think this API is not included in the Xwiki 2.02 release. I made a wrong
assumption.
Indeed,
http://jira.xwiki.org/jira/browse/XWIKI-4519 specifies this. The
changes will be included in the 2.0.3 and 2.1M1 releases.
Now I downloaded the source code that contains your api. And I copied the
gwt, gwt-dom, wysiwyg jar file to the tomcat/webapps/xwiki/lib/ folder. I
Did you download the source code or the jars? I hope you know you don't
have to build these modules for yourself (unless you make some changes).
You can just download the snapshots from
http://maven.xwiki.org/snapshots/ .
Back-porting the latest WYSIWYG editor snapshot to a previous XE version
is not always easy. Overwriting the xwiki-web-wysiwyg jar in the lib
directory is not enough. You have to at least update the client side
(resources/js/xwiki/wysiwyg/xwe directory). Then the server side (the
jar) depends on various XWiki modules (like core, rendering, bridge)
which sometimes need to be updated too. Also, the editor declares some
servlets and servlet filters in web.xml so this needs to be checked too.
Finally velocity templates like macros.vm and wysiwyginput.vm need to be
synchronized too.
Why don't you integrate your tree in the latest XE snapshot? At least to
see if it works well. 2.0.3 will be released next week.
reload tomcat it would not startup. I looked the log
file, it says: Caused
by: java.lang.ClassNotFoundException: org.xwiki.bridge.AttachmentNameFactory
Do you have the xwiki-core-bridge jar in the lib directory? Is the
AttachmentNameFactory class included in the jar? What version of XE do
you use? This class was added in 2.0RC1.
Marius
Here is the whole error stack:
Oct 27, 2009 5:37:27 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.xwiki.container.servlet.XWikiServletContextListener
java.lang.NoClassDefFoundError: Lorg/xwiki/bridge/AttachmentNameFactory;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at
org.xwiki.component.internal.ReflectionUtils.getAllFields(ReflectionUtils.java:45)
at
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:108)
at
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:74)
at
org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:101)
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:69)
at
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:52)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.xwiki.bridge.AttachmentNameFactory
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 29 more
Oct 27, 2009 5:37:27 PM org.apache.catalina.core.StandardContext
listenerStop
SEVERE: Exception sending context destroyed event to listener instance of
class org.xwiki.container.servlet.XWikiServletContextListener
java.lang.NullPointerException
at
org.xwiki.container.servlet.XWikiServletContextListener.contextDestroyed(XWikiServletContextListener.java:107)
at
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4474)
at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Could you give me some ideas?
Thank you!
-Leon
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs