You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Charles Benett <ch...@benett1.demon.co.uk> on 2001/06/06 11:06:56 UTC
TurbineConfig
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: TurbineConfig
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Any opposition to just checking that patch in?
John McNally <jm...@collab.net> writes:
> 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: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: TurbineConfig
Posted by John McNally <jm...@collab.net>.
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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org