Archives for: December 2010, 07

07/12/10

Permalink 03:26:10 pm, by mholmes, 187 words, 119 views   English (CA)
Categories: R & D, Activity log, Documentation; Mins. worked: 240

Working Cocoon+eXist+FOP 1.0 build script

I've refined the build a bit to add a couple of things we need, and modified some of RVDB's preferences to match our own; there will probably be some more of this work to do. I've also written a tiny test site that we can use to quickly confirm that everything is working. And it is working! We now have what looks like a reliable build script that can be run any time. We should run it regularly (once a month?) and archive the builds, so that we have the potential to roll things back if a future build goes bad. Next steps:

  • Archive this build.
  • Add steps to the script for copying the build webapp to my local Tomcat, copying the test site into it, and running Tomcat.
  • Add tests to the test site for accented characters (display, submission from forms, and submission through GET), to ensure that UTF-8 encoding is working.
  • Test the new build with full working sites (Mariage and Moses). The latter is a good test of indexing and Lucene search with Unicode.
  • Look at the Analyzer patch, and see if it works.
Permalink 10:58:42 am, by Greg, 40 words, 210 views   English (CA)
Categories: Documentation, Documentation, Documentation; Mins. worked: 0

Access to SAN on MacOS

To access taporshare on the MacOS:
command-k to open the dialogue
URI - smb://taporshare.tapor.uvic.ca/<sharename>
Username - uvic\<netlinkId>
If you forget the "uvic\" in the username field the authentication will fail.

Permalink 10:47:06 am, by mholmes, 263 words, 213 views   English (CA)
Categories: Servers, R & D, Activity log, Activity log, Documentation; Mins. worked: 60

Character encoding issues on Tomcat-dev through Apache

Investigation and testing related to the container-encoding setting in the new Cocoon build process led me to discover a bug that's currently affecting sites on Pear's Tomcat-dev when accessed through Apache. Here's an illustration of the problem:

If you go to the Mariage site search page on Pear, accessed on its Tomcat port, and search for "mariée", you'll get correct results. However, if you access the site through Apache and the virtual domain and do the same search, you'll get garbled results.

The problem seems to be this:

We build our recent Cocoon stacks as all-UTF-8, and set up Tomcat as well to use UTF-8, but it appears that the last stage in the process, when Apache talks to Tomcat, is not working in UTF-8. We've done a bit of research, and based on this page:

http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_jk

Two things may need to be changed:

  • The AJP connector in Tomcat's conf/server.xml file may need to be tweaked to add a URIEncoding="UTF-8" parameter:
        <!-- Define an AJP 1.3 Connector on port 8009 -->
        <Connector port="8019" protocol="AJP/1.3" redirectPort="8081" />
    
    changed to:
        <!-- Define an AJP 1.3 Connector on port 8009 -->
        <Connector port="8019" protocol="AJP/1.3" redirectPort="8081" URIEncoding="UTF-8" />
  • This needs to be added to the Apache configuration:
    JkOptions +ForwardURICompatUnparsed

For the moment, this only applies to Tomcat-dev; Pear's Tomcat-stable is running legacy projects which operate in 8859-1 encoding, and they're working fine.

Wrote to sysadmin to request that they look at this and see if it makes sense.

Maintenance

This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent, in the server room, the labs and the R&D rooms.

Reports

Categories

December 2010
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds