Hi Slava,

You place the latte.properties in under 

$TOMCAT_HOME/webapps/yourwebapp/WEB-INF/classes in your j2ee project.

christoph

-----Original Message-----
From: Slava Zimine [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 24, 2002 11:06 AM
To: Turbine Torque Users List
Subject: Re: Newbie problem with the tutorial

hi, christoph. 

may I ask you what's the relative path of the file "latte.properties"   in
your
webapp ? 

is its path like $TOMCAT_HOME/webapps/yourwebapp/latte.properties   ? 

do you use torque without turbine for your  webapp? 

regards,

slava

On Mon, Jun 24, 2002 at 10:18:15AM +0200, Rooms, Christoph wrote:
> 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]>
> 

--
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]>

Reply via email to