Kevin Clark wrote:
>
> That almost did it. ......
>
> Unfortunately, now a new problem has arisen and I don't have the slightest
> idea about where to start looking for the cause of it. When I tried to
> access the template (index.wm), I recieved this on my console:
>
> java.lang.IllegalAccessError:
> org.webmacro.broker.ResourceManager._expireTime
I've looked through the archive and seen a couple of references to
this...
The error is due to a bug in Sun's JDK 1.1.X related to inner classes.
My guess is that most users are either using JDK 1.2.X or are on
Windows,
and never noticed this problem.
The following is an excerpt from "Java in a Nutshell", Chapter 5.
=================================================================
Unfortunately, in Java 1.1 and 1.1.1 there are compiler bugs that
prevent
access to the private fields and methods of enclosing classes from
working
correctly. ... If a field or method must be visible to nested classes,
you
should give it package visibility rather than private visibility.
=================================================================
I ran into the problem on Solaris using JDK 1.1.8.
I could not reproduce the problem on Windows using JDK 1.1.8.
My solution was to change the visibility modifiers of certain fields in
webmacro-cvs-050400/src/java/org/webmacro/broker/ResourceManager.java
webmacro-cvs-050400/src/java/org/webmacro/engine/ParseTool.java
You may wish to switch to JDK 1.2, a newer version of WebMacro, or some
other template method.
--
#############################################################
## J.C. [EMAIL PROTECTED]
## -- Idiot Extrodinare --
#############################################################
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]