Hi,
> <%init>
> use JDBC;
> JDBC->load_driver('oracle.jdbc.driver.OracleDriver');
> </%init>
>
> I get this error:
>
> Can't locate object method "load_driver" via package "JDBC" at
>
> But having the same thing as a script outside Mason, mean
> normal script, it works without problems...
>
> Any idea?
Guess the path where JDBC.pm is residing is not in PERL5LIB. Thing is
that this environmental variable is not automatically exported when
apache is launched. There are several options:
1) use the appropriate directives in httpd.conf (PassEnv or SetEnv)
2) point to the correct folder in your component with use lib
HTH,
Marc
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users