Hi Leon, Leon Wang wrote: > Hi Marius, hi XWiki Developers, > > Thank you for your reply and add instructions to > http://dev.xwiki.org/xwiki/bin/view/Community/Debugging#HDebuggingtheWYSIWYGeditor > appreciated! In case you might miss the email which I replied. I sent this > again. >
> After I executed the start_xwiki.sh and start_wysiwyg_noserver_debug.sh, it > gives me new errors. It says: "_it_ gives me new errors" is too vague. You have to isolate the problem. First start the server (start_xwiki.sh) and check if it works fine (e.g. go to the home page, try to edit it, look in the console for errors). If it works fine then your problem is not here. Move to the next step. Run start_wysiwyg_noserver_debug.sh . > "[WARN] Unable to process [WARN] -> Just an warning. Focus on the errors first. Also, specifying where the warning is logged is an important detail.. It's not logged in the console where you start the server (start_xwiki.sh) for sure so it's not related to your XWiki Enterprise instance. > 'file:/home/freeleons/XWiki_Enterprise_2.1.1/war/WEB-INF/web.xml' for > servlet validation > javax.servlet.UnavailableException: Configuration problem > at > org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:298) > at > org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222) > at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:68) > at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:51) > at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:344) > at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) > at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) > at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)" The error follows. > > also it gives me a hint: > "[ERROR] Hint: Check that the type name > 'com.xpn.xwiki.wysiwyg.client.Wysiwyg' is really what you meant" This is just a hint. Look first for the real error. > Here is the visual: > http://picasaweb.google.com/lh/photo/arGtksR3nPM9-b-GbNOmsg?feat=directlink "Failure to load module 'xwe'" Your problem is strictly related to the way you run the WYSIWYG editor in hosted mode (start_wysiwyg_noserver_debug.sh). Did you follow what I said in my previous mail?.. I'll repeat: {quote} If you look inside start_wysiwyg_noserver.sh script you'll see that it starts the hosted mode (GWT 1.7, development mode in GWT 2.0) with some jars in its class path. Most of the jars are referenced from your local maven repository. Make sure you have them in your local maven repository. The easiest way to do this is by building the WYSIWYG modules. When you build a maven module its artifacts (a single jar usually) is published to your local maven repository. Also, make sure the variables defined at the beginning of start_wysiwyg_noserver.sh match your setup (e.g. GWT version, XE version, etc.) All this applies to start_wysiwyg_noserver_debug.sh too. {/quote} Did you checked if the jars referenced in your start_wysiwyg_noserver_debug.sh are available at the specified path (i.e. in your local maven repository)?.. > > When I made the change to the script (start_wysiwyg_noserver_debug.sh), > from: > "com.google.gwt.dev.HostedMode \ > -logLevel WARN \ > -style DETAILED \ > -noserver \ > -port 8080 \ > -startupUrl xwiki/$WYSIWYG_PATH/Wysiwyg.html \ > com.xpn.xwiki.wysiwyg.Wysiwyg" Don't change this line! It specifies the WYSIWYG GWT module descriptor which is found in the com.xpn.xwiki.wysiwyg package (and it has been there since a long time), not com.xpn.xwiki.wysiwyg.client as you changed. Please keep the original value. > > to > > "com.google.gwt.dev.HostedMode \ > -logLevel WARN \ > -style DETAILED \ > -noserver \ > -port 8080 \ > -startupUrl xwiki/$WYSIWYG_PATH/Wysiwyg.html \ > com.xpn.xwiki.wysiwyg.client.Wysiwyg" > > It will give me the error: > "[ERROR] Unable to find 'com/xpn/xwiki/wysiwyg/client/Wysiwyg.gwt.xml' on > your classpath; could be a typo, or maybe you forgot to include a classpath > entry for source?" > > Here is the screenshot of hierarchy of the XWiki Enterprise folder, > http://picasaweb.google.com/lh/photo/arGtksR3nPM9-b-GbNOmsg?feat=directlink > > Could you please give me some suggestions? Thank you! Again, check that you have the required jars specified in the start_wysiwyg_noserver_debug.sh . I really think this is you problem.. > > Could you please also tell me what "com.xpn.xwiki.wysiwyg.client.Wysiwyg" > for in the script below: http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#What_are_the_options_that_can_be_passed_to_hosted_mode Hope this helps, Marius > > -logLevel WARN \ > -style DETAILED \ > -noserver \ > -port 8080 \ > -startupUrl xwiki/$WYSIWYG_PATH/Wysiwyg.html \ > com.xpn.xwiki.wysiwyg.client.Wysiwyg > > Sincerely, > Jue Wang > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

