Hi John,
You need to initialize Torque. You could do this with a servlet that has a
load on startup = 2.
// Torque init
Class theClass = this.getClass();
ClassLoader theLoader = theClass.getClassLoader();
org.apache.commons.configuration.PropertiesConfiguration tconfig = new
org.apache.commons.configuration.PropertiesConfiguration();
tconfig.load(theLoader.getResourceAsStream("latte.properties"));
org.apache.torque.Torque.init(tconfig);
christoph
-----Original Message-----
From: John Carnell [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 4:33 AM
To: [EMAIL PROTECTED]
Subject: Newbie problem with the tutorial
Greetings,
I apologize if this is a simple question. I check the
mail archives and could not find an answer. I am
trying to walkthrough the tutorial. I have
successfully generated my classes and SQL code.
However, when I try to run a Test program that will
insert a record I get the following error message:
Exception in thread "main"
java.lang.ExceptionInInitializerError:
org.apache.turbine.services.InstantiationException:
ServiceBroker: unknown service LoggingService
requested
at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseService
Broker.java:356)
at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.j
ava:298)
at
org.apache.turbine.util.Log.error(Log.java:449)
at
org.apache.turbine.om.peer.BasePeer.getMapBuilder(BasePeer.java:1863)
at
org.apache.turbine.BaseStudentPeer.<clinit>(BaseStudentPeer.java:34)
at
org.apache.turbine.BaseStudent.save(BaseStudent.java:263)
at TestTorque.main(TestTorque.java:12)
Any insights? I checked my Classpath and everything
looked alright to me.
Thanks ahead of time for the help,
John
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>