RT::Interface::Web_Local.pm is killing me

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We’re trying to implement some changes in
RT::Interface::Web->ProcessUpdateMessage (some code from our friends at
MIT) by using /local/lib/RT/Interface/Web_Local.pm but it will not load.

We have nearly a dozen other _Local libraries that do load, but this one
refuses to. We’ve checked everything that we can think of with no
success. A custom perl script that calls RT::Interface::Web will
successfully load the Web_Local methods! But bin/webmux.pl (the only
use RT::Interface::Web) just doesn’t do it.


Joby Walker
ITI SSG, University of Washington


PGP key: https://staff.washington.edu/joby/joby-u-pub.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDRFbJgA0gpghkf88RAsc5AJ9QMf+lYCzNI8tK05TDnxvwevZEOwCgnOJs
DLfLovTRBQAzwykh5xJ1peM=
=nom0
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We’re trying to implement some changes in
RT::Interface::Web->ProcessUpdateMessage (some code from our friends at
MIT) by using /local/lib/RT/Interface/Web_Local.pm but it will not load.

That often suggests a parse error. does it pass perl -C ?

Jesse

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/data/perl/bin/perl -I/data/rt/local/lib -I/data/rt/lib -c Web_Local.pm
Web_Local.pm syntax OK

Joby Walker
ITI SSG, University of Washington


PGP key: https://staff.washington.edu/joby/joby-u-pub.asc

Jesse Vincent wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We’re trying to implement some changes in
RT::Interface::Web->ProcessUpdateMessage (some code from our friends at
MIT) by using /local/lib/RT/Interface/Web_Local.pm but it will not load.

That often suggests a parse error. does it pass perl -C ?

Jesse
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDRFiLgA0gpghkf88RAjWtAJ9uyq+xy4jxdkLllETymSgYx8zD3ACeOg9V
pdC577UEaG6DHLM3s0OL4aw=
=NkYa
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/data/perl/bin/perl -I/data/rt/local/lib -I/data/rt/lib -c Web_Local.pm
Web_Local.pm syntax OK

I’ve had this trip me up a few times when overlaying pieces of the API. Each
time, it ended up that I was specifying the package incorrectly, eg:

package RT::Interface::Web_Local;

instead of

package RT::Interface::Web;

Are you possibly doing this?

Travis
Travis Campbell - Unix Systems Administrator = travis@mpdtxmail.amd.com
5900 E. Ben White Blvd, Austin, TX 78741 = travis.campbell@amd.com
TEL: (512) 602-1888 PAG: (512) 604-0341 = webmaster@mpdtxmail.amd.com
"Does anything work as expected?" Yes. An axe through the CPU.

At Thursday 10/6/2005 03:32 PM, Travis Campbell wrote:

I’ve had this trip me up a few times when overlaying pieces of the API. Each
time, it ended up that I was specifying the package incorrectly, eg:

package RT::Interface::Web_Local;

instead of

package RT::Interface::Web;

Are you possibly doing this?

I’ve never had to do this when overlaying the perl code - I generally copy
the whole file to local and change the code I need to without worrying
about the package name.

Joby - I’m sure you’ve checked file ownership & permissions. Do you have
more than one RT running on the machine? If so, could you have stopped &
started the wrong apache instance after making changes?

Steve

Stephen Turner wrote:

I’ve never had to do this when overlaying the perl code - I generally
copy the whole file to local and change the code I need to without
worrying about the package name.

Joby - I’m sure you’ve checked file ownership & permissions. Do you have
more than one RT running on the machine? If so, could you have stopped &
started the wrong apache instance after making changes?

Yup. Very annoying. We ended up pulling the code – we tested it by
pushing to Web.pm and it still wasn’t working. We just don’t have the
time to hassle with this right now – we have a couple groups just about
to go live on RT so we need to be focused on keeping the system stable
and useful. We’ll revisit this later when we have some spare time.

jbw