If you have servlet.jar for 2.3 in your classpath, while compiling or
during runtime you could see this effect as TurbineConfig does not
implement a new method in ServletConfig.  Here is a diff that can help
with this.  (I am just taking a wild guess at the cause, so take it for
what it is.)

john mcnally

Index: java/org/apache/turbine/util/TurbineConfig.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/TurbineConfig.java,v
retrieving revision 1.20
diff -u -r1.20 TurbineConfig.java
--- java/org/apache/turbine/util/TurbineConfig.java     2001/05/23 22:05:00     
1.20
+++ java/org/apache/turbine/util/TurbineConfig.java     2001/06/06 17:40:14
@@ -444,6 +444,19 @@
      * A method in ServletConfig or ServletContext interface that is
not
      * implemented and will throw
<code>UnsuportedOperationException</code>
      * upon invocation
+     * @deprecated
+     */
+    public Set getResourcePaths(String s)
+    {
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * Not implemented.
+     *
+     * A method in ServletConfig or ServletContext interface that is
not
+     * implemented and will throw
<code>UnsuportedOperationException</code>
+     * upon invocation
      */
     public String getServerInfo()
     {




Charles Benett wrote:
> 
> Hi,
> 
> Trying to use Peers in a standalone app, I get this error during
> compilation:
> 
> 
>/home/charles/jakarta/jakarta-james/build/src/org/apache/james/userrepository/UsersPeerRepository.java:44:
> class org.apache.turbine.util.TurbineConfig is an abstract class. It
> can't be instantiated.
>              = new TurbineConfig("/path","TurbineResources.properties");
> 
> the relevant method is:
> 
>     public void initialize()
>         throws Exception {
> 
>         TurbineConfig tc
>              = new TurbineConfig("/path","TurbineResources.properties");
>          tc.init();
>     }
> 
> which is what the docs suggest.
> 
> Any ideas what is happening?
> 
> Charles
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to