Jason Lytle wrote:
> Questions about installing xxe webstart
> 
> I'm installing on an open suse 11.1 server that has no UI (no kde or gnome 
> installed) - command line only.
> 
> The pre-requisites for xxe I found here:
> http://www.xmlmind.com/xmleditor/_distrib/doc/user/install.html
> 
> I find it strange that there is no mention of X11 or apache in this section, 
> is there a reason for that? There are no prerequisites listed for the 
> webstart instructions.

In principle, you don't need X11 or (specifically) Apache. Any HTTP
server will do.




> I followed these directions for install:
> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/deploy_webstart_example.html
> 
> 
> problem #1: when I attempt to run xxe from the linux server side I get this:
> 
> /usr/local/xxe/bin # ./xxe
> internal error: cannot create application: 
> java.lang.reflect.InvocationTargetException
> +---------------------------------------
> | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> | 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> | 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> | java.lang.reflect.Method.invoke(Method.java:597)
> | com.xmlmind.xmleditapp.start.Start.initializeApp(Start.java:634)
> | com.xmlmind.xmleditapp.start.Start.start(Start.java:386)
> | com.xmlmind.xmleditapp.start.Start.main(Start.java:658)
> +---------------------------------------
> CAUSE:
> java.awt.HeadlessException:
> No X11 DISPLAY variable was set, but this program performed an operation 
> which requires it.
> +---------------------------------------
> | java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
> | java.awt.Window.<init>(Window.java:431)
> | java.awt.Frame.<init>(Frame.java:403)
> | javax.swing.JFrame.<init>(JFrame.java:207)
> | 
> com.xmlmind.xmleditapp.app.ApplicationBase.createFrame(ApplicationBase.java:825)
> | 
> com.xmlmind.xmleditapp.app.ApplicationBase.createGUI(ApplicationBase.java:793)
> | com.xmlmind.xmleditapp.kit.App.doInitialize1d(App.java:609)
> | 
> com.xmlmind.xmleditapp.app.ApplicationBase.doInitialize1(ApplicationBase.java:373)
> | com.xmlmind.xmleditapp.kit.App.doInitialize(App.java:562)
> | com.xmlmind.xmleditapp.kit.App.initialize(App.java:546)
> | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> | 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> | 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> | java.lang.reflect.Method.invoke(Method.java:597)
> | com.xmlmind.xmleditapp.start.Start.initializeApp(Start.java:634)
> | com.xmlmind.xmleditapp.start.Start.start(Start.java:386)
> | com.xmlmind.xmleditapp.start.Start.main(Start.java:658)
> +---------------------------------------
> 
> Question #1: why do I need X11 on a headless server? Is this truly necessary 
> to run? It's not clear in the docs that an xxe process should be running on 
> the server. I installed all available X11 components but I still get the same 
> error. What do I need for this to run? Does this even need to run?
> 

You don't need to run *XXE*, a graphical application, on the Linux
server. We recommend to do that just to test the installation. However
it is no strictly needed.

You just need to run the *deploywebstart* command-line tool. And, in
principle (we have never tested that), the deploywebstart command-line
tool does not need X11 in order to run.

It works like this:

[1] Install  XMLmind XML Editor on the server used to deploy the
application using Java Web Start.

[2] Install all the add-ons you need in XXE_install_dir/addon/ (not in
XXE_user_preferences_dir/addon/ !)

Check "Install add-ons in XXE installation directory"
(Options|Preferences, Install add-ons section) to force this behavior.
See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#installAddonsOptions

(You can also download all the add-ons you need from
http://www.xmlmind.com/xmleditor/addons.shtml and from
http://www.xmlmind.com/xmleditor/_usercontrib/index.shtml and then unzip
them manually in XXE_install_dir/addon/)

[3] Run XXE_install_dir/bin/deploywebstart.

More information in "Deploying XXE using Java? Web Start, a step by step
description" --
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/deploy_webstart_example.html



> problem #2: the instructions say to set this up in apache:
> <Directory /usr/local/xxe/>
>   AllowOverride None
>   Order Deny,Allow
>   Deny from All
>   Allow from all
> 
>   Options Indexes Includes
> </Directory>
> Alias /xxe /usr/local/xxe/
> 
> This doesn't work - I get a directory listing of the contents of the 
> /usr/local/xxe dir. If I then click on the webstart dir, I get the proper 
> page however when I click on "Launch XMLmind XML Editor" button, I get a file 
> not found for xxe.jnlp but the path is correct. if I use this entry in apache 
> instead it all works:
> <Directory /usr/local/xxe/>
>   AllowOverride None
>   Order Deny,Allow
>   Deny from All
>   Allow from all
> 
>   Options Indexes Includes
> </Directory>
> Alias /xxe /usr/local/xxe/
> 
> Question #2: what am I doing wrong that the instructions don't work for this? 
> Could this be related to problem #1?

The above snippet is just an example. We never pretended that it would
work simply by copying it verbatim and then pasting it to your Apache
configuration file.

My guess is that is does not work because the files generated by
deploywebstart are not found in /usr/local/xxe/.

Here's a copy of the configuration I use on my own machine:
---
<Directory /home/hussein/src/4xxe/webstart>
  AllowOverride None
  Order Deny,Allow
  Deny from All
  Allow from 127.0.0 192.168.1

  Options Indexes SymLinksIfOwnerMatch Includes
</Directory>
Alias /xxe /home/hussein/src/4xxe/webstart
---

It works because:

[1] I always use the default codebase of deploywebstart:
"http://jazz/xxe"; on my machine. That's for the /xxe part in the Alias.

[2] deploywebstart indeed generates all its files in
/home/hussein/src/4xxe/webstart/. That's for the
/home/hussein/src/4xxe/webstart part in the Alias.

Note that you can copy what's generated in XXE_install_dir/webstart/
anywhere you want, for example to
/usr/local/xxe/.



> 
> 
> Problem #3: the xml editor opens but I don't see menu items that are 
> referenced in the docs and some are grayed-out. I don't see these at all 
> ">Options>options", ">Options>install addons", ">Options>preferences>install 
> addons". I see this menu but all options are grayed-out: ">Options>Customize 
> Configuration" all options in sub menu are grayed-out.
> 
> Question #3: we have a user here that is familiar with the editor and they 
> are telling me these things should be visible/available. I have checked 
> ownership and permissions on the filesystem of the server and all is allowed 
> so it doesn't seem to be permissions-based problem. Could this also be 
> related to problem #1?
> 

Two ways to reveal hidden menu items:

* As explained above, install the add-ons you need on the Java Web Start
server prior to running deploywebstart.

* Use Options|Preferences, General|Features section and check the
``features'' you need. More information in
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#featuresOptions




> Java version on server:
> /usr/local/xxe/bin # java -version
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
> 
> Any help/guidance/advice/suggestions are very welcome!
> 



Jason Lytle also wrote:
> Sorry I made a typo below for problem #2
> 
> I meant to say that this entry works for me rather than the one in the 
> documentation:
> <Directory /usr/local/xxe/webstart/>
>   AllowOverride None
>   Order Deny,Allow
>   Deny from All
>   Allow from all
> 
>   Options Indexes Includes
> </Directory>
> Alias /xxe /usr/local/xxe/webstart/
> 
> 
> 


Reply via email to