xml link defaults to localhost

28 views
Skip to first unread message

Michael Levy

unread,
Feb 25, 2011, 5:48:13 PM2/25/11
to eaditor
I followed the instructions #6 on http://code.google.com/p/eaditor/wiki/QuickstartInstallation
regarding changes to file_list.xsl so I can run this application from
my server.

On the home page, the 'html' link under 'View' works correctly, i.e.,
for the EAD named xxxxxx, the URL looks like:

http://myservername:8080/orbeon/ead/show/xxxxx

That's great. However, the xml view still links to 'localhost' not to
'myservername', i.e. it incorrectly tries to link to
http://localhost:8080/orbeon/exist/rest/db/eaditor/guides/xxxxx.xml

If I swap 'myservername' for 'localhost' it works.

Where can I configure the link to the xml file?

Thanks!

Ethan Gruber

unread,
Feb 28, 2011, 8:52:43 AM2/28/11
to ead...@googlegroups.com
Hi Michael,

There have been major changes to the application since the July beta release, and the documentation is out of date.  I would install the source code from subversion.

Install the the trunk:

svn checkout http://eaditor.googlecode.com/svn/trunk/ TOMCAT/webapps/resources/WEB-INF/resources/apps/ead

Then install the XBL components to their proper location in Orbeon:

svn checkout http://eaditor.googlecode.com/svn/trunk/xbl TOMCAT/webapps/resources/WEB-INF/resources/

The trunk code is functionally almost an official release, but there are some issues with the autosuggest of controlled vocabulary terms that I have not resolved since moving all of the form components to use XML Binding Language instead of being X-included into the form document.  I haven't worked on EADitor since December, but will pick it up at least half-time within the next few weeks as my new employer builds its electronic finding aid collection from scratch.

Ethan

Michael Levy

unread,
Feb 28, 2011, 10:05:15 AM2/28/11
to eaditor
Hi, thanks for responding. However, at this point I'm disoriented.

Under http://eaditor.googlecode.com/svn/trunk/ there is no tomcat,
no webapps or resources folders. Help? Thanks.

Ethan Gruber

unread,
Feb 28, 2011, 10:12:44 AM2/28/11
to ead...@googlegroups.com
What I mean to say is check out the trunk to a folder called "ead", replacing the one that is in the existing Orbeon apps directory on your server.  Orbeon is in your path_to_tomcat/webapps/

The ead folder goes into orbeon/WEB-INF/resources/apps/

Example: /usr/local/projects/eaditor/tomcat/webapps/orbeon/WEB-INF/resources/apps/ead on a Linux or MacOSX operating system.  The xbl folder would be checked out to /usr/local/projects/eaditor/tomcat/webapps/orbeon/WEB-INF/resources/xbl

Let me know if you still have problems.  Once I fix the autocomplete issues, I'm going to begin putting up war files onto google code that can more easily be deployed, as well as rewrite the documentation.

Ethan

Michael Levy

unread,
Feb 28, 2011, 10:30:57 AM2/28/11
to eaditor
Thanks! I think I have the files in the right place at this point. I
can see some of the UI improvements already.

The app was working previously based on the zip file. With this
latest I've got some RAM error at the moment. I have a "PermGen
space" error message, with "java.lang.OutOfMemoryError" Exception
class.

In the previous incarnation I had tried to set the CATALINA_OPTS as
per http://code.google.com/p/eaditor/wiki/QuickstartInstallation and
it actually wouldn't run at all. I'll have to experiment and tweak
the memory situation. This is running on CentOS 5.4, with some other
Tomcat and Solr apps. The server has 1.5 GB physical RAM.

Anyhow thanks for all your help. This looks like a really interesting
EAD editor application. It gets a lot of press. Maybe this
conversation here will help stimulate some more community activity and
discussion. :-)

Michael Levy

unread,
Feb 28, 2011, 12:18:02 PM2/28/11
to eaditor
I now am setting CATALINA_OPTS as below EADitor is working. (I had
not set it properly previously.)

CATALINA_OPTS="-server -XX:+UseConcMarkSweepGC -XX:
+CMSPermGenSweepingEnabled -XX:NewSize=64m -XX:MaxNewSize=64m -
XX:MaxPermSize=128m"

On http://code.google.com/p/eaditor/wiki/QuickstartInstallation it
shows "?=" after NewSize, MaxNewSize, and MaxPermSize. That caused a
JVM error, so I removed the question marks.

Ethan Gruber

unread,
Feb 28, 2011, 12:30:13 PM2/28/11
to ead...@googlegroups.com
Hi Michael,

The question mark was inserted for some reason by the wiki software that drives the Google Code site.  Is Tomcat installed via a package manager in CentOS or did you download the zipped file from Apache?  If installed from a package manager, there may be a more "correct" way of setting the java options in a Tomcat configuration file (as there is for Ubuntu).

Ethan

Michael Levy

unread,
Feb 28, 2011, 1:14:35 PM2/28/11
to eaditor
I installed Tomcat by downloading, not via a package manager.

Meanwhile with the current code, there are still quite a few places
where the links default to localhost.

Thanks,
Michael

Michael Levy

unread,
Mar 1, 2011, 1:35:39 PM3/1/11
to eaditor
Just an update on current progress. With yesterday's svn code
updated, I can see the new UI and some other changes.

At the current moment, the HTML view isn't working. I can browse for
the finding aid (currently there is only one) and I can see it in
http://myservername:8080/orbeon/ead/admin/

The XML view works fine, here:
http://myservername:8080/orbeon/ead/xml/XX-XX.XXXX (where that's
the finding aid name)
But the HTML view shows no contents; I only can see the UI skeleton,
with HOME BROWSE ADMIN but no page contents:
http://myservername:8080/orbeon/ead/show/XX-XX.XXXX
Maybe that's a side effect of the 'localhost' versus server name issue.

Ethan Gruber

unread,
Mar 1, 2011, 1:42:02 PM3/1/11
to ead...@googlegroups.com
It shouldn't be a side effect.  I've gotten EADitor to run on several servers in the past, aside from localhost, and I don't recall running into any significant issues after changing the URLs in file_list.xsl.  Could you attach your XML file?

Ethan
Reply all
Reply to author
Forward
0 new messages